blob: fdef35501468275cb01be7d63df242ceb76012f0 [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'oe1052142006-10-21 21:46:47 -04003# Generated by GNU Autoconf 2.60.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040020 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050023fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040024BIN_SH=xpg4; export BIN_SH # for Tru64
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050025DUALCASE=1; export DUALCASE # for MKS sh
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027
Theodore Ts'oe1052142006-10-21 21:46:47 -040028# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050029# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47fi
48
Theodore Ts'oe1052142006-10-21 21:46:47 -040049# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52else
53 as_unset=false
54fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050055
Theodore Ts'oe1052142006-10-21 21:46:47 -040056
57# IFS
58# We need space, tab and new line, in precisely that order. Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" "" $as_nl"
65
66# Find who we are. Look in the path if we contain no directory separator.
67case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050070for as_dir in $PATH
71do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
Theodore Ts'oe1052142006-10-21 21:46:47 -040076IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050077
Theodore Ts'oe1052142006-10-21 21:46:47 -040078 ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83 as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500108 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115else
116 as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121else
122 as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153else
154 as_have_required=no
155fi
156
157 if test $as_have_required = yes && (eval ":
158(as_func_return () {
159 (exit \$1)
160}
161as_func_success () {
162 as_func_return 0
163}
164as_func_failure () {
165 as_func_return 1
166}
167as_func_ret_success () {
168 return 0
169}
170as_func_ret_failure () {
171 return 1
172}
173
174exitcode=0
175if as_func_success; then
176 :
177else
178 exitcode=1
179 echo as_func_success failed.
180fi
181
182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201else
202 exitcode=1
203 echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214 :
215else
216 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -0400218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400222 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228done
229IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236# Be Bourne compatible
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246fi
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
249
250:
251_ASEOF
252}; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256# Be Bourne compatible
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266fi
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
269
270:
271(as_func_return () {
272 (exit $1)
273}
274as_func_success () {
275 as_func_return 0
276}
277as_func_failure () {
278 as_func_return 1
279}
280as_func_ret_success () {
281 return 0
282}
283as_func_ret_failure () {
284 return 1
285}
286
287exitcode=0
288if as_func_success; then
289 :
290else
291 exitcode=1
292 echo as_func_success failed.
293fi
294
295if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301 :
302else
303 exitcode=1
304 echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314else
315 exitcode=1
316 echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500324 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329 break
330fi
331
332fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361 (exit \$1)
362}
363as_func_success () {
364 as_func_return 0
365}
366as_func_failure () {
367 as_func_return 1
368}
369as_func_ret_success () {
370 return 0
371}
372as_func_ret_failure () {
373 return 1
374}
375
376exitcode=0
377if as_func_success; then
378 :
379else
380 exitcode=1
381 echo as_func_success failed.
382fi
383
384if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390 :
391else
392 exitcode=1
393 echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403else
404 exitcode=1
405 echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413}
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500436 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500441 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500444 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400445 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500446 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400447 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500455 # Exit status is that of the last command.
456 exit
457}
458
459
Theodore Ts'oe1052142006-10-21 21:46:47 -0400460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462else
463 as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473*)
474 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500475esac
476
Theodore Ts'oe1052142006-10-21 21:46:47 -0400477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500499 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500500elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502else
503 as_ln_s='cp -p'
504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
Theodore Ts'oe1052142006-10-21 21:46:47 -0400515# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524else
525 as_executable_p=:
526fi
527rm -f conf$$.file
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500528
529# Sed expression to map a string onto a valid CPP name.
530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532# Sed expression to map a string onto a valid variable name.
533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500544#
545# Initializations.
546#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000547ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400548ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400550LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="version.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#if HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#if HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#if STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# if HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#if HAVE_STRING_H
583# if !STDC_HEADERS && HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#if HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#if HAVE_INTTYPES_H
592# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400593#endif
594#if HAVE_STDINT_H
595# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596#endif
597#if HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
Theodore Ts'oe1052142006-10-21 21:46:47 -0400601ac_subst_vars='SHELL
602PATH_SEPARATOR
603PACKAGE_NAME
604PACKAGE_TARNAME
605PACKAGE_VERSION
606PACKAGE_STRING
607PACKAGE_BUGREPORT
608exec_prefix
609prefix
610program_transform_name
611bindir
612sbindir
613libexecdir
614datarootdir
615datadir
616sysconfdir
617sharedstatedir
618localstatedir
619includedir
620oldincludedir
621docdir
622infodir
623htmldir
624dvidir
625pdfdir
626psdir
627libdir
628localedir
629mandir
630DEFS
631ECHO_C
632ECHO_N
633ECHO_T
634LIBS
635build_alias
636host_alias
637target_alias
638E2FSPROGS_YEAR
639E2FSPROGS_MONTH
640E2FSPROGS_DAY
641E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500642E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400643build
644build_cpu
645build_vendor
646build_os
647host
648host_cpu
649host_vendor
650host_os
651CC
652CFLAGS
653LDFLAGS
654CPPFLAGS
655ac_ct_CC
656EXEEXT
657OBJEXT
658LD
659CPP
660GREP
661EGREP
662LINUX_INCLUDE
663MAINTAINER_CMT
664HTREE_CMT
665ELF_CMT
666BSDLIB_CMT
667PROFILE_CMT
668CHECKER_CMT
669LIB_EXT
670STATIC_LIB_EXT
671PROFILED_LIB_EXT
672SWAPFS_CMT
673DEBUGFS_CMT
674IMAGER_CMT
675RESIZER_CMT
676E2FSCK_TYPE
677FSCK_PROG
678FSCK_MAN
679E2INITRD_PROG
680E2INITRD_MAN
681DEVMAPPER_REQ
682DEVMAPPER_PC_LIBS
683DEVMAPPER_LIBS
684STATIC_DEVMAPPER_LIBS
685GETTEXT_PACKAGE
686PACKAGE
687VERSION
688SET_MAKE
689INSTALL_PROGRAM
690INSTALL_SCRIPT
691INSTALL_DATA
692MKINSTALLDIRS
693USE_NLS
694MSGFMT
695GMSGFMT
696XGETTEXT
697MSGMERGE
698RANLIB
699ALLOCA
700GLIBC21
701HAVE_POSIX_PRINTF
702HAVE_ASPRINTF
703HAVE_SNPRINTF
704HAVE_WPRINTF
705LIBICONV
706LTLIBICONV
707INTLBISON
708BUILD_INCLUDED_LIBINTL
709USE_INCLUDED_LIBINTL
710CATOBJEXT
711DATADIRNAME
712INSTOBJEXT
713GENCAT
714INTLOBJS
715INTL_LIBTOOL_SUFFIX_PREFIX
716INTLLIBS
717LIBINTL
718LTLIBINTL
719POSUB
720BINARY_TYPE
721LN
722LN_S
723MV
724CP
725RM
726CHMOD
727AWK
728SED
729PERL
730LDCONFIG
731AR
732STRIP
733BUILD_CC
734SIZEOF_SHORT
735SIZEOF_INT
736SIZEOF_LONG
737SIZEOF_LONG_LONG
738SOCKET_LIB
739DLOPEN_LIB
740UNI_DIFF_OPTS
741LINUX_CMT
742CYGWIN_CMT
743UNIX_CMT
744root_prefix
745root_bindir
746root_sbindir
747root_libdir
748root_sysconfdir
749LDFLAG_STATIC
750SS_DIR
751ET_DIR
752DO_TEST_SUITE
753INTL_FLAGS
754BUILD_CFLAGS
755BUILD_LDFLAGS
756LIBOBJS
757LTLIBOBJS'
758ac_subst_files='MCONFIG
759MAKEFILE_ELF
760MAKEFILE_BSDLIB
761MAKEFILE_PROFILE
762MAKEFILE_CHECKER
763MAKEFILE_LIBRARY
764ASM_TYPES_HEADER'
765 ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771CPPFLAGS
772CPP'
773
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000774
775# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500776ac_init_help=
777ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000778# The variables have the same names as the options, with
779# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500780cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000781exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000782no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000791verbose=
792x_includes=NONE
793x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400800# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000809includedir='${prefix}/include'
810oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400811docdir='${datarootdir}/doc/${PACKAGE}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000820
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000821ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400822ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000823for ac_option
824do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400827 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000828 ac_prev=
829 continue
830 fi
831
Theodore Ts'oe1052142006-10-21 21:46:47 -0400832 case $ac_option in
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *) ac_optarg=yes ;;
835 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
Theodore Ts'oe1052142006-10-21 21:46:47 -0400839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500846 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000847
848 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500849 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500851 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000862
Theodore Ts'oe1052142006-10-21 21:46:47 -0400863 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000864 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500866 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867
Theodore Ts'oe1052142006-10-21 21:46:47 -0400868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000875 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500876 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500878 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
879 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
880 { (exit 1); exit 1; }; }
881 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400882 eval enable_$ac_feature=no ;;
883
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
888
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000893
894 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500895 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000896 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500897 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
900 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400901 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000902
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500910 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
914 with_gas=yes ;;
915
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916 -help | --help | --hel | --he | -h)
917 ac_init_help=long ;;
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
923 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500924 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500926 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927
Theodore Ts'oe1052142006-10-21 21:46:47 -0400928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 ac_prev=htmldir ;;
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 | --ht=*)
932 htmldir=$ac_optarg ;;
933
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500939 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000940
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 ac_prev=infodir ;;
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500944 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000945
946 -libdir | --libdir | --libdi | --libd)
947 ac_prev=libdir ;;
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500949 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000950
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500956 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000957
Theodore Ts'oe1052142006-10-21 21:46:47 -0400958 -localedir | --localedir | --localedi | --localed | --locale)
959 ac_prev=localedir ;;
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
962
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000963 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400964 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500968 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000969
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 ac_prev=mandir ;;
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500973 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000974
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000975 -nfp | --nfp | --nf)
976 # Obsolete; use --without-fp.
977 with_fp=no ;;
978
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500980 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981 no_create=yes ;;
982
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 no_recursion=yes ;;
986
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000995
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 ac_prev=prefix ;;
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500999 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001006 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001007
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001013 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001030 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001031
Theodore Ts'oe1052142006-10-21 21:46:47 -04001032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 ac_prev=pdfdir ;;
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1036
1037 -psdir | --psdir | --psdi | --psd | --ps)
1038 ac_prev=psdir ;;
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 psdir=$ac_optarg ;;
1041
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 silent=yes ;;
1045
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 ac_prev=sbindir ;;
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001050 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001051
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1055 | --sha | --sh)
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001062
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001063 -site | --site | --sit)
1064 ac_prev=site ;;
1065 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001067
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 ac_prev=srcdir ;;
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001071 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001081 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001083 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001084
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 verbose=yes ;;
1087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001090
1091 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid package name: $ac_package" >&2
1096 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097 ac_package=`echo $ac_package| sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001098 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099
1100 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102 # Reject names that are not valid shell variable names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package=`echo $ac_package | sed 's/-/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001107 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001108
1109 --x)
1110 # Obsolete; use --with-x.
1111 with_x=yes ;;
1112
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001125 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001127 -*) { echo "$as_me: error: unrecognized option: $ac_option
1128Try \`$0 --help' for more information." >&2
1129 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001130 ;;
1131
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001132 *=*)
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1137 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001138 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001139 export $ac_envvar ;;
1140
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001141 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001142 # FIXME: should be removed in autoconf 3.0.
1143 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147 ;;
1148
1149 esac
1150done
1151
1152if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 { echo "$as_me: error: missing argument to $ac_option" >&2
1155 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001156fi
1157
Theodore Ts'oe1052142006-10-21 21:46:47 -04001158# Be sure to have absolute directory names.
1159for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001164 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001165 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001168 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001169 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1170 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001171done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001172
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173# There might be people who depend on the old broken behavior: `$host'
1174# used to hold the argument of --host etc.
1175# FIXME: To remove some day.
1176build=$build_alias
1177host=$host_alias
1178target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001180# FIXME: To remove some day.
1181if test "x$host_alias" != x; then
1182 if test "x$build_alias" = x; then
1183 cross_compiling=maybe
1184 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1185 If a cross compiler is detected then cross compile mode will be used." >&2
1186 elif test "x$build_alias" != "x$host_alias"; then
1187 cross_compiling=yes
1188 fi
1189fi
1190
1191ac_tool_prefix=
1192test -n "$host_alias" && ac_tool_prefix=$host_alias-
1193
1194test "$silent" = yes && exec 6>/dev/null
1195
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196
Theodore Ts'oe1052142006-10-21 21:46:47 -04001197ac_pwd=`pwd` && test -n "$ac_pwd" &&
1198ac_ls_di=`ls -di .` &&
1199ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1200 { echo "$as_me: error: Working directory cannot be determined" >&2
1201 { (exit 1); exit 1; }; }
1202test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 { echo "$as_me: error: pwd does not report name of working directory" >&2
1204 { (exit 1); exit 1; }; }
1205
1206
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001207# Find the source files, if location was not specified.
1208if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001212$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$0" : 'X\(//\)[^/]' \| \
1214 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001216echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\/\)[^/].*/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)$/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\).*/{
1230 s//\1/
1231 q
1232 }
1233 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001235 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001236 srcdir=..
1237 fi
1238else
1239 ac_srcdir_defaulted=no
1240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001241if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001244 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001245fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001246ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1247ac_abs_confdir=`(
1248 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001249 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001250 pwd)`
1251# When building in place, set srcdir=.
1252if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1254fi
1255# Remove unnecessary trailing slashes from srcdir.
1256# Double slashes in file names in object file debugging info
1257# mess up M-x gdb in Emacs.
1258case $srcdir in
1259*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260esac
1261for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001268#
1269# Report the --help message.
1270#
1271if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
1275\`configure' configures this package to adapt to many kinds of systems.
1276
1277Usage: $0 [OPTION]... [VAR=VALUE]...
1278
1279To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280VAR=VALUE. See below for descriptions of some of the useful variables.
1281
1282Defaults for the options are specified in brackets.
1283
1284Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001295Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 [PREFIX]
1300
1301By default, \`make install' will install all the files in
1302\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304for instance \`--prefix=\$HOME'.
1305
1306For better control, use the options below.
1307
1308Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001328_ACEOF
1329
1330 cat <<\_ACEOF
1331
1332System types:
1333 --build=BUILD configure for building on BUILD [guessed]
1334 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1335_ACEOF
1336fi
1337
1338if test -n "$ac_init_help"; then
1339
1340 cat <<\_ACEOF
1341
1342Optional Features:
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001345 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001346 --enable-compression enable EXPERIMENTAL compression support
1347 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001348 --enable-elf-shlibs select ELF shared libraries
1349 --enable-bsd-shlibs select BSD shared libraries
1350 --enable-profile build profiling libraries
1351 --enable-checker build checker libraries
1352 --enable-jbd-debug enable journal debugging
1353 --enable-blkid-debug enable blkid debugging
1354 --enable-testio-debug enable the use of the test I/O manager for debugging
1355 --disable-swapfs disable support of legacy byte-swapped filesystems
1356 --disable-debugfs disable support of debugfs program
1357 --disable-imager disable support of e2image program
1358 --disable-resizer disable support of e2resize program
1359 --enable-dynamic-e2fsck build e2fsck dynamically
1360 --enable-fsck build fsck wrapper program
1361 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001362 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001363 --disable-nls do not use Native Language Support
1364 --disable-rpath do not hardcode runtime library paths
1365
1366Optional Packages:
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-diet-libc Use diet libc
1370 --with-cc=COMPILER select compiler to use
1371 --with-linker=LINKER select linker to use
1372 --with-ccopts=CCOPTS select compiler command line options
1373 --with-ldopts=LDOPTS select linker command line options
1374 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1375 --with-gnu-ld assume the C compiler uses GNU ld default=no
1376 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1377 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1378 --with-included-gettext use the GNU gettext library included here
1379 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1380 --without-libintl-prefix don't search for libintl in includedir and libdir
1381
1382Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001389 CPP C preprocessor
1390
1391Use these variables to override the choices made by `configure' or to help
1392it to find libraries and programs with nonstandard names/locations.
1393
1394_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001395ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001396fi
1397
1398if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001401 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001402 ac_builddir=.
1403
Theodore Ts'oe1052142006-10-21 21:46:47 -04001404case "$ac_dir" in
1405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414esac
1415ac_abs_top_builddir=$ac_pwd
1416ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417# for backward compatibility:
1418ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001419
1420case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001426 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001433esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435
Theodore Ts'oe1052142006-10-21 21:46:47 -04001436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444 else
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448 done
1449fi
1450
Theodore Ts'oe1052142006-10-21 21:46:47 -04001451test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001452if $ac_init_version; then
1453 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001454configure
1455generated by GNU Autoconf 2.60
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001456
Theodore Ts'oe1052142006-10-21 21:46:47 -04001457Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14582002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001459This configure script is free software; the Free Software Foundation
1460gives unlimited permission to copy, distribute and modify it.
1461_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001462 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001464cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465This file contains any messages produced by compilers while
1466running configure, to aid debugging if configure makes a mistake.
1467
1468It was created by $as_me, which was
Theodore Ts'oe1052142006-10-21 21:46:47 -04001469generated by GNU Autoconf 2.60. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470
1471 $ $0 $@
1472
1473_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001474exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475{
1476cat <<_ASUNAME
1477## --------- ##
1478## Platform. ##
1479## --------- ##
1480
1481hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486
1487/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489
1490/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001493/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001494/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497
1498_ASUNAME
1499
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1506done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001507IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508
1509} >&5
1510
1511cat >&5 <<_ACEOF
1512
1513
1514## ----------- ##
1515## Core tests. ##
1516## ----------- ##
1517
1518_ACEOF
1519
1520
1521# Keep a trace of the command line.
1522# Strip out --no-create and --no-recursion so they do not pile up.
1523# Strip out --silent because we don't want to record it for future runs.
1524# Also quote any args containing shell meta-characters.
1525# Make two passes to allow for proper duplicate-argument suppression.
1526ac_configure_args=
1527ac_configure_args0=
1528ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529ac_must_keep_next=false
1530for ac_pass in 1 2
1531do
1532 for ac_arg
1533 do
1534 case $ac_arg in
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001539 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 esac
1542 case $ac_pass in
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 2)
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
1547 ac_must_keep_next=false # Got value, back to normal.
1548 else
1549 case $ac_arg in
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 esac
1557 ;;
1558 -* ) ac_must_keep_next=true ;;
1559 esac
1560 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 ;;
1563 esac
1564 done
1565done
1566$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568
1569# When interrupted or exit'd, cleanup temporary files, and complete
1570# config.log. We remove comments because anyway the quotes in there
1571# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001572# WARNING: Use '\'' to represent an apostrophe within the trap.
1573# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1576 {
1577 echo
1578
1579 cat <<\_ASBOX
1580## ---------------- ##
1581## Cache variables. ##
1582## ---------------- ##
1583_ASBOX
1584 echo
1585 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001586(
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in #(
1590 *${as_nl}*)
1591 case $ac_var in #(
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 esac
1595 case $ac_var in #(
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1598 esac ;;
1599 esac
1600 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001610 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001611 esac |
1612 sort
1613)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001614 echo
1615
1616 cat <<\_ASBOX
1617## ----------------- ##
1618## Output variables. ##
1619## ----------------- ##
1620_ASBOX
1621 echo
1622 for ac_var in $ac_subst_vars
1623 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001629 done | sort
1630 echo
1631
1632 if test -n "$ac_subst_files"; then
1633 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634## ------------------- ##
1635## File substitutions. ##
1636## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637_ASBOX
1638 echo
1639 for ac_var in $ac_subst_files
1640 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646 done | sort
1647 echo
1648 fi
1649
1650 if test -s confdefs.h; then
1651 cat <<\_ASBOX
1652## ----------- ##
1653## confdefs.h. ##
1654## ----------- ##
1655_ASBOX
1656 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001658 echo
1659 fi
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1663 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001666 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001667' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670done
1671ac_signal=0
1672
1673# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001674rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001675
1676# Predefined preprocessor variables.
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_NAME "$PACKAGE_NAME"
1680_ACEOF
1681
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685_ACEOF
1686
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_VERSION "$PACKAGE_VERSION"
1690_ACEOF
1691
1692
1693cat >>confdefs.h <<_ACEOF
1694#define PACKAGE_STRING "$PACKAGE_STRING"
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700_ACEOF
1701
1702
1703# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001704# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001705if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709else
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001712fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001713shift
1714for ac_site_file
1715do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001716 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001720 . "$ac_site_file"
1721 fi
1722done
1723
1724if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729echo "$as_me: loading cache $cache_file" >&6;}
1730 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001733 esac
1734 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737echo "$as_me: creating cache $cache_file" >&6;}
1738 >$cache_file
1739fi
1740
1741# Check that the precious variables saved in the cache have kept the same
1742# value.
1743ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001744for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001749 case $ac_old_set,$ac_new_set in
1750 set,)
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,set)
1755 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1758 ,);;
1759 *)
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
1761 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1764echo "$as_me: former value: $ac_old_val" >&2;}
1765 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1766echo "$as_me: current value: $ac_new_val" >&2;}
1767 ac_cache_corrupted=:
1768 fi;;
1769 esac
1770 # Pass precious variables to config.status.
1771 if test "$ac_new_set" = set; then
1772 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001773 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001774 *) ac_arg=$ac_var=$ac_new_val ;;
1775 esac
1776 case " $ac_configure_args " in
1777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1778 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1779 esac
1780 fi
1781done
1782if $ac_cache_corrupted; then
1783 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001788fi
1789
Theodore Ts'oe1052142006-10-21 21:46:47 -04001790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001806ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001807ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001812
1813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001814ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001815for ac_dir in config "$srcdir"/config; do
1816 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001817 ac_aux_dir=$ac_dir
1818 ac_install_sh="$ac_aux_dir/install-sh -c"
1819 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001820 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001821 ac_aux_dir=$ac_dir
1822 ac_install_sh="$ac_aux_dir/install.sh -c"
1823 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001824 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001825 ac_aux_dir=$ac_dir
1826 ac_install_sh="$ac_aux_dir/shtool install -c"
1827 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001828 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001829done
1830if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1832echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001833 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001835
1836# These three variables are undocumented and unsupported,
1837# and are intended to be withdrawn in a future Autoconf release.
1838# They can cause serious problems if a builder's source tree is in a directory
1839# whose full name contains unusual characters.
1840ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1841ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1842ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1843
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001844
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001845MCONFIG=./MCONFIG
1846
Theodore Ts'o74becf31997-04-26 14:37:06 +00001847BINARY_TYPE=bin
1848E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1849 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1850DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1851 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001852E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001853MONTH=`echo $DATE | awk -F- '{print $2}'`
1854YEAR=`echo $DATE | awk -F- '{print $3}'`
1855
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001856if expr $YEAR ">" 1900 > /dev/null ; then
1857 E2FSPROGS_YEAR=$YEAR
1858elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001859 E2FSPROGS_YEAR=19$YEAR
1860else
1861 E2FSPROGS_YEAR=20$YEAR
1862fi
1863
1864case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001865Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1866Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1867Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1868Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1869May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1870Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1871Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1872Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1873Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1874Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1875Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1876Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001877*) echo "Unknown month $MONTH??" ;;
1878esac
1879
Andreas Dilger927566a2006-11-12 19:41:25 -05001880base_ver=`echo $E2FSPROGS_VERSION | \
1881 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1882pre_vers=`echo $base_ver 0.01 - p | dc`
1883
1884date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1885
1886case $E2FSPROGS_VERSION in
1887*-WIP|pre-*)
1888 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1889 ;;
1890*)
1891 E2FSPROGS_PKGVER="$base_ver"
1892 ;;
1893esac
1894
1895unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001896echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1897echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1898
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001899
1900
1901
Andreas Dilger927566a2006-11-12 19:41:25 -05001902
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001903# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001904$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1905 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1906echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001907 { (exit 1); exit 1; }; }
1908
Theodore Ts'oe1052142006-10-21 21:46:47 -04001909{ echo "$as_me:$LINENO: checking build system type" >&5
1910echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001911if test "${ac_cv_build+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001914 ac_build_alias=$build_alias
1915test "x$ac_build_alias" = x &&
1916 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1917test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001918 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1919echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1920 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001921ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1922 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1923echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001924 { (exit 1); exit 1; }; }
1925
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001926fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001927{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1928echo "${ECHO_T}$ac_cv_build" >&6; }
1929case $ac_cv_build in
1930*-*-*) ;;
1931*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1932echo "$as_me: error: invalid value of canonical build" >&2;}
1933 { (exit 1); exit 1; }; };;
1934esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001935build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001936ac_save_IFS=$IFS; IFS='-'
1937set x $ac_cv_build
1938shift
1939build_cpu=$1
1940build_vendor=$2
1941shift; shift
1942# Remember, the first character of IFS is used to create $*,
1943# except with old shells:
1944build_os=$*
1945IFS=$ac_save_IFS
1946case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001947
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001948
Theodore Ts'oe1052142006-10-21 21:46:47 -04001949{ echo "$as_me:$LINENO: checking host system type" >&5
1950echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001951if test "${ac_cv_host+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001954 if test "x$host_alias" = x; then
1955 ac_cv_host=$ac_cv_build
1956else
1957 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1958 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1959echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001960 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001961fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001963fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001964{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1965echo "${ECHO_T}$ac_cv_host" >&6; }
1966case $ac_cv_host in
1967*-*-*) ;;
1968*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1969echo "$as_me: error: invalid value of canonical host" >&2;}
1970 { (exit 1); exit 1; }; };;
1971esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001972host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001973ac_save_IFS=$IFS; IFS='-'
1974set x $ac_cv_host
1975shift
1976host_cpu=$1
1977host_vendor=$2
1978shift; shift
1979# Remember, the first character of IFS is used to create $*,
1980# except with old shells:
1981host_os=$*
1982IFS=$ac_save_IFS
1983case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001984
1985
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001986
Theodore Ts'oe1052142006-10-21 21:46:47 -04001987# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04001988if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001989 withval=$with_diet_libc; CC="diet cc -nostdinc"
1990{ echo "$as_me:$LINENO: result: CC=$CC" >&5
1991echo "${ECHO_T}CC=$CC" >&6; }
1992fi
1993
1994# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001995if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001996 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
1997echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001998CC=$withval
1999else
2000 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002001{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2002echo "${ECHO_T}CC defaults to $CC" >&6; }
2003fi
2004export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002006ac_ext=c
2007ac_cpp='$CPP $CPPFLAGS'
2008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2013set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002016if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002018else
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2021else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2032 fi
2033done
2034done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002035IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002036
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002037fi
2038fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002039CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002040if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002041 { echo "$as_me:$LINENO: result: $CC" >&5
2042echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002043else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002044 { echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002046fi
2047
Theodore Ts'oe1052142006-10-21 21:46:47 -04002048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002049fi
2050if test -z "$ac_cv_prog_CC"; then
2051 ac_ct_CC=$CC
2052 # Extract the first word of "gcc", so it can be a program name with args.
2053set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002056if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061else
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069 ac_cv_prog_ac_ct_CC="gcc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2072 fi
2073done
2074done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002075IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002076
2077fi
2078fi
2079ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002081 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002083else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002084 { echo "$as_me:$LINENO: result: no" >&5
2085echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002086fi
2087
Theodore Ts'oe1052142006-10-21 21:46:47 -04002088 if test "x$ac_ct_CC" = x; then
2089 CC=""
2090 else
2091 case $cross_compiling:$ac_tool_warned in
2092yes:)
2093{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2094whose name does not start with the host triplet. If you think this
2095configuration is useful to you, please write to autoconf@gnu.org." >&5
2096echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2097whose name does not start with the host triplet. If you think this
2098configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2099ac_tool_warned=yes ;;
2100esac
2101 CC=$ac_ct_CC
2102 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002103else
2104 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002105fi
2106
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002107if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002108 if test -n "$ac_tool_prefix"; then
2109 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002110set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002111{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002113if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002115else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002126 ac_cv_prog_CC="${ac_tool_prefix}cc"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2129 fi
2130done
2131done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002132IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002133
2134fi
2135fi
2136CC=$ac_cv_prog_CC
2137if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002138 { echo "$as_me:$LINENO: result: $CC" >&5
2139echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002140else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002141 { echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002143fi
2144
Theodore Ts'oe1052142006-10-21 21:46:47 -04002145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002146 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002147fi
2148if test -z "$CC"; then
2149 # Extract the first word of "cc", so it can be a program name with args.
2150set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002153if test "${ac_cv_prog_CC+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155else
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2158else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002159 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161for as_dir in $PATH
2162do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2168 ac_prog_rejected=yes
2169 continue
2170 fi
2171 ac_cv_prog_CC="cc"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175done
2176done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002177IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002178
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002179if test $ac_prog_rejected = yes; then
2180 # We found a bogon in the path, so make sure we never use it.
2181 set dummy $ac_cv_prog_CC
2182 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002183 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002184 # We chose a different compiler from the bogus one.
2185 # However, it has the same basename, so the bogon will be chosen
2186 # first if we set CC to just the basename; use the full file name.
2187 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002189 fi
2190fi
2191fi
2192fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002193CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002194if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002195 { echo "$as_me:$LINENO: result: $CC" >&5
2196echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002197else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002198 { echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002200fi
2201
Theodore Ts'oe1052142006-10-21 21:46:47 -04002202
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002203fi
2204if test -z "$CC"; then
2205 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002206 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002207 do
2208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002212if test "${ac_cv_prog_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002214else
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2217else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002225 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2228 fi
2229done
2230done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002231IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002232
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002233fi
2234fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002236if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002237 { echo "$as_me:$LINENO: result: $CC" >&5
2238echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002239else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002240 { echo "$as_me:$LINENO: result: no" >&5
2241echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002242fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002243
Theodore Ts'oe1052142006-10-21 21:46:47 -04002244
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002245 test -n "$CC" && break
2246 done
2247fi
2248if test -z "$CC"; then
2249 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002250 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002251do
2252 # Extract the first word of "$ac_prog", so it can be a program name with args.
2253set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002256if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261else
2262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263for as_dir in $PATH
2264do
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002269 ac_cv_prog_ac_ct_CC="$ac_prog"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002272 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002273done
2274done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002275IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002276
2277fi
2278fi
2279ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002281 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002283else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002284 { echo "$as_me:$LINENO: result: no" >&5
2285echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002286fi
2287
Theodore Ts'oe1052142006-10-21 21:46:47 -04002288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002289 test -n "$ac_ct_CC" && break
2290done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002291
Theodore Ts'oe1052142006-10-21 21:46:47 -04002292 if test "x$ac_ct_CC" = x; then
2293 CC=""
2294 else
2295 case $cross_compiling:$ac_tool_warned in
2296yes:)
2297{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2298whose name does not start with the host triplet. If you think this
2299configuration is useful to you, please write to autoconf@gnu.org." >&5
2300echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2301whose name does not start with the host triplet. If you think this
2302configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2303ac_tool_warned=yes ;;
2304esac
2305 CC=$ac_ct_CC
2306 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002309fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002310
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002312test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313See \`config.log' for more details." >&5
2314echo "$as_me: error: no acceptable C compiler found in \$PATH
2315See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2317
2318# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002319echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002320ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002321{ (ac_try="$ac_compiler --version >&5"
2322case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325esac
2326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002331{ (ac_try="$ac_compiler -v >&5"
2332case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335esac
2336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002341{ (ac_try="$ac_compiler -V >&5"
2342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351
2352cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
2358
2359int
2360main ()
2361{
2362
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367ac_clean_files_save=$ac_clean_files
2368ac_clean_files="$ac_clean_files a.out a.exe b.out"
2369# Try to create an executable without -o first, disregard a.out.
2370# It will help us diagnose broken compilers, and finding out an intuition
2371# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002372{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2373echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002374ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002375#
2376# List of possible output files, starting from the most likely.
2377# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2378# only as a last resort. b.out is created by i960 compilers.
2379ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2380#
2381# The IRIX 6 linker writes into existing files which may not be
2382# executable, retaining their permissions. Remove them first so a
2383# subsequent execution test works.
2384ac_rmfiles=
2385for ac_file in $ac_files
2386do
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2390 esac
2391done
2392rm -f $ac_rmfiles
2393
2394if { (ac_try="$ac_link_default"
2395case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398esac
2399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002404 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2405# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2406# in a Makefile. We should not override ac_cv_exeext if it was cached,
2407# so that the user can short-circuit this test for compilers unknown to
2408# Autoconf.
2409for ac_file in $ac_files
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002410do
2411 test -f "$ac_file" || continue
2412 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002414 ;;
2415 [ab].out )
2416 # We found the default executable, but exeext='' is most
2417 # certainly right.
2418 break;;
2419 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002420 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2421 then :; else
2422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 fi
2424 # We set ac_cv_exeext here because the later test for it is not
2425 # safe: cross compilers may not add the suffix if given an `-o'
2426 # argument, so we may need to know it at that point already.
2427 # Even if this section looks crufty: it has the advantage of
2428 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002429 break;;
2430 * )
2431 break;;
2432 esac
2433done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002434test "$ac_cv_exeext" = no && ac_cv_exeext=
2435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436else
2437 echo "$as_me: failed program was:" >&5
2438sed 's/^/| /' conftest.$ac_ext >&5
2439
2440{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2441See \`config.log' for more details." >&5
2442echo "$as_me: error: C compiler cannot create executables
2443See \`config.log' for more details." >&2;}
2444 { (exit 77); exit 77; }; }
2445fi
2446
2447ac_exeext=$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002448{ echo "$as_me:$LINENO: result: $ac_file" >&5
2449echo "${ECHO_T}$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450
Theodore Ts'oe1052142006-10-21 21:46:47 -04002451# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002453{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2454echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002455# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2456# If not cross compiling, check that we can run a simple program.
2457if test "$cross_compiling" != yes; then
2458 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462esac
2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002469 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470 if test "$cross_compiling" = maybe; then
2471 cross_compiling=yes
2472 else
2473 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2474If you meant to cross compile, use \`--host'.
2475See \`config.log' for more details." >&5
2476echo "$as_me: error: cannot run C compiled programs.
2477If you meant to cross compile, use \`--host'.
2478See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2480 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002481 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002482fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483{ echo "$as_me:$LINENO: result: yes" >&5
2484echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486rm -f a.out a.exe conftest$ac_cv_exeext b.out
2487ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002488# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002490{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2491echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2492{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2493echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002494
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2496echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2497if { (ac_try="$ac_link"
2498case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509# work properly (i.e., refer to `conftest.exe'), while it won't with
2510# `rm'.
2511for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2513 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 break;;
2517 * ) break;;
2518 esac
2519done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002520else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2522See \`config.log' for more details." >&5
2523echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2524See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2526fi
2527
2528rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002529{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2530echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531
2532rm -f conftest.$ac_ext
2533EXEEXT=$ac_cv_exeext
2534ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002535{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2536echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537if test "${ac_cv_objext+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h. */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h. */
2546
2547int
2548main ()
2549{
2550
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556if { (ac_try="$ac_compile"
2557case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560esac
2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002566 for ac_file in conftest.o conftest.obj conftest.*; do
2567 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002568 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2571 break;;
2572 esac
2573done
2574else
2575 echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2579See \`config.log' for more details." >&5
2580echo "$as_me: error: cannot compute suffix of object files: cannot compile
2581See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2583fi
2584
2585rm -f conftest.$ac_cv_objext conftest.$ac_ext
2586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002587{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2588echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589OBJEXT=$ac_cv_objext
2590ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002591{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2592echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002593if test "${ac_cv_c_compiler_gnu+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596 cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602
2603int
2604main ()
2605{
2606#ifndef __GNUC__
2607 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002608#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002610 ;
2611 return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615if { (ac_try="$ac_compile"
2616case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619esac
2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04002628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632esac
2633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002639 { (case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642esac
2643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002649else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650 echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
Theodore Ts'oe1052142006-10-21 21:46:47 -04002653 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002654fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002655
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002657ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002660{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2661echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662GCC=`test $ac_compiler_gnu = yes && echo yes`
2663ac_test_CFLAGS=${CFLAGS+set}
2664ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2666echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667if test "${ac_cv_prog_cc_g+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002669else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002670 ac_save_c_werror_flag=$ac_c_werror_flag
2671 ac_c_werror_flag=yes
2672 ac_cv_prog_cc_g=no
2673 CFLAGS="-g"
2674 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002675/* confdefs.h. */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h. */
2680
2681int
2682main ()
2683{
2684
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002690if { (ac_try="$ac_compile"
2691case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694esac
2695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04002703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2704 { (case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002714 { (case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002723 ac_cv_prog_cc_g=yes
2724else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002725 echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002727
Theodore Ts'oe1052142006-10-21 21:46:47 -04002728 CFLAGS=""
2729 cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h. */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h. */
2735
2736int
2737main ()
2738{
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext
2745if { (ac_try="$ac_compile"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2759 { (case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_try") 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_try") 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 :
2779else
2780 echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 ac_c_werror_flag=$ac_save_c_werror_flag
2784 CFLAGS="-g"
2785 cat >conftest.$ac_ext <<_ACEOF
2786/* confdefs.h. */
2787_ACEOF
2788cat confdefs.h >>conftest.$ac_ext
2789cat >>conftest.$ac_ext <<_ACEOF
2790/* end confdefs.h. */
2791
2792int
2793main ()
2794{
2795
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800rm -f conftest.$ac_objext
2801if { (ac_try="$ac_compile"
2802case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805esac
2806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compile") 2>conftest.er1
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2815 { (case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_try") 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_try") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_cv_prog_cc_g=yes
2835else
2836 echo "$as_me: failed program was:" >&5
2837sed 's/^/| /' conftest.$ac_ext >&5
2838
2839
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002844
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846fi
2847
2848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 ac_c_werror_flag=$ac_save_c_werror_flag
2850fi
2851{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2852echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002853if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002854 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002855elif test $ac_cv_prog_cc_g = yes; then
2856 if test "$GCC" = yes; then
2857 CFLAGS="-g -O2"
2858 else
2859 CFLAGS="-g"
2860 fi
2861else
2862 if test "$GCC" = yes; then
2863 CFLAGS="-O2"
2864 else
2865 CFLAGS=
2866 fi
2867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002868{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2869echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2870if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002873 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002874ac_save_CC=$CC
2875cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
2881#include <stdarg.h>
2882#include <stdio.h>
2883#include <sys/types.h>
2884#include <sys/stat.h>
2885/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2886struct buf { int x; };
2887FILE * (*rcsopen) (struct buf *, struct stat *, int);
2888static char *e (p, i)
2889 char **p;
2890 int i;
2891{
2892 return p[i];
2893}
2894static char *f (char * (*g) (char **, int), char **p, ...)
2895{
2896 char *s;
2897 va_list v;
2898 va_start (v,p);
2899 s = g (p, va_arg (v,int));
2900 va_end (v);
2901 return s;
2902}
2903
2904/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2905 function prototypes and stuff, but not '\xHH' hex character constants.
2906 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002907 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2909 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002911int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2912
Theodore Ts'oe1052142006-10-21 21:46:47 -04002913/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2914 inside strings and character constants. */
2915#define FOO(x) 'x'
2916int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918int test (int i, double x);
2919struct s1 {int (*f) (int a);};
2920struct s2 {int (*f) (double a);};
2921int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2922int argc;
2923char **argv;
2924int
2925main ()
2926{
2927return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2928 ;
2929 return 0;
2930}
2931_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002932for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2933 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934do
2935 CC="$ac_save_CC $ac_arg"
2936 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002937if { (ac_try="$ac_compile"
2938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002970 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002971else
2972 echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
Theodore Ts'oe1052142006-10-21 21:46:47 -04002975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002977
2978rm -f core conftest.err conftest.$ac_objext
2979 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002981rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002982CC=$ac_save_CC
2983
2984fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002985# AC_CACHE_VAL
2986case "x$ac_cv_prog_cc_c89" in
2987 x)
2988 { echo "$as_me:$LINENO: result: none needed" >&5
2989echo "${ECHO_T}none needed" >&6; } ;;
2990 xno)
2991 { echo "$as_me:$LINENO: result: unsupported" >&5
2992echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002994 CC="$CC $ac_cv_prog_cc_c89"
2995 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2996echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002997esac
2998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000ac_ext=c
3001ac_cpp='$CPP $CPPFLAGS'
3002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003006
Theodore Ts'oe1052142006-10-21 21:46:47 -04003007# Check whether --with-linker was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003008if test "${with_linker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003009 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3010echo "${ECHO_T}LD=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003011LD=$withval
3012else
3013 if test -z "$LD" ; then LD=$CC; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003014{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3015echo "${ECHO_T}LD defaults to $LD" >&6; }
3016fi
3017export LD
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018
Theodore Ts'o74becf31997-04-26 14:37:06 +00003019
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020# Check whether --with-ccopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003021if test "${with_ccopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003022 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3023echo "${ECHO_T}CCOPTS is $withval" >&6; }
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00003024CFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003025fi
3026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027ac_ext=c
3028ac_cpp='$CPP $CPPFLAGS'
3029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04003032{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3033echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003034# On Suns, sometimes $CPP names a directory.
3035if test -n "$CPP" && test -d "$CPP"; then
3036 CPP=
3037fi
3038if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 if test "${ac_cv_prog_CPP+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 # Double quotes because CPP needs to be expanded
3043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3044 do
3045 ac_preproc_ok=false
3046for ac_c_preproc_warn_flag in '' yes
3047do
3048 # Use a header file that comes with gcc, so configuring glibc
3049 # with a fresh cross-compiler works.
3050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3051 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003052 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053 # not just through cpp. "Syntax error" is here to catch this case.
3054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h. */
3060#ifdef __STDC__
3061# include <limits.h>
3062#else
3063# include <assert.h>
3064#endif
3065 Syntax error
3066_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003067if { (ac_try="$ac_cpp conftest.$ac_ext"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083 else
3084 ac_cpp_err=
3085 fi
3086else
3087 ac_cpp_err=yes
3088fi
3089if test -z "$ac_cpp_err"; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003090 :
3091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003092 echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003095 # Broken: fails on valid input.
3096continue
3097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003098
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099rm -f conftest.err conftest.$ac_ext
3100
Theodore Ts'oe1052142006-10-21 21:46:47 -04003101 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003102 # can be detected and how.
3103 cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h. */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h. */
3109#include <ac_nonexistent.h>
3110_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003111if { (ac_try="$ac_cpp conftest.$ac_ext"
3112case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } >/dev/null; then
3124 if test -s conftest.err; then
3125 ac_cpp_err=$ac_c_preproc_warn_flag
3126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3127 else
3128 ac_cpp_err=
3129 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003130else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003131 ac_cpp_err=yes
3132fi
3133if test -z "$ac_cpp_err"; then
3134 # Broken: success on invalid input.
3135continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137 echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 # Passes both tests.
3141ac_preproc_ok=:
3142break
3143fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145rm -f conftest.err conftest.$ac_ext
3146
3147done
3148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149rm -f conftest.err conftest.$ac_ext
3150if $ac_preproc_ok; then
3151 break
3152fi
3153
3154 done
3155 ac_cv_prog_CPP=$CPP
3156
3157fi
3158 CPP=$ac_cv_prog_CPP
3159else
3160 ac_cv_prog_CPP=$CPP
3161fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003162{ echo "$as_me:$LINENO: result: $CPP" >&5
3163echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164ac_preproc_ok=false
3165for ac_c_preproc_warn_flag in '' yes
3166do
3167 # Use a header file that comes with gcc, so configuring glibc
3168 # with a fresh cross-compiler works.
3169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3170 # <limits.h> exists even on freestanding compilers.
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp. "Syntax error" is here to catch this case.
3173 cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h. */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
3179#ifdef __STDC__
3180# include <limits.h>
3181#else
3182# include <assert.h>
3183#endif
3184 Syntax error
3185_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003186if { (ac_try="$ac_cpp conftest.$ac_ext"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3202 else
3203 ac_cpp_err=
3204 fi
3205else
3206 ac_cpp_err=yes
3207fi
3208if test -z "$ac_cpp_err"; then
3209 :
3210else
3211 echo "$as_me: failed program was:" >&5
3212sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 # Broken: fails on valid input.
3215continue
3216fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003218rm -f conftest.err conftest.$ac_ext
3219
Theodore Ts'oe1052142006-10-21 21:46:47 -04003220 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221 # can be detected and how.
3222 cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228#include <ac_nonexistent.h>
3229_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003230if { (ac_try="$ac_cpp conftest.$ac_ext"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246 else
3247 ac_cpp_err=
3248 fi
3249else
3250 ac_cpp_err=yes
3251fi
3252if test -z "$ac_cpp_err"; then
3253 # Broken: success on invalid input.
3254continue
3255else
3256 echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 # Passes both tests.
3260ac_preproc_ok=:
3261break
3262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003264rm -f conftest.err conftest.$ac_ext
3265
3266done
3267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268rm -f conftest.err conftest.$ac_ext
3269if $ac_preproc_ok; then
3270 :
3271else
3272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3273See \`config.log' for more details." >&5
3274echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3275See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3277fi
3278
3279ac_ext=c
3280ac_cpp='$CPP $CPPFLAGS'
3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284
3285
Theodore Ts'oe1052142006-10-21 21:46:47 -04003286{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3287echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3288if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003291 # Extract the first word of "grep ggrep" to use in msg output
3292if test -z "$GREP"; then
3293set dummy grep ggrep; ac_prog_name=$2
3294if test "${ac_cv_path_GREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 ac_path_GREP_found=false
3298# Loop through the user's path and test for each of PROGNAME-LIST
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_prog in grep ggrep; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3307 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3308 # Check for GNU ac_path_GREP and select it if it is found.
3309 # Check for GNU $ac_path_GREP
3310case `"$ac_path_GREP" --version 2>&1` in
3311*GNU*)
3312 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3313*)
3314 ac_count=0
3315 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3316 while :
3317 do
3318 cat "conftest.in" "conftest.in" >"conftest.tmp"
3319 mv "conftest.tmp" "conftest.in"
3320 cp "conftest.in" "conftest.nl"
3321 echo 'GREP' >> "conftest.nl"
3322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3324 ac_count=`expr $ac_count + 1`
3325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3326 # Best one so far, save it but keep looking for a better one
3327 ac_cv_path_GREP="$ac_path_GREP"
3328 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003330 # 10*(2^10) chars as input seems more than enough
3331 test $ac_count -gt 10 && break
3332 done
3333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3334esac
3335
3336
3337 $ac_path_GREP_found && break 3
3338 done
3339done
3340
3341done
3342IFS=$as_save_IFS
3343
3344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003346
3347GREP="$ac_cv_path_GREP"
3348if test -z "$GREP"; then
3349 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3350echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3351 { (exit 1); exit 1; }; }
3352fi
3353
3354else
3355 ac_cv_path_GREP=$GREP
3356fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003357
3358
Theodore Ts'oe1052142006-10-21 21:46:47 -04003359fi
3360{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3361echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3362 GREP="$ac_cv_path_GREP"
3363
3364
3365{ echo "$as_me:$LINENO: checking for egrep" >&5
3366echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3367if test "${ac_cv_path_EGREP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3371 then ac_cv_path_EGREP="$GREP -E"
3372 else
3373 # Extract the first word of "egrep" to use in msg output
3374if test -z "$EGREP"; then
3375set dummy egrep; ac_prog_name=$2
3376if test "${ac_cv_path_EGREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
3379 ac_path_EGREP_found=false
3380# Loop through the user's path and test for each of PROGNAME-LIST
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3383do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_prog in egrep; do
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3389 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3390 # Check for GNU ac_path_EGREP and select it if it is found.
3391 # Check for GNU $ac_path_EGREP
3392case `"$ac_path_EGREP" --version 2>&1` in
3393*GNU*)
3394 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3395*)
3396 ac_count=0
3397 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3398 while :
3399 do
3400 cat "conftest.in" "conftest.in" >"conftest.tmp"
3401 mv "conftest.tmp" "conftest.in"
3402 cp "conftest.in" "conftest.nl"
3403 echo 'EGREP' >> "conftest.nl"
3404 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3406 ac_count=`expr $ac_count + 1`
3407 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3408 # Best one so far, save it but keep looking for a better one
3409 ac_cv_path_EGREP="$ac_path_EGREP"
3410 ac_path_EGREP_max=$ac_count
3411 fi
3412 # 10*(2^10) chars as input seems more than enough
3413 test $ac_count -gt 10 && break
3414 done
3415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3416esac
3417
3418
3419 $ac_path_EGREP_found && break 3
3420 done
3421done
3422
3423done
3424IFS=$as_save_IFS
3425
3426
3427fi
3428
3429EGREP="$ac_cv_path_EGREP"
3430if test -z "$EGREP"; then
3431 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3432echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3433 { (exit 1); exit 1; }; }
3434fi
3435
3436else
3437 ac_cv_path_EGREP=$EGREP
3438fi
3439
3440
3441 fi
3442fi
3443{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3444echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3445 EGREP="$ac_cv_path_EGREP"
3446
3447
3448{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3449echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450if test "${ac_cv_header_stdc+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
3453 cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h. */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h. */
3459#include <stdlib.h>
3460#include <stdarg.h>
3461#include <string.h>
3462#include <float.h>
3463
3464int
3465main ()
3466{
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003473if { (ac_try="$ac_compile"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3487 { (case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490esac
3491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003497 { (case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 ac_cv_header_stdc=yes
3507else
3508 echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
Theodore Ts'oe1052142006-10-21 21:46:47 -04003511 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003512fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003513
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515
3516if test $ac_cv_header_stdc = yes; then
3517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3518 cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
3524#include <string.h>
3525
3526_ACEOF
3527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 $EGREP "memchr" >/dev/null 2>&1; then
3529 :
3530else
3531 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003532fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003533rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003534
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003535fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003536
3537if test $ac_cv_header_stdc = yes; then
3538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545#include <stdlib.h>
3546
3547_ACEOF
3548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "free" >/dev/null 2>&1; then
3550 :
3551else
3552 ac_cv_header_stdc=no
3553fi
3554rm -f conftest*
3555
3556fi
3557
3558if test $ac_cv_header_stdc = yes; then
3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3560 if test "$cross_compiling" = yes; then
3561 :
3562else
3563 cat >conftest.$ac_ext <<_ACEOF
3564/* confdefs.h. */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h. */
3569#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003570#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003571#if ((' ' & 0x0FF) == 0x020)
3572# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3573# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3574#else
3575# define ISLOWER(c) \
3576 (('a' <= (c) && (c) <= 'i') \
3577 || ('j' <= (c) && (c) <= 'r') \
3578 || ('s' <= (c) && (c) <= 'z'))
3579# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3580#endif
3581
3582#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3583int
3584main ()
3585{
3586 int i;
3587 for (i = 0; i < 256; i++)
3588 if (XOR (islower (i), ISLOWER (i))
3589 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590 return 2;
3591 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003592}
3593_ACEOF
3594rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003595if { (ac_try="$ac_link"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003605 { (case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
3609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3614 :
3615else
3616 echo "$as_me: program exited with status $ac_status" >&5
3617echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620( exit $ac_status )
3621ac_cv_header_stdc=no
3622fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3624fi
3625
3626
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003627fi
3628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003629{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3630echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003631if test $ac_cv_header_stdc = yes; then
3632
3633cat >>confdefs.h <<\_ACEOF
3634#define STDC_HEADERS 1
3635_ACEOF
3636
3637fi
3638
3639# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3650 inttypes.h stdint.h unistd.h
3651do
3652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
3664$ac_includes_default
3665
3666#include <$ac_header>
3667_ACEOF
3668rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003669if { (ac_try="$ac_compile"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04003682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3683 { (case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
3687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003693 { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 eval "$as_ac_Header=yes"
3703else
3704 echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
Theodore Ts'oe1052142006-10-21 21:46:47 -04003707 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003708fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003709
3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003712ac_res=`eval echo '${'$as_ac_Header'}'`
3713 { echo "$as_me:$LINENO: result: $ac_res" >&5
3714echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003715if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h <<_ACEOF
3717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3718_ACEOF
3719
3720fi
3721
3722done
3723
3724
3725if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003726 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3727echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003728if test "${ac_cv_header_linux_fs_h+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003731{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3732echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733else
3734 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003735{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3736echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003737cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h. */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h. */
3743$ac_includes_default
3744#include <linux/fs.h>
3745_ACEOF
3746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003747if { (ac_try="$ac_compile"
3748case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751esac
3752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04003760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3761 { (case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764esac
3765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003771 { (case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774esac
3775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_header_compiler=yes
3781else
3782 echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
Theodore Ts'oe1052142006-10-21 21:46:47 -04003785 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003786fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003787
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3790echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003791
3792# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3794echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003795cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801#include <linux/fs.h>
3802_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003803if { (ac_try="$ac_cpp conftest.$ac_ext"
3804case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807esac
3808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3819 else
3820 ac_cpp_err=
3821 fi
3822else
3823 ac_cpp_err=yes
3824fi
3825if test -z "$ac_cpp_err"; then
3826 ac_header_preproc=yes
3827else
3828 echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 ac_header_preproc=no
3832fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003834rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003835{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3836echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003837
3838# So? What about this header?
3839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3840 yes:no: )
3841 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3842echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3843 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3844echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3845 ac_header_preproc=yes
3846 ;;
3847 no:yes:* )
3848 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3849echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3850 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3851echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3852 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3853echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3854 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3855echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3856 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3857echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3858 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3859echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003860
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003861 ;;
3862esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003863{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3864echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003865if test "${ac_cv_header_linux_fs_h+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 ac_cv_header_linux_fs_h=$ac_header_preproc
3869fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003870{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3871echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003872
3873fi
3874if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003875 linux_headers=yes
3876else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003877 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003878fi
3879
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003880
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003881if test "$linux_headers" != yes; then
3882 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003883fi
3884
Theodore Ts'oe1052142006-10-21 21:46:47 -04003885{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3886echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003887if test "$GCC" = yes
3888then
3889 case "$host_cpu" in
3890 alpha) addcflags="-mieee" ;;
3891 esac
3892fi
3893if test "x$addcflags" != x
3894then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003895 { echo "$as_me:$LINENO: result: $addcflags" >&5
3896echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003897 CFLAGS="$addcflags $CFLAGS"
3898else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003899 { echo "$as_me:$LINENO: result: (none)" >&5
3900echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003901fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003902LIB_EXT=.a
3903STATIC_LIB_EXT=.a
3904PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003905
Theodore Ts'oe1052142006-10-21 21:46:47 -04003906# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003907if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003908 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3909echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003910LDFLAGS=$withval
3911else
3912 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003913fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003914
Theodore Ts'oe1052142006-10-21 21:46:47 -04003915
3916# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003917if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003918 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003919else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003920 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003921fi
3922# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003923if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003924 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003925then
3926 MAINTAINER_CMT=#
3927 echo "Disabling maintainer mode"
3928else
3929 MAINTAINER_CMT=
3930 echo "Enabling maintainer mode"
3931fi
3932
3933else
3934 MAINTAINER_CMT=#
3935echo "Disabling maintainer mode by default"
3936
Theodore Ts'oe1052142006-10-21 21:46:47 -04003937fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003938
Theodore Ts'oe1052142006-10-21 21:46:47 -04003939
3940# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003941if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003942 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003943then
3944 echo "Disabling compression support"
3945else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003946 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003947#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003948_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003949
3950 echo "Enabling compression support"
3951 echo "WARNING: Compression support is experimental"
3952fi
3953
3954else
3955 echo "Disabling compression support by default"
3956
Theodore Ts'oe1052142006-10-21 21:46:47 -04003957fi
3958
3959# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003960if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003961 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003962then
3963 HTREE_CMT=#
3964 echo "Disabling htree directory support"
3965else
3966 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003967 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003968#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003969_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003970
3971 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003972fi
3973
3974else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003975 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003976cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003977#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003978_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003979
3980echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003981
Theodore Ts'oe1052142006-10-21 21:46:47 -04003982fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003983
Theodore Ts'oe1052142006-10-21 21:46:47 -04003984
3985# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003986if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003987 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003988then
3989 ELF_CMT=#
3990 MAKEFILE_ELF=/dev/null
3991 echo "Disabling ELF shared libraries"
3992else
3993 ELF_CMT=
3994 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003995 case "$host_os" in
3996 solaris2.*)
3997 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3998 ;;
3999 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004000 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004001 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004002 echo "Enabling ELF shared libraries"
4003fi
4004
4005else
4006 MAKEFILE_ELF=/dev/null
4007ELF_CMT=#
4008echo "Disabling ELF shared libraries by default"
4009
Theodore Ts'oe1052142006-10-21 21:46:47 -04004010fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004011
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004012
Theodore Ts'oe1052142006-10-21 21:46:47 -04004013
4014# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004015if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004016 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004017then
4018 BSDLIB_CMT=#
4019 MAKEFILE_BSDLIB=/dev/null
4020 echo "Disabling BSD shared libraries"
4021else
4022 BSDLIB_CMT=
4023 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004024 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004025 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004026 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004027 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4028 LIB_EXT=.dylib
4029 ;;
4030 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004031 echo "Enabling BSD shared libraries"
4032fi
4033
4034else
4035 MAKEFILE_BSDLIB=/dev/null
4036BSDLIB_CMT=#
4037echo "Disabling BSD shared libraries by default"
4038
Theodore Ts'oe1052142006-10-21 21:46:47 -04004039fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004040
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004041
Theodore Ts'oe1052142006-10-21 21:46:47 -04004042
4043# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004044if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004045 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046then
4047 PROFILE_CMT=#
4048 MAKEFILE_PROFILE=/dev/null
4049 echo "Disabling profiling libraries"
4050else
4051 PROFILE_CMT=
4052 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4053 PROFILED_LIB_EXT=_p.a
4054 echo "Building profiling libraries"
4055fi
4056
4057else
4058 PROFILE_CMT=#
4059MAKEFILE_PROFILE=/dev/null
4060echo "Disabling profiling libraries by default"
4061
Theodore Ts'oe1052142006-10-21 21:46:47 -04004062fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004063
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004064
Theodore Ts'oe1052142006-10-21 21:46:47 -04004065
4066# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004067if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004068 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004069then
4070 CHECKER_CMT=#
4071 MAKEFILE_CHECKER=/dev/null
4072 echo "Disabling checker libraries"
4073else
4074 CHECKER_CMT=
4075 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4076 echo "Building checker libraries"
4077fi
4078
4079else
4080 CHECKER_CMT=#
4081MAKEFILE_CHECKER=/dev/null
4082echo "Disabling checker libraries by default"
4083
Theodore Ts'oe1052142006-10-21 21:46:47 -04004084fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004085
4086
4087
4088
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004089
Theodore Ts'oe1052142006-10-21 21:46:47 -04004090
4091# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05004092if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004093 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004094then
4095 echo "Disabling journal debugging"
4096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004097 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05004098#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004099_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004100
4101 echo "Enabling journal debugging"
4102fi
4103
4104else
4105 echo "Disabling journal debugging by default"
4106
Theodore Ts'oe1052142006-10-21 21:46:47 -04004107fi
4108
4109# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004110if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004111 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004112then
4113 echo "Disabling blkid debugging"
4114else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004115 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004116#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004117_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004118
4119 echo "Enabling blkid debugging"
4120fi
4121
4122else
4123 echo "Disabling blkid debugging by default"
4124
Theodore Ts'oe1052142006-10-21 21:46:47 -04004125fi
4126
4127# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004128if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004129 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004130then
4131 echo "Disabling testio debugging"
4132else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004133 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004134#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004135_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004136
4137 echo "Enabling testio debugging"
4138fi
4139
4140else
4141 echo "Disabling testio debugging by default"
4142
Theodore Ts'oe1052142006-10-21 21:46:47 -04004143fi
4144
4145# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004146if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004147 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004148then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004149 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004150 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004151else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004152 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004153 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004154#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004155_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004156
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004157 echo "Enabling swapfs support"
4158fi
4159
4160else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004161 SWAPFS_CMT=
4162echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004163cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004164#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004165_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004166
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004167
Theodore Ts'oe1052142006-10-21 21:46:47 -04004168fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004169
Theodore Ts'oe1052142006-10-21 21:46:47 -04004170
4171# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004172if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004173 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004174then
4175 echo "Disabling debugfs support"
4176 DEBUGFS_CMT="#"
4177else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004178 DEBUGFS_CMT=
4179 echo "Enabling debugfs support"
4180fi
4181
4182else
4183 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004184DEBUGFS_CMT=
4185
Theodore Ts'oe1052142006-10-21 21:46:47 -04004186fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004187
Theodore Ts'oe1052142006-10-21 21:46:47 -04004188
4189# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004190if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004191 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004192then
4193 echo "Disabling e2image support"
4194 IMAGER_CMT="#"
4195else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004196 IMAGER_CMT=
4197 echo "Enabling e2image support"
4198fi
4199
4200else
4201 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004202IMAGER_CMT=
4203
Theodore Ts'oe1052142006-10-21 21:46:47 -04004204fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004205
Theodore Ts'oe1052142006-10-21 21:46:47 -04004206
4207# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004208if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004209 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004210then
4211 echo "Disabling e2resize support"
4212 RESIZER_CMT="#"
4213else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004214 RESIZER_CMT=
4215 echo "Enabling e2resize support"
4216fi
4217
4218else
4219 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004220RESIZER_CMT=
4221
Theodore Ts'oe1052142006-10-21 21:46:47 -04004222fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004223
Theodore Ts'oe1052142006-10-21 21:46:47 -04004224
4225# Check whether --enable-dynamic-e2fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004226if test "${enable_dynamic_e2fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004227 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004228then
4229 E2FSCK_TYPE=static
4230 echo "Building e2fsck statically"
4231else
4232 E2FSCK_TYPE=shared
4233 echo "Building e2fsck dynamically"
4234fi
4235
4236else
4237 E2FSCK_TYPE=static
4238echo "Building e2fsck statically by default"
4239
Theodore Ts'oe1052142006-10-21 21:46:47 -04004240fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004241
Theodore Ts'oe1052142006-10-21 21:46:47 -04004242
4243# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004244if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004245 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004246then
4247 FSCK_PROG='' FSCK_MAN=''
4248 echo "Not building fsck wrapper"
4249else
4250 FSCK_PROG=fsck FSCK_MAN=fsck.8
4251 echo "Building fsck wrapper"
4252fi
4253
4254else
4255 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004256 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004257 FSCK_PROG='' FSCK_MAN=''
4258 echo "Not building fsck wrapper by default"
4259 ;;
4260 *)
4261 FSCK_PROG=fsck FSCK_MAN=fsck.8
4262 echo "Building fsck wrapper by default"
4263esac
4264
Theodore Ts'oe1052142006-10-21 21:46:47 -04004265fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004266
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004267
Theodore Ts'oe1052142006-10-21 21:46:47 -04004268
4269# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004270if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004271 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004272then
4273 E2INITRD_PROG='' E2INITRD_MAN=''
4274 echo "Not building e2initrd helper"
4275else
4276 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4277 echo "Building e2initrd helper"
4278fi
4279
4280else
4281 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4282echo "Building e2initrd helper by default"
4283
Theodore Ts'oe1052142006-10-21 21:46:47 -04004284fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004285
4286
Theodore Ts'oe1052142006-10-21 21:46:47 -04004287
4288# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004289if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004290 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004291then
4292 echo "Disabling device-mapper support"
4293 DEVMAPPER_REQ=''
4294 DEVMAPPER_LIBS=''
4295 STATIC_DEVMAPPER_LIBS=''
4296else
4297 cat >>confdefs.h <<\_ACEOF
4298#define HAVE_DEVMAPPER 1
4299_ACEOF
4300
4301 echo "Enabling device-mapper support"
4302
4303 DEVMAPPER_REQ='libselinux libsepol'
4304 DEVMAPPER_PC_LIBS='-ldevmapper'
Theodore Ts'oe1052142006-10-21 21:46:47 -04004305 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4306 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
Karel Zak4db2f592006-03-08 14:17:28 -05004307
4308fi
4309
4310else
4311 echo "Disabling device-mapper support by default"
4312
Theodore Ts'oe1052142006-10-21 21:46:47 -04004313fi
4314
Karel Zak4db2f592006-03-08 14:17:28 -05004315
4316
4317
4318
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004319MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004321GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004322PACKAGE=e2fsprogs
4323VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324VERSION=0.14.1
4325cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004326#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004327_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004329cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004330#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004332
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004333
4334
4335
4336
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4338echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4339set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4340if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004343 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004344SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004345all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004346 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004347_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004348# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004349case `${MAKE-make} -f conftest.make 2>/dev/null` in
4350 *@@@%%%=?*=@@@%%%*)
4351 eval ac_cv_prog_make_${ac_make}_set=yes;;
4352 *)
4353 eval ac_cv_prog_make_${ac_make}_set=no;;
4354esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004355rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004356fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004357if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4358 { echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004360 SET_MAKE=
4361else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004362 { echo "$as_me:$LINENO: result: no" >&5
4363echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004364 SET_MAKE="MAKE=${MAKE-make}"
4365fi
4366
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004367# Find a good install program. We prefer a C program (faster),
4368# so one script is as good as another. But avoid the broken or
4369# incompatible versions:
4370# SysV /etc/install, /usr/sbin/install
4371# SunOS /usr/etc/install
4372# IRIX /sbin/install
4373# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004374# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004375# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4376# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4377# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004378# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004379# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004380{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4381echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004382if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004383if test "${ac_cv_path_install+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004385else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 # Account for people who put trailing slashes in PATH elements.
4392case $as_dir/ in
4393 ./ | .// | /cC/* | \
4394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4395 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4396 /usr/ucb/* ) ;;
4397 *)
4398 # OSF1 and SCO ODT 3.0 have their own names for install.
4399 # Don't use installbsd from OSF since it installs stuff as root
4400 # by default.
4401 for ac_prog in ginstall scoinst install; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004403 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004404 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004405 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004406 # AIX install. It has an incompatible calling convention.
4407 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004408 elif test $ac_prog = install &&
4409 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4410 # program-specific install script used by HP pwplus--don't use.
4411 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004412 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4414 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004415 fi
4416 fi
4417 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004418 done
4419 ;;
4420esac
4421done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004422IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004423
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004424
4425fi
4426 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004427 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004428 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004429 # As a last resort, use the slow shell script. Don't cache a
4430 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004431 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004432 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004433 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004434 fi
4435fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004436{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4437echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004438
4439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4440# It thinks the first close brace ends the variable substitution.
4441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004444
4445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4446
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004447
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004448 MKINSTALLDIRS=
4449 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004450 case "$ac_aux_dir" in
4451 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4452 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4453 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004454 fi
4455 if test -z "$MKINSTALLDIRS"; then
4456 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4457 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004459
4460
Theodore Ts'oe1052142006-10-21 21:46:47 -04004461 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4462echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4463 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004464if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004465 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004466else
4467 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004468fi
4469
4470 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4471echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004472
4473
4474
4475
4476
4477
4478# Prepare PATH_SEPARATOR.
4479# The user is always right.
4480if test "${PATH_SEPARATOR+set}" != set; then
4481 echo "#! /bin/sh" >conf$$.sh
4482 echo "exit 0" >>conf$$.sh
4483 chmod +x conf$$.sh
4484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4485 PATH_SEPARATOR=';'
4486 else
4487 PATH_SEPARATOR=:
4488 fi
4489 rm -f conf$$.sh
4490fi
4491
4492# Find out how to test for executable files. Don't use a zero-byte file,
4493# as systems may use methods other than mode bits to determine executability.
4494cat >conf$$.file <<_ASEOF
4495#! /bin/sh
4496exit 0
4497_ASEOF
4498chmod +x conf$$.file
4499if test -x conf$$.file >/dev/null 2>&1; then
4500 ac_executable_p="test -x"
4501else
4502 ac_executable_p="test -f"
4503fi
4504rm -f conf$$.file
4505
4506# Extract the first word of "msgfmt", so it can be a program name with args.
4507set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004510if test "${ac_cv_path_MSGFMT+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513 case "$MSGFMT" in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4520 IFS="$ac_save_IFS"
4521 test -z "$ac_dir" && ac_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4524 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4525 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4526 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4527 break 2
4528 fi
4529 fi
4530 done
4531 done
4532 IFS="$ac_save_IFS"
4533 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4534 ;;
4535esac
4536fi
4537MSGFMT="$ac_cv_path_MSGFMT"
4538if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004539 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4540echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004541else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004542 { echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004544fi
4545
4546 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4547set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004550if test "${ac_cv_path_GMSGFMT+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553 case $GMSGFMT in
4554 [\\/]* | ?:[\\/]*)
4555 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4556 ;;
4557 *)
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004565 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569done
4570done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004571IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004572
4573 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4574 ;;
4575esac
4576fi
4577GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004578if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004579 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4580echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004581else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004582 { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004584fi
4585
4586
4587
Theodore Ts'oe1052142006-10-21 21:46:47 -04004588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004589# Prepare PATH_SEPARATOR.
4590# The user is always right.
4591if test "${PATH_SEPARATOR+set}" != set; then
4592 echo "#! /bin/sh" >conf$$.sh
4593 echo "exit 0" >>conf$$.sh
4594 chmod +x conf$$.sh
4595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4596 PATH_SEPARATOR=';'
4597 else
4598 PATH_SEPARATOR=:
4599 fi
4600 rm -f conf$$.sh
4601fi
4602
4603# Find out how to test for executable files. Don't use a zero-byte file,
4604# as systems may use methods other than mode bits to determine executability.
4605cat >conf$$.file <<_ASEOF
4606#! /bin/sh
4607exit 0
4608_ASEOF
4609chmod +x conf$$.file
4610if test -x conf$$.file >/dev/null 2>&1; then
4611 ac_executable_p="test -x"
4612else
4613 ac_executable_p="test -f"
4614fi
4615rm -f conf$$.file
4616
4617# Extract the first word of "xgettext", so it can be a program name with args.
4618set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004621if test "${ac_cv_path_XGETTEXT+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624 case "$XGETTEXT" in
4625 [\\/]* | ?:[\\/]*)
4626 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4627 ;;
4628 *)
4629 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4630 for ac_dir in $PATH; do
4631 IFS="$ac_save_IFS"
4632 test -z "$ac_dir" && ac_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4635 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4636 (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
4637 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4638 break 2
4639 fi
4640 fi
4641 done
4642 done
4643 IFS="$ac_save_IFS"
4644 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4645 ;;
4646esac
4647fi
4648XGETTEXT="$ac_cv_path_XGETTEXT"
4649if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4651echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004652else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004653 { echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004655fi
4656
4657 rm -f messages.po
4658
4659
4660# Prepare PATH_SEPARATOR.
4661# The user is always right.
4662if test "${PATH_SEPARATOR+set}" != set; then
4663 echo "#! /bin/sh" >conf$$.sh
4664 echo "exit 0" >>conf$$.sh
4665 chmod +x conf$$.sh
4666 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4667 PATH_SEPARATOR=';'
4668 else
4669 PATH_SEPARATOR=:
4670 fi
4671 rm -f conf$$.sh
4672fi
4673
4674# Find out how to test for executable files. Don't use a zero-byte file,
4675# as systems may use methods other than mode bits to determine executability.
4676cat >conf$$.file <<_ASEOF
4677#! /bin/sh
4678exit 0
4679_ASEOF
4680chmod +x conf$$.file
4681if test -x conf$$.file >/dev/null 2>&1; then
4682 ac_executable_p="test -x"
4683else
4684 ac_executable_p="test -f"
4685fi
4686rm -f conf$$.file
4687
4688# Extract the first word of "msgmerge", so it can be a program name with args.
4689set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004692if test "${ac_cv_path_MSGMERGE+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case "$MSGMERGE" in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4701 for ac_dir in $PATH; do
4702 IFS="$ac_save_IFS"
4703 test -z "$ac_dir" && ac_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4706 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4707 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4708 break 2
4709 fi
4710 fi
4711 done
4712 done
4713 IFS="$ac_save_IFS"
4714 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4715 ;;
4716esac
4717fi
4718MSGMERGE="$ac_cv_path_MSGMERGE"
4719if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004720 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4721echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004722else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004725fi
4726
4727
4728 if test "$GMSGFMT" != ":"; then
4729 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4730 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4731 : ;
4732 else
4733 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004734 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4735echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004736 GMSGFMT=":"
4737 fi
4738 fi
4739
4740 if test "$XGETTEXT" != ":"; then
4741 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4742 (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
4743 : ;
4744 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004745 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4746echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004747 XGETTEXT=":"
4748 fi
4749 rm -f messages.po
4750 fi
4751
Theodore Ts'oe1052142006-10-21 21:46:47 -04004752 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004753
4754
4755if test -n "$ac_tool_prefix"; then
4756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004760if test "${ac_cv_prog_RANLIB+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004762else
4763 if test -n "$RANLIB"; then
4764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4765else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004778done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004779IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004780
4781fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004782fi
4783RANLIB=$ac_cv_prog_RANLIB
4784if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004785 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4786echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004787else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004788 { echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004790fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004791
Theodore Ts'oe1052142006-10-21 21:46:47 -04004792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004793fi
4794if test -z "$ac_cv_prog_RANLIB"; then
4795 ac_ct_RANLIB=$RANLIB
4796 # Extract the first word of "ranlib", so it can be a program name with args.
4797set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004800if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803 if test -n "$ac_ct_RANLIB"; then
4804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4805else
4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -04004812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004813 ac_cv_prog_ac_ct_RANLIB="ranlib"
4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4816 fi
4817done
4818done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004819IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004821fi
4822fi
4823ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4824if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004825 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4826echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004827else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004828 { echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004830fi
4831
Theodore Ts'oe1052142006-10-21 21:46:47 -04004832 if test "x$ac_ct_RANLIB" = x; then
4833 RANLIB=":"
4834 else
4835 case $cross_compiling:$ac_tool_warned in
4836yes:)
4837{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4838whose name does not start with the host triplet. If you think this
4839configuration is useful to you, please write to autoconf@gnu.org." >&5
4840echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4841whose name does not start with the host triplet. If you think this
4842configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4843ac_tool_warned=yes ;;
4844esac
4845 RANLIB=$ac_ct_RANLIB
4846 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004847else
4848 RANLIB="$ac_cv_prog_RANLIB"
4849fi
4850
4851
Theodore Ts'oe1052142006-10-21 21:46:47 -04004852 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4853echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004854if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856else
4857 ac_check_lib_save_LIBS=$LIBS
4858LIBS="-lcposix $LIBS"
4859cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
4865
Theodore Ts'oe1052142006-10-21 21:46:47 -04004866/* Override any GCC internal prototype to avoid an error.
4867 Use char because int might match the return type of a GCC
4868 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004869#ifdef __cplusplus
4870extern "C"
4871#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004872char strerror ();
4873int
4874main ()
4875{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004876return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004882if { (ac_try="$ac_link"
4883case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886esac
4887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04004895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4896 { (case "(($ac_try" in
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4899esac
4900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04004906 { (case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909esac
4910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_lib_cposix_strerror=yes
4916else
4917 echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
Theodore Ts'oe1052142006-10-21 21:46:47 -04004920 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004922
4923rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004924 conftest$ac_exeext conftest.$ac_ext
4925LIBS=$ac_check_lib_save_LIBS
4926fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004927{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4928echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004929if test $ac_cv_lib_cposix_strerror = yes; then
4930 LIBS="$LIBS -lcposix"
4931fi
4932
4933
4934
Theodore Ts'oe1052142006-10-21 21:46:47 -04004935{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4936echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004937if test "${ac_cv_c_const+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940 cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
4946
4947int
4948main ()
4949{
4950/* FIXME: Include the comments suggested by Paul. */
4951#ifndef __cplusplus
4952 /* Ultrix mips cc rejects this. */
4953 typedef int charset[2];
4954 const charset x;
4955 /* SunOS 4.1.1 cc rejects this. */
4956 char const *const *ccp;
4957 char **p;
4958 /* NEC SVR4.0.2 mips cc rejects this. */
4959 struct point {int x, y;};
4960 static struct point const zero = {0,0};
4961 /* AIX XL C 1.02.0.0 rejects this.
4962 It does not let you subtract one const X* pointer from another in
4963 an arm of an if-expression whose if-part is not a constant
4964 expression */
4965 const char *g = "string";
4966 ccp = &g + (g ? g-g : 0);
4967 /* HPUX 7.0 cc rejects these. */
4968 ++ccp;
4969 p = (char**) ccp;
4970 ccp = (char const *const *) p;
4971 { /* SCO 3.2v4 cc rejects this. */
4972 char *t;
4973 char const *s = 0 ? (char *) 0 : (char const *) 0;
4974
4975 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004976 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004977 }
4978 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4979 int x[] = {25, 17};
4980 const int *foo = &x[0];
4981 ++foo;
4982 }
4983 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4984 typedef const int *iptr;
4985 iptr p = 0;
4986 ++p;
4987 }
4988 { /* AIX XL C 1.02.0.0 rejects this saying
4989 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4990 struct s { int j; const int *ap[3]; };
4991 struct s *b; b->j = 5;
4992 }
4993 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4994 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004995 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004996 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004997 return !x[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004998#endif
4999
5000 ;
5001 return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005005if { (ac_try="$ac_compile"
5006case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009esac
5010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5019 { (case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022esac
5023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005029 { (case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032esac
5033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_cv_c_const=yes
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
Theodore Ts'oe1052142006-10-21 21:46:47 -04005043 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5049echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050if test $ac_cv_c_const = no; then
5051
5052cat >>confdefs.h <<\_ACEOF
5053#define const
5054_ACEOF
5055
5056fi
5057
5058
Theodore Ts'oe1052142006-10-21 21:46:47 -04005059 { echo "$as_me:$LINENO: checking for signed" >&5
5060echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005061if test "${bh_cv_c_signed+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064 cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h. */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h. */
5070
5071int
5072main ()
5073{
5074signed char x;
5075 ;
5076 return 0;
5077}
5078_ACEOF
5079rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005080if { (ac_try="$ac_compile"
5081case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084esac
5085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5094 { (case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097esac
5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005104 { (case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107esac
5108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 bh_cv_c_signed=yes
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
Theodore Ts'oe1052142006-10-21 21:46:47 -04005118 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005119fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005120
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005122fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005123{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5124echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005125 if test $bh_cv_c_signed = no; then
5126
5127cat >>confdefs.h <<\_ACEOF
5128#define signed
5129_ACEOF
5130
5131 fi
5132
Theodore Ts'oe1052142006-10-21 21:46:47 -04005133{ echo "$as_me:$LINENO: checking for inline" >&5
5134echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005135if test "${ac_cv_c_inline+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 ac_cv_c_inline=no
5139for ac_kw in inline __inline__ __inline; do
5140 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#ifndef __cplusplus
5147typedef int foo_t;
5148static $ac_kw foo_t static_foo () {return 0; }
5149$ac_kw foo_t foo () {return 0; }
5150#endif
5151
5152_ACEOF
5153rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005154if { (ac_try="$ac_compile"
5155case "(($ac_try" in
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5158esac
5159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5168 { (case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005178 { (case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181esac
5182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005187 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005188else
5189 echo "$as_me: failed program was:" >&5
5190sed 's/^/| /' conftest.$ac_ext >&5
5191
Theodore Ts'oe1052142006-10-21 21:46:47 -04005192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005193fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005194
5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005197done
5198
5199fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005200{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5201echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005202
5203
5204case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005205 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005206 *)
5207 case $ac_cv_c_inline in
5208 no) ac_val=;;
5209 *) ac_val=$ac_cv_c_inline;;
5210 esac
5211 cat >>confdefs.h <<_ACEOF
5212#ifndef __cplusplus
5213#define inline $ac_val
5214#endif
5215_ACEOF
5216 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005217esac
5218
Theodore Ts'oe1052142006-10-21 21:46:47 -04005219{ echo "$as_me:$LINENO: checking for off_t" >&5
5220echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005221if test "${ac_cv_type_off_t+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005224 cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005231typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005232int
5233main ()
5234{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005235if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005236 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005237if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005238 return 0;
5239 ;
5240 return 0;
5241}
5242_ACEOF
5243rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005244if { (ac_try="$ac_compile"
5245case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248esac
5249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5258 { (case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261esac
5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005268 { (case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271esac
5272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005277 ac_cv_type_off_t=yes
5278else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005279 echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005281
Theodore Ts'oe1052142006-10-21 21:46:47 -04005282 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005283fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005284
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005286fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005287{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5288echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005289if test $ac_cv_type_off_t = yes; then
5290 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005292
5293cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005294#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005295_ACEOF
5296
5297fi
5298
Theodore Ts'oe1052142006-10-21 21:46:47 -04005299{ echo "$as_me:$LINENO: checking for size_t" >&5
5300echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005301if test "${ac_cv_type_size_t+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005311typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005312int
5313main ()
5314{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005315if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005316 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005317if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005318 return 0;
5319 ;
5320 return 0;
5321}
5322_ACEOF
5323rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005324if { (ac_try="$ac_compile"
5325case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005348 { (case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005357 ac_cv_type_size_t=yes
5358else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005359 echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
Theodore Ts'oe1052142006-10-21 21:46:47 -04005362 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005363fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005364
5365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005367{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5368echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005369if test $ac_cv_type_size_t = yes; then
5370 :
5371else
5372
5373cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005374#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005375_ACEOF
5376
5377fi
5378
5379
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380 { echo "$as_me:$LINENO: checking for long long" >&5
5381echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005382if test "${ac_cv_type_long_long+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385 cat >conftest.$ac_ext <<_ACEOF
5386/* confdefs.h. */
5387_ACEOF
5388cat confdefs.h >>conftest.$ac_ext
5389cat >>conftest.$ac_ext <<_ACEOF
5390/* end confdefs.h. */
5391long long ll = 1LL; int i = 63;
5392int
5393main ()
5394{
5395long long llmax = (long long) -1;
5396 return ll << i | ll >> i | llmax / ll | llmax % ll;
5397 ;
5398 return 0;
5399}
5400_ACEOF
5401rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005402if { (ac_try="$ac_link"
5403case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406esac
5407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5416 { (case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419esac
5420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 ac_cv_type_long_long=yes
5436else
5437 echo "$as_me: failed program was:" >&5
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
Theodore Ts'oe1052142006-10-21 21:46:47 -04005440 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005441fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005442
5443rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005444 conftest$ac_exeext conftest.$ac_ext
5445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005446{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5447echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005448 if test $ac_cv_type_long_long = yes; then
5449
5450cat >>confdefs.h <<\_ACEOF
5451#define HAVE_LONG_LONG 1
5452_ACEOF
5453
5454 fi
5455
5456
Theodore Ts'oe1052142006-10-21 21:46:47 -04005457 { echo "$as_me:$LINENO: checking for long double" >&5
5458echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005459if test "${gt_cv_c_long_double+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462 if test "$GCC" = yes; then
5463 gt_cv_c_long_double=yes
5464 else
5465 cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h. */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h. */
5471
5472 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5473 long double foo = 0.0;
5474 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5475 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5476
5477int
5478main ()
5479{
5480
5481 ;
5482 return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005486if { (ac_try="$ac_compile"
5487case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490esac
5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5500 { (case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503esac
5504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005510 { (case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 gt_cv_c_long_double=yes
5520else
5521 echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
Theodore Ts'oe1052142006-10-21 21:46:47 -04005524 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005526
5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005528 fi
5529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005530{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5531echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005532 if test $gt_cv_c_long_double = yes; then
5533
5534cat >>confdefs.h <<\_ACEOF
5535#define HAVE_LONG_DOUBLE 1
5536_ACEOF
5537
5538 fi
5539
5540
Theodore Ts'oe1052142006-10-21 21:46:47 -04005541 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5542echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005543if test "${gt_cv_c_wchar_t+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546 cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h. */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h. */
5552#include <stddef.h>
5553 wchar_t foo = (wchar_t)'\0';
5554int
5555main ()
5556{
5557
5558 ;
5559 return 0;
5560}
5561_ACEOF
5562rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005563if { (ac_try="$ac_compile"
5564case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567esac
5568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5577 { (case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; } &&
5586 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005587 { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 gt_cv_c_wchar_t=yes
5597else
5598 echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
Theodore Ts'oe1052142006-10-21 21:46:47 -04005601 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005603
5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005606{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5607echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005608 if test $gt_cv_c_wchar_t = yes; then
5609
5610cat >>confdefs.h <<\_ACEOF
5611#define HAVE_WCHAR_T 1
5612_ACEOF
5613
5614 fi
5615
5616
Theodore Ts'oe1052142006-10-21 21:46:47 -04005617 { echo "$as_me:$LINENO: checking for wint_t" >&5
5618echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005619if test "${gt_cv_c_wint_t+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622 cat >conftest.$ac_ext <<_ACEOF
5623/* confdefs.h. */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h. */
5628#include <wchar.h>
5629 wint_t foo = (wchar_t)'\0';
5630int
5631main ()
5632{
5633
5634 ;
5635 return 0;
5636}
5637_ACEOF
5638rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005639if { (ac_try="$ac_compile"
5640case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5653 { (case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656esac
5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005663 { (case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 gt_cv_c_wint_t=yes
5673else
5674 echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005679
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005682{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5683echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005684 if test $gt_cv_c_wint_t = yes; then
5685
5686cat >>confdefs.h <<\_ACEOF
5687#define HAVE_WINT_T 1
5688_ACEOF
5689
5690 fi
5691
5692
Theodore Ts'oe1052142006-10-21 21:46:47 -04005693 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5694echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005695if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698 cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h. */
5704#include <sys/types.h>
5705#include <inttypes.h>
5706int
5707main ()
5708{
5709uintmax_t i = (uintmax_t) -1;
5710 ;
5711 return 0;
5712}
5713_ACEOF
5714rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005715if { (ac_try="$ac_compile"
5716case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719esac
5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732esac
5733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 jm_ac_cv_header_inttypes_h=yes
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
Theodore Ts'oe1052142006-10-21 21:46:47 -04005753 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005754fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005755
5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005757fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005758{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5759echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005760 if test $jm_ac_cv_header_inttypes_h = yes; then
5761
5762cat >>confdefs.h <<_ACEOF
5763#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5764_ACEOF
5765
5766 fi
5767
5768
Theodore Ts'oe1052142006-10-21 21:46:47 -04005769 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5770echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005771if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h. */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h. */
5780#include <sys/types.h>
5781#include <stdint.h>
5782int
5783main ()
5784{
5785uintmax_t i = (uintmax_t) -1;
5786 ;
5787 return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795esac
5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 jm_ac_cv_header_stdint_h=yes
5825else
5826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
Theodore Ts'oe1052142006-10-21 21:46:47 -04005829 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005831
5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005834{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5835echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005836 if test $jm_ac_cv_header_stdint_h = yes; then
5837
5838cat >>confdefs.h <<_ACEOF
5839#define HAVE_STDINT_H_WITH_UINTMAX 1
5840_ACEOF
5841
5842 fi
5843
5844
5845
5846
Theodore Ts'oe1052142006-10-21 21:46:47 -04005847 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5848echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005849if test "${gt_cv_c_intmax_t+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852 cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h. */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h. */
5858
5859#include <stddef.h>
5860#include <stdlib.h>
5861#if HAVE_STDINT_H_WITH_UINTMAX
5862#include <stdint.h>
5863#endif
5864#if HAVE_INTTYPES_H_WITH_UINTMAX
5865#include <inttypes.h>
5866#endif
5867
5868int
5869main ()
5870{
5871intmax_t x = -1;
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005877if { (ac_try="$ac_compile"
5878case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04005890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5891 { (case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005901 { (case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 gt_cv_c_intmax_t=yes
5911else
5912 echo "$as_me: failed program was:" >&5
5913sed 's/^/| /' conftest.$ac_ext >&5
5914
Theodore Ts'oe1052142006-10-21 21:46:47 -04005915 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005917
5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005920{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5921echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005922 if test $gt_cv_c_intmax_t = yes; then
5923
5924cat >>confdefs.h <<\_ACEOF
5925#define HAVE_INTMAX_T 1
5926_ACEOF
5927
5928 fi
5929
5930
5931
Theodore Ts'oe1052142006-10-21 21:46:47 -04005932 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5933echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005934if test "${gt_cv_func_printf_posix+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937
5938 if test "$cross_compiling" = yes; then
5939
5940 cat >conftest.$ac_ext <<_ACEOF
5941/* confdefs.h. */
5942_ACEOF
5943cat confdefs.h >>conftest.$ac_ext
5944cat >>conftest.$ac_ext <<_ACEOF
5945/* end confdefs.h. */
5946
5947#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5948 notposix
5949#endif
5950
5951_ACEOF
5952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 $EGREP "notposix" >/dev/null 2>&1; then
5954 gt_cv_func_printf_posix="guessing no"
5955else
5956 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005957fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005958rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005960
5961else
5962 cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
5968
5969#include <stdio.h>
5970#include <string.h>
5971/* The string "%2$d %1$d", with dollar characters protected from the shell's
5972 dollar expansion (possibly an autoconf bug). */
5973static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5974static char buf[100];
5975int main ()
5976{
5977 sprintf (buf, format, 33, 55);
5978 return (strcmp (buf, "55 33") != 0);
5979}
5980_ACEOF
5981rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005982if { (ac_try="$ac_link"
5983case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
5987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005992 { (case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 gt_cv_func_printf_posix=yes
6002else
6003 echo "$as_me: program exited with status $ac_status" >&5
6004echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007( exit $ac_status )
6008gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006009fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006012
Theodore Ts'oe1052142006-10-21 21:46:47 -04006013
6014
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006016{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6017echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018 case $gt_cv_func_printf_posix in
6019 *yes)
6020
6021cat >>confdefs.h <<\_ACEOF
6022#define HAVE_POSIX_PRINTF 1
6023_ACEOF
6024
6025 ;;
6026 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006027
6028# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6029# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04006030{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6031echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006032if test "${ac_cv_working_alloca_h+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006034else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035 cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h. */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006041#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042int
6043main ()
6044{
6045char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006046 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047 ;
6048 return 0;
6049}
6050_ACEOF
6051rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006052if { (ac_try="$ac_link"
6053case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056esac
6057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6066 { (case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006076 { (case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079esac
6080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087 echo "$as_me: failed program was:" >&5
6088sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006089
Theodore Ts'oe1052142006-10-21 21:46:47 -04006090 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006092
6093rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094 conftest$ac_exeext conftest.$ac_ext
6095fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006096{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6097echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098if test $ac_cv_working_alloca_h = yes; then
6099
6100cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006101#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006103
6104fi
6105
Theodore Ts'oe1052142006-10-21 21:46:47 -04006106{ echo "$as_me:$LINENO: checking for alloca" >&5
6107echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108if test "${ac_cv_func_alloca_works+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006110else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111 cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006117#ifdef __GNUC__
6118# define alloca __builtin_alloca
6119#else
6120# ifdef _MSC_VER
6121# include <malloc.h>
6122# define alloca _alloca
6123# else
6124# if HAVE_ALLOCA_H
6125# include <alloca.h>
6126# else
6127# ifdef _AIX
6128 #pragma alloca
6129# else
6130# ifndef alloca /* predefined by HP cc +Olibcalls */
6131char *alloca ();
6132# endif
6133# endif
6134# endif
6135# endif
6136#endif
6137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138int
6139main ()
6140{
6141char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006142 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143 ;
6144 return 0;
6145}
6146_ACEOF
6147rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006148if { (ac_try="$ac_link"
6149case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152esac
6153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006155 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); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165esac
6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006172 { (case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006181 ac_cv_func_alloca_works=yes
6182else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006183 echo "$as_me: failed program was:" >&5
6184sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006185
Theodore Ts'oe1052142006-10-21 21:46:47 -04006186 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006187fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006188
6189rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006190 conftest$ac_exeext conftest.$ac_ext
6191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006192{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6193echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006194
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006195if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196
6197cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006198#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006200
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006201else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006202 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6203# that cause trouble. Some versions do not even contain alloca or
6204# contain a buggy version. If you still want to use their alloca,
6205# use ar to extract alloca.o from them instead of compiling alloca.c.
6206
Theodore Ts'oe1052142006-10-21 21:46:47 -04006207ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006208
6209cat >>confdefs.h <<\_ACEOF
6210#define C_ALLOCA 1
6211_ACEOF
6212
6213
Theodore Ts'oe1052142006-10-21 21:46:47 -04006214{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6215echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006216if test "${ac_cv_os_cray+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006225#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006226webecray
6227#else
6228wenotbecray
6229#endif
6230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006231_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006234 ac_cv_os_cray=yes
6235else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006236 ac_cv_os_cray=no
6237fi
6238rm -f conftest*
6239
6240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006241{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6242echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006243if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006244 for ac_func in _getb67 GETB67 getb67; do
6245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006246{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6248if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006249 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251 cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h. */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h. */
6257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6259#define $ac_func innocuous_$ac_func
6260
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006261/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006262 which can conflict with char $ac_func (); below.
6263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 <limits.h> exists even on freestanding compilers. */
6265
6266#ifdef __STDC__
6267# include <limits.h>
6268#else
6269# include <assert.h>
6270#endif
6271
6272#undef $ac_func
6273
Theodore Ts'oe1052142006-10-21 21:46:47 -04006274/* Override any GCC internal prototype to avoid an error.
6275 Use char because int might match the return type of a GCC
6276 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006277#ifdef __cplusplus
6278extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006279#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006280char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006281/* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006284#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006285choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006286#endif
6287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006288int
6289main ()
6290{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006291return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292 ;
6293 return 0;
6294}
6295_ACEOF
6296rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006297if { (ac_try="$ac_link"
6298case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6311 { (case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006321 { (case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324esac
6325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006331else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332 echo "$as_me: failed program was:" >&5
6333sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006334
Theodore Ts'oe1052142006-10-21 21:46:47 -04006335 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006336fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006337
6338rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006339 conftest$ac_exeext conftest.$ac_ext
6340fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006341ac_res=`eval echo '${'$as_ac_var'}'`
6342 { echo "$as_me:$LINENO: result: $ac_res" >&5
6343echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006344if test `eval echo '${'$as_ac_var'}'` = yes; then
6345
6346cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006347#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006348_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006350 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006351fi
6352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006354fi
6355
Theodore Ts'oe1052142006-10-21 21:46:47 -04006356{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6357echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006358if test "${ac_cv_c_stack_direction+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006360else
6361 if test "$cross_compiling" = yes; then
6362 ac_cv_c_stack_direction=0
6363else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006364 cat >conftest.$ac_ext <<_ACEOF
6365/* confdefs.h. */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
6369/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006370$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006371int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006372find_stack_direction ()
6373{
6374 static char *addr = 0;
6375 auto char dummy;
6376 if (addr == 0)
6377 {
6378 addr = &dummy;
6379 return find_stack_direction ();
6380 }
6381 else
6382 return (&dummy > addr) ? 1 : -1;
6383}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006384
6385int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006386main ()
6387{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006388 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006389}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006390_ACEOF
6391rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006392if { (ac_try="$ac_link"
6393case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006411 ac_cv_c_stack_direction=1
6412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413 echo "$as_me: program exited with status $ac_status" >&5
6414echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006416
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006417( exit $ac_status )
6418ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006419fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006422
6423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006425{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6426echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006428cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006429#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006430_ACEOF
6431
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006432
6433fi
6434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435
6436
6437for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006438do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006444 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006446ac_res=`eval echo '${'$as_ac_Header'}'`
6447 { echo "$as_me:$LINENO: result: $ac_res" >&5
6448echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006449else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
6459$ac_includes_default
6460#include <$ac_header>
6461_ACEOF
6462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006463if { (ac_try="$ac_compile"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490esac
6491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_header_compiler=yes
6497else
6498 echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
Theodore Ts'oe1052142006-10-21 21:46:47 -04006501 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006502fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006503
6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6506echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507
6508# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006511cat >conftest.$ac_ext <<_ACEOF
6512/* confdefs.h. */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h. */
6517#include <$ac_header>
6518_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006519if { (ac_try="$ac_cpp conftest.$ac_ext"
6520case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523esac
6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } >/dev/null; then
6532 if test -s conftest.err; then
6533 ac_cpp_err=$ac_c_preproc_warn_flag
6534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6535 else
6536 ac_cpp_err=
6537 fi
6538else
6539 ac_cpp_err=yes
6540fi
6541if test -z "$ac_cpp_err"; then
6542 ac_header_preproc=yes
6543else
6544 echo "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_header_preproc=no
6548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6552echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553
6554# So? What about this header?
6555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6556 yes:no: )
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6561 ac_header_preproc=yes
6562 ;;
6563 no:yes:* )
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577 ;;
6578esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006579{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584 eval "$as_ac_Header=\$ac_header_preproc"
6585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006586ac_res=`eval echo '${'$as_ac_Header'}'`
6587 { echo "$as_me:$LINENO: result: $ac_res" >&5
6588echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589
6590fi
6591if test `eval echo '${'$as_ac_Header'}'` = yes; then
6592 cat >>confdefs.h <<_ACEOF
6593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6594_ACEOF
6595
6596fi
6597
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006598done
6599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006601for ac_func in getpagesize
6602do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006608else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609 cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h. */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h. */
6615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6617#define $ac_func innocuous_$ac_func
6618
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006619/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620 which can conflict with char $ac_func (); below.
6621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622 <limits.h> exists even on freestanding compilers. */
6623
6624#ifdef __STDC__
6625# include <limits.h>
6626#else
6627# include <assert.h>
6628#endif
6629
6630#undef $ac_func
6631
Theodore Ts'oe1052142006-10-21 21:46:47 -04006632/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635#ifdef __cplusplus
6636extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006637#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006639/* The GNU C library defines this for functions which it implements
6640 to always fail with ENOSYS. Some functions are actually named
6641 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006642#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006643choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006644#endif
6645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646int
6647main ()
6648{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006649return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006650 ;
6651 return 0;
6652}
6653_ACEOF
6654rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006655if { (ac_try="$ac_link"
6656case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659esac
6660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04006668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6669 { (case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672esac
6673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; } &&
6678 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006679 { (case "(($ac_try" in
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6682esac
6683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006689else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690 echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006692
Theodore Ts'oe1052142006-10-21 21:46:47 -04006693 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695
6696rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697 conftest$ac_exeext conftest.$ac_ext
6698fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006699ac_res=`eval echo '${'$as_ac_var'}'`
6700 { echo "$as_me:$LINENO: result: $ac_res" >&5
6701echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006702if test `eval echo '${'$as_ac_var'}'` = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6705_ACEOF
6706
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006707fi
6708done
6709
Theodore Ts'oe1052142006-10-21 21:46:47 -04006710{ echo "$as_me:$LINENO: checking for working mmap" >&5
6711echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006714else
6715 if test "$cross_compiling" = yes; then
6716 ac_cv_func_mmap_fixed_mapped=no
6717else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718 cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h. */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h. */
6724$ac_includes_default
6725/* malloc might have been renamed as rpl_malloc. */
6726#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006727
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006728/* Thanks to Mike Haertel and Jim Avera for this test.
6729 Here is a matrix of mmap possibilities:
6730 mmap private not fixed
6731 mmap private fixed at somewhere currently unmapped
6732 mmap private fixed at somewhere already mapped
6733 mmap shared not fixed
6734 mmap shared fixed at somewhere currently unmapped
6735 mmap shared fixed at somewhere already mapped
6736 For private mappings, we should verify that changes cannot be read()
6737 back from the file, nor mmap's back from the file at a different
6738 address. (There have been systems where private was not correctly
6739 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006741 like early versions of FreeBSD and possibly contemporary NetBSD.)
6742 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006743 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006744
6745 Grep wants private fixed already mapped.
6746 The main things grep needs to know about mmap are:
6747 * does it exist and is it safe to write into the mmap'd area
6748 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006750#include <fcntl.h>
6751#include <sys/mman.h>
6752
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753#if !STDC_HEADERS && !HAVE_STDLIB_H
6754char *malloc ();
6755#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006756
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757/* This mess was copied from the GNU getpagesize.h. */
6758#if !HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006759/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760# if !HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006761# define HAVE_SYS_PARAM_H 1
6762# endif
6763
6764# ifdef _SC_PAGESIZE
6765# define getpagesize() sysconf(_SC_PAGESIZE)
6766# else /* no _SC_PAGESIZE */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006767# if HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006768# include <sys/param.h>
6769# ifdef EXEC_PAGESIZE
6770# define getpagesize() EXEC_PAGESIZE
6771# else /* no EXEC_PAGESIZE */
6772# ifdef NBPG
6773# define getpagesize() NBPG * CLSIZE
6774# ifndef CLSIZE
6775# define CLSIZE 1
6776# endif /* no CLSIZE */
6777# else /* no NBPG */
6778# ifdef NBPC
6779# define getpagesize() NBPC
6780# else /* no NBPC */
6781# ifdef PAGESIZE
6782# define getpagesize() PAGESIZE
6783# endif /* PAGESIZE */
6784# endif /* no NBPC */
6785# endif /* no NBPG */
6786# endif /* no EXEC_PAGESIZE */
6787# else /* no HAVE_SYS_PARAM_H */
6788# define getpagesize() 8192 /* punt totally */
6789# endif /* no HAVE_SYS_PARAM_H */
6790# endif /* no _SC_PAGESIZE */
6791
6792#endif /* no HAVE_GETPAGESIZE */
6793
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006794int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006796{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797 char *data, *data2, *data3;
6798 int i, pagesize;
6799 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006802
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803 /* First, make a file with some known garbage in it. */
6804 data = (char *) malloc (pagesize);
6805 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006806 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807 for (i = 0; i < pagesize; ++i)
6808 *(data + i) = rand ();
6809 umask (0);
6810 fd = creat ("conftest.mmap", 0600);
6811 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006812 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006814 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006817 /* Next, try to mmap the file at a fixed address which already has
6818 something else allocated at it. If we can, also make sure that
6819 we see the same garbage. */
6820 fd = open ("conftest.mmap", O_RDWR);
6821 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006822 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006823 data2 = (char *) malloc (2 * pagesize);
6824 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006825 return 1;
6826 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6828 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006829 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830 for (i = 0; i < pagesize; ++i)
6831 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006832 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834 /* Finally, make sure that changes to the mapped area do not
6835 percolate back to the file as seen by read(). (This is a bug on
6836 some variants of i386 svr4.0.) */
6837 for (i = 0; i < pagesize; ++i)
6838 *(data2 + i) = *(data2 + i) + 1;
6839 data3 = (char *) malloc (pagesize);
6840 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006841 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006843 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844 for (i = 0; i < pagesize; ++i)
6845 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006846 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006848 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006849}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850_ACEOF
6851rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006852if { (ac_try="$ac_link"
6853case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856esac
6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006862 { (case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
6866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006871 ac_cv_func_mmap_fixed_mapped=yes
6872else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006873 echo "$as_me: program exited with status $ac_status" >&5
6874echo "$as_me: failed program was:" >&5
6875sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877( exit $ac_status )
6878ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006879fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006882
6883
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006885{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6886echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006887if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888
6889cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006890#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006892
6893fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006894rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006895
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006896
Theodore Ts'oe1052142006-10-21 21:46:47 -04006897 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6898echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899if test "${ac_cv_gnu_library_2_1+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006901else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902 cat >conftest.$ac_ext <<_ACEOF
6903/* confdefs.h. */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006908
6909#include <features.h>
6910#ifdef __GNU_LIBRARY__
6911 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6912 Lucky GNU user
6913 #endif
6914#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915
6916_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006919 ac_cv_gnu_library_2_1=yes
6920else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006921 ac_cv_gnu_library_2_1=no
6922fi
6923rm -f conftest*
6924
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006925
6926
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006927fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006928{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6929echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006930
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006931 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006932
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934
6935
Theodore Ts'oe1052142006-10-21 21:46:47 -04006936 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6937echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006940else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006941
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006942 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006944 # Guess based on the CPU.
6945 case "$host_cpu" in
6946 alpha* | i3456786 | m68k | s390*)
6947 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6948 *)
6949 gt_cv_int_divbyzero_sigfpe="guessing no";;
6950 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006951
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006952else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953 cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h. */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006959
6960#include <stdlib.h>
6961#include <signal.h>
6962
6963static void
6964#ifdef __cplusplus
6965sigfpe_handler (int sig)
6966#else
6967sigfpe_handler (sig) int sig;
6968#endif
6969{
6970 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6971 exit (sig != SIGFPE);
6972}
6973
6974int x = 1;
6975int y = 0;
6976int z;
6977int nan;
6978
6979int main ()
6980{
6981 signal (SIGFPE, sigfpe_handler);
6982/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6983#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6984 signal (SIGTRAP, sigfpe_handler);
6985#endif
6986/* Linux/SPARC yields signal SIGILL. */
6987#if defined (__sparc__) && defined (__linux__)
6988 signal (SIGILL, sigfpe_handler);
6989#endif
6990
6991 z = x / y;
6992 nan = y / y;
6993 exit (1);
6994}
6995
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996_ACEOF
6997rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006998if { (ac_try="$ac_link"
6999case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002esac
7003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007008 { (case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011esac
7012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007017 gt_cv_int_divbyzero_sigfpe=yes
7018else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019 echo "$as_me: program exited with status $ac_status" >&5
7020echo "$as_me: failed program was:" >&5
7021sed 's/^/| /' conftest.$ac_ext >&5
7022
7023( exit $ac_status )
7024gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007025fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007027fi
7028
Theodore Ts'oe1052142006-10-21 21:46:47 -04007029
7030
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007031fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007032{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7033echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007034 case "$gt_cv_int_divbyzero_sigfpe" in
7035 *yes) value=1;;
7036 *) value=0;;
7037 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038
7039cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007040#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007042
7043
7044
Theodore Ts'oe1052142006-10-21 21:46:47 -04007045 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7046echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050 cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h. */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h. */
7056unsigned long long ull = 1ULL; int i = 63;
7057int
7058main ()
7059{
7060unsigned long long ullmax = (unsigned long long) -1;
7061 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7062 ;
7063 return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007067if { (ac_try="$ac_link"
7068case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7081 { (case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; } &&
7090 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007091 { (case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094esac
7095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 ac_cv_type_unsigned_long_long=yes
7101else
7102 echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
Theodore Ts'oe1052142006-10-21 21:46:47 -04007105 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007107
7108rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007109 conftest$ac_exeext conftest.$ac_ext
7110fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007111{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7112echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007113 if test $ac_cv_type_unsigned_long_long = yes; then
7114
7115cat >>confdefs.h <<\_ACEOF
7116#define HAVE_UNSIGNED_LONG_LONG 1
7117_ACEOF
7118
7119 fi
7120
7121
7122
7123
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007124 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 -05007125
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007126 test $ac_cv_type_unsigned_long_long = yes \
7127 && ac_type='unsigned long long' \
7128 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007129
7130cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007131#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132_ACEOF
7133
7134 else
7135
7136cat >>confdefs.h <<\_ACEOF
7137#define HAVE_UINTMAX_T 1
7138_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007139
7140 fi
7141
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007142
Theodore Ts'oe1052142006-10-21 21:46:47 -04007143 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7144echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145if test "${gt_cv_header_inttypes_h+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007147else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148
7149 cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h. */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007155#include <sys/types.h>
7156#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007157int
7158main ()
7159{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007160
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161 ;
7162 return 0;
7163}
7164_ACEOF
7165rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007166if { (ac_try="$ac_compile"
7167case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170esac
7171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7180 { (case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183esac
7184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007190 { (case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193esac
7194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007199 gt_cv_header_inttypes_h=yes
7200else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 echo "$as_me: failed program was:" >&5
7202sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007203
Theodore Ts'oe1052142006-10-21 21:46:47 -04007204 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007206
7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208
7209fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007210{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7211echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007212 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213
7214cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007215#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007216_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007217
7218 fi
7219
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007222 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007223 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7224echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007227else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228
7229 cat >conftest.$ac_ext <<_ACEOF
7230/* confdefs.h. */
7231_ACEOF
7232cat confdefs.h >>conftest.$ac_ext
7233cat >>conftest.$ac_ext <<_ACEOF
7234/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007235#include <inttypes.h>
7236#ifdef PRId32
7237char *p = PRId32;
7238#endif
7239
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240int
7241main ()
7242{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007243
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244 ;
7245 return 0;
7246}
7247_ACEOF
7248rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007249if { (ac_try="$ac_compile"
7250case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253esac
7254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7263 { (case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266esac
7267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007273 { (case "(($ac_try" in
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7276esac
7277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007282 gt_cv_inttypes_pri_broken=no
7283else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007284 echo "$as_me: failed program was:" >&5
7285sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007286
Theodore Ts'oe1052142006-10-21 21:46:47 -04007287 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007289
7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291
7292fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007293{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7294echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007295 fi
7296 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297
7298cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007299#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007300_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301
7302 fi
7303
7304
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007306for ac_header in stdint.h
7307do
7308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007315ac_res=`eval echo '${'$as_ac_Header'}'`
7316 { echo "$as_me:$LINENO: result: $ac_res" >&5
7317echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318else
7319 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007320{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7321echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328$ac_includes_default
7329#include <$ac_header>
7330_ACEOF
7331rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007332if { (ac_try="$ac_compile"
7333case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336esac
7337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7346 { (case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349esac
7350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007356 { (case "(($ac_try" in
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7359esac
7360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_header_compiler=yes
7366else
7367 echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
Theodore Ts'oe1052142006-10-21 21:46:47 -04007370 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007371fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007372
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376
7377# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007378{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380cat >conftest.$ac_ext <<_ACEOF
7381/* confdefs.h. */
7382_ACEOF
7383cat confdefs.h >>conftest.$ac_ext
7384cat >>conftest.$ac_ext <<_ACEOF
7385/* end confdefs.h. */
7386#include <$ac_header>
7387_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007388if { (ac_try="$ac_cpp conftest.$ac_ext"
7389case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392esac
7393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395 ac_status=$?
7396 grep -v '^ *+' conftest.er1 >conftest.err
7397 rm -f conftest.er1
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } >/dev/null; then
7401 if test -s conftest.err; then
7402 ac_cpp_err=$ac_c_preproc_warn_flag
7403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7404 else
7405 ac_cpp_err=
7406 fi
7407else
7408 ac_cpp_err=yes
7409fi
7410if test -z "$ac_cpp_err"; then
7411 ac_header_preproc=yes
7412else
7413 echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 ac_header_preproc=no
7417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007419rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007420{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7421echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007422
7423# So? What about this header?
7424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7425 yes:no: )
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7430 ac_header_preproc=yes
7431 ;;
7432 no:yes:* )
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7436echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7440echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007446 ;;
7447esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007448{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453 eval "$as_ac_Header=\$ac_header_preproc"
7454fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007455ac_res=`eval echo '${'$as_ac_Header'}'`
7456 { echo "$as_me:$LINENO: result: $ac_res" >&5
7457echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007458
7459fi
7460if test `eval echo '${'$as_ac_Header'}'` = yes; then
7461 cat >>confdefs.h <<_ACEOF
7462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7463_ACEOF
7464
7465fi
7466
7467done
7468
Theodore Ts'oe1052142006-10-21 21:46:47 -04007469 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7470echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471 result=
7472 cat >conftest.$ac_ext <<_ACEOF
7473/* confdefs.h. */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h. */
7478
7479#include <limits.h>
7480#if HAVE_STDINT_H
7481#include <stdint.h>
7482#endif
7483#ifdef SIZE_MAX
7484Found it
7485#endif
7486
7487_ACEOF
7488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489 $EGREP "Found it" >/dev/null 2>&1; then
7490 result=yes
7491fi
7492rm -f conftest*
7493
7494 if test -z "$result"; then
7495 if test "$cross_compiling" = yes; then
7496 # Depending upon the size, compute the lo and hi bounds.
7497cat >conftest.$ac_ext <<_ACEOF
7498/* confdefs.h. */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h. */
7503#include <stddef.h>
7504int
7505main ()
7506{
7507static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7508test_array [0] = 0
7509
7510 ;
7511 return 0;
7512}
7513_ACEOF
7514rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007515if { (ac_try="$ac_compile"
7516case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519esac
7520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7529 { (case "(($ac_try" in
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7532esac
7533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7534 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007539 { (case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542esac
7543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7548 ac_lo=0 ac_mid=0
7549 while :; do
7550 cat >conftest.$ac_ext <<_ACEOF
7551/* confdefs.h. */
7552_ACEOF
7553cat confdefs.h >>conftest.$ac_ext
7554cat >>conftest.$ac_ext <<_ACEOF
7555/* end confdefs.h. */
7556#include <stddef.h>
7557int
7558main ()
7559{
7560static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7561test_array [0] = 0
7562
7563 ;
7564 return 0;
7565}
7566_ACEOF
7567rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007568if { (ac_try="$ac_compile"
7569case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572esac
7573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7582 { (case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585esac
7586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007592 { (case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595esac
7596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_hi=$ac_mid; break
7602else
7603 echo "$as_me: failed program was:" >&5
7604sed 's/^/| /' conftest.$ac_ext >&5
7605
Theodore Ts'oe1052142006-10-21 21:46:47 -04007606 ac_lo=`expr $ac_mid + 1`
7607 if test $ac_lo -le $ac_mid; then
7608 ac_lo= ac_hi=
7609 break
7610 fi
7611 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007613
7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615 done
7616else
7617 echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
Theodore Ts'oe1052142006-10-21 21:46:47 -04007620 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621/* confdefs.h. */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h. */
7626#include <stddef.h>
7627int
7628main ()
7629{
7630static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7631test_array [0] = 0
7632
7633 ;
7634 return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007638if { (ac_try="$ac_compile"
7639case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642esac
7643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7652 { (case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655esac
7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007662 { (case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7665esac
7666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_hi=-1 ac_mid=-1
7672 while :; do
7673 cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
7679#include <stddef.h>
7680int
7681main ()
7682{
7683static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7684test_array [0] = 0
7685
7686 ;
7687 return 0;
7688}
7689_ACEOF
7690rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007691if { (ac_try="$ac_compile"
7692case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695esac
7696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7705 { (case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7708esac
7709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007715 { (case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718esac
7719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_lo=$ac_mid; break
7725else
7726 echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
Theodore Ts'oe1052142006-10-21 21:46:47 -04007729 ac_hi=`expr '(' $ac_mid ')' - 1`
7730 if test $ac_mid -le $ac_hi; then
7731 ac_lo= ac_hi=
7732 break
7733 fi
7734 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007736
7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738 done
7739else
7740 echo "$as_me: failed program was:" >&5
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
Theodore Ts'oe1052142006-10-21 21:46:47 -04007743 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007745
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007748
7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007750# Binary search between lo and hi bounds.
7751while test "x$ac_lo" != "x$ac_hi"; do
7752 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7753 cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h. */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h. */
7759#include <stddef.h>
7760int
7761main ()
7762{
7763static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7764test_array [0] = 0
7765
7766 ;
7767 return 0;
7768}
7769_ACEOF
7770rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007771if { (ac_try="$ac_compile"
7772case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_hi=$ac_mid
7805else
7806 echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
Theodore Ts'oe1052142006-10-21 21:46:47 -04007809 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007810fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007811
7812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007813done
7814case $ac_lo in
7815?*) res_hi=$ac_lo;;
7816'') result=? ;;
7817esac
7818else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007819 cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h. */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h. */
7825#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007826static long int longval () { return ~(size_t)0 / 10; }
7827static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828#include <stdio.h>
7829#include <stdlib.h>
7830int
7831main ()
7832{
7833
7834 FILE *f = fopen ("conftest.val", "w");
7835 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007836 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007837 if ((~(size_t)0 / 10) < 0)
7838 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007839 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007840 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007841 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007842 fprintf (f, "%ld\n", i);
7843 }
7844 else
7845 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007846 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007847 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007848 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007849 fprintf (f, "%lu\n", i);
7850 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007851 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852
7853 ;
7854 return 0;
7855}
7856_ACEOF
7857rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007858if { (ac_try="$ac_link"
7859case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862esac
7863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 res_hi=`cat conftest.val`
7878else
7879 echo "$as_me: program exited with status $ac_status" >&5
7880echo "$as_me: failed program was:" >&5
7881sed 's/^/| /' conftest.$ac_ext >&5
7882
7883( exit $ac_status )
7884result=?
7885fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007887fi
7888rm -f conftest.val
7889 if test "$cross_compiling" = yes; then
7890 # Depending upon the size, compute the lo and hi bounds.
7891cat >conftest.$ac_ext <<_ACEOF
7892/* confdefs.h. */
7893_ACEOF
7894cat confdefs.h >>conftest.$ac_ext
7895cat >>conftest.$ac_ext <<_ACEOF
7896/* end confdefs.h. */
7897#include <stddef.h>
7898int
7899main ()
7900{
7901static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7902test_array [0] = 0
7903
7904 ;
7905 return 0;
7906}
7907_ACEOF
7908rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007909if { (ac_try="$ac_compile"
7910case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913esac
7914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7923 { (case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007933 { (case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_lo=0 ac_mid=0
7943 while :; do
7944 cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h. */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
7949/* end confdefs.h. */
7950#include <stddef.h>
7951int
7952main ()
7953{
7954static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7955test_array [0] = 0
7956
7957 ;
7958 return 0;
7959}
7960_ACEOF
7961rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007962if { (ac_try="$ac_compile"
7963case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966esac
7967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04007975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979esac
7980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989esac
7990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_hi=$ac_mid; break
7996else
7997 echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
Theodore Ts'oe1052142006-10-21 21:46:47 -04008000 ac_lo=`expr $ac_mid + 1`
8001 if test $ac_lo -le $ac_mid; then
8002 ac_lo= ac_hi=
8003 break
8004 fi
8005 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008007
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008009 done
8010else
8011 echo "$as_me: failed program was:" >&5
8012sed 's/^/| /' conftest.$ac_ext >&5
8013
Theodore Ts'oe1052142006-10-21 21:46:47 -04008014 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#include <stddef.h>
8021int
8022main ()
8023{
8024static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8025test_array [0] = 0
8026
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008032if { (ac_try="$ac_compile"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_hi=-1 ac_mid=-1
8066 while :; do
8067 cat >conftest.$ac_ext <<_ACEOF
8068/* confdefs.h. */
8069_ACEOF
8070cat confdefs.h >>conftest.$ac_ext
8071cat >>conftest.$ac_ext <<_ACEOF
8072/* end confdefs.h. */
8073#include <stddef.h>
8074int
8075main ()
8076{
8077static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8078test_array [0] = 0
8079
8080 ;
8081 return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008085if { (ac_try="$ac_compile"
8086case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8099 { (case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102esac
8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008109 { (case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112esac
8113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_lo=$ac_mid; break
8119else
8120 echo "$as_me: failed program was:" >&5
8121sed 's/^/| /' conftest.$ac_ext >&5
8122
Theodore Ts'oe1052142006-10-21 21:46:47 -04008123 ac_hi=`expr '(' $ac_mid ')' - 1`
8124 if test $ac_mid -le $ac_hi; then
8125 ac_lo= ac_hi=
8126 break
8127 fi
8128 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008129fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008130
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008132 done
8133else
8134 echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
Theodore Ts'oe1052142006-10-21 21:46:47 -04008137 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008138fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008139
8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008141fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008142
8143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008144# Binary search between lo and hi bounds.
8145while test "x$ac_lo" != "x$ac_hi"; do
8146 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8147 cat >conftest.$ac_ext <<_ACEOF
8148/* confdefs.h. */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h. */
8153#include <stddef.h>
8154int
8155main ()
8156{
8157static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8158test_array [0] = 0
8159
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008165if { (ac_try="$ac_compile"
8166case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192esac
8193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_hi=$ac_mid
8199else
8200 echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
Theodore Ts'oe1052142006-10-21 21:46:47 -04008203 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008205
8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008207done
8208case $ac_lo in
8209?*) res_lo=$ac_lo;;
8210'') result=? ;;
8211esac
8212else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008213 cat >conftest.$ac_ext <<_ACEOF
8214/* confdefs.h. */
8215_ACEOF
8216cat confdefs.h >>conftest.$ac_ext
8217cat >>conftest.$ac_ext <<_ACEOF
8218/* end confdefs.h. */
8219#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008220static long int longval () { return ~(size_t)0 % 10; }
8221static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008222#include <stdio.h>
8223#include <stdlib.h>
8224int
8225main ()
8226{
8227
8228 FILE *f = fopen ("conftest.val", "w");
8229 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008230 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008231 if ((~(size_t)0 % 10) < 0)
8232 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008233 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008234 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008235 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008236 fprintf (f, "%ld\n", i);
8237 }
8238 else
8239 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008240 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008241 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008242 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008243 fprintf (f, "%lu\n", i);
8244 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008245 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008246
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008252if { (ac_try="$ac_link"
8253case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256esac
8257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008262 { (case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265esac
8266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 res_lo=`cat conftest.val`
8272else
8273 echo "$as_me: program exited with status $ac_status" >&5
8274echo "$as_me: failed program was:" >&5
8275sed 's/^/| /' conftest.$ac_ext >&5
8276
8277( exit $ac_status )
8278result=?
8279fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008281fi
8282rm -f conftest.val
8283 if test "$cross_compiling" = yes; then
8284 # Depending upon the size, compute the lo and hi bounds.
8285cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291#include <stddef.h>
8292int
8293main ()
8294{
8295static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8296test_array [0] = 0
8297
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008303if { (ac_try="$ac_compile"
8304case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8317 { (case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320esac
8321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008327 { (case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330esac
8331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_lo=0 ac_mid=0
8337 while :; do
8338 cat >conftest.$ac_ext <<_ACEOF
8339/* confdefs.h. */
8340_ACEOF
8341cat confdefs.h >>conftest.$ac_ext
8342cat >>conftest.$ac_ext <<_ACEOF
8343/* end confdefs.h. */
8344#include <stddef.h>
8345int
8346main ()
8347{
8348static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8349test_array [0] = 0
8350
8351 ;
8352 return 0;
8353}
8354_ACEOF
8355rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008356if { (ac_try="$ac_compile"
8357case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360esac
8361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8370 { (case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8373esac
8374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008380 { (case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383esac
8384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_hi=$ac_mid; break
8390else
8391 echo "$as_me: failed program was:" >&5
8392sed 's/^/| /' conftest.$ac_ext >&5
8393
Theodore Ts'oe1052142006-10-21 21:46:47 -04008394 ac_lo=`expr $ac_mid + 1`
8395 if test $ac_lo -le $ac_mid; then
8396 ac_lo= ac_hi=
8397 break
8398 fi
8399 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008401
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008403 done
8404else
8405 echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
Theodore Ts'oe1052142006-10-21 21:46:47 -04008408 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414#include <stddef.h>
8415int
8416main ()
8417{
8418static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8419test_array [0] = 0
8420
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008426if { (ac_try="$ac_compile"
8427case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430esac
8431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008450 { (case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453esac
8454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_hi=-1 ac_mid=-1
8460 while :; do
8461 cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
8467#include <stddef.h>
8468int
8469main ()
8470{
8471static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8472test_array [0] = 0
8473
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008479if { (ac_try="$ac_compile"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
8484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506esac
8507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_lo=$ac_mid; break
8513else
8514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
Theodore Ts'oe1052142006-10-21 21:46:47 -04008517 ac_hi=`expr '(' $ac_mid ')' - 1`
8518 if test $ac_mid -le $ac_hi; then
8519 ac_lo= ac_hi=
8520 break
8521 fi
8522 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008523fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008524
8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008526 done
8527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
Theodore Ts'oe1052142006-10-21 21:46:47 -04008531 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008533
8534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008536
8537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008538# Binary search between lo and hi bounds.
8539while test "x$ac_lo" != "x$ac_hi"; do
8540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8541 cat >conftest.$ac_ext <<_ACEOF
8542/* confdefs.h. */
8543_ACEOF
8544cat confdefs.h >>conftest.$ac_ext
8545cat >>conftest.$ac_ext <<_ACEOF
8546/* end confdefs.h. */
8547#include <stddef.h>
8548int
8549main ()
8550{
8551static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8552test_array [0] = 0
8553
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008559if { (ac_try="$ac_compile"
8560case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
8564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586esac
8587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 ac_hi=$ac_mid
8593else
8594 echo "$as_me: failed program was:" >&5
8595sed 's/^/| /' conftest.$ac_ext >&5
8596
Theodore Ts'oe1052142006-10-21 21:46:47 -04008597 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008598fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008599
8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008601done
8602case $ac_lo in
8603?*) fits_in_uint=$ac_lo;;
8604'') result=? ;;
8605esac
8606else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008607 cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h. */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h. */
8613#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008614static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8615static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008616#include <stdio.h>
8617#include <stdlib.h>
8618int
8619main ()
8620{
8621
8622 FILE *f = fopen ("conftest.val", "w");
8623 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008624 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008625 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8626 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008627 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008628 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008629 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008630 fprintf (f, "%ld\n", i);
8631 }
8632 else
8633 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008634 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008635 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008636 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008637 fprintf (f, "%lu\n", i);
8638 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008639 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008640
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008646if { (ac_try="$ac_link"
8647case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
8651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008656 { (case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659esac
8660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 fits_in_uint=`cat conftest.val`
8666else
8667 echo "$as_me: program exited with status $ac_status" >&5
8668echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671( exit $ac_status )
8672result=?
8673fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008675fi
8676rm -f conftest.val
8677 if test "$fits_in_uint" = 1; then
8678 cat >conftest.$ac_ext <<_ACEOF
8679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
8684#include <stddef.h>
8685 extern size_t foo;
8686 extern unsigned long foo;
8687
8688int
8689main ()
8690{
8691
8692 ;
8693 return 0;
8694}
8695_ACEOF
8696rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008697if { (ac_try="$ac_compile"
8698case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701esac
8702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8711 { (case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714esac
8715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724esac
8725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 fits_in_uint=0
8731else
8732 echo "$as_me: failed program was:" >&5
8733sed 's/^/| /' conftest.$ac_ext >&5
8734
Theodore Ts'oe1052142006-10-21 21:46:47 -04008735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008736fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008737
8738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008739 fi
8740 if test -z "$result"; then
8741 if test "$fits_in_uint" = 1; then
8742 result="$res_hi$res_lo"U
8743 else
8744 result="$res_hi$res_lo"UL
8745 fi
8746 else
8747 result='~(size_t)0'
8748 fi
8749 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008750 { echo "$as_me:$LINENO: result: $result" >&5
8751echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008752 if test "$result" != yes; then
8753
8754cat >>confdefs.h <<_ACEOF
8755#define SIZE_MAX $result
8756_ACEOF
8757
8758 fi
8759
8760
8761
8762
8763for ac_header in stdint.h
8764do
8765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008772ac_res=`eval echo '${'$as_ac_Header'}'`
8773 { echo "$as_me:$LINENO: result: $ac_res" >&5
8774echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008775else
8776 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008777{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785$ac_includes_default
8786#include <$ac_header>
8787_ACEOF
8788rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008789if { (ac_try="$ac_compile"
8790case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793esac
8794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04008802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806esac
8807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008813 { (case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816esac
8817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_header_compiler=yes
8823else
8824 echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
Theodore Ts'oe1052142006-10-21 21:46:47 -04008827 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008829
8830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8832echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008833
8834# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008835{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008837cat >conftest.$ac_ext <<_ACEOF
8838/* confdefs.h. */
8839_ACEOF
8840cat confdefs.h >>conftest.$ac_ext
8841cat >>conftest.$ac_ext <<_ACEOF
8842/* end confdefs.h. */
8843#include <$ac_header>
8844_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008845if { (ac_try="$ac_cpp conftest.$ac_ext"
8846case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
8850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } >/dev/null; then
8858 if test -s conftest.err; then
8859 ac_cpp_err=$ac_c_preproc_warn_flag
8860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8861 else
8862 ac_cpp_err=
8863 fi
8864else
8865 ac_cpp_err=yes
8866fi
8867if test -z "$ac_cpp_err"; then
8868 ac_header_preproc=yes
8869else
8870 echo "$as_me: failed program was:" >&5
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 ac_header_preproc=no
8874fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008876rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008877{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8878echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008879
8880# So? What about this header?
8881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8882 yes:no: )
8883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8887 ac_header_preproc=yes
8888 ;;
8889 no:yes:* )
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903 ;;
8904esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008905{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909else
8910 eval "$as_ac_Header=\$ac_header_preproc"
8911fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008912ac_res=`eval echo '${'$as_ac_Header'}'`
8913 { echo "$as_me:$LINENO: result: $ac_res" >&5
8914echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008915
8916fi
8917if test `eval echo '${'$as_ac_Header'}'` = yes; then
8918 cat >>confdefs.h <<_ACEOF
8919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8920_ACEOF
8921
8922fi
8923
8924done
8925
8926
8927
8928 if test "X$prefix" = "XNONE"; then
8929 acl_final_prefix="$ac_default_prefix"
8930 else
8931 acl_final_prefix="$prefix"
8932 fi
8933 if test "X$exec_prefix" = "XNONE"; then
8934 acl_final_exec_prefix='${prefix}'
8935 else
8936 acl_final_exec_prefix="$exec_prefix"
8937 fi
8938 acl_save_prefix="$prefix"
8939 prefix="$acl_final_prefix"
8940 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8941 prefix="$acl_save_prefix"
8942
8943
Theodore Ts'oe1052142006-10-21 21:46:47 -04008944# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008945if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008947else
8948 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008949fi
8950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951# Prepare PATH_SEPARATOR.
8952# The user is always right.
8953if test "${PATH_SEPARATOR+set}" != set; then
8954 echo "#! /bin/sh" >conf$$.sh
8955 echo "exit 0" >>conf$$.sh
8956 chmod +x conf$$.sh
8957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8958 PATH_SEPARATOR=';'
8959 else
8960 PATH_SEPARATOR=:
8961 fi
8962 rm -f conf$$.sh
8963fi
8964ac_prog=ld
8965if test "$GCC" = yes; then
8966 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008967 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8968echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008969 case $host in
8970 *-*-mingw*)
8971 # gcc leaves a trailing carriage return which upsets mingw
8972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8973 *)
8974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8975 esac
8976 case $ac_prog in
8977 # Accept absolute paths.
8978 [\\/]* | [A-Za-z]:[\\/]*)
8979 re_direlt='/[^/][^/]*/\.\./'
8980 # Canonicalize the path of ld
8981 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8983 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8984 done
8985 test -z "$LD" && LD="$ac_prog"
8986 ;;
8987 "")
8988 # If it fails, then pretend we aren't using GCC.
8989 ac_prog=ld
8990 ;;
8991 *)
8992 # If it is relative, then search for the first ld in PATH.
8993 with_gnu_ld=unknown
8994 ;;
8995 esac
8996elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008997 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8998echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008999else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009000 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9001echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009002fi
9003if test "${acl_cv_path_LD+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005else
9006 if test -z "$LD"; then
9007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9008 for ac_dir in $PATH; do
9009 test -z "$ac_dir" && ac_dir=.
9010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9011 acl_cv_path_LD="$ac_dir/$ac_prog"
9012 # Check to see if the program is GNU ld. I'd rather use --version,
9013 # but apparently some GNU ld's only accept -v.
9014 # Break only if it was the GNU/non-GNU ld that we prefer.
9015 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9016 *GNU* | *'with BFD'*)
9017 test "$with_gnu_ld" != no && break ;;
9018 *)
9019 test "$with_gnu_ld" != yes && break ;;
9020 esac
9021 fi
9022 done
9023 IFS="$ac_save_ifs"
9024else
9025 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9026fi
9027fi
9028
9029LD="$acl_cv_path_LD"
9030if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009031 { echo "$as_me:$LINENO: result: $LD" >&5
9032echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009033else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009034 { echo "$as_me:$LINENO: result: no" >&5
9035echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009036fi
9037test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9038echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9039 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009040{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9041echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009042if test "${acl_cv_prog_gnu_ld+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9046case `$LD -v 2>&1 </dev/null` in
9047*GNU* | *'with BFD'*)
9048 acl_cv_prog_gnu_ld=yes ;;
9049*)
9050 acl_cv_prog_gnu_ld=no ;;
9051esac
9052fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009053{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9054echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055with_gnu_ld=$acl_cv_prog_gnu_ld
9056
9057
9058
Theodore Ts'oe1052142006-10-21 21:46:47 -04009059 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9060echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009061if test "${acl_cv_rpath+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
9064
9065 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9066 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9067 . ./conftest.sh
9068 rm -f ./conftest.sh
9069 acl_cv_rpath=done
9070
9071fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009072{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9073echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009074 wl="$acl_cv_wl"
9075 libext="$acl_cv_libext"
9076 shlibext="$acl_cv_shlibext"
9077 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9078 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9079 hardcode_direct="$acl_cv_hardcode_direct"
9080 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009081 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009083 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084else
9085 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009086fi
9087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009088
9089
9090
9091
9092
9093
9094
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009095 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009096
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009097 acl_save_prefix="$prefix"
9098 prefix="$acl_final_prefix"
9099 acl_save_exec_prefix="$exec_prefix"
9100 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009101
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009102 eval additional_includedir=\"$includedir\"
9103 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009105 exec_prefix="$acl_save_exec_prefix"
9106 prefix="$acl_save_prefix"
9107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009108
Theodore Ts'oe1052142006-10-21 21:46:47 -04009109# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009110if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009111 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009112 if test "X$withval" = "Xno"; then
9113 use_additional=no
9114 else
9115 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009116
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009117 acl_save_prefix="$prefix"
9118 prefix="$acl_final_prefix"
9119 acl_save_exec_prefix="$exec_prefix"
9120 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009121
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009122 eval additional_includedir=\"$includedir\"
9123 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009124
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009125 exec_prefix="$acl_save_exec_prefix"
9126 prefix="$acl_save_prefix"
9127
9128 else
9129 additional_includedir="$withval/include"
9130 additional_libdir="$withval/lib"
9131 fi
9132 fi
9133
Theodore Ts'oe1052142006-10-21 21:46:47 -04009134fi
9135
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009136 LIBICONV=
9137 LTLIBICONV=
9138 INCICONV=
9139 rpathdirs=
9140 ltrpathdirs=
9141 names_already_handled=
9142 names_next_round='iconv '
9143 while test -n "$names_next_round"; do
9144 names_this_round="$names_next_round"
9145 names_next_round=
9146 for name in $names_this_round; do
9147 already_handled=
9148 for n in $names_already_handled; do
9149 if test "$n" = "$name"; then
9150 already_handled=yes
9151 break
9152 fi
9153 done
9154 if test -z "$already_handled"; then
9155 names_already_handled="$names_already_handled $name"
9156 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9157 eval value=\"\$HAVE_LIB$uppername\"
9158 if test -n "$value"; then
9159 if test "$value" = yes; then
9160 eval value=\"\$LIB$uppername\"
9161 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9162 eval value=\"\$LTLIB$uppername\"
9163 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9164 else
9165 :
9166 fi
9167 else
9168 found_dir=
9169 found_la=
9170 found_so=
9171 found_a=
9172 if test $use_additional = yes; then
9173 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9174 found_dir="$additional_libdir"
9175 found_so="$additional_libdir/lib$name.$shlibext"
9176 if test -f "$additional_libdir/lib$name.la"; then
9177 found_la="$additional_libdir/lib$name.la"
9178 fi
9179 else
9180 if test -f "$additional_libdir/lib$name.$libext"; then
9181 found_dir="$additional_libdir"
9182 found_a="$additional_libdir/lib$name.$libext"
9183 if test -f "$additional_libdir/lib$name.la"; then
9184 found_la="$additional_libdir/lib$name.la"
9185 fi
9186 fi
9187 fi
9188 fi
9189 if test "X$found_dir" = "X"; then
9190 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009191
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009192 acl_save_prefix="$prefix"
9193 prefix="$acl_final_prefix"
9194 acl_save_exec_prefix="$exec_prefix"
9195 exec_prefix="$acl_final_exec_prefix"
9196 eval x=\"$x\"
9197 exec_prefix="$acl_save_exec_prefix"
9198 prefix="$acl_save_prefix"
9199
9200 case "$x" in
9201 -L*)
9202 dir=`echo "X$x" | sed -e 's/^X-L//'`
9203 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9204 found_dir="$dir"
9205 found_so="$dir/lib$name.$shlibext"
9206 if test -f "$dir/lib$name.la"; then
9207 found_la="$dir/lib$name.la"
9208 fi
9209 else
9210 if test -f "$dir/lib$name.$libext"; then
9211 found_dir="$dir"
9212 found_a="$dir/lib$name.$libext"
9213 if test -f "$dir/lib$name.la"; then
9214 found_la="$dir/lib$name.la"
9215 fi
9216 fi
9217 fi
9218 ;;
9219 esac
9220 if test "X$found_dir" != "X"; then
9221 break
9222 fi
9223 done
9224 fi
9225 if test "X$found_dir" != "X"; then
9226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9227 if test "X$found_so" != "X"; then
9228 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9229 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9230 else
9231 haveit=
9232 for x in $ltrpathdirs; do
9233 if test "X$x" = "X$found_dir"; then
9234 haveit=yes
9235 break
9236 fi
9237 done
9238 if test -z "$haveit"; then
9239 ltrpathdirs="$ltrpathdirs $found_dir"
9240 fi
9241 if test "$hardcode_direct" = yes; then
9242 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9243 else
9244 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9245 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9246 haveit=
9247 for x in $rpathdirs; do
9248 if test "X$x" = "X$found_dir"; then
9249 haveit=yes
9250 break
9251 fi
9252 done
9253 if test -z "$haveit"; then
9254 rpathdirs="$rpathdirs $found_dir"
9255 fi
9256 else
9257 haveit=
9258 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009259
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009260 acl_save_prefix="$prefix"
9261 prefix="$acl_final_prefix"
9262 acl_save_exec_prefix="$exec_prefix"
9263 exec_prefix="$acl_final_exec_prefix"
9264 eval x=\"$x\"
9265 exec_prefix="$acl_save_exec_prefix"
9266 prefix="$acl_save_prefix"
9267
9268 if test "X$x" = "X-L$found_dir"; then
9269 haveit=yes
9270 break
9271 fi
9272 done
9273 if test -z "$haveit"; then
9274 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9275 fi
9276 if test "$hardcode_minus_L" != no; then
9277 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9278 else
9279 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9280 fi
9281 fi
9282 fi
9283 fi
9284 else
9285 if test "X$found_a" != "X"; then
9286 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9287 else
9288 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9289 fi
9290 fi
9291 additional_includedir=
9292 case "$found_dir" in
9293 */lib | */lib/)
9294 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9295 additional_includedir="$basedir/include"
9296 ;;
9297 esac
9298 if test "X$additional_includedir" != "X"; then
9299 if test "X$additional_includedir" != "X/usr/include"; then
9300 haveit=
9301 if test "X$additional_includedir" = "X/usr/local/include"; then
9302 if test -n "$GCC"; then
9303 case $host_os in
9304 linux*) haveit=yes;;
9305 esac
9306 fi
9307 fi
9308 if test -z "$haveit"; then
9309 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009310
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009311 acl_save_prefix="$prefix"
9312 prefix="$acl_final_prefix"
9313 acl_save_exec_prefix="$exec_prefix"
9314 exec_prefix="$acl_final_exec_prefix"
9315 eval x=\"$x\"
9316 exec_prefix="$acl_save_exec_prefix"
9317 prefix="$acl_save_prefix"
9318
9319 if test "X$x" = "X-I$additional_includedir"; then
9320 haveit=yes
9321 break
9322 fi
9323 done
9324 if test -z "$haveit"; then
9325 if test -d "$additional_includedir"; then
9326 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9327 fi
9328 fi
9329 fi
9330 fi
9331 fi
9332 if test -n "$found_la"; then
9333 save_libdir="$libdir"
9334 case "$found_la" in
9335 */* | *\\*) . "$found_la" ;;
9336 *) . "./$found_la" ;;
9337 esac
9338 libdir="$save_libdir"
9339 for dep in $dependency_libs; do
9340 case "$dep" in
9341 -L*)
9342 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9343 if test "X$additional_libdir" != "X/usr/lib"; then
9344 haveit=
9345 if test "X$additional_libdir" = "X/usr/local/lib"; then
9346 if test -n "$GCC"; then
9347 case $host_os in
9348 linux*) haveit=yes;;
9349 esac
9350 fi
9351 fi
9352 if test -z "$haveit"; then
9353 haveit=
9354 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009355
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009356 acl_save_prefix="$prefix"
9357 prefix="$acl_final_prefix"
9358 acl_save_exec_prefix="$exec_prefix"
9359 exec_prefix="$acl_final_exec_prefix"
9360 eval x=\"$x\"
9361 exec_prefix="$acl_save_exec_prefix"
9362 prefix="$acl_save_prefix"
9363
9364 if test "X$x" = "X-L$additional_libdir"; then
9365 haveit=yes
9366 break
9367 fi
9368 done
9369 if test -z "$haveit"; then
9370 if test -d "$additional_libdir"; then
9371 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9372 fi
9373 fi
9374 haveit=
9375 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009376
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009377 acl_save_prefix="$prefix"
9378 prefix="$acl_final_prefix"
9379 acl_save_exec_prefix="$exec_prefix"
9380 exec_prefix="$acl_final_exec_prefix"
9381 eval x=\"$x\"
9382 exec_prefix="$acl_save_exec_prefix"
9383 prefix="$acl_save_prefix"
9384
9385 if test "X$x" = "X-L$additional_libdir"; then
9386 haveit=yes
9387 break
9388 fi
9389 done
9390 if test -z "$haveit"; then
9391 if test -d "$additional_libdir"; then
9392 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9393 fi
9394 fi
9395 fi
9396 fi
9397 ;;
9398 -R*)
9399 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9400 if test "$enable_rpath" != no; then
9401 haveit=
9402 for x in $rpathdirs; do
9403 if test "X$x" = "X$dir"; then
9404 haveit=yes
9405 break
9406 fi
9407 done
9408 if test -z "$haveit"; then
9409 rpathdirs="$rpathdirs $dir"
9410 fi
9411 haveit=
9412 for x in $ltrpathdirs; do
9413 if test "X$x" = "X$dir"; then
9414 haveit=yes
9415 break
9416 fi
9417 done
9418 if test -z "$haveit"; then
9419 ltrpathdirs="$ltrpathdirs $dir"
9420 fi
9421 fi
9422 ;;
9423 -l*)
9424 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9425 ;;
9426 *.la)
9427 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9428 ;;
9429 *)
9430 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9432 ;;
9433 esac
9434 done
9435 fi
9436 else
9437 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9438 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9439 fi
9440 fi
9441 fi
9442 done
9443 done
9444 if test "X$rpathdirs" != "X"; then
9445 if test -n "$hardcode_libdir_separator"; then
9446 alldirs=
9447 for found_dir in $rpathdirs; do
9448 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9449 done
9450 acl_save_libdir="$libdir"
9451 libdir="$alldirs"
9452 eval flag=\"$hardcode_libdir_flag_spec\"
9453 libdir="$acl_save_libdir"
9454 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9455 else
9456 for found_dir in $rpathdirs; do
9457 acl_save_libdir="$libdir"
9458 libdir="$found_dir"
9459 eval flag=\"$hardcode_libdir_flag_spec\"
9460 libdir="$acl_save_libdir"
9461 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9462 done
9463 fi
9464 fi
9465 if test "X$ltrpathdirs" != "X"; then
9466 for found_dir in $ltrpathdirs; do
9467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9468 done
9469 fi
9470
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009471
9472
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474
9475
9476
9477
Theodore Ts'oe1052142006-10-21 21:46:47 -04009478 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9479echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009480if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009482else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483 cat >conftest.$ac_ext <<_ACEOF
9484/* confdefs.h. */
9485_ACEOF
9486cat confdefs.h >>conftest.$ac_ext
9487cat >>conftest.$ac_ext <<_ACEOF
9488/* end confdefs.h. */
9489$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04009490typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491int
9492main ()
9493{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009494if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009495 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04009496if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009497 return 0;
9498 ;
9499 return 0;
9500}
9501_ACEOF
9502rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009503if { (ac_try="$ac_compile"
9504case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507esac
9508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9517 { (case "(($ac_try" in
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9520esac
9521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009527 { (case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_type_ptrdiff_t=yes
9537else
9538 echo "$as_me: failed program was:" >&5
9539sed 's/^/| /' conftest.$ac_ext >&5
9540
Theodore Ts'oe1052142006-10-21 21:46:47 -04009541 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009542fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009543
9544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009546{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9547echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009548if test $ac_cv_type_ptrdiff_t = yes; then
9549 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551
9552cat >>confdefs.h <<\_ACEOF
9553#define ptrdiff_t long
9554_ACEOF
9555
9556
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009557fi
9558
9559
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009560
9561
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009562
9563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009564
9565
9566
9567
9568
9569for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009570stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009571do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009578fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009579ac_res=`eval echo '${'$as_ac_Header'}'`
9580 { echo "$as_me:$LINENO: result: $ac_res" >&5
9581echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009582else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009584{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009586cat >conftest.$ac_ext <<_ACEOF
9587/* confdefs.h. */
9588_ACEOF
9589cat confdefs.h >>conftest.$ac_ext
9590cat >>conftest.$ac_ext <<_ACEOF
9591/* end confdefs.h. */
9592$ac_includes_default
9593#include <$ac_header>
9594_ACEOF
9595rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009596if { (ac_try="$ac_compile"
9597case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600esac
9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613esac
9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009620 { (case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623esac
9624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_header_compiler=yes
9630else
9631 echo "$as_me: failed program was:" >&5
9632sed 's/^/| /' conftest.$ac_ext >&5
9633
Theodore Ts'oe1052142006-10-21 21:46:47 -04009634 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009635fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009636
9637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9639echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640
9641# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009642{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644cat >conftest.$ac_ext <<_ACEOF
9645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
9650#include <$ac_header>
9651_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009652if { (ac_try="$ac_cpp conftest.$ac_ext"
9653case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656esac
9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev/null; then
9665 if test -s conftest.err; then
9666 ac_cpp_err=$ac_c_preproc_warn_flag
9667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9668 else
9669 ac_cpp_err=
9670 fi
9671else
9672 ac_cpp_err=yes
9673fi
9674if test -z "$ac_cpp_err"; then
9675 ac_header_preproc=yes
9676else
9677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_header_preproc=no
9681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009682
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009684{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009686
9687# So? What about this header?
9688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9689 yes:no: )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9695 ;;
9696 no:yes:* )
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009709
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009710 ;;
9711esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 eval "$as_ac_Header=\$ac_header_preproc"
9718fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009719ac_res=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009722
9723fi
9724if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727_ACEOF
9728
9729fi
9730
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009731done
9732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9757mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9758strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9759__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009760do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009762{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9764if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009766else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009767 cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h. */
9773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9775#define $ac_func innocuous_$ac_func
9776
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009777/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009778 which can conflict with char $ac_func (); below.
9779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780 <limits.h> exists even on freestanding compilers. */
9781
9782#ifdef __STDC__
9783# include <limits.h>
9784#else
9785# include <assert.h>
9786#endif
9787
9788#undef $ac_func
9789
Theodore Ts'oe1052142006-10-21 21:46:47 -04009790/* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793#ifdef __cplusplus
9794extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009795#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009797/* The GNU C library defines this for functions which it implements
9798 to always fail with ENOSYS. Some functions are actually named
9799 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009800#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009801choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009802#endif
9803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009804int
9805main ()
9806{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009808 ;
9809 return 0;
9810}
9811_ACEOF
9812rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009847else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009850
Theodore Ts'oe1052142006-10-21 21:46:47 -04009851 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009852fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009853
9854rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009855 conftest$ac_exeext conftest.$ac_ext
9856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857ac_res=`eval echo '${'$as_ac_var'}'`
9858 { echo "$as_me:$LINENO: result: $ac_res" >&5
9859echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860if test `eval echo '${'$as_ac_var'}'` = yes; then
9861 cat >>confdefs.h <<_ACEOF
9862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9863_ACEOF
9864
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009865fi
9866done
9867
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009868
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009869
Theodore Ts'oe1052142006-10-21 21:46:47 -04009870 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9871echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872if test "${ac_cv_have_decl__snprintf+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881#include <stdio.h>
9882int
9883main ()
9884{
9885
9886#ifndef _snprintf
9887 char *p = (char *) _snprintf;
9888#endif
9889
9890 ;
9891 return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009895if { (ac_try="$ac_compile"
9896case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899esac
9900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009902 ac_status=$?
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9909 { (case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9912esac
9913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04009919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922esac
9923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_have_decl__snprintf=yes
9929else
9930 echo "$as_me: failed program was:" >&5
9931sed 's/^/| /' conftest.$ac_ext >&5
9932
Theodore Ts'oe1052142006-10-21 21:46:47 -04009933 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009935
9936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009937fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009938{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9939echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009940 if test $ac_cv_have_decl__snprintf = yes; then
9941 gt_value=1
9942 else
9943 gt_value=0
9944 fi
9945
9946cat >>confdefs.h <<_ACEOF
9947#define HAVE_DECL__SNPRINTF $gt_value
9948_ACEOF
9949
9950
9951
Theodore Ts'oe1052142006-10-21 21:46:47 -04009952 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9953echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009954if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956else
9957 cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963#include <stdio.h>
9964int
9965main ()
9966{
9967
9968#ifndef _snwprintf
9969 char *p = (char *) _snwprintf;
9970#endif
9971
9972 ;
9973 return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009977if { (ac_try="$ac_compile"
9978case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981esac
9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -04009990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010001 { (case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_have_decl__snwprintf=yes
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
Theodore Ts'oe1052142006-10-21 21:46:47 -040010015 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010017
10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010019fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010020{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10021echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010022 if test $ac_cv_have_decl__snwprintf = yes; then
10023 gt_value=1
10024 else
10025 gt_value=0
10026 fi
10027
10028cat >>confdefs.h <<_ACEOF
10029#define HAVE_DECL__SNWPRINTF $gt_value
10030_ACEOF
10031
10032
10033
10034
Theodore Ts'oe1052142006-10-21 21:46:47 -040010035 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10036echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010037if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040 cat >conftest.$ac_ext <<_ACEOF
10041/* confdefs.h. */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h. */
10046#include <stdio.h>
10047int
10048main ()
10049{
10050
10051#ifndef feof_unlocked
10052 char *p = (char *) feof_unlocked;
10053#endif
10054
10055 ;
10056 return 0;
10057}
10058_ACEOF
10059rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010060if { (ac_try="$ac_compile"
10061case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010084 { (case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10087esac
10088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_have_decl_feof_unlocked=yes
10094else
10095 echo "$as_me: failed program was:" >&5
10096sed 's/^/| /' conftest.$ac_ext >&5
10097
Theodore Ts'oe1052142006-10-21 21:46:47 -040010098 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010100
10101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010102fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010103{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10104echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010105 if test $ac_cv_have_decl_feof_unlocked = yes; then
10106 gt_value=1
10107 else
10108 gt_value=0
10109 fi
10110
10111cat >>confdefs.h <<_ACEOF
10112#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10113_ACEOF
10114
10115
10116
Theodore Ts'oe1052142006-10-21 21:46:47 -040010117 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10118echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010119if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121else
10122 cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h. */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
10127/* end confdefs.h. */
10128#include <stdio.h>
10129int
10130main ()
10131{
10132
10133#ifndef fgets_unlocked
10134 char *p = (char *) fgets_unlocked;
10135#endif
10136
10137 ;
10138 return 0;
10139}
10140_ACEOF
10141rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010142if { (ac_try="$ac_compile"
10143case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149 ac_status=$?
10150 grep -v '^ *+' conftest.er1 >conftest.err
10151 rm -f conftest.er1
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159esac
10160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169esac
10170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_have_decl_fgets_unlocked=yes
10176else
10177 echo "$as_me: failed program was:" >&5
10178sed 's/^/| /' conftest.$ac_ext >&5
10179
Theodore Ts'oe1052142006-10-21 21:46:47 -040010180 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010182
10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010185{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10186echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010187 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10188 gt_value=1
10189 else
10190 gt_value=0
10191 fi
10192
10193cat >>confdefs.h <<_ACEOF
10194#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10195_ACEOF
10196
10197
10198
Theodore Ts'oe1052142006-10-21 21:46:47 -040010199 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10200echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203else
10204 cat >conftest.$ac_ext <<_ACEOF
10205/* confdefs.h. */
10206_ACEOF
10207cat confdefs.h >>conftest.$ac_ext
10208cat >>conftest.$ac_ext <<_ACEOF
10209/* end confdefs.h. */
10210#include <stdio.h>
10211int
10212main ()
10213{
10214
10215#ifndef getc_unlocked
10216 char *p = (char *) getc_unlocked;
10217#endif
10218
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010224if { (ac_try="$ac_compile"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241esac
10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251esac
10252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_have_decl_getc_unlocked=yes
10258else
10259 echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
Theodore Ts'oe1052142006-10-21 21:46:47 -040010262 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010264
10265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010267{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10268echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010269 if test $ac_cv_have_decl_getc_unlocked = yes; then
10270 gt_value=1
10271 else
10272 gt_value=0
10273 fi
10274
10275cat >>confdefs.h <<_ACEOF
10276#define HAVE_DECL_GETC_UNLOCKED $gt_value
10277_ACEOF
10278
10279
10280
10281 case $gt_cv_func_printf_posix in
10282 *yes) HAVE_POSIX_PRINTF=1 ;;
10283 *) HAVE_POSIX_PRINTF=0 ;;
10284 esac
10285
10286 if test "$ac_cv_func_asprintf" = yes; then
10287 HAVE_ASPRINTF=1
10288 else
10289 HAVE_ASPRINTF=0
10290 fi
10291
10292 if test "$ac_cv_func_snprintf" = yes; then
10293 HAVE_SNPRINTF=1
10294 else
10295 HAVE_SNPRINTF=0
10296 fi
10297
10298 if test "$ac_cv_func_wprintf" = yes; then
10299 HAVE_WPRINTF=1
10300 else
10301 HAVE_WPRINTF=0
10302 fi
10303
10304
10305
10306
10307
10308
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010309
10310 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010311
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010312 for element in $INCICONV; do
10313 haveit=
10314 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010315
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010316 acl_save_prefix="$prefix"
10317 prefix="$acl_final_prefix"
10318 acl_save_exec_prefix="$exec_prefix"
10319 exec_prefix="$acl_final_exec_prefix"
10320 eval x=\"$x\"
10321 exec_prefix="$acl_save_exec_prefix"
10322 prefix="$acl_save_prefix"
10323
10324 if test "X$x" = "X$element"; then
10325 haveit=yes
10326 break
10327 fi
10328 done
10329 if test -z "$haveit"; then
10330 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10331 fi
10332 done
10333
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010334
Theodore Ts'oe1052142006-10-21 21:46:47 -040010335 { echo "$as_me:$LINENO: checking for iconv" >&5
10336echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010337if test "${am_cv_func_iconv+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010339else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010340
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010341 am_cv_func_iconv="no, consider installing GNU libiconv"
10342 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010343 cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h. */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010349#include <stdlib.h>
10350#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010351int
10352main ()
10353{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010354iconv_t cd = iconv_open("","");
10355 iconv(cd,NULL,NULL,NULL,NULL);
10356 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010357 ;
10358 return 0;
10359}
10360_ACEOF
10361rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010362if { (ac_try="$ac_link"
10363case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379esac
10380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010395 am_cv_func_iconv=yes
10396else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010397 echo "$as_me: failed program was:" >&5
10398sed 's/^/| /' conftest.$ac_ext >&5
10399
Theodore Ts'oe1052142006-10-21 21:46:47 -040010400
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010401fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010402
10403rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010404 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010405 if test "$am_cv_func_iconv" != yes; then
10406 am_save_LIBS="$LIBS"
10407 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010408 cat >conftest.$ac_ext <<_ACEOF
10409/* confdefs.h. */
10410_ACEOF
10411cat confdefs.h >>conftest.$ac_ext
10412cat >>conftest.$ac_ext <<_ACEOF
10413/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010414#include <stdlib.h>
10415#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010416int
10417main ()
10418{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010419iconv_t cd = iconv_open("","");
10420 iconv(cd,NULL,NULL,NULL,NULL);
10421 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010422 ;
10423 return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010427if { (ac_try="$ac_link"
10428case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431esac
10432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444esac
10445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010451 { (case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010460 am_cv_lib_iconv=yes
10461 am_cv_func_iconv=yes
10462else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010463 echo "$as_me: failed program was:" >&5
10464sed 's/^/| /' conftest.$ac_ext >&5
10465
Theodore Ts'oe1052142006-10-21 21:46:47 -040010466
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010468
10469rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010470 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010471 LIBS="$am_save_LIBS"
10472 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010474fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010475{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10476echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010477 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010478
10479cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010480#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010481_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010482
10483 fi
10484 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010485 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10486echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10487 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10488echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010489 else
10490 CPPFLAGS="$am_save_CPPFLAGS"
10491 LIBICONV=
10492 LTLIBICONV=
10493 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010494
10495
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010496
10497 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010498 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10499echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010500 if test "${am_cv_proto_iconv+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010502else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010503
10504 cat >conftest.$ac_ext <<_ACEOF
10505/* confdefs.h. */
10506_ACEOF
10507cat confdefs.h >>conftest.$ac_ext
10508cat >>conftest.$ac_ext <<_ACEOF
10509/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010510
10511#include <stdlib.h>
10512#include <iconv.h>
10513extern
10514#ifdef __cplusplus
10515"C"
10516#endif
10517#if defined(__STDC__) || defined(__cplusplus)
10518size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10519#else
10520size_t iconv();
10521#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010523int
10524main ()
10525{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010527 ;
10528 return 0;
10529}
10530_ACEOF
10531rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010532if { (ac_try="$ac_compile"
10533case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559esac
10560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010565 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010566else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010567 echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
Theodore Ts'oe1052142006-10-21 21:46:47 -040010570 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010572
10573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010574 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 +000010575fi
10576
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010577 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040010578 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010579 }$am_cv_proto_iconv" >&5
10580echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -040010581 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010582
10583cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010584#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010585_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010586
10587 fi
10588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010589
Theodore Ts'oe1052142006-10-21 21:46:47 -040010590 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10591echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010592if test "${am_cv_langinfo_codeset+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010594else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010595 cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010601#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602int
10603main ()
10604{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010605char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010611if { (ac_try="$ac_link"
10612case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638esac
10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010644 am_cv_langinfo_codeset=yes
10645else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010646 echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010648
Theodore Ts'oe1052142006-10-21 21:46:47 -040010649 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010650fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010651
10652rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010653 conftest$ac_exeext conftest.$ac_ext
10654
10655fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010656{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10657echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010658 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010659
10660cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010661#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010662_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010663
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010664 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010665
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010666 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010667
Theodore Ts'oe1052142006-10-21 21:46:47 -040010668 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10669echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010670if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010672else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010673 cat >conftest.$ac_ext <<_ACEOF
10674/* confdefs.h. */
10675_ACEOF
10676cat confdefs.h >>conftest.$ac_ext
10677cat >>conftest.$ac_ext <<_ACEOF
10678/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010679#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680int
10681main ()
10682{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010683return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010684 ;
10685 return 0;
10686}
10687_ACEOF
10688rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010689if { (ac_try="$ac_link"
10690case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693esac
10694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706esac
10707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716esac
10717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010722 am_cv_val_LC_MESSAGES=yes
10723else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724 echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010726
Theodore Ts'oe1052142006-10-21 21:46:47 -040010727 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010729
10730rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010731 conftest$ac_exeext conftest.$ac_ext
10732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010733{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10734echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010735 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010736
10737cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010738#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010739_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010740
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010741 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010742
10743 fi
10744
10745 for ac_prog in bison
10746do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010747 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010748set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010751if test "${ac_cv_prog_INTLBISON+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010753else
10754 if test -n "$INTLBISON"; then
10755 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758for as_dir in $PATH
10759do
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040010763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010764 ac_cv_prog_INTLBISON="$ac_prog"
10765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 break 2
10767 fi
10768done
10769done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010770IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010771
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010772fi
10773fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010774INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010775if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010776 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10777echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010778else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010779 { echo "$as_me:$LINENO: result: no" >&5
10780echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010781fi
10782
Theodore Ts'oe1052142006-10-21 21:46:47 -040010783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010784 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010785done
10786
10787 if test -z "$INTLBISON"; then
10788 ac_verc_fail=yes
10789 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010790 { echo "$as_me:$LINENO: checking version of bison" >&5
10791echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10793 case $ac_prog_version in
10794 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10795 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10796 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10797 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10798 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010799 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10800echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010801 fi
10802 if test $ac_verc_fail = yes; then
10803 INTLBISON=:
10804 fi
10805
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010806
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010807
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010808
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010809
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010811
10812
10813
10814
10815
10816
10817
10818
10819
10820
Theodore Ts'oe1052142006-10-21 21:46:47 -040010821 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10822echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10823 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010824if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010825 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010826else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010827 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010828fi
10829
10830 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10831echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010832
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010834
10835
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010836 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010837 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010838
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010839 LIBINTL=
10840 LTLIBINTL=
10841 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010842
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010843 if test "$USE_NLS" = "yes"; then
10844 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845
Theodore Ts'oe1052142006-10-21 21:46:47 -040010846 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10847echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010848
Theodore Ts'oe1052142006-10-21 21:46:47 -040010849# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010850if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010851 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010852else
10853 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010854fi
10855
10856 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10857echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010858
10859 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10860 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010861
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010862
10863
10864
10865
10866
Theodore Ts'oe1052142006-10-21 21:46:47 -040010867 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10868echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010871else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010872 cat >conftest.$ac_ext <<_ACEOF
10873/* confdefs.h. */
10874_ACEOF
10875cat confdefs.h >>conftest.$ac_ext
10876cat >>conftest.$ac_ext <<_ACEOF
10877/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010878#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010879extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010880extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010881int
10882main ()
10883{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010884bindtextdomain ("", "");
10885return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010886 ;
10887 return 0;
10888}
10889_ACEOF
10890rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010891if { (ac_try="$ac_link"
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040010904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040010915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918esac
10919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010924 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010925else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010926 echo "$as_me: failed program was:" >&5
10927sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010928
Theodore Ts'oe1052142006-10-21 21:46:47 -040010929 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010931
10932rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010933 conftest$ac_exeext conftest.$ac_ext
10934fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10936echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010937
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010938 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010939
10940
10941
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010942 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010943
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010944 acl_save_prefix="$prefix"
10945 prefix="$acl_final_prefix"
10946 acl_save_exec_prefix="$exec_prefix"
10947 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010948
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010949 eval additional_includedir=\"$includedir\"
10950 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010951
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010952 exec_prefix="$acl_save_exec_prefix"
10953 prefix="$acl_save_prefix"
10954
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010955
Theodore Ts'oe1052142006-10-21 21:46:47 -040010956# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010957if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010958 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010959 if test "X$withval" = "Xno"; then
10960 use_additional=no
10961 else
10962 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010963
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010964 acl_save_prefix="$prefix"
10965 prefix="$acl_final_prefix"
10966 acl_save_exec_prefix="$exec_prefix"
10967 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010968
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010969 eval additional_includedir=\"$includedir\"
10970 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010971
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010972 exec_prefix="$acl_save_exec_prefix"
10973 prefix="$acl_save_prefix"
10974
10975 else
10976 additional_includedir="$withval/include"
10977 additional_libdir="$withval/lib"
10978 fi
10979 fi
10980
Theodore Ts'oe1052142006-10-21 21:46:47 -040010981fi
10982
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010983 LIBINTL=
10984 LTLIBINTL=
10985 INCINTL=
10986 rpathdirs=
10987 ltrpathdirs=
10988 names_already_handled=
10989 names_next_round='intl '
10990 while test -n "$names_next_round"; do
10991 names_this_round="$names_next_round"
10992 names_next_round=
10993 for name in $names_this_round; do
10994 already_handled=
10995 for n in $names_already_handled; do
10996 if test "$n" = "$name"; then
10997 already_handled=yes
10998 break
10999 fi
11000 done
11001 if test -z "$already_handled"; then
11002 names_already_handled="$names_already_handled $name"
11003 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11004 eval value=\"\$HAVE_LIB$uppername\"
11005 if test -n "$value"; then
11006 if test "$value" = yes; then
11007 eval value=\"\$LIB$uppername\"
11008 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11009 eval value=\"\$LTLIB$uppername\"
11010 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11011 else
11012 :
11013 fi
11014 else
11015 found_dir=
11016 found_la=
11017 found_so=
11018 found_a=
11019 if test $use_additional = yes; then
11020 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11021 found_dir="$additional_libdir"
11022 found_so="$additional_libdir/lib$name.$shlibext"
11023 if test -f "$additional_libdir/lib$name.la"; then
11024 found_la="$additional_libdir/lib$name.la"
11025 fi
11026 else
11027 if test -f "$additional_libdir/lib$name.$libext"; then
11028 found_dir="$additional_libdir"
11029 found_a="$additional_libdir/lib$name.$libext"
11030 if test -f "$additional_libdir/lib$name.la"; then
11031 found_la="$additional_libdir/lib$name.la"
11032 fi
11033 fi
11034 fi
11035 fi
11036 if test "X$found_dir" = "X"; then
11037 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011038
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011039 acl_save_prefix="$prefix"
11040 prefix="$acl_final_prefix"
11041 acl_save_exec_prefix="$exec_prefix"
11042 exec_prefix="$acl_final_exec_prefix"
11043 eval x=\"$x\"
11044 exec_prefix="$acl_save_exec_prefix"
11045 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011046
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011047 case "$x" in
11048 -L*)
11049 dir=`echo "X$x" | sed -e 's/^X-L//'`
11050 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11051 found_dir="$dir"
11052 found_so="$dir/lib$name.$shlibext"
11053 if test -f "$dir/lib$name.la"; then
11054 found_la="$dir/lib$name.la"
11055 fi
11056 else
11057 if test -f "$dir/lib$name.$libext"; then
11058 found_dir="$dir"
11059 found_a="$dir/lib$name.$libext"
11060 if test -f "$dir/lib$name.la"; then
11061 found_la="$dir/lib$name.la"
11062 fi
11063 fi
11064 fi
11065 ;;
11066 esac
11067 if test "X$found_dir" != "X"; then
11068 break
11069 fi
11070 done
11071 fi
11072 if test "X$found_dir" != "X"; then
11073 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11074 if test "X$found_so" != "X"; then
11075 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11077 else
11078 haveit=
11079 for x in $ltrpathdirs; do
11080 if test "X$x" = "X$found_dir"; then
11081 haveit=yes
11082 break
11083 fi
11084 done
11085 if test -z "$haveit"; then
11086 ltrpathdirs="$ltrpathdirs $found_dir"
11087 fi
11088 if test "$hardcode_direct" = yes; then
11089 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11090 else
11091 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11093 haveit=
11094 for x in $rpathdirs; do
11095 if test "X$x" = "X$found_dir"; then
11096 haveit=yes
11097 break
11098 fi
11099 done
11100 if test -z "$haveit"; then
11101 rpathdirs="$rpathdirs $found_dir"
11102 fi
11103 else
11104 haveit=
11105 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011107 acl_save_prefix="$prefix"
11108 prefix="$acl_final_prefix"
11109 acl_save_exec_prefix="$exec_prefix"
11110 exec_prefix="$acl_final_exec_prefix"
11111 eval x=\"$x\"
11112 exec_prefix="$acl_save_exec_prefix"
11113 prefix="$acl_save_prefix"
11114
11115 if test "X$x" = "X-L$found_dir"; then
11116 haveit=yes
11117 break
11118 fi
11119 done
11120 if test -z "$haveit"; then
11121 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11122 fi
11123 if test "$hardcode_minus_L" != no; then
11124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11125 else
11126 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11127 fi
11128 fi
11129 fi
11130 fi
11131 else
11132 if test "X$found_a" != "X"; then
11133 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11134 else
11135 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11136 fi
11137 fi
11138 additional_includedir=
11139 case "$found_dir" in
11140 */lib | */lib/)
11141 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11142 additional_includedir="$basedir/include"
11143 ;;
11144 esac
11145 if test "X$additional_includedir" != "X"; then
11146 if test "X$additional_includedir" != "X/usr/include"; then
11147 haveit=
11148 if test "X$additional_includedir" = "X/usr/local/include"; then
11149 if test -n "$GCC"; then
11150 case $host_os in
11151 linux*) haveit=yes;;
11152 esac
11153 fi
11154 fi
11155 if test -z "$haveit"; then
11156 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011157
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011158 acl_save_prefix="$prefix"
11159 prefix="$acl_final_prefix"
11160 acl_save_exec_prefix="$exec_prefix"
11161 exec_prefix="$acl_final_exec_prefix"
11162 eval x=\"$x\"
11163 exec_prefix="$acl_save_exec_prefix"
11164 prefix="$acl_save_prefix"
11165
11166 if test "X$x" = "X-I$additional_includedir"; then
11167 haveit=yes
11168 break
11169 fi
11170 done
11171 if test -z "$haveit"; then
11172 if test -d "$additional_includedir"; then
11173 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11174 fi
11175 fi
11176 fi
11177 fi
11178 fi
11179 if test -n "$found_la"; then
11180 save_libdir="$libdir"
11181 case "$found_la" in
11182 */* | *\\*) . "$found_la" ;;
11183 *) . "./$found_la" ;;
11184 esac
11185 libdir="$save_libdir"
11186 for dep in $dependency_libs; do
11187 case "$dep" in
11188 -L*)
11189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11190 if test "X$additional_libdir" != "X/usr/lib"; then
11191 haveit=
11192 if test "X$additional_libdir" = "X/usr/local/lib"; then
11193 if test -n "$GCC"; then
11194 case $host_os in
11195 linux*) haveit=yes;;
11196 esac
11197 fi
11198 fi
11199 if test -z "$haveit"; then
11200 haveit=
11201 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011202
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011203 acl_save_prefix="$prefix"
11204 prefix="$acl_final_prefix"
11205 acl_save_exec_prefix="$exec_prefix"
11206 exec_prefix="$acl_final_exec_prefix"
11207 eval x=\"$x\"
11208 exec_prefix="$acl_save_exec_prefix"
11209 prefix="$acl_save_prefix"
11210
11211 if test "X$x" = "X-L$additional_libdir"; then
11212 haveit=yes
11213 break
11214 fi
11215 done
11216 if test -z "$haveit"; then
11217 if test -d "$additional_libdir"; then
11218 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11219 fi
11220 fi
11221 haveit=
11222 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011223
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011224 acl_save_prefix="$prefix"
11225 prefix="$acl_final_prefix"
11226 acl_save_exec_prefix="$exec_prefix"
11227 exec_prefix="$acl_final_exec_prefix"
11228 eval x=\"$x\"
11229 exec_prefix="$acl_save_exec_prefix"
11230 prefix="$acl_save_prefix"
11231
11232 if test "X$x" = "X-L$additional_libdir"; then
11233 haveit=yes
11234 break
11235 fi
11236 done
11237 if test -z "$haveit"; then
11238 if test -d "$additional_libdir"; then
11239 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11240 fi
11241 fi
11242 fi
11243 fi
11244 ;;
11245 -R*)
11246 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11247 if test "$enable_rpath" != no; then
11248 haveit=
11249 for x in $rpathdirs; do
11250 if test "X$x" = "X$dir"; then
11251 haveit=yes
11252 break
11253 fi
11254 done
11255 if test -z "$haveit"; then
11256 rpathdirs="$rpathdirs $dir"
11257 fi
11258 haveit=
11259 for x in $ltrpathdirs; do
11260 if test "X$x" = "X$dir"; then
11261 haveit=yes
11262 break
11263 fi
11264 done
11265 if test -z "$haveit"; then
11266 ltrpathdirs="$ltrpathdirs $dir"
11267 fi
11268 fi
11269 ;;
11270 -l*)
11271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11272 ;;
11273 *.la)
11274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11275 ;;
11276 *)
11277 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11279 ;;
11280 esac
11281 done
11282 fi
11283 else
11284 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11285 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11286 fi
11287 fi
11288 fi
11289 done
11290 done
11291 if test "X$rpathdirs" != "X"; then
11292 if test -n "$hardcode_libdir_separator"; then
11293 alldirs=
11294 for found_dir in $rpathdirs; do
11295 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11296 done
11297 acl_save_libdir="$libdir"
11298 libdir="$alldirs"
11299 eval flag=\"$hardcode_libdir_flag_spec\"
11300 libdir="$acl_save_libdir"
11301 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11302 else
11303 for found_dir in $rpathdirs; do
11304 acl_save_libdir="$libdir"
11305 libdir="$found_dir"
11306 eval flag=\"$hardcode_libdir_flag_spec\"
11307 libdir="$acl_save_libdir"
11308 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11309 done
11310 fi
11311 fi
11312 if test "X$ltrpathdirs" != "X"; then
11313 for found_dir in $ltrpathdirs; do
11314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11315 done
11316 fi
11317
Theodore Ts'oe1052142006-10-21 21:46:47 -040011318 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11319echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011320if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011322else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011323 gt_save_CPPFLAGS="$CPPFLAGS"
11324 CPPFLAGS="$CPPFLAGS $INCINTL"
11325 gt_save_LIBS="$LIBS"
11326 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011327 cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011333#include <libintl.h>
11334extern int _nl_msg_cat_cntr;
11335extern
11336#ifdef __cplusplus
11337"C"
11338#endif
11339const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340int
11341main ()
11342{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011343bindtextdomain ("", "");
11344return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345 ;
11346 return 0;
11347}
11348_ACEOF
11349rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011350if { (ac_try="$ac_link"
11351case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11364 { (case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367esac
11368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011374 { (case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11377esac
11378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011383 gt_cv_func_gnugettext1_libintl=yes
11384else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385 echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
Theodore Ts'oe1052142006-10-21 21:46:47 -040011388 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011390
11391rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011392 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011393 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11394 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011395 cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011401#include <libintl.h>
11402extern int _nl_msg_cat_cntr;
11403extern
11404#ifdef __cplusplus
11405"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011406#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011407const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408int
11409main ()
11410{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011411bindtextdomain ("", "");
11412return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413 ;
11414 return 0;
11415}
11416_ACEOF
11417rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011418if { (ac_try="$ac_link"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11432 { (case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435esac
11436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011442 { (case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011451 LIBINTL="$LIBINTL $LIBICONV"
11452 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11453 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011454
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011455else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456 echo "$as_me: failed program was:" >&5
11457sed 's/^/| /' conftest.$ac_ext >&5
11458
Theodore Ts'oe1052142006-10-21 21:46:47 -040011459
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011460fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011461
11462rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011463 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011464 fi
11465 CPPFLAGS="$gt_save_CPPFLAGS"
11466 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011468{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11469echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011470 fi
11471
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011472 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11473 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011474 && test "$PACKAGE" != gettext-runtime \
11475 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011476 gt_use_preinstalled_gnugettext=yes
11477 else
11478 LIBINTL=
11479 LTLIBINTL=
11480 INCINTL=
11481 fi
11482
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011484 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11485 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011486 fi
11487 fi
11488
11489 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011490 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011491 USE_INCLUDED_LIBINTL=yes
11492 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11493 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11494 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011495 fi
11496
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011497 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11498 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11499 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011500 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011502
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011503 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11504 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505
11506cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011507#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011508_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011509
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011510 else
11511 USE_NLS=no
11512 fi
11513 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011514
Theodore Ts'oe1052142006-10-21 21:46:47 -040011515 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11516echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11517 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11518echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011520 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11521echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011522 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11523 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11524 gt_source="external libintl"
11525 else
11526 gt_source="libc"
11527 fi
11528 else
11529 gt_source="included intl directory"
11530 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011531 { echo "$as_me:$LINENO: result: $gt_source" >&5
11532echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533 fi
11534
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011535 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011536
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011537 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11538 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011539 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11540echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11541 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11542echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011544 for element in $INCINTL; do
11545 haveit=
11546 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011547
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011548 acl_save_prefix="$prefix"
11549 prefix="$acl_final_prefix"
11550 acl_save_exec_prefix="$exec_prefix"
11551 exec_prefix="$acl_final_exec_prefix"
11552 eval x=\"$x\"
11553 exec_prefix="$acl_save_exec_prefix"
11554 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011555
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011556 if test "X$x" = "X$element"; then
11557 haveit=yes
11558 break
11559 fi
11560 done
11561 if test -z "$haveit"; then
11562 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11563 fi
11564 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011565
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011566 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011567
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569cat >>confdefs.h <<\_ACEOF
11570#define HAVE_GETTEXT 1
11571_ACEOF
11572
11573
11574cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011575#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011577
11578 fi
11579
11580 POSUB=po
11581 fi
11582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011583
11584 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011585 BUILD_INCLUDED_LIBINTL=yes
11586 fi
11587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588
11589
11590
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011591
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011592 nls_cv_header_intl=
11593 nls_cv_header_libgt=
11594
11595 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011597
11598 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011600
11601 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011602
11603
11604 if test "$USE_INCLUDED_LIBINTL" = yes; then
11605 INTLOBJS="\$(GETTOBJS)"
11606 fi
11607
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011608
11609 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610
11611
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011612
11613 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011614
11615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616
11617
11618
11619
11620
Theodore Ts'oe1052142006-10-21 21:46:47 -040011621{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11622echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11623set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11624if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011625 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011627 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011628SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011629all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011630 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011631_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011632# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011633case `${MAKE-make} -f conftest.make 2>/dev/null` in
11634 *@@@%%%=?*=@@@%%%*)
11635 eval ac_cv_prog_make_${ac_make}_set=yes;;
11636 *)
11637 eval ac_cv_prog_make_${ac_make}_set=no;;
11638esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011639rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011641if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11642 { echo "$as_me:$LINENO: result: yes" >&5
11643echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011644 SET_MAKE=
11645else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011646 { echo "$as_me:$LINENO: result: no" >&5
11647echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011648 SET_MAKE="MAKE=${MAKE-make}"
11649fi
11650
11651# Extract the first word of "ln", so it can be a program name with args.
11652set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011655if test "${ac_cv_path_LN+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011658 case $LN in
11659 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011660 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11661 ;;
11662 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011670 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674done
11675done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011676IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011677
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011678 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11679 ;;
11680esac
11681fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011682LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011683if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011684 { echo "$as_me:$LINENO: result: $LN" >&5
11685echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011687 { echo "$as_me:$LINENO: result: no" >&5
11688echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689fi
11690
Theodore Ts'oe1052142006-10-21 21:46:47 -040011691
11692{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
11693echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011694LN_S=$as_ln_s
11695if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011696 { echo "$as_me:$LINENO: result: yes" >&5
11697echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011698else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011699 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11700echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011701fi
11702
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011703# Extract the first word of "mv", so it can be a program name with args.
11704set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011707if test "${ac_cv_path_MV+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011709else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011710 case $MV in
11711 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011712 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11713 ;;
11714 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011722 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011728IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011729
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11731 ;;
11732esac
11733fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011734MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011735if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011736 { echo "$as_me:$LINENO: result: $MV" >&5
11737echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011738else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739 { echo "$as_me:$LINENO: result: no" >&5
11740echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011741fi
11742
Theodore Ts'oe1052142006-10-21 21:46:47 -040011743
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011744# Extract the first word of "cp", so it can be a program name with args.
11745set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011748if test "${ac_cv_path_CP+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011750else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011751 case $CP in
11752 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11754 ;;
11755 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $PATH
11758do
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
11761 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 break 2
11766 fi
11767done
11768done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011769IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011770
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011771 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11772 ;;
11773esac
11774fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011775CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011776if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011777 { echo "$as_me:$LINENO: result: $CP" >&5
11778echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011779else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011780 { echo "$as_me:$LINENO: result: no" >&5
11781echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011782fi
11783
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011785# Extract the first word of "rm", so it can be a program name with args.
11786set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011789if test "${ac_cv_path_RM+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011791else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011792 case $RM in
11793 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011794 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11795 ;;
11796 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798for as_dir in $PATH
11799do
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11807 fi
11808done
11809done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011810IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011811
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011812 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11813 ;;
11814esac
11815fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011816RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011817if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818 { echo "$as_me:$LINENO: result: $RM" >&5
11819echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011820else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011821 { echo "$as_me:$LINENO: result: no" >&5
11822echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011823fi
11824
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011826# Extract the first word of "chmod", so it can be a program name with args.
11827set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011830if test "${ac_cv_path_CHMOD+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011832else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011833 case $CHMOD in
11834 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011835 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11836 ;;
11837 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849done
11850done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011851IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011852
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011853 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11854 ;;
11855esac
11856fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011858if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011859 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11860echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011861else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011862 { echo "$as_me:$LINENO: result: no" >&5
11863echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011864fi
11865
Theodore Ts'oe1052142006-10-21 21:46:47 -040011866
Theodore Ts'o32237012005-01-17 19:13:39 -050011867for ac_prog in gawk mawk nawk awk
11868do
11869 # Extract the first word of "$ac_prog", so it can be a program name with args.
11870set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011873if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011874 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011875else
Theodore Ts'o32237012005-01-17 19:13:39 -050011876 if test -n "$AWK"; then
11877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11878else
11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880for as_dir in $PATH
11881do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011886 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11889 fi
11890done
11891done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011892IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011893
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011894fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011895fi
11896AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011897if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011898 { echo "$as_me:$LINENO: result: $AWK" >&5
11899echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011900else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901 { echo "$as_me:$LINENO: result: no" >&5
11902echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011903fi
11904
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905
Theodore Ts'o32237012005-01-17 19:13:39 -050011906 test -n "$AWK" && break
11907done
11908
Theodore Ts'oe1052142006-10-21 21:46:47 -040011909{ echo "$as_me:$LINENO: checking for egrep" >&5
11910echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11911if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011914 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11915 then ac_cv_path_EGREP="$GREP -E"
11916 else
11917 # Extract the first word of "egrep" to use in msg output
11918if test -z "$EGREP"; then
11919set dummy egrep; ac_prog_name=$2
11920if test "${ac_cv_path_EGREP+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922else
11923 ac_path_EGREP_found=false
11924# Loop through the user's path and test for each of PROGNAME-LIST
11925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11927do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_prog in egrep; do
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11933 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
11934 # Check for GNU ac_path_EGREP and select it if it is found.
11935 # Check for GNU $ac_path_EGREP
11936case `"$ac_path_EGREP" --version 2>&1` in
11937*GNU*)
11938 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11939*)
11940 ac_count=0
11941 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11942 while :
11943 do
11944 cat "conftest.in" "conftest.in" >"conftest.tmp"
11945 mv "conftest.tmp" "conftest.in"
11946 cp "conftest.in" "conftest.nl"
11947 echo 'EGREP' >> "conftest.nl"
11948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11950 ac_count=`expr $ac_count + 1`
11951 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11952 # Best one so far, save it but keep looking for a better one
11953 ac_cv_path_EGREP="$ac_path_EGREP"
11954 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011955 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011956 # 10*(2^10) chars as input seems more than enough
11957 test $ac_count -gt 10 && break
11958 done
11959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11960esac
11961
11962
11963 $ac_path_EGREP_found && break 3
11964 done
11965done
11966
11967done
11968IFS=$as_save_IFS
11969
11970
Theodore Ts'o32237012005-01-17 19:13:39 -050011971fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011972
11973EGREP="$ac_cv_path_EGREP"
11974if test -z "$EGREP"; then
11975 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11976echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11977 { (exit 1); exit 1; }; }
11978fi
11979
11980else
11981 ac_cv_path_EGREP=$EGREP
11982fi
11983
11984
11985 fi
11986fi
11987{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11988echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11989 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011990
11991
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011992# Extract the first word of "sed", so it can be a program name with args.
11993set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996if test "${ac_cv_path_SED+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011998else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999 case $SED in
12000 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012001 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12002 ;;
12003 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005for as_dir in $PATH
12006do
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12013 break 2
12014 fi
12015done
12016done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012017IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012019 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12020 ;;
12021esac
12022fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012024if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012025 { echo "$as_me:$LINENO: result: $SED" >&5
12026echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012027else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028 { echo "$as_me:$LINENO: result: no" >&5
12029echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012030fi
12031
Theodore Ts'oe1052142006-10-21 21:46:47 -040012032
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012033# Extract the first word of "perl", so it can be a program name with args.
12034set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037if test "${ac_cv_path_PERL+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040 case $PERL in
12041 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012042 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12043 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012044 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12055 fi
12056done
12057done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012060 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12061 ;;
12062esac
12063fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012065if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012066 { echo "$as_me:$LINENO: result: $PERL" >&5
12067echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012068else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012069 { echo "$as_me:$LINENO: result: no" >&5
12070echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012071fi
12072
Theodore Ts'oe1052142006-10-21 21:46:47 -040012073
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012074# Extract the first word of "ldconfig", so it can be a program name with args.
12075set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078if test "${ac_cv_path_LDCONFIG+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081 case $LDCONFIG in
12082 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012083 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12084 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012085 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087for as_dir in $PATH
12088do
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012093 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 break 2
12096 fi
12097done
12098done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012099IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012101 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12102 ;;
12103esac
12104fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012106if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012107 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12108echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012109else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012110 { echo "$as_me:$LINENO: result: no" >&5
12111echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012112fi
12113
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115if test -n "$ac_tool_prefix"; then
12116 # 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 +000012117set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120if test "${ac_cv_prog_AR+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012122else
12123 if test -n "$AR"; then
12124 ac_cv_prog_AR="$AR" # Let the user override the test.
12125else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127for as_dir in $PATH
12128do
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133 ac_cv_prog_AR="${ac_tool_prefix}ar"
12134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 break 2
12136 fi
12137done
12138done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012139IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012141fi
12142fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012144if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145 { echo "$as_me:$LINENO: result: $AR" >&5
12146echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012148 { echo "$as_me:$LINENO: result: no" >&5
12149echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012150fi
12151
Theodore Ts'oe1052142006-10-21 21:46:47 -040012152
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012154if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012156 # Extract the first word of "ar", so it can be a program name with args.
12157set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163 if test -n "$ac_ct_AR"; then
12164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012165else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012173 ac_cv_prog_ac_ct_AR="ar"
12174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12176 fi
12177done
12178done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012179IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012180
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012181fi
12182fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012183ac_ct_AR=$ac_cv_prog_ac_ct_AR
12184if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12186echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012187else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012188 { echo "$as_me:$LINENO: result: no" >&5
12189echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012190fi
12191
Theodore Ts'oe1052142006-10-21 21:46:47 -040012192 if test "x$ac_ct_AR" = x; then
12193 AR="ar"
12194 else
12195 case $cross_compiling:$ac_tool_warned in
12196yes:)
12197{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12198whose name does not start with the host triplet. If you think this
12199configuration is useful to you, please write to autoconf@gnu.org." >&5
12200echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12201whose name does not start with the host triplet. If you think this
12202configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12203ac_tool_warned=yes ;;
12204esac
12205 AR=$ac_ct_AR
12206 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012207else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012209fi
12210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012211if test -n "$ac_tool_prefix"; then
12212 # 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 +000012213set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216if test "${ac_cv_prog_RANLIB+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012218else
12219 if test -n "$RANLIB"; then
12220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12221else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223for as_dir in $PATH
12224do
12225 IFS=$as_save_IFS
12226 test -z "$as_dir" && as_dir=.
12227 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 break 2
12232 fi
12233done
12234done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012235IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012236
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012237fi
12238fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012239RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012240if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241 { echo "$as_me:$LINENO: result: $RANLIB" >&5
12242echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012243else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012244 { echo "$as_me:$LINENO: result: no" >&5
12245echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012246fi
12247
Theodore Ts'oe1052142006-10-21 21:46:47 -040012248
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012252 # Extract the first word of "ranlib", so it can be a program name with args.
12253set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012256if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012258else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259 if test -n "$ac_ct_RANLIB"; then
12260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012261else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263for as_dir in $PATH
12264do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269 ac_cv_prog_ac_ct_RANLIB="ranlib"
12270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273done
12274done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012275IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012277fi
12278fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012279ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12280if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012281 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12282echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012283else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012284 { echo "$as_me:$LINENO: result: no" >&5
12285echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012286fi
12287
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288 if test "x$ac_ct_RANLIB" = x; then
12289 RANLIB=":"
12290 else
12291 case $cross_compiling:$ac_tool_warned in
12292yes:)
12293{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12294whose name does not start with the host triplet. If you think this
12295configuration is useful to you, please write to autoconf@gnu.org." >&5
12296echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12297whose name does not start with the host triplet. If you think this
12298configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12299ac_tool_warned=yes ;;
12300esac
12301 RANLIB=$ac_ct_RANLIB
12302 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012303else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012305fi
12306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012307if test -n "$ac_tool_prefix"; then
12308 # 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 +000012309set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012312if test "${ac_cv_prog_STRIP+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012314else
12315 if test -n "$STRIP"; then
12316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12317else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12328 fi
12329done
12330done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012331IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012332
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012333fi
12334fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012335STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012336if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012337 { echo "$as_me:$LINENO: result: $STRIP" >&5
12338echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012339else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012340 { echo "$as_me:$LINENO: result: no" >&5
12341echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012342fi
12343
Theodore Ts'oe1052142006-10-21 21:46:47 -040012344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012345fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012346if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012347 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012348 # Extract the first word of "strip", so it can be a program name with args.
12349set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012352if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012354else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012355 if test -n "$ac_ct_STRIP"; then
12356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012357else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359for as_dir in $PATH
12360do
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012365 ac_cv_prog_ac_ct_STRIP="strip"
12366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12368 fi
12369done
12370done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012371IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012372
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012373fi
12374fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12376if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12378echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012379else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012380 { echo "$as_me:$LINENO: result: no" >&5
12381echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012382fi
12383
Theodore Ts'oe1052142006-10-21 21:46:47 -040012384 if test "x$ac_ct_STRIP" = x; then
12385 STRIP=":"
12386 else
12387 case $cross_compiling:$ac_tool_warned in
12388yes:)
12389{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12390whose name does not start with the host triplet. If you think this
12391configuration is useful to you, please write to autoconf@gnu.org." >&5
12392echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12393whose name does not start with the host triplet. If you think this
12394configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12395ac_tool_warned=yes ;;
12396esac
12397 STRIP=$ac_ct_STRIP
12398 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012401fi
12402
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012403# Find a good install program. We prefer a C program (faster),
12404# so one script is as good as another. But avoid the broken or
12405# incompatible versions:
12406# SysV /etc/install, /usr/sbin/install
12407# SunOS /usr/etc/install
12408# IRIX /sbin/install
12409# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012410# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012411# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012412# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12413# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012414# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012415# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012416{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12417echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012418if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419if test "${ac_cv_path_install+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012421else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423for as_dir in $PATH
12424do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 # Account for people who put trailing slashes in PATH elements.
12428case $as_dir/ in
12429 ./ | .// | /cC/* | \
12430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12431 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12432 /usr/ucb/* ) ;;
12433 *)
12434 # OSF1 and SCO ODT 3.0 have their own names for install.
12435 # Don't use installbsd from OSF since it installs stuff as root
12436 # by default.
12437 for ac_prog in ginstall scoinst install; do
12438 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012439 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012440 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012442 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012443 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012444 elif test $ac_prog = install &&
12445 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12446 # program-specific install script used by HP pwplus--don't use.
12447 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012448 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012449 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12450 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012451 fi
12452 fi
12453 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454 done
12455 ;;
12456esac
12457done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012458IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012459
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012460
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012461fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012462 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012463 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012464 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012465 # As a last resort, use the slow shell script. Don't cache a
12466 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012467 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040012468 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012469 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012470 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012471fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012472{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12473echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012474
12475# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12476# It thinks the first close brace ends the variable substitution.
12477test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012479test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012480
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012481test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12482
Theodore Ts'o6c133521999-07-03 20:37:03 +000012483# See if we need a separate native compiler.
12484if test $cross_compiling = no; then
12485 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486
Theodore Ts'o6c133521999-07-03 20:37:03 +000012487else
12488 for ac_prog in gcc cc
12489do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012490 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012491set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040012492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012496else
12497 if test -n "$BUILD_CC"; then
12498 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12499else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012502do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012503 IFS=$as_save_IFS
12504 test -z "$as_dir" && as_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012507 ac_cv_prog_BUILD_CC="$ac_prog"
12508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12509 break 2
12510 fi
12511done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012512done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012513IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012515fi
12516fi
12517BUILD_CC=$ac_cv_prog_BUILD_CC
12518if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012519 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12520echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012521else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012522 { echo "$as_me:$LINENO: result: no" >&5
12523echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524fi
12525
Theodore Ts'oe1052142006-10-21 21:46:47 -040012526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527 test -n "$BUILD_CC" && break
12528done
12529
12530fi
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
Theodore Ts'o762c7c62005-04-06 14:44:16 -040012560
Theodore Ts'o106ad962007-04-04 21:26:37 -040012561
12562
12563for 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/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012564do
12565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012572ac_res=`eval echo '${'$as_ac_Header'}'`
12573 { echo "$as_me:$LINENO: result: $ac_res" >&5
12574echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575else
12576 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040012577{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012579cat >conftest.$ac_ext <<_ACEOF
12580/* confdefs.h. */
12581_ACEOF
12582cat confdefs.h >>conftest.$ac_ext
12583cat >>conftest.$ac_ext <<_ACEOF
12584/* end confdefs.h. */
12585$ac_includes_default
12586#include <$ac_header>
12587_ACEOF
12588rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012589if { (ac_try="$ac_compile"
12590case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12603 { (case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606esac
12607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_header_compiler=yes
12623else
12624 echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
Theodore Ts'oe1052142006-10-21 21:46:47 -040012627 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012629
12630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12632echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633
12634# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040012635{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
12643#include <$ac_header>
12644_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012645if { (ac_try="$ac_cpp conftest.$ac_ext"
12646case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } >/dev/null; then
12658 if test -s conftest.err; then
12659 ac_cpp_err=$ac_c_preproc_warn_flag
12660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12661 else
12662 ac_cpp_err=
12663 fi
12664else
12665 ac_cpp_err=yes
12666fi
12667if test -z "$ac_cpp_err"; then
12668 ac_header_preproc=yes
12669else
12670 echo "$as_me: failed program was:" >&5
12671sed 's/^/| /' conftest.$ac_ext >&5
12672
12673 ac_header_preproc=no
12674fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012675
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012676rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012677{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12678echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012679
12680# So? What about this header?
12681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12682 yes:no: )
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12687 ac_header_preproc=yes
12688 ;;
12689 no:yes:* )
12690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012702
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703 ;;
12704esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012705{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709else
12710 eval "$as_ac_Header=\$ac_header_preproc"
12711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012712ac_res=`eval echo '${'$as_ac_Header'}'`
12713 { echo "$as_me:$LINENO: result: $ac_res" >&5
12714echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012715
12716fi
12717if test `eval echo '${'$as_ac_Header'}'` = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12720_ACEOF
12721
12722fi
12723
12724done
12725
12726
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012727
12728for ac_header in sys/disk.h sys/mount.h
12729do
12730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012731{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742
12743#if HAVE_SYS_QUEUE_H
12744#include <sys/queue.h>
12745#endif
12746
12747
12748#include <$ac_header>
12749_ACEOF
12750rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012751if { (ac_try="$ac_compile"
12752case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755esac
12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768esac
12769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 eval "$as_ac_Header=yes"
12785else
12786 echo "$as_me: failed program was:" >&5
12787sed 's/^/| /' conftest.$ac_ext >&5
12788
Theodore Ts'oe1052142006-10-21 21:46:47 -040012789 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012791
12792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012793fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012794ac_res=`eval echo '${'$as_ac_Header'}'`
12795 { echo "$as_me:$LINENO: result: $ac_res" >&5
12796echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012797if test `eval echo '${'$as_ac_Header'}'` = yes; then
12798 cat >>confdefs.h <<_ACEOF
12799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12800_ACEOF
12801
12802fi
12803
12804done
12805
12806
12807for ac_header in net/if.h
12808do
12809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012810{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815 cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821
12822#if HAVE_SYS_TYPES_H
12823#include <sys/types.h>
12824#endif
12825#if HAVE_SYS_SOCKET
12826#include <sys/socket.h>
12827#endif
12828
12829
12830#include <$ac_header>
12831_ACEOF
12832rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012833if { (ac_try="$ac_compile"
12834case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_Header=yes"
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
Theodore Ts'oe1052142006-10-21 21:46:47 -040012871 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012873
12874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012875fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012876ac_res=`eval echo '${'$as_ac_Header'}'`
12877 { echo "$as_me:$LINENO: result: $ac_res" >&5
12878echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012879if test `eval echo '${'$as_ac_Header'}'` = yes; then
12880 cat >>confdefs.h <<_ACEOF
12881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12882_ACEOF
12883
12884fi
12885
12886done
12887
12888
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012889for ac_func in vprintf
12890do
12891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012892{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
12903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12905#define $ac_func innocuous_$ac_func
12906
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012907/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012908 which can conflict with char $ac_func (); below.
12909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12910 <limits.h> exists even on freestanding compilers. */
12911
12912#ifdef __STDC__
12913# include <limits.h>
12914#else
12915# include <assert.h>
12916#endif
12917
12918#undef $ac_func
12919
Theodore Ts'oe1052142006-10-21 21:46:47 -040012920/* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012923#ifdef __cplusplus
12924extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012925#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012927/* The GNU C library defines this for functions which it implements
12928 to always fail with ENOSYS. Some functions are actually named
12929 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012930#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012931choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012932#endif
12933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934int
12935main ()
12936{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012937return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938 ;
12939 return 0;
12940}
12941_ACEOF
12942rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012943if { (ac_try="$ac_link"
12944case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950 ac_status=$?
12951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957 { (case "(($ac_try" in
12958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959 *) ac_try_echo=$ac_try;;
12960esac
12961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012967 { (case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970esac
12971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012978 echo "$as_me: failed program was:" >&5
12979sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012980
Theodore Ts'oe1052142006-10-21 21:46:47 -040012981 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012982fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012983
12984rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012985 conftest$ac_exeext conftest.$ac_ext
12986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012987ac_res=`eval echo '${'$as_ac_var'}'`
12988 { echo "$as_me:$LINENO: result: $ac_res" >&5
12989echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012990if test `eval echo '${'$as_ac_var'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12993_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012994
Theodore Ts'oe1052142006-10-21 21:46:47 -040012995{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12996echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997if test "${ac_cv_func__doprnt+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013000 cat >conftest.$ac_ext <<_ACEOF
13001/* confdefs.h. */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h. */
13006/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13008#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013009
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013010/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013011 which can conflict with char _doprnt (); below.
13012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13013 <limits.h> exists even on freestanding compilers. */
13014
13015#ifdef __STDC__
13016# include <limits.h>
13017#else
13018# include <assert.h>
13019#endif
13020
13021#undef _doprnt
13022
Theodore Ts'oe1052142006-10-21 21:46:47 -040013023/* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013026#ifdef __cplusplus
13027extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013028#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013029char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013030/* The GNU C library defines this for functions which it implements
13031 to always fail with ENOSYS. Some functions are actually named
13032 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013033#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013034choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013035#endif
13036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013037int
13038main ()
13039{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013040return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013041 ;
13042 return 0;
13043}
13044_ACEOF
13045rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013046if { (ac_try="$ac_link"
13047case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063esac
13064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073esac
13074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013081 echo "$as_me: failed program was:" >&5
13082sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013083
Theodore Ts'oe1052142006-10-21 21:46:47 -040013084 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013086
13087rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088 conftest$ac_exeext conftest.$ac_ext
13089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013090{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13091echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013092if test $ac_cv_func__doprnt = yes; then
13093
13094cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013095#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013096_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013097
13098fi
13099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013100fi
13101done
13102
13103
Theodore Ts'oe1052142006-10-21 21:46:47 -040013104{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13105echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013106if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013107 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013108else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013109 cat >conftest.$ac_ext <<_ACEOF
13110/* confdefs.h. */
13111_ACEOF
13112cat confdefs.h >>conftest.$ac_ext
13113cat >>conftest.$ac_ext <<_ACEOF
13114/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013115#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013116
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013117int
13118main ()
13119{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013120static struct dirent ac_aggr;
13121if (ac_aggr.d_reclen)
13122return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013123 ;
13124 return 0;
13125}
13126_ACEOF
13127rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013128if { (ac_try="$ac_compile"
13129case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155esac
13156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013161 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013163 echo "$as_me: failed program was:" >&5
13164sed 's/^/| /' conftest.$ac_ext >&5
13165
Theodore Ts'oe1052142006-10-21 21:46:47 -040013166 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
13172#include <dirent.h>
13173
13174int
13175main ()
13176{
13177static struct dirent ac_aggr;
13178if (sizeof ac_aggr.d_reclen)
13179return 0;
13180 ;
13181 return 0;
13182}
13183_ACEOF
13184rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013185if { (ac_try="$ac_compile"
13186case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189esac
13190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013209 { (case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212esac
13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_member_struct_dirent_d_reclen=yes
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
Theodore Ts'oe1052142006-10-21 21:46:47 -040013223 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013224fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013225
13226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013227fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013228
13229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013230fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013231{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13232echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013233if test $ac_cv_member_struct_dirent_d_reclen = yes; then
13234 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013235#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013236_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013237
13238fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013239
Theodore Ts'oe1052142006-10-21 21:46:47 -040013240{ echo "$as_me:$LINENO: checking for ssize_t" >&5
13241echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013242if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013243 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013244else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013245 cat >conftest.$ac_ext <<_ACEOF
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013251#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013252
Theodore Ts'oe1052142006-10-21 21:46:47 -040013253typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013254int
13255main ()
13256{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013257if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013258 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013259if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013260 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013261 ;
13262 return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013266if { (ac_try="$ac_compile"
13267case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013299 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013300else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013301 echo "$as_me: failed program was:" >&5
13302sed 's/^/| /' conftest.$ac_ext >&5
13303
Theodore Ts'oe1052142006-10-21 21:46:47 -040013304 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013305fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013306
13307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013308fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013309{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13310echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013311if test $ac_cv_type_ssize_t = yes; then
13312 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013313#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013314_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013315
13316fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013317
Theodore Ts'oe1052142006-10-21 21:46:47 -040013318{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13319echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013320if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013321 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013323 cat >conftest.$ac_ext <<_ACEOF
13324/* confdefs.h. */
13325_ACEOF
13326cat confdefs.h >>conftest.$ac_ext
13327cat >>conftest.$ac_ext <<_ACEOF
13328/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013329#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013331int
13332main ()
13333{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013334#ifndef llseek
13335 char *p = (char *) llseek;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013336 return !p;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013337#endif
13338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013339 ;
13340 return 0;
13341}
13342_ACEOF
13343rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013344if { (ac_try="$ac_compile"
13345case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013368 { (case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371esac
13372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013377 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013378else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013379 echo "$as_me: failed program was:" >&5
13380sed 's/^/| /' conftest.$ac_ext >&5
13381
Theodore Ts'oe1052142006-10-21 21:46:47 -040013382 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013384
13385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013387{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13388echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013389if test $ac_cv_have_decl_llseek = yes; then
13390 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013391#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013392_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013393
13394fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013395
Theodore Ts'oe1052142006-10-21 21:46:47 -040013396{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13397echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013398if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013399 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013401 cat >conftest.$ac_ext <<_ACEOF
13402/* confdefs.h. */
13403_ACEOF
13404cat confdefs.h >>conftest.$ac_ext
13405cat >>conftest.$ac_ext <<_ACEOF
13406/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013407#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013408 #define _LARGEFILE64_SOURCE
13409 #include <unistd.h>
13410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411int
13412main ()
13413{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013414#ifndef lseek64
13415 char *p = (char *) lseek64;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013416 return !p;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013417#endif
13418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013419 ;
13420 return 0;
13421}
13422_ACEOF
13423rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013424if { (ac_try="$ac_compile"
13425case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441esac
13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13451esac
13452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013457 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013458else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013459 echo "$as_me: failed program was:" >&5
13460sed 's/^/| /' conftest.$ac_ext >&5
13461
Theodore Ts'oe1052142006-10-21 21:46:47 -040013462 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013463fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013464
13465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013466fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013467{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13468echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013469if test $ac_cv_have_decl_lseek64 = yes; then
13470 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013471#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013472_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013473
13474fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013475
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013476if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013477 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013478 ac_cv_sizeof_short=2
13479 ac_cv_sizeof_int=4
13480 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000013481 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013482 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
13483echo "$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 +000013484fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013485{ echo "$as_me:$LINENO: checking for short" >&5
13486echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013487if test "${ac_cv_type_short+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489else
13490 cat >conftest.$ac_ext <<_ACEOF
13491/* confdefs.h. */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
13495/* end confdefs.h. */
13496$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013497typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498int
13499main ()
13500{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013501if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013502 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013503if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013504 return 0;
13505 ;
13506 return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013510if { (ac_try="$ac_compile"
13511case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514esac
13515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13524 { (case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527esac
13528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013534 { (case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_type_short=yes
13544else
13545 echo "$as_me: failed program was:" >&5
13546sed 's/^/| /' conftest.$ac_ext >&5
13547
Theodore Ts'oe1052142006-10-21 21:46:47 -040013548 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013549fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013550
Theodore Ts'oe1052142006-10-21 21:46:47 -040013551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552fi
13553{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13554echo "${ECHO_T}$ac_cv_type_short" >&6; }
13555
13556{ echo "$as_me:$LINENO: checking size of short" >&5
13557echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013558if test "${ac_cv_sizeof_short+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560else
13561 if test "$ac_cv_type_short" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040013562 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13565 # This bug is HP SR number 8606223364.
13566 if test "$cross_compiling" = yes; then
13567 # Depending upon the size, compute the lo and hi bounds.
13568cat >conftest.$ac_ext <<_ACEOF
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
13574$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013575 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013576int
13577main ()
13578{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013579static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580test_array [0] = 0
13581
13582 ;
13583 return 0;
13584}
13585_ACEOF
13586rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013587if { (ac_try="$ac_compile"
13588case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591esac
13592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13601 { (case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604esac
13605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; } &&
13610 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013611 { (case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614esac
13615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 ac_lo=0 ac_mid=0
13621 while :; do
13622 cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013629 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013630int
13631main ()
13632{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013633static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013634test_array [0] = 0
13635
13636 ;
13637 return 0;
13638}
13639_ACEOF
13640rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013641if { (ac_try="$ac_compile"
13642case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645esac
13646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13658esac
13659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013665 { (case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13668esac
13669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_hi=$ac_mid; break
13675else
13676 echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
Theodore Ts'oe1052142006-10-21 21:46:47 -040013679 ac_lo=`expr $ac_mid + 1`
13680 if test $ac_lo -le $ac_mid; then
13681 ac_lo= ac_hi=
13682 break
13683 fi
13684 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013686
13687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013688 done
13689else
13690 echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
Theodore Ts'oe1052142006-10-21 21:46:47 -040013693 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013694/* confdefs.h. */
13695_ACEOF
13696cat confdefs.h >>conftest.$ac_ext
13697cat >>conftest.$ac_ext <<_ACEOF
13698/* end confdefs.h. */
13699$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013700 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013701int
13702main ()
13703{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013704static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013705test_array [0] = 0
13706
13707 ;
13708 return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013712if { (ac_try="$ac_compile"
13713case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_hi=-1 ac_mid=-1
13746 while :; do
13747 cat >conftest.$ac_ext <<_ACEOF
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
13753$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013754 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013755int
13756main ()
13757{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013758static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013759test_array [0] = 0
13760
13761 ;
13762 return 0;
13763}
13764_ACEOF
13765rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013766if { (ac_try="$ac_compile"
13767case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_lo=$ac_mid; break
13800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804 ac_hi=`expr '(' $ac_mid ')' - 1`
13805 if test $ac_mid -le $ac_hi; then
13806 ac_lo= ac_hi=
13807 break
13808 fi
13809 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013810fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013811
13812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813 done
13814else
13815 echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
Theodore Ts'oe1052142006-10-21 21:46:47 -040013818 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013819fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013820
13821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013823
13824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013825# Binary search between lo and hi bounds.
13826while test "x$ac_lo" != "x$ac_hi"; do
13827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13828 cat >conftest.$ac_ext <<_ACEOF
13829/* confdefs.h. */
13830_ACEOF
13831cat confdefs.h >>conftest.$ac_ext
13832cat >>conftest.$ac_ext <<_ACEOF
13833/* end confdefs.h. */
13834$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013835 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013836int
13837main ()
13838{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013839static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840test_array [0] = 0
13841
13842 ;
13843 return 0;
13844}
13845_ACEOF
13846rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013847if { (ac_try="$ac_compile"
13848case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851esac
13852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040013860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864esac
13865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874esac
13875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 ac_hi=$ac_mid
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
Theodore Ts'oe1052142006-10-21 21:46:47 -040013885 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887
13888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013889done
13890case $ac_lo in
13891?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013892'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013893See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013894echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013896 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013897esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013898else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013899 cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013906 typedef short ac__type_sizeof_;
13907static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13908static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013909#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013910#include <stdlib.h>
13911int
13912main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013913{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013914
13915 FILE *f = fopen ("conftest.val", "w");
13916 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013917 return 1;
13918 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013919 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013920 long int i = longval ();
13921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13922 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013923 fprintf (f, "%ld\n", i);
13924 }
13925 else
13926 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013927 unsigned long int i = ulongval ();
13928 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13929 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013930 fprintf (f, "%lu\n", i);
13931 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013932 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013933
13934 ;
13935 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013936}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013937_ACEOF
13938rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013939if { (ac_try="$ac_link"
13940case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13943esac
13944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952esac
13953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013959else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013960 echo "$as_me: program exited with status $ac_status" >&5
13961echo "$as_me: failed program was:" >&5
13962sed 's/^/| /' conftest.$ac_ext >&5
13963
13964( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040013965{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013966See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013967echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013969 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013972fi
13973rm -f conftest.val
13974else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013975 ac_cv_sizeof_short=0
13976fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13979echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013980cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013981#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013982_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013983
13984
Theodore Ts'oe1052142006-10-21 21:46:47 -040013985{ echo "$as_me:$LINENO: checking for int" >&5
13986echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013987if test "${ac_cv_type_int+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989else
13990 cat >conftest.$ac_ext <<_ACEOF
13991/* confdefs.h. */
13992_ACEOF
13993cat confdefs.h >>conftest.$ac_ext
13994cat >>conftest.$ac_ext <<_ACEOF
13995/* end confdefs.h. */
13996$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013997typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998int
13999main ()
14000{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014001if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014002 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014003if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004 return 0;
14005 ;
14006 return 0;
14007}
14008_ACEOF
14009rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014010if { (ac_try="$ac_compile"
14011case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14014esac
14015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014017 ac_status=$?
14018 grep -v '^ *+' conftest.er1 >conftest.err
14019 rm -f conftest.er1
14020 cat conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14024 { (case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027esac
14028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014034 { (case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037esac
14038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_type_int=yes
14044else
14045 echo "$as_me: failed program was:" >&5
14046sed 's/^/| /' conftest.$ac_ext >&5
14047
Theodore Ts'oe1052142006-10-21 21:46:47 -040014048 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014049fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014050
Theodore Ts'oe1052142006-10-21 21:46:47 -040014051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052fi
14053{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14054echo "${ECHO_T}$ac_cv_type_int" >&6; }
14055
14056{ echo "$as_me:$LINENO: checking size of int" >&5
14057echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058if test "${ac_cv_sizeof_int+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14060else
14061 if test "$ac_cv_type_int" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014062 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14065 # This bug is HP SR number 8606223364.
14066 if test "$cross_compiling" = yes; then
14067 # Depending upon the size, compute the lo and hi bounds.
14068cat >conftest.$ac_ext <<_ACEOF
14069/* confdefs.h. */
14070_ACEOF
14071cat confdefs.h >>conftest.$ac_ext
14072cat >>conftest.$ac_ext <<_ACEOF
14073/* end confdefs.h. */
14074$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014075 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076int
14077main ()
14078{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014079static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080test_array [0] = 0
14081
14082 ;
14083 return 0;
14084}
14085_ACEOF
14086rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014087if { (ac_try="$ac_compile"
14088case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14091esac
14092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104esac
14105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114esac
14115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_lo=0 ac_mid=0
14121 while :; do
14122 cat >conftest.$ac_ext <<_ACEOF
14123/* confdefs.h. */
14124_ACEOF
14125cat confdefs.h >>conftest.$ac_ext
14126cat >>conftest.$ac_ext <<_ACEOF
14127/* end confdefs.h. */
14128$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014129 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014130int
14131main ()
14132{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014133static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014134test_array [0] = 0
14135
14136 ;
14137 return 0;
14138}
14139_ACEOF
14140rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014141if { (ac_try="$ac_compile"
14142case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145esac
14146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14155 { (case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158esac
14159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014165 { (case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168esac
14169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_hi=$ac_mid; break
14175else
14176 echo "$as_me: failed program was:" >&5
14177sed 's/^/| /' conftest.$ac_ext >&5
14178
Theodore Ts'oe1052142006-10-21 21:46:47 -040014179 ac_lo=`expr $ac_mid + 1`
14180 if test $ac_lo -le $ac_mid; then
14181 ac_lo= ac_hi=
14182 break
14183 fi
14184 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014185fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014186
14187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014188 done
14189else
14190 echo "$as_me: failed program was:" >&5
14191sed 's/^/| /' conftest.$ac_ext >&5
14192
Theodore Ts'oe1052142006-10-21 21:46:47 -040014193 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014194/* confdefs.h. */
14195_ACEOF
14196cat confdefs.h >>conftest.$ac_ext
14197cat >>conftest.$ac_ext <<_ACEOF
14198/* end confdefs.h. */
14199$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014200 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014201int
14202main ()
14203{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014204static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014205test_array [0] = 0
14206
14207 ;
14208 return 0;
14209}
14210_ACEOF
14211rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014212if { (ac_try="$ac_compile"
14213case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216esac
14217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_hi=-1 ac_mid=-1
14246 while :; do
14247 cat >conftest.$ac_ext <<_ACEOF
14248/* confdefs.h. */
14249_ACEOF
14250cat confdefs.h >>conftest.$ac_ext
14251cat >>conftest.$ac_ext <<_ACEOF
14252/* end confdefs.h. */
14253$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014254 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014255int
14256main ()
14257{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014258static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014259test_array [0] = 0
14260
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014266if { (ac_try="$ac_compile"
14267case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270esac
14271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14280 { (case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14283esac
14284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_lo=$ac_mid; break
14300else
14301 echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
Theodore Ts'oe1052142006-10-21 21:46:47 -040014304 ac_hi=`expr '(' $ac_mid ')' - 1`
14305 if test $ac_mid -le $ac_hi; then
14306 ac_lo= ac_hi=
14307 break
14308 fi
14309 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014311
14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313 done
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
Theodore Ts'oe1052142006-10-21 21:46:47 -040014318 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014319fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014320
14321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014323
14324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014325# Binary search between lo and hi bounds.
14326while test "x$ac_lo" != "x$ac_hi"; do
14327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14328 cat >conftest.$ac_ext <<_ACEOF
14329/* confdefs.h. */
14330_ACEOF
14331cat confdefs.h >>conftest.$ac_ext
14332cat >>conftest.$ac_ext <<_ACEOF
14333/* end confdefs.h. */
14334$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014335 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014336int
14337main ()
14338{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014339static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014340test_array [0] = 0
14341
14342 ;
14343 return 0;
14344}
14345_ACEOF
14346rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014347if { (ac_try="$ac_compile"
14348case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14351esac
14352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364esac
14365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_hi=$ac_mid
14381else
14382 echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
14384
Theodore Ts'oe1052142006-10-21 21:46:47 -040014385 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014387
14388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014389done
14390case $ac_lo in
14391?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014392'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014393See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014394echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014396 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014397esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014399 cat >conftest.$ac_ext <<_ACEOF
14400/* confdefs.h. */
14401_ACEOF
14402cat confdefs.h >>conftest.$ac_ext
14403cat >>conftest.$ac_ext <<_ACEOF
14404/* end confdefs.h. */
14405$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014406 typedef int ac__type_sizeof_;
14407static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14408static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014409#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410#include <stdlib.h>
14411int
14412main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014413{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014414
14415 FILE *f = fopen ("conftest.val", "w");
14416 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417 return 1;
14418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014419 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014420 long int i = longval ();
14421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14422 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014423 fprintf (f, "%ld\n", i);
14424 }
14425 else
14426 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014427 unsigned long int i = ulongval ();
14428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14429 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014430 fprintf (f, "%lu\n", i);
14431 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014432 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014433
14434 ;
14435 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014436}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014437_ACEOF
14438rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014439if { (ac_try="$ac_link"
14440case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443esac
14444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452esac
14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460 echo "$as_me: program exited with status $ac_status" >&5
14461echo "$as_me: failed program was:" >&5
14462sed 's/^/| /' conftest.$ac_ext >&5
14463
14464( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040014465{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014467echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014469 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472fi
14473rm -f conftest.val
14474else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014475 ac_cv_sizeof_int=0
14476fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014478{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14479echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014481#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014482_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014483
14484
Theodore Ts'oe1052142006-10-21 21:46:47 -040014485{ echo "$as_me:$LINENO: checking for long" >&5
14486echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487if test "${ac_cv_type_long+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489else
14490 cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014497typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014498int
14499main ()
14500{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014501if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014502 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014503if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014504 return 0;
14505 ;
14506 return 0;
14507}
14508_ACEOF
14509rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014510if { (ac_try="$ac_compile"
14511case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14514esac
14515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_cv_type_long=yes
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
Theodore Ts'oe1052142006-10-21 21:46:47 -040014548 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014549fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014550
Theodore Ts'oe1052142006-10-21 21:46:47 -040014551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552fi
14553{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14554echo "${ECHO_T}$ac_cv_type_long" >&6; }
14555
14556{ echo "$as_me:$LINENO: checking size of long" >&5
14557echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014558if test "${ac_cv_sizeof_long+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561 if test "$ac_cv_type_long" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014562 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14565 # This bug is HP SR number 8606223364.
14566 if test "$cross_compiling" = yes; then
14567 # Depending upon the size, compute the lo and hi bounds.
14568cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014575 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014576int
14577main ()
14578{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014579static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014580test_array [0] = 0
14581
14582 ;
14583 return 0;
14584}
14585_ACEOF
14586rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014587if { (ac_try="$ac_compile"
14588case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14591esac
14592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014594 ac_status=$?
14595 grep -v '^ *+' conftest.er1 >conftest.err
14596 rm -f conftest.er1
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604esac
14605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_lo=0 ac_mid=0
14621 while :; do
14622 cat >conftest.$ac_ext <<_ACEOF
14623/* confdefs.h. */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
14627/* end confdefs.h. */
14628$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014629 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014630int
14631main ()
14632{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014633static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634test_array [0] = 0
14635
14636 ;
14637 return 0;
14638}
14639_ACEOF
14640rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014641if { (ac_try="$ac_compile"
14642case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645esac
14646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14655 { (case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14658esac
14659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014665 { (case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14668esac
14669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_hi=$ac_mid; break
14675else
14676 echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
Theodore Ts'oe1052142006-10-21 21:46:47 -040014679 ac_lo=`expr $ac_mid + 1`
14680 if test $ac_lo -le $ac_mid; then
14681 ac_lo= ac_hi=
14682 break
14683 fi
14684 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686
14687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014688 done
14689else
14690 echo "$as_me: failed program was:" >&5
14691sed 's/^/| /' conftest.$ac_ext >&5
14692
Theodore Ts'oe1052142006-10-21 21:46:47 -040014693 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014700 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014701int
14702main ()
14703{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014704static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014705test_array [0] = 0
14706
14707 ;
14708 return 0;
14709}
14710_ACEOF
14711rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014712if { (ac_try="$ac_compile"
14713case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716esac
14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729esac
14730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739esac
14740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_hi=-1 ac_mid=-1
14746 while :; do
14747 cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
14753$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014754 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014755int
14756main ()
14757{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014758static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014759test_array [0] = 0
14760
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014766if { (ac_try="$ac_compile"
14767case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14770esac
14771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014773 ac_status=$?
14774 grep -v '^ *+' conftest.er1 >conftest.err
14775 rm -f conftest.er1
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14780 { (case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783esac
14784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014790 { (case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793esac
14794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14799 ac_lo=$ac_mid; break
14800else
14801 echo "$as_me: failed program was:" >&5
14802sed 's/^/| /' conftest.$ac_ext >&5
14803
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804 ac_hi=`expr '(' $ac_mid ')' - 1`
14805 if test $ac_mid -le $ac_hi; then
14806 ac_lo= ac_hi=
14807 break
14808 fi
14809 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014810fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014811
14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014813 done
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
Theodore Ts'oe1052142006-10-21 21:46:47 -040014818 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014819fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014820
14821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823
14824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014825# Binary search between lo and hi bounds.
14826while test "x$ac_lo" != "x$ac_hi"; do
14827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14828 cat >conftest.$ac_ext <<_ACEOF
14829/* confdefs.h. */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
14833/* end confdefs.h. */
14834$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014835 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014836int
14837main ()
14838{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014839static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014840test_array [0] = 0
14841
14842 ;
14843 return 0;
14844}
14845_ACEOF
14846rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014847if { (ac_try="$ac_compile"
14848case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851esac
14852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14861 { (case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014871 { (case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874esac
14875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 ac_hi=$ac_mid
14881else
14882 echo "$as_me: failed program was:" >&5
14883sed 's/^/| /' conftest.$ac_ext >&5
14884
Theodore Ts'oe1052142006-10-21 21:46:47 -040014885 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014887
14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014889done
14890case $ac_lo in
14891?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014892'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014893See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014894echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014896 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014897esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014898else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014899 cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
14905$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014906 typedef long ac__type_sizeof_;
14907static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14908static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014909#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014910#include <stdlib.h>
14911int
14912main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014913{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014914
14915 FILE *f = fopen ("conftest.val", "w");
14916 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014917 return 1;
14918 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014919 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014920 long int i = longval ();
14921 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14922 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014923 fprintf (f, "%ld\n", i);
14924 }
14925 else
14926 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014927 unsigned long int i = ulongval ();
14928 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14929 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014930 fprintf (f, "%lu\n", i);
14931 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014932 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014933
14934 ;
14935 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014936}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014937_ACEOF
14938rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014939if { (ac_try="$ac_link"
14940case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14943esac
14944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014949 { (case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952esac
14953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014959else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014960 echo "$as_me: program exited with status $ac_status" >&5
14961echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
14963
14964( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040014965{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014966See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014967echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014968See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014969 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972fi
14973rm -f conftest.val
14974else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014975 ac_cv_sizeof_long=0
14976fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014978{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14979echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014980cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014981#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014982_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014983
14984
Theodore Ts'oe1052142006-10-21 21:46:47 -040014985{ echo "$as_me:$LINENO: checking for long long" >&5
14986echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987if test "${ac_cv_type_long_long+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 cat >conftest.$ac_ext <<_ACEOF
14991/* confdefs.h. */
14992_ACEOF
14993cat confdefs.h >>conftest.$ac_ext
14994cat >>conftest.$ac_ext <<_ACEOF
14995/* end confdefs.h. */
14996$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014997typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014998int
14999main ()
15000{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015001if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015002 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015003if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015004 return 0;
15005 ;
15006 return 0;
15007}
15008_ACEOF
15009rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015010if { (ac_try="$ac_compile"
15011case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15014esac
15015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15027esac
15028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015034 { (case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
15038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_type_long_long=yes
15044else
15045 echo "$as_me: failed program was:" >&5
15046sed 's/^/| /' conftest.$ac_ext >&5
15047
Theodore Ts'oe1052142006-10-21 21:46:47 -040015048 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015050
Theodore Ts'oe1052142006-10-21 21:46:47 -040015051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052fi
15053{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15054echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15055
15056{ echo "$as_me:$LINENO: checking size of long long" >&5
15057echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015058if test "${ac_cv_sizeof_long_long+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060else
15061 if test "$ac_cv_type_long_long" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015062 # The cast to long int works around a bug in the HP C Compiler
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15065 # This bug is HP SR number 8606223364.
15066 if test "$cross_compiling" = yes; then
15067 # Depending upon the size, compute the lo and hi bounds.
15068cat >conftest.$ac_ext <<_ACEOF
15069/* confdefs.h. */
15070_ACEOF
15071cat confdefs.h >>conftest.$ac_ext
15072cat >>conftest.$ac_ext <<_ACEOF
15073/* end confdefs.h. */
15074$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015075 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015076int
15077main ()
15078{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015079static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015080test_array [0] = 0
15081
15082 ;
15083 return 0;
15084}
15085_ACEOF
15086rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015087if { (ac_try="$ac_compile"
15088case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091esac
15092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015111 { (case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114esac
15115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_lo=0 ac_mid=0
15121 while :; do
15122 cat >conftest.$ac_ext <<_ACEOF
15123/* confdefs.h. */
15124_ACEOF
15125cat confdefs.h >>conftest.$ac_ext
15126cat >>conftest.$ac_ext <<_ACEOF
15127/* end confdefs.h. */
15128$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015129 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015130int
15131main ()
15132{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015133static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015134test_array [0] = 0
15135
15136 ;
15137 return 0;
15138}
15139_ACEOF
15140rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015141if { (ac_try="$ac_compile"
15142case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15145esac
15146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015148 ac_status=$?
15149 grep -v '^ *+' conftest.er1 >conftest.err
15150 rm -f conftest.er1
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
15159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; } &&
15164 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15168esac
15169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_hi=$ac_mid; break
15175else
15176 echo "$as_me: failed program was:" >&5
15177sed 's/^/| /' conftest.$ac_ext >&5
15178
Theodore Ts'oe1052142006-10-21 21:46:47 -040015179 ac_lo=`expr $ac_mid + 1`
15180 if test $ac_lo -le $ac_mid; then
15181 ac_lo= ac_hi=
15182 break
15183 fi
15184 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015185fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015186
15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015188 done
15189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
Theodore Ts'oe1052142006-10-21 21:46:47 -040015193 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015200 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015201int
15202main ()
15203{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015204static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015205test_array [0] = 0
15206
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015212if { (ac_try="$ac_compile"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
15217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229esac
15230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239esac
15240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_hi=-1 ac_mid=-1
15246 while :; do
15247 cat >conftest.$ac_ext <<_ACEOF
15248/* confdefs.h. */
15249_ACEOF
15250cat confdefs.h >>conftest.$ac_ext
15251cat >>conftest.$ac_ext <<_ACEOF
15252/* end confdefs.h. */
15253$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015254 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015255int
15256main ()
15257{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015258static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015259test_array [0] = 0
15260
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015266if { (ac_try="$ac_compile"
15267case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15270esac
15271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015273 ac_status=$?
15274 grep -v '^ *+' conftest.er1 >conftest.err
15275 rm -f conftest.er1
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15280 { (case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15283esac
15284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; } &&
15289 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015290 { (case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15293esac
15294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_lo=$ac_mid; break
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
Theodore Ts'oe1052142006-10-21 21:46:47 -040015304 ac_hi=`expr '(' $ac_mid ')' - 1`
15305 if test $ac_mid -le $ac_hi; then
15306 ac_lo= ac_hi=
15307 break
15308 fi
15309 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015311
15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015313 done
15314else
15315 echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
Theodore Ts'oe1052142006-10-21 21:46:47 -040015318 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015320
15321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015323
15324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015325# Binary search between lo and hi bounds.
15326while test "x$ac_lo" != "x$ac_hi"; do
15327 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15328 cat >conftest.$ac_ext <<_ACEOF
15329/* confdefs.h. */
15330_ACEOF
15331cat confdefs.h >>conftest.$ac_ext
15332cat >>conftest.$ac_ext <<_ACEOF
15333/* end confdefs.h. */
15334$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015335 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015336int
15337main ()
15338{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015339static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015340test_array [0] = 0
15341
15342 ;
15343 return 0;
15344}
15345_ACEOF
15346rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015347if { (ac_try="$ac_compile"
15348case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015354 ac_status=$?
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364esac
15365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015371 { (case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 ac_hi=$ac_mid
15381else
15382 echo "$as_me: failed program was:" >&5
15383sed 's/^/| /' conftest.$ac_ext >&5
15384
Theodore Ts'oe1052142006-10-21 21:46:47 -040015385 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015387
15388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015389done
15390case $ac_lo in
15391?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015392'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015393See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015394echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015395See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015396 { (exit 77); exit 77; }; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015397esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015399 cat >conftest.$ac_ext <<_ACEOF
15400/* confdefs.h. */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
15404/* end confdefs.h. */
15405$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015406 typedef long long ac__type_sizeof_;
15407static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15408static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015409#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015410#include <stdlib.h>
15411int
15412main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015413{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015414
15415 FILE *f = fopen ("conftest.val", "w");
15416 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015417 return 1;
15418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015419 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015420 long int i = longval ();
15421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15422 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015423 fprintf (f, "%ld\n", i);
15424 }
15425 else
15426 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015427 unsigned long int i = ulongval ();
15428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15429 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015430 fprintf (f, "%lu\n", i);
15431 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015432 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015433
15434 ;
15435 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015436}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015437_ACEOF
15438rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015439if { (ac_try="$ac_link"
15440case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443esac
15444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015449 { (case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452esac
15453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015460 echo "$as_me: program exited with status $ac_status" >&5
15461echo "$as_me: failed program was:" >&5
15462sed 's/^/| /' conftest.$ac_ext >&5
15463
15464( exit $ac_status )
Theodore Ts'oe1052142006-10-21 21:46:47 -040015465{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015466See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015467echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015468See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015469 { (exit 77); exit 77; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015472fi
15473rm -f conftest.val
15474else
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015475 ac_cv_sizeof_long_long=0
15476fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015478{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15479echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015480cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015481#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015482_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015483
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015484
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015485SIZEOF_SHORT=$ac_cv_sizeof_short
15486SIZEOF_INT=$ac_cv_sizeof_int
15487SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015488SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
15489
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015490
15491
15492
Theodore Ts'oe1052142006-10-21 21:46:47 -040015493{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15494echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495if test "${ac_cv_c_bigendian+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015497else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015498 # See if sys/param.h defines the BYTE_ORDER macro.
15499cat >conftest.$ac_ext <<_ACEOF
15500/* confdefs.h. */
15501_ACEOF
15502cat confdefs.h >>conftest.$ac_ext
15503cat >>conftest.$ac_ext <<_ACEOF
15504/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015505#include <sys/types.h>
15506#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015508int
15509main ()
15510{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015511#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15512 bogus endian macros
15513#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015514
15515 ;
15516 return 0;
15517}
15518_ACEOF
15519rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015520if { (ac_try="$ac_compile"
15521case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524esac
15525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015527 ac_status=$?
15528 grep -v '^ *+' conftest.er1 >conftest.err
15529 rm -f conftest.er1
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15537esac
15538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015544 { (case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547esac
15548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015553 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015554cat >conftest.$ac_ext <<_ACEOF
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015560#include <sys/types.h>
15561#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015563int
15564main ()
15565{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015566#if BYTE_ORDER != BIG_ENDIAN
15567 not big endian
15568#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015569
15570 ;
15571 return 0;
15572}
15573_ACEOF
15574rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015575if { (ac_try="$ac_compile"
15576case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592esac
15593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602esac
15603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015608 ac_cv_c_bigendian=yes
15609else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015610 echo "$as_me: failed program was:" >&5
15611sed 's/^/| /' conftest.$ac_ext >&5
15612
Theodore Ts'oe1052142006-10-21 21:46:47 -040015613 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015614fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015615
15616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015617else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015618 echo "$as_me: failed program was:" >&5
15619sed 's/^/| /' conftest.$ac_ext >&5
15620
Theodore Ts'oe1052142006-10-21 21:46:47 -040015621 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015622if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015623 # try to guess the endianness by grepping values into an object file
15624 ac_cv_c_bigendian=unknown
15625 cat >conftest.$ac_ext <<_ACEOF
15626/* confdefs.h. */
15627_ACEOF
15628cat confdefs.h >>conftest.$ac_ext
15629cat >>conftest.$ac_ext <<_ACEOF
15630/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015631short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15632short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015633void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015634short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15635short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015636void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15637int
15638main ()
15639{
15640 _ascii (); _ebcdic ();
15641 ;
15642 return 0;
15643}
15644_ACEOF
15645rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015646if { (ac_try="$ac_compile"
15647case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15650esac
15651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015653 ac_status=$?
15654 grep -v '^ *+' conftest.er1 >conftest.err
15655 rm -f conftest.er1
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660 { (case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663esac
15664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15680 ac_cv_c_bigendian=yes
15681fi
15682if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15683 if test "$ac_cv_c_bigendian" = unknown; then
15684 ac_cv_c_bigendian=no
15685 else
15686 # finding both strings is unlikely to happen, but who knows?
15687 ac_cv_c_bigendian=unknown
15688 fi
15689fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015690else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015691 echo "$as_me: failed program was:" >&5
15692sed 's/^/| /' conftest.$ac_ext >&5
15693
Theodore Ts'oe1052142006-10-21 21:46:47 -040015694
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015696
15697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015698else
15699 cat >conftest.$ac_ext <<_ACEOF
15700/* confdefs.h. */
15701_ACEOF
15702cat confdefs.h >>conftest.$ac_ext
15703cat >>conftest.$ac_ext <<_ACEOF
15704/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015705$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015706int
15707main ()
15708{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015709
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015710 /* Are we little or big endian? From Harbison&Steele. */
15711 union
15712 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015713 long int l;
15714 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015715 } u;
15716 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015717 return u.c[sizeof (long int) - 1] == 1;
15718
15719 ;
15720 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015721}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015722_ACEOF
15723rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015724if { (ac_try="$ac_link"
15725case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728esac
15729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737esac
15738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015743 ac_cv_c_bigendian=no
15744else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015745 echo "$as_me: program exited with status $ac_status" >&5
15746echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015748
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015749( exit $ac_status )
15750ac_cv_c_bigendian=yes
15751fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015753fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015754
15755
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015756fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015757
15758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015759fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015760{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15761echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015762case $ac_cv_c_bigendian in
15763 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015765cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015766#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015767_ACEOF
15768 ;;
15769 no)
15770 ;;
15771 *)
15772 { { echo "$as_me:$LINENO: error: unknown endianness
15773presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15774echo "$as_me: error: unknown endianness
15775presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15776 { (exit 1); exit 1; }; } ;;
15777esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015778
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015779/bin/sh $ac_aux_dir/parse-types.sh
15780ASM_TYPES_HEADER=./asm_types.h
15781
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015782
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015783for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015784do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015790 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015792ac_res=`eval echo '${'$as_ac_Header'}'`
15793 { echo "$as_me:$LINENO: result: $ac_res" >&5
15794echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015795else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015796 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040015797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799cat >conftest.$ac_ext <<_ACEOF
15800/* confdefs.h. */
15801_ACEOF
15802cat confdefs.h >>conftest.$ac_ext
15803cat >>conftest.$ac_ext <<_ACEOF
15804/* end confdefs.h. */
15805$ac_includes_default
15806#include <$ac_header>
15807_ACEOF
15808rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015809if { (ac_try="$ac_compile"
15810case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15813esac
15814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15823 { (case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015833 { (case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_header_compiler=yes
15843else
15844 echo "$as_me: failed program was:" >&5
15845sed 's/^/| /' conftest.$ac_ext >&5
15846
Theodore Ts'oe1052142006-10-21 21:46:47 -040015847 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015849
15850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15852echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015853
15854# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040015855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015857cat >conftest.$ac_ext <<_ACEOF
15858/* confdefs.h. */
15859_ACEOF
15860cat confdefs.h >>conftest.$ac_ext
15861cat >>conftest.$ac_ext <<_ACEOF
15862/* end confdefs.h. */
15863#include <$ac_header>
15864_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015865if { (ac_try="$ac_cpp conftest.$ac_ext"
15866case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15869esac
15870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } >/dev/null; then
15878 if test -s conftest.err; then
15879 ac_cpp_err=$ac_c_preproc_warn_flag
15880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15881 else
15882 ac_cpp_err=
15883 fi
15884else
15885 ac_cpp_err=yes
15886fi
15887if test -z "$ac_cpp_err"; then
15888 ac_header_preproc=yes
15889else
15890 echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_header_preproc=no
15894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015895
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015896rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15898echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015899
15900# So? What about this header?
15901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15902 yes:no: )
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15907 ac_header_preproc=yes
15908 ;;
15909 no:yes:* )
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015923 ;;
15924esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929else
15930 eval "$as_ac_Header=\$ac_header_preproc"
15931fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015932ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015935
15936fi
15937if test `eval echo '${'$as_ac_Header'}'` = yes; then
15938 cat >>confdefs.h <<_ACEOF
15939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15940_ACEOF
15941
15942fi
15943
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015944done
15945
Theodore Ts'oe1052142006-10-21 21:46:47 -040015946{ echo "$as_me:$LINENO: checking for intptr_t" >&5
15947echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015948if test "${ac_cv_type_intptr_t+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015950else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015951 cat >conftest.$ac_ext <<_ACEOF
15952/* confdefs.h. */
15953_ACEOF
15954cat confdefs.h >>conftest.$ac_ext
15955cat >>conftest.$ac_ext <<_ACEOF
15956/* end confdefs.h. */
15957$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040015958typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015959int
15960main ()
15961{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015962if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015963 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015964if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015965 return 0;
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015971if { (ac_try="$ac_compile"
15972case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15975esac
15976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15985 { (case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015995 { (case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
15999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040016004 ac_cv_type_intptr_t=yes
16005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016006 echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040016008
Theodore Ts'oe1052142006-10-21 21:46:47 -040016009 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040016010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016011
16012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040016013fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016014{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16015echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016016if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016017
16018cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050016019#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016020_ACEOF
16021
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050016022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016023fi
16024
Theodore Ts'oe1052142006-10-21 21:46:47 -040016025{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
16026echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016027if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029else
16030 cat >conftest.$ac_ext <<_ACEOF
16031/* confdefs.h. */
16032_ACEOF
16033cat confdefs.h >>conftest.$ac_ext
16034cat >>conftest.$ac_ext <<_ACEOF
16035/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016036#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016037int
16038main ()
16039{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016040struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016041 ;
16042 return 0;
16043}
16044_ACEOF
16045rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016046if { (ac_try="$ac_compile"
16047case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016079 e2fsprogs_cv_struct_st_flags=yes
16080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016081 echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
Theodore Ts'oe1052142006-10-21 21:46:47 -040016084 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016085fi
16086
Theodore Ts'oe1052142006-10-21 21:46:47 -040016087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088fi
16089
16090{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
16091echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016092if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016093 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
16094echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016095 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016098 cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016104#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016105int
16106main ()
16107{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016108struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016109 ;
16110 return 0;
16111}
16112_ACEOF
16113rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016114if { (ac_try="$ac_compile"
16115case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16118esac
16119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16128 { (case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16131esac
16132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016138 { (case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141esac
16142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; }; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016147 e2fsprogs_cv_struct_st_flags_immut=yes
16148else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016149 echo "$as_me: failed program was:" >&5
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
Theodore Ts'oe1052142006-10-21 21:46:47 -040016152 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016153fi
16154
Theodore Ts'oe1052142006-10-21 21:46:47 -040016155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156fi
16157
16158 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
16159echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016160 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016161 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016162#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016163_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016164
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000016165 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016167{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16168echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016169if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016170 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016171else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016172 cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016178#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016179 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016181int
16182main ()
16183{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016184static struct sockaddr ac_aggr;
16185if (ac_aggr.sa_len)
16186return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016187 ;
16188 return 0;
16189}
16190_ACEOF
16191rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016192if { (ac_try="$ac_compile"
16193case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16196esac
16197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16198 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016199 ac_status=$?
16200 grep -v '^ *+' conftest.er1 >conftest.err
16201 rm -f conftest.er1
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16206 { (case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209esac
16210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; } &&
16215 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016216 { (case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219esac
16220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016225 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016226else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016227 echo "$as_me: failed program was:" >&5
16228sed 's/^/| /' conftest.$ac_ext >&5
16229
Theodore Ts'oe1052142006-10-21 21:46:47 -040016230 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236#include <sys/types.h>
16237 #include <sys/socket.h>
16238
16239int
16240main ()
16241{
16242static struct sockaddr ac_aggr;
16243if (sizeof ac_aggr.sa_len)
16244return 0;
16245 ;
16246 return 0;
16247}
16248_ACEOF
16249rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016250if { (ac_try="$ac_compile"
16251case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267esac
16268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest.$ac_objext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_member_struct_sockaddr_sa_len=yes
16284else
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
Theodore Ts'oe1052142006-10-21 21:46:47 -040016288 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016289fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016290
16291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016292fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016293
16294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016296{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16297echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016298if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016299
16300cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016301#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016302_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050016303
16304fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
Theodore Ts'o6c65d252005-01-19 12:59:48 -050016324
Theodore Ts'o762c7c62005-04-06 14:44:16 -040016325
16326
Andreas Dilger9b7d8112005-07-09 22:06:59 -050016327
Theodore Ts'oae2868a2006-10-22 00:18:49 -040016328
Theodore Ts'o106ad962007-04-04 21:26:37 -040016329
16330
16331
16332for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016333do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016335{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016338 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016339else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016340 cat >conftest.$ac_ext <<_ACEOF
16341/* confdefs.h. */
16342_ACEOF
16343cat confdefs.h >>conftest.$ac_ext
16344cat >>conftest.$ac_ext <<_ACEOF
16345/* end confdefs.h. */
16346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16348#define $ac_func innocuous_$ac_func
16349
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016350/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016351 which can conflict with char $ac_func (); below.
16352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16353 <limits.h> exists even on freestanding compilers. */
16354
16355#ifdef __STDC__
16356# include <limits.h>
16357#else
16358# include <assert.h>
16359#endif
16360
16361#undef $ac_func
16362
Theodore Ts'oe1052142006-10-21 21:46:47 -040016363/* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016366#ifdef __cplusplus
16367extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016368#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016369char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016370/* The GNU C library defines this for functions which it implements
16371 to always fail with ENOSYS. Some functions are actually named
16372 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040016373#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016374choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016375#endif
16376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016377int
16378main ()
16379{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016380return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016381 ;
16382 return 0;
16383}
16384_ACEOF
16385rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016386if { (ac_try="$ac_link"
16387case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390esac
16391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016420else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016421 echo "$as_me: failed program was:" >&5
16422sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016423
Theodore Ts'oe1052142006-10-21 21:46:47 -040016424 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016426
16427rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016428 conftest$ac_exeext conftest.$ac_ext
16429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016430ac_res=`eval echo '${'$as_ac_var'}'`
16431 { echo "$as_me:$LINENO: result: $ac_res" >&5
16432echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016433if test `eval echo '${'$as_ac_var'}'` = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16436_ACEOF
16437
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016438fi
16439done
16440
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016441SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040016442{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16443echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016444if test "${ac_cv_lib_socket_socket+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016447 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016448LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016449cat >conftest.$ac_ext <<_ACEOF
16450/* confdefs.h. */
16451_ACEOF
16452cat confdefs.h >>conftest.$ac_ext
16453cat >>conftest.$ac_ext <<_ACEOF
16454/* end confdefs.h. */
16455
Theodore Ts'oe1052142006-10-21 21:46:47 -040016456/* Override any GCC internal prototype to avoid an error.
16457 Use char because int might match the return type of a GCC
16458 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016459#ifdef __cplusplus
16460extern "C"
16461#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016462char socket ();
16463int
16464main ()
16465{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016466return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016472if { (ac_try="$ac_link"
16473case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476esac
16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489esac
16490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499esac
16500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016506else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016507 echo "$as_me: failed program was:" >&5
16508sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016509
Theodore Ts'oe1052142006-10-21 21:46:47 -040016510 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016512
16513rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016514 conftest$ac_exeext conftest.$ac_ext
16515LIBS=$ac_check_lib_save_LIBS
16516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016517{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16518echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016519if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016520 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016521fi
16522
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016523
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016524DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040016525{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16526echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016527if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016529else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016530 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016531LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016532cat >conftest.$ac_ext <<_ACEOF
16533/* confdefs.h. */
16534_ACEOF
16535cat confdefs.h >>conftest.$ac_ext
16536cat >>conftest.$ac_ext <<_ACEOF
16537/* end confdefs.h. */
16538
Theodore Ts'oe1052142006-10-21 21:46:47 -040016539/* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016542#ifdef __cplusplus
16543extern "C"
16544#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016545char dlopen ();
16546int
16547main ()
16548{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016549return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016550 ;
16551 return 0;
16552}
16553_ACEOF
16554rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016555if { (ac_try="$ac_link"
16556case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559esac
16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572esac
16573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016579 { (case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016589else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016590 echo "$as_me: failed program was:" >&5
16591sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016592
Theodore Ts'oe1052142006-10-21 21:46:47 -040016593 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016595
16596rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016597 conftest$ac_exeext conftest.$ac_ext
16598LIBS=$ac_check_lib_save_LIBS
16599fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016600{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16601echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016602if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016603 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016604cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016605#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016606_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016607
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016608fi
16609
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016610
Theodore Ts'oe1052142006-10-21 21:46:47 -040016611{ echo "$as_me:$LINENO: checking for optreset" >&5
16612echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016613if test "${ac_cv_have_optreset+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016616 cat >conftest.$ac_ext <<_ACEOF
16617/* confdefs.h. */
16618_ACEOF
16619cat confdefs.h >>conftest.$ac_ext
16620cat >>conftest.$ac_ext <<_ACEOF
16621/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016622#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016623
16624_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016626 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016627 ac_cv_have_optreset=yes
16628else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016629 ac_cv_have_optreset=no
16630fi
16631rm -f conftest*
16632
16633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016634{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16635echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016636if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016637 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016638#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016639_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016640
16641fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016642{ echo "$as_me:$LINENO: checking for unified diff option" >&5
16643echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016644if diff -u $0 $0 >& /dev/null ; then
16645 UNI_DIFF_OPTS=-u
16646else
16647 UNI_DIFF_OPTS=-c
16648fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016649{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16650echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016651
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016652case "$host_os" in
16653linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016654 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016655#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016656_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016657
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016658 ;;
16659esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016660LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016661CYGWIN_CMT="#"
16662UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016663case "$host_os" in
16664linux*)
16665 LINUX_CMT=
16666 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040016667cygwin)
16668 CYGWIN_CMT=
16669 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016670 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016671esac
16672
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016673
16674
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016675case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016676linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016677 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16678 root_prefix="";
16679 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016680 fi
16681 ;;
16682esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016683case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016684linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016685 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016686 prefix="/usr";
16687 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040016688 if test "$mandir" = '${prefix}/man' ; then
16689 echo "...and mandir defaults to /usr/share/man"
16690 mandir=/usr/share/man
16691 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016692 fi
16693;;
16694esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016695if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000016696 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016697 root_prefix="$ac_default_prefix"
16698 else
16699 root_prefix="$prefix"
16700 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040016701 root_bindir=$bindir
16702 root_sbindir=$sbindir
16703 root_libdir=$libdir
16704 root_sysconfdir=$sysconfdir
16705else
16706 root_bindir='${root_prefix}/bin'
16707 root_sbindir='${root_prefix}/sbin'
16708 root_libdir='${root_prefix}/lib'
16709 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016710fi
16711
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016712
16713
16714
16715
Theodore Ts'oe1052142006-10-21 21:46:47 -040016716{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16717echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016718if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000016720else
16721 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016722cat >conftest.$ac_ext <<_ACEOF
16723/* confdefs.h. */
16724_ACEOF
16725cat confdefs.h >>conftest.$ac_ext
16726cat >>conftest.$ac_ext <<_ACEOF
16727/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000016728#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016729int
16730main ()
16731{
Theodore Ts'oae851481997-04-29 18:13:24 +000016732fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016733 ;
16734 return 0;
16735}
16736_ACEOF
16737rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016738if { (ac_try="$ac_link"
16739case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000016771 ac_cv_e2fsprogs_use_static=yes
16772else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016773 echo "$as_me: failed program was:" >&5
16774sed 's/^/| /' conftest.$ac_ext >&5
16775
Theodore Ts'oe1052142006-10-21 21:46:47 -040016776 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000016777fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016778
16779rm -f core conftest.err conftest.$ac_objext \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016780 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000016781LDFLAGS=$SAVE_LDFLAGS
16782fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016783
Theodore Ts'odefde781999-01-04 07:39:19 +000016784case "$host_os" in
16785solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016786 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000016787;;
16788esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016789{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16790echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000016791LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000016792if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016793 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000016794fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016795
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016796case "$host_os" in
16797darwin*)
16798 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016799 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016800#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016801_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016802
16803 ;;
16804esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016805SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16806ET_DIR=`cd ${srcdir}/lib/et; pwd`
16807
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016808
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016809if test "$cross_compiling" = yes ; then
16810 DO_TEST_SUITE=
16811else
16812 DO_TEST_SUITE=check
16813fi
16814
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040016815INTL_FLAGS=
16816if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16817 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16818fi
16819
Theodore Ts'odd947da2005-11-09 18:37:07 -040016820if test $cross_compiling = no; then
16821 BUILD_CFLAGS="$CFLAGS"
16822 BUILD_LDFLAGS="$LDFLAGS"
16823else
16824 BUILD_CFLAGS=
16825 BUILD_LDFLAGS=
16826fi
16827
16828
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016829test -d lib || mkdir lib
16830test -d include || mkdir include
16831test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000016832test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050016833for i in MCONFIG Makefile e2fsprogs.spec \
16834 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040016835 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16836 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016837 lib/uuid/Makefile lib/uuid/uuid_types.h \
16838 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050016839 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16840 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050016841 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016842 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16843 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16844 if test -d `dirname ${srcdir}/$i` ; then
16845 outlist="$outlist $i"
16846 fi
16847done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016848ac_config_files="$ac_config_files $outlist"
16849
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016850cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016851# This file is a shell script that caches the results of configure
16852# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016853# scripts and configure runs, see configure's option --config-cache.
16854# It is not useful on other systems. If it contains results you don't
16855# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016856#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016857# config.status only pays attention to the cache file if you give it
16858# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016859#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016860# `ac_cv_env_foo' variables (set or unset) will be overridden when
16861# loading this file, other *unset* `ac_cv_foo' will be assigned the
16862# following values.
16863
16864_ACEOF
16865
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016866# The following way of writing the cache mishandles newlines in values,
16867# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016868# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016869# Ultrix sh set writes to stderr and can't be redirected directly,
16870# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016871(
16872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16873 eval ac_val=\$$ac_var
16874 case $ac_val in #(
16875 *${as_nl}*)
16876 case $ac_var in #(
16877 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16878echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16879 esac
16880 case $ac_var in #(
16881 _ | IFS | as_nl) ;; #(
16882 *) $as_unset $ac_var ;;
16883 esac ;;
16884 esac
16885 done
16886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016887 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16889 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016890 # `set' does not quote correctly, so add quotes (double-quote
16891 # substitution turns \\\\ into \\, and sed turns \\ into \).
16892 sed -n \
16893 "s/'/'\\\\''/g;
16894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040016895 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016896 *)
16897 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016899 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016900 esac |
16901 sort
16902) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016903 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016904 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016905 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016906 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16908 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040016909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16910 :end' >>confcache
16911if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16912 if test -w "$cache_file"; then
16913 test "x$cache_file" != "x/dev/null" &&
16914 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16915echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016916 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016917 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040016918 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16919echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016920 fi
16921fi
16922rm -f confcache
16923
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016924test "x$prefix" = xNONE && prefix=$ac_default_prefix
16925# Let make expand exec_prefix.
16926test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16927
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016928# Transform confdefs.h into DEFS.
16929# Protect against shell expansion while executing Makefile rules.
16930# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016931#
16932# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040016933# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016934# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016935ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016936t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016937:clear
16938s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016939t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016940s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016941t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016942b any
16943:quote
16944s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16945s/\[/\\&/g
16946s/\]/\\&/g
16947s/\$/$$/g
16948H
16949:any
16950${
16951 g
16952 s/^\n//
16953 s/\n/ /g
16954 p
16955}
16956'
16957DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016958
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016960ac_libobjs=
16961ac_ltlibobjs=
16962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16963 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16965 ac_i=`echo "$ac_i" | sed "$ac_script"`
16966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16967 # will be set to the directory where LIBOBJS objects are built.
16968 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16969 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016970done
16971LIBOBJS=$ac_libobjs
16972
16973LTLIBOBJS=$ac_ltlibobjs
16974
16975
16976
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016977: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016978ac_clean_files_save=$ac_clean_files
16979ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16980{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16981echo "$as_me: creating $CONFIG_STATUS" >&6;}
16982cat >$CONFIG_STATUS <<_ACEOF
16983#! $SHELL
16984# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016985# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016986# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016987# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016988
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016989debug=false
16990ac_cs_recheck=false
16991ac_cs_silent=false
16992SHELL=\${CONFIG_SHELL-$SHELL}
16993_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016994
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016995cat >>$CONFIG_STATUS <<\_ACEOF
16996## --------------------- ##
16997## M4sh Initialization. ##
16998## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017000# Be Bourne compatible
17001if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17002 emulate sh
17003 NULLCMD=:
17004 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17005 # is contrary to our usage. Disable this feature.
17006 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017007 setopt NO_GLOB_SUBST
17008else
17009 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017011BIN_SH=xpg4; export BIN_SH # for Tru64
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017012DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017013
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017014
Theodore Ts'oe1052142006-10-21 21:46:47 -040017015# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017016# Avoid depending upon Character Ranges.
17017as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17018as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17019as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17020as_cr_digits='0123456789'
17021as_cr_alnum=$as_cr_Letters$as_cr_digits
17022
17023# The user is always right.
17024if test "${PATH_SEPARATOR+set}" != set; then
17025 echo "#! /bin/sh" >conf$$.sh
17026 echo "exit 0" >>conf$$.sh
17027 chmod +x conf$$.sh
17028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17029 PATH_SEPARATOR=';'
17030 else
17031 PATH_SEPARATOR=:
17032 fi
17033 rm -f conf$$.sh
17034fi
17035
Theodore Ts'oe1052142006-10-21 21:46:47 -040017036# Support unset when possible.
17037if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17038 as_unset=unset
17039else
17040 as_unset=false
17041fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017042
Theodore Ts'oe1052142006-10-21 21:46:47 -040017043
17044# IFS
17045# We need space, tab and new line, in precisely that order. Quoting is
17046# there to prevent editors from complaining about space-tab.
17047# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17048# splitting by setting IFS to empty value.)
17049as_nl='
17050'
17051IFS=" "" $as_nl"
17052
17053# Find who we are. Look in the path if we contain no directory separator.
17054case $0 in
17055 *[\\/]* ) as_myself=$0 ;;
17056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017057for as_dir in $PATH
17058do
17059 IFS=$as_save_IFS
17060 test -z "$as_dir" && as_dir=.
17061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17062done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017063IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017064
Theodore Ts'oe1052142006-10-21 21:46:47 -040017065 ;;
17066esac
17067# We did not find ourselves, most probably we were run as `sh COMMAND'
17068# in which case we are not to be found in the path.
17069if test "x$as_myself" = x; then
17070 as_myself=$0
17071fi
17072if test ! -f "$as_myself"; then
17073 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17074 { (exit 1); exit 1; }
17075fi
17076
17077# Work around bugs in pre-3.0 UWIN ksh.
17078for as_var in ENV MAIL MAILPATH
17079do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17080done
17081PS1='$ '
17082PS2='> '
17083PS4='+ '
17084
17085# NLS nuisances.
17086for as_var in \
17087 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17088 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17089 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017090do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017091 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17092 eval $as_var=C; export $as_var
17093 else
17094 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17095 fi
17096done
17097
17098# Required to use basename.
17099if expr a : '\(a\)' >/dev/null 2>&1 &&
17100 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17101 as_expr=expr
17102else
17103 as_expr=false
17104fi
17105
17106if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17107 as_basename=basename
17108else
17109 as_basename=false
17110fi
17111
17112
17113# Name of the executable.
17114as_me=`$as_basename -- "$0" ||
17115$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17116 X"$0" : 'X\(//\)$' \| \
17117 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17118echo X/"$0" |
17119 sed '/^.*\/\([^/][^/]*\)\/*$/{
17120 s//\1/
17121 q
17122 }
17123 /^X\/\(\/\/\)$/{
17124 s//\1/
17125 q
17126 }
17127 /^X\/\(\/\).*/{
17128 s//\1/
17129 q
17130 }
17131 s/.*/./; q'`
17132
17133# CDPATH.
17134$as_unset CDPATH
17135
17136
17137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017138 as_lineno_1=$LINENO
17139 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017140 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017141 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017143 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17144 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040017145 # line-number line after each line using $LINENO; the second 'sed'
17146 # does the real work. The second script uses 'N' to pair each
17147 # line-number line with the line containing $LINENO, and appends
17148 # trailing '-' during substitution so that $LINENO is not a special
17149 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040017151 # scripts with optimization help from Paolo Bonzini. Blame Lee
17152 # E. McMahon (1931-1989) for sed's syntax. :-)
17153 sed -n '
17154 p
17155 /[$]LINENO/=
17156 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017157 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040017158 s/[$]LINENO.*/&-/
17159 t lineno
17160 b
17161 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017162 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040017163 :loop
17164 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017165 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040017166 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017167 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017168 chmod +x "$as_me.lineno" ||
17169 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017170 { (exit 1); exit 1; }; }
17171
17172 # Don't try to exec as it changes $[0], causing all sort of problems
17173 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040017174 # original and so on. Autoconf is especially sensitive to this).
17175 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017176 # Exit status is that of the last command.
17177 exit
17178}
17179
17180
Theodore Ts'oe1052142006-10-21 21:46:47 -040017181if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17182 as_dirname=dirname
17183else
17184 as_dirname=false
17185fi
17186
17187ECHO_C= ECHO_N= ECHO_T=
17188case `echo -n x` in
17189-n*)
17190 case `echo 'x\c'` in
17191 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17192 *) ECHO_C='\c';;
17193 esac;;
17194*)
17195 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017196esac
17197
Theodore Ts'oe1052142006-10-21 21:46:47 -040017198if expr a : '\(a\)' >/dev/null 2>&1 &&
17199 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017200 as_expr=expr
17201else
17202 as_expr=false
17203fi
17204
17205rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040017206if test -d conf$$.dir; then
17207 rm -f conf$$.dir/conf$$.file
17208else
17209 rm -f conf$$.dir
17210 mkdir conf$$.dir
17211fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017212echo >conf$$.file
17213if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017214 as_ln_s='ln -s'
17215 # ... but there are two gotchas:
17216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17218 # In both cases, we have to default to `cp -p'.
17219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017220 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017221elif ln conf$$.file conf$$ 2>/dev/null; then
17222 as_ln_s=ln
17223else
17224 as_ln_s='cp -p'
17225fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017226rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17227rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017228
17229if mkdir -p . 2>/dev/null; then
17230 as_mkdir_p=:
17231else
17232 test -d ./-p && rmdir ./-p
17233 as_mkdir_p=false
17234fi
17235
Theodore Ts'oe1052142006-10-21 21:46:47 -040017236# Find out whether ``test -x'' works. Don't use a zero-byte file, as
17237# systems may use methods other than mode bits to determine executability.
17238cat >conf$$.file <<_ASEOF
17239#! /bin/sh
17240exit 0
17241_ASEOF
17242chmod +x conf$$.file
17243if test -x conf$$.file >/dev/null 2>&1; then
17244 as_executable_p="test -x"
17245else
17246 as_executable_p=:
17247fi
17248rm -f conf$$.file
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017249
17250# Sed expression to map a string onto a valid CPP name.
17251as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17252
17253# Sed expression to map a string onto a valid variable name.
17254as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17255
17256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017257exec 6>&1
17258
Theodore Ts'oe1052142006-10-21 21:46:47 -040017259# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017260# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040017261# values after options handling.
17262ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017263This file was extended by $as_me, which was
Theodore Ts'oe1052142006-10-21 21:46:47 -040017264generated by GNU Autoconf 2.60. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017265
17266 CONFIG_FILES = $CONFIG_FILES
17267 CONFIG_HEADERS = $CONFIG_HEADERS
17268 CONFIG_LINKS = $CONFIG_LINKS
17269 CONFIG_COMMANDS = $CONFIG_COMMANDS
17270 $ $0 $@
17271
Theodore Ts'oe1052142006-10-21 21:46:47 -040017272on `(hostname || uname -n) 2>/dev/null | sed 1q`
17273"
17274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017275_ACEOF
17276
Theodore Ts'oe1052142006-10-21 21:46:47 -040017277cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017278# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017279config_files="$ac_config_files"
17280config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017281
Theodore Ts'oe1052142006-10-21 21:46:47 -040017282_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017283
17284cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017285ac_cs_usage="\
17286\`$as_me' instantiates files from templates according to the
17287current configuration.
17288
17289Usage: $0 [OPTIONS] [FILE]...
17290
17291 -h, --help print this help, then exit
17292 -V, --version print version number, then exit
17293 -q, --quiet do not print progress messages
17294 -d, --debug don't remove temporary files
17295 --recheck update $as_me by reconfiguring in the same conditions
17296 --file=FILE[:TEMPLATE]
17297 instantiate the configuration file FILE
17298
17299Configuration files:
17300$config_files
17301
17302Configuration commands:
17303$config_commands
17304
17305Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017306
Theodore Ts'oe1052142006-10-21 21:46:47 -040017307_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017308cat >>$CONFIG_STATUS <<_ACEOF
17309ac_cs_version="\\
17310config.status
Theodore Ts'oe1052142006-10-21 21:46:47 -040017311configured by $0, generated by GNU Autoconf 2.60,
17312 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017313
Theodore Ts'oe1052142006-10-21 21:46:47 -040017314Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017315This config.status script is free software; the Free Software Foundation
17316gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040017317
17318ac_pwd='$ac_pwd'
17319srcdir='$srcdir'
17320INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017321_ACEOF
17322
17323cat >>$CONFIG_STATUS <<\_ACEOF
17324# If no file are specified by the user, then we need to provide default
17325# value. By we need to know if files were specified by the user.
17326ac_need_defaults=:
17327while test $# != 0
17328do
17329 case $1 in
17330 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040017331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017333 ac_shift=:
17334 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017335 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017336 ac_option=$1
17337 ac_optarg=$2
17338 ac_shift=shift
17339 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017340 esac
17341
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017342 case $ac_option in
17343 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17345 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017346 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17347 echo "$ac_cs_version"; exit ;;
17348 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017349 debug=: ;;
17350 --file | --fil | --fi | --f )
17351 $ac_shift
17352 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17353 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017354 --he | --h | --help | --hel | -h )
17355 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17358 ac_cs_silent=: ;;
17359
17360 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017361 -*) { echo "$as_me: error: unrecognized option: $1
17362Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017363 { (exit 1); exit 1; }; } ;;
17364
Theodore Ts'oe1052142006-10-21 21:46:47 -040017365 *) ac_config_targets="$ac_config_targets $1"
17366 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017367
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017368 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017369 shift
17370done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017372ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017374if $ac_cs_silent; then
17375 exec 6>/dev/null
17376 ac_configure_extra_args="$ac_configure_extra_args --silent"
17377fi
17378
17379_ACEOF
17380cat >>$CONFIG_STATUS <<_ACEOF
17381if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017382 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17383 CONFIG_SHELL=$SHELL
17384 export CONFIG_SHELL
17385 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017386fi
17387
17388_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017389cat >>$CONFIG_STATUS <<\_ACEOF
17390exec 5>>config.log
17391{
17392 echo
17393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17394## Running $as_me. ##
17395_ASBOX
17396 echo "$ac_log"
17397} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017398
Theodore Ts'oe1052142006-10-21 21:46:47 -040017399_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017400cat >>$CONFIG_STATUS <<_ACEOF
17401#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017402# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017403#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017404# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017405 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017406 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017407 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017408 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17409 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017410
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017412_ACEOF
17413
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017414cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017415
17416# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017417for ac_config_target in $ac_config_targets
17418do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017419 case $ac_config_target in
17420 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17421 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17422
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017423 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17424echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17425 { (exit 1); exit 1; }; };;
17426 esac
17427done
17428
Theodore Ts'oe1052142006-10-21 21:46:47 -040017429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017430# If the user did not use the arguments to specify the items to instantiate,
17431# then the envvar interface is used. Set only those that are not.
17432# We use the long form for the default assignment because of an extremely
17433# bizarre bug on SunOS 4.1.3.
17434if $ac_need_defaults; then
17435 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17437fi
17438
17439# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040017440# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017441# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017442# Hook for its removal unless debugging.
17443# Note that there is a small window in which the directory will not be cleaned:
17444# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017445$debug ||
17446{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017447 tmp=
17448 trap 'exit_status=$?
17449 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17450' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017451 trap '{ (exit 1); exit 1; }' 1 2 13 15
17452}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017453# Create a (secure) tmp directory for tmp files.
17454
17455{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017457 test -n "$tmp" && test -d "$tmp"
17458} ||
17459{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017460 tmp=./conf$$-$RANDOM
17461 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017462} ||
17463{
17464 echo "$me: cannot create a temporary directory in ." >&2
17465 { (exit 1); exit 1; }
17466}
17467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017468#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017469# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017470#
17471
17472# No need to generate the scripts if there are no CONFIG_FILES.
17473# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040017474if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017475
17476_ACEOF
17477
Theodore Ts'oe1052142006-10-21 21:46:47 -040017478# Create sed commands to just substitute file output variables.
17479
17480# Remaining file output variables are in a fragment that also has non-file
17481# output varibles.
17482
17483
17484
17485ac_delim='%!_!# '
17486for ac_last_try in false false false false false :; do
17487 cat >conf$$subs.sed <<_ACEOF
17488SHELL!$SHELL$ac_delim
17489PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17490PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17491PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17492PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17493PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17494PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17495exec_prefix!$exec_prefix$ac_delim
17496prefix!$prefix$ac_delim
17497program_transform_name!$program_transform_name$ac_delim
17498bindir!$bindir$ac_delim
17499sbindir!$sbindir$ac_delim
17500libexecdir!$libexecdir$ac_delim
17501datarootdir!$datarootdir$ac_delim
17502datadir!$datadir$ac_delim
17503sysconfdir!$sysconfdir$ac_delim
17504sharedstatedir!$sharedstatedir$ac_delim
17505localstatedir!$localstatedir$ac_delim
17506includedir!$includedir$ac_delim
17507oldincludedir!$oldincludedir$ac_delim
17508docdir!$docdir$ac_delim
17509infodir!$infodir$ac_delim
17510htmldir!$htmldir$ac_delim
17511dvidir!$dvidir$ac_delim
17512pdfdir!$pdfdir$ac_delim
17513psdir!$psdir$ac_delim
17514libdir!$libdir$ac_delim
17515localedir!$localedir$ac_delim
17516mandir!$mandir$ac_delim
17517DEFS!$DEFS$ac_delim
17518ECHO_C!$ECHO_C$ac_delim
17519ECHO_N!$ECHO_N$ac_delim
17520ECHO_T!$ECHO_T$ac_delim
17521LIBS!$LIBS$ac_delim
17522build_alias!$build_alias$ac_delim
17523host_alias!$host_alias$ac_delim
17524target_alias!$target_alias$ac_delim
17525E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
17526E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
17527E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
17528E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050017529E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040017530build!$build$ac_delim
17531build_cpu!$build_cpu$ac_delim
17532build_vendor!$build_vendor$ac_delim
17533build_os!$build_os$ac_delim
17534host!$host$ac_delim
17535host_cpu!$host_cpu$ac_delim
17536host_vendor!$host_vendor$ac_delim
17537host_os!$host_os$ac_delim
17538CC!$CC$ac_delim
17539CFLAGS!$CFLAGS$ac_delim
17540LDFLAGS!$LDFLAGS$ac_delim
17541CPPFLAGS!$CPPFLAGS$ac_delim
17542ac_ct_CC!$ac_ct_CC$ac_delim
17543EXEEXT!$EXEEXT$ac_delim
17544OBJEXT!$OBJEXT$ac_delim
17545LD!$LD$ac_delim
17546CPP!$CPP$ac_delim
17547GREP!$GREP$ac_delim
17548EGREP!$EGREP$ac_delim
17549LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
17550MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
17551HTREE_CMT!$HTREE_CMT$ac_delim
17552ELF_CMT!$ELF_CMT$ac_delim
17553BSDLIB_CMT!$BSDLIB_CMT$ac_delim
17554PROFILE_CMT!$PROFILE_CMT$ac_delim
17555CHECKER_CMT!$CHECKER_CMT$ac_delim
17556LIB_EXT!$LIB_EXT$ac_delim
17557STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
17558PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
17559SWAPFS_CMT!$SWAPFS_CMT$ac_delim
17560DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
17561IMAGER_CMT!$IMAGER_CMT$ac_delim
17562RESIZER_CMT!$RESIZER_CMT$ac_delim
17563E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040017564_ACEOF
17565
17566 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
17567 break
17568 elif $ac_last_try; then
17569 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17570echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17571 { (exit 1); exit 1; }; }
17572 else
17573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017574 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017575done
17576
17577ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17578if test -n "$ac_eof"; then
17579 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17580 ac_eof=`expr $ac_eof + 1`
17581fi
17582
17583cat >>$CONFIG_STATUS <<_ACEOF
17584cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17585/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17586/^[ ]*@MCONFIG@[ ]*$/{
17587r $MCONFIG
17588d
17589}
17590/^[ ]*@MAKEFILE_ELF@[ ]*$/{
17591r $MAKEFILE_ELF
17592d
17593}
17594/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
17595r $MAKEFILE_BSDLIB
17596d
17597}
17598/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
17599r $MAKEFILE_PROFILE
17600d
17601}
17602/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
17603r $MAKEFILE_CHECKER
17604d
17605}
17606/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
17607r $MAKEFILE_LIBRARY
17608d
17609}
17610/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
17611r $ASM_TYPES_HEADER
17612d
17613}
17614_ACEOF
17615sed '
17616s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17617s/^/s,@/; s/!/@,|#_!!_#|/
17618:n
17619t n
17620s/'"$ac_delim"'$/,g/; t
17621s/$/\\/; p
17622N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17623' >>$CONFIG_STATUS <conf$$subs.sed
17624rm -f conf$$subs.sed
17625cat >>$CONFIG_STATUS <<_ACEOF
17626CEOF$ac_eof
17627_ACEOF
17628
17629
17630ac_delim='%!_!# '
17631for ac_last_try in false false false false false :; do
17632 cat >conf$$subs.sed <<_ACEOF
Andreas Dilger927566a2006-11-12 19:41:25 -050017633FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040017634FSCK_MAN!$FSCK_MAN$ac_delim
17635E2INITRD_PROG!$E2INITRD_PROG$ac_delim
17636E2INITRD_MAN!$E2INITRD_MAN$ac_delim
17637DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
17638DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
17639DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
17640STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
17641GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
17642PACKAGE!$PACKAGE$ac_delim
17643VERSION!$VERSION$ac_delim
17644SET_MAKE!$SET_MAKE$ac_delim
17645INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17646INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17647INSTALL_DATA!$INSTALL_DATA$ac_delim
17648MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17649USE_NLS!$USE_NLS$ac_delim
17650MSGFMT!$MSGFMT$ac_delim
17651GMSGFMT!$GMSGFMT$ac_delim
17652XGETTEXT!$XGETTEXT$ac_delim
17653MSGMERGE!$MSGMERGE$ac_delim
17654RANLIB!$RANLIB$ac_delim
17655ALLOCA!$ALLOCA$ac_delim
17656GLIBC21!$GLIBC21$ac_delim
17657HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17658HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17659HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17660HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17661LIBICONV!$LIBICONV$ac_delim
17662LTLIBICONV!$LTLIBICONV$ac_delim
17663INTLBISON!$INTLBISON$ac_delim
17664BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17665USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17666CATOBJEXT!$CATOBJEXT$ac_delim
17667DATADIRNAME!$DATADIRNAME$ac_delim
17668INSTOBJEXT!$INSTOBJEXT$ac_delim
17669GENCAT!$GENCAT$ac_delim
17670INTLOBJS!$INTLOBJS$ac_delim
17671INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17672INTLLIBS!$INTLLIBS$ac_delim
17673LIBINTL!$LIBINTL$ac_delim
17674LTLIBINTL!$LTLIBINTL$ac_delim
17675POSUB!$POSUB$ac_delim
17676BINARY_TYPE!$BINARY_TYPE$ac_delim
17677LN!$LN$ac_delim
17678LN_S!$LN_S$ac_delim
17679MV!$MV$ac_delim
17680CP!$CP$ac_delim
17681RM!$RM$ac_delim
17682CHMOD!$CHMOD$ac_delim
17683AWK!$AWK$ac_delim
17684SED!$SED$ac_delim
17685PERL!$PERL$ac_delim
17686LDCONFIG!$LDCONFIG$ac_delim
17687AR!$AR$ac_delim
17688STRIP!$STRIP$ac_delim
17689BUILD_CC!$BUILD_CC$ac_delim
17690SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
17691SIZEOF_INT!$SIZEOF_INT$ac_delim
17692SIZEOF_LONG!$SIZEOF_LONG$ac_delim
17693SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
17694SOCKET_LIB!$SOCKET_LIB$ac_delim
17695DLOPEN_LIB!$DLOPEN_LIB$ac_delim
17696UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
17697LINUX_CMT!$LINUX_CMT$ac_delim
17698CYGWIN_CMT!$CYGWIN_CMT$ac_delim
17699UNIX_CMT!$UNIX_CMT$ac_delim
17700root_prefix!$root_prefix$ac_delim
17701root_bindir!$root_bindir$ac_delim
17702root_sbindir!$root_sbindir$ac_delim
17703root_libdir!$root_libdir$ac_delim
17704root_sysconfdir!$root_sysconfdir$ac_delim
17705LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
17706SS_DIR!$SS_DIR$ac_delim
17707ET_DIR!$ET_DIR$ac_delim
17708DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
17709INTL_FLAGS!$INTL_FLAGS$ac_delim
17710BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
17711BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
17712LIBOBJS!$LIBOBJS$ac_delim
17713LTLIBOBJS!$LTLIBOBJS$ac_delim
17714_ACEOF
17715
Andreas Dilger927566a2006-11-12 19:41:25 -050017716 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017717 break
17718 elif $ac_last_try; then
17719 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17720echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17721 { (exit 1); exit 1; }; }
17722 else
17723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17724 fi
17725done
17726
17727ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17728if test -n "$ac_eof"; then
17729 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17730 ac_eof=`expr $ac_eof + 1`
17731fi
17732
17733cat >>$CONFIG_STATUS <<_ACEOF
17734cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17735/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17736_ACEOF
17737sed '
17738s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17739s/^/s,@/; s/!/@,|#_!!_#|/
17740:n
17741t n
17742s/'"$ac_delim"'$/,g/; t
17743s/$/\\/; p
17744N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17745' >>$CONFIG_STATUS <conf$$subs.sed
17746rm -f conf$$subs.sed
17747cat >>$CONFIG_STATUS <<_ACEOF
17748:end
17749s/|#_!!_#|//g
17750CEOF$ac_eof
17751_ACEOF
17752
17753
17754# VPATH may cause trouble with some makes, so we remove $(srcdir),
17755# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17756# trailing colons and then remove the whole line if VPATH becomes empty
17757# (actually we leave an empty line to preserve line numbers).
17758if test "x$srcdir" = x.; then
17759 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17760s/:*\$(srcdir):*/:/
17761s/:*\${srcdir}:*/:/
17762s/:*@srcdir@:*/:/
17763s/^\([^=]*=[ ]*\):*/\1/
17764s/:*$//
17765s/^[^=]*=[ ]*$//
17766}'
17767fi
17768
17769cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017770fi # test -n "$CONFIG_FILES"
17771
Theodore Ts'oe1052142006-10-21 21:46:47 -040017772
17773for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
17774do
17775 case $ac_tag in
17776 :[FHLC]) ac_mode=$ac_tag; continue;;
17777 esac
17778 case $ac_mode$ac_tag in
17779 :[FHL]*:*);;
17780 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17781echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17782 { (exit 1); exit 1; }; };;
17783 :[FH]-) ac_tag=-:-;;
17784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17785 esac
17786 ac_save_IFS=$IFS
17787 IFS=:
17788 set x $ac_tag
17789 IFS=$ac_save_IFS
17790 shift
17791 ac_file=$1
17792 shift
17793
17794 case $ac_mode in
17795 :L) ac_source=$1;;
17796 :[FH])
17797 ac_file_inputs=
17798 for ac_f
17799 do
17800 case $ac_f in
17801 -) ac_f="$tmp/stdin";;
17802 *) # Look for the file first in the build tree, then in the source tree
17803 # (if the path is not absolute). The absolute path cannot be DOS-style,
17804 # because $ac_f cannot contain `:'.
17805 test -f "$ac_f" ||
17806 case $ac_f in
17807 [\\/$]*) false;;
17808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17809 esac ||
17810 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17811echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17812 { (exit 1); exit 1; }; };;
17813 esac
17814 ac_file_inputs="$ac_file_inputs $ac_f"
17815 done
17816
17817 # Let's still pretend it is `configure' which instantiates (i.e., don't
17818 # use $as_me), people would be surprised to read:
17819 # /* config.h. Generated by config.status. */
17820 configure_input="Generated from "`IFS=:
17821 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17822 if test x"$ac_file" != x-; then
17823 configure_input="$ac_file. $configure_input"
17824 { echo "$as_me:$LINENO: creating $ac_file" >&5
17825echo "$as_me: creating $ac_file" >&6;}
17826 fi
17827
17828 case $ac_tag in
17829 *:-:* | *:-) cat >"$tmp/stdin";;
17830 esac
17831 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017832 esac
17833
Theodore Ts'oe1052142006-10-21 21:46:47 -040017834 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017835$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17836 X"$ac_file" : 'X\(//\)[^/]' \| \
17837 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017839echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17841 s//\1/
17842 q
17843 }
17844 /^X\(\/\/\)[^/].*/{
17845 s//\1/
17846 q
17847 }
17848 /^X\(\/\/\)$/{
17849 s//\1/
17850 q
17851 }
17852 /^X\(\/\).*/{
17853 s//\1/
17854 q
17855 }
17856 s/.*/./; q'`
17857 { as_dir="$ac_dir"
17858 case $as_dir in #(
17859 -*) as_dir=./$as_dir;;
17860 esac
17861 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017862 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040017863 while :; do
17864 case $as_dir in #(
17865 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17866 *) as_qdir=$as_dir;;
17867 esac
17868 as_dirs="'$as_qdir' $as_dirs"
17869 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017870$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17871 X"$as_dir" : 'X\(//\)[^/]' \| \
17872 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017874echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17876 s//\1/
17877 q
17878 }
17879 /^X\(\/\/\)[^/].*/{
17880 s//\1/
17881 q
17882 }
17883 /^X\(\/\/\)$/{
17884 s//\1/
17885 q
17886 }
17887 /^X\(\/\).*/{
17888 s//\1/
17889 q
17890 }
17891 s/.*/./; q'`
17892 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017893 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017894 test -z "$as_dirs" || eval "mkdir $as_dirs"
17895 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17896echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017897 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017898 ac_builddir=.
17899
Theodore Ts'oe1052142006-10-21 21:46:47 -040017900case "$ac_dir" in
17901.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17902*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017904 # A ".." for each directory in $ac_dir_suffix.
17905 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17906 case $ac_top_builddir_sub in
17907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17909 esac ;;
17910esac
17911ac_abs_top_builddir=$ac_pwd
17912ac_abs_builddir=$ac_pwd$ac_dir_suffix
17913# for backward compatibility:
17914ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017915
17916case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017917 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017918 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017919 ac_top_srcdir=$ac_top_builddir_sub
17920 ac_abs_top_srcdir=$ac_pwd ;;
17921 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017922 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017923 ac_top_srcdir=$srcdir
17924 ac_abs_top_srcdir=$srcdir ;;
17925 *) # Relative name.
17926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17927 ac_top_srcdir=$ac_top_build_prefix$srcdir
17928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017929esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017930ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017932
Theodore Ts'oe1052142006-10-21 21:46:47 -040017933 case $ac_mode in
17934 :F)
17935 #
17936 # CONFIG_FILE
17937 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017938
17939 case $INSTALL in
17940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017941 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017942 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017943_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017944
17945cat >>$CONFIG_STATUS <<\_ACEOF
17946# If the template does not know about datarootdir, expand it.
17947# FIXME: This hack should be removed a few years after 2.60.
17948ac_datarootdir_hack=; ac_datarootdir_seen=
17949
17950case `sed -n '/datarootdir/ {
17951 p
17952 q
17953}
17954/@datadir@/p
17955/@docdir@/p
17956/@infodir@/p
17957/@localedir@/p
17958/@mandir@/p
17959' $ac_file_inputs` in
17960*datarootdir*) ac_datarootdir_seen=yes;;
17961*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17962 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17963echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17964_ACEOF
17965cat >>$CONFIG_STATUS <<_ACEOF
17966 ac_datarootdir_hack='
17967 s&@datadir@&$datadir&g
17968 s&@docdir@&$docdir&g
17969 s&@infodir@&$infodir&g
17970 s&@localedir@&$localedir&g
17971 s&@mandir@&$mandir&g
17972 s&\\\${datarootdir}&$datarootdir&g' ;;
17973esac
17974_ACEOF
17975
17976# Neutralize VPATH when `$srcdir' = `.'.
17977# Shell code in configure.ac might set extrasub.
17978# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017979cat >>$CONFIG_STATUS <<_ACEOF
17980 sed "$ac_vpsub
17981$extrasub
17982_ACEOF
17983cat >>$CONFIG_STATUS <<\_ACEOF
17984:t
17985/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040017986s&@configure_input@&$configure_input&;t t
17987s&@top_builddir@&$ac_top_builddir_sub&;t t
17988s&@srcdir@&$ac_srcdir&;t t
17989s&@abs_srcdir@&$ac_abs_srcdir&;t t
17990s&@top_srcdir@&$ac_top_srcdir&;t t
17991s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17992s&@builddir@&$ac_builddir&;t t
17993s&@abs_builddir@&$ac_abs_builddir&;t t
17994s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17995s&@INSTALL@&$ac_INSTALL&;t t
17996$ac_datarootdir_hack
17997" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017998
Theodore Ts'oe1052142006-10-21 21:46:47 -040017999test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18000 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18002 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18003which seems to be undefined. Please make sure it is defined." >&5
18004echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18005which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018006
Theodore Ts'oe1052142006-10-21 21:46:47 -040018007 rm -f "$tmp/stdin"
18008 case $ac_file in
18009 -) cat "$tmp/out"; rm -f "$tmp/out";;
18010 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18011 esac
18012 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018013
18014
Theodore Ts'oe1052142006-10-21 21:46:47 -040018015 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18016echo "$as_me: executing $ac_file commands" >&6;}
18017 ;;
18018 esac
18019
18020
18021 case $ac_file$ac_mode in
18022 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018023 for ac_file in $CONFIG_FILES; do
18024 # Support "outfile[:infile[:infile...]]"
18025 case "$ac_file" in
18026 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000018027 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018028 # PO directories have a Makefile.in generated from Makefile.in.in.
18029 case "$ac_file" in */Makefile.in)
18030 # Adjust a relative srcdir.
18031 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18032 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18033 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18034 # In autoconf-2.13 it is called $ac_given_srcdir.
18035 # In autoconf-2.50 it is called $srcdir.
18036 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18037 case "$ac_given_srcdir" in
18038 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18039 /*) top_srcdir="$ac_given_srcdir" ;;
18040 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18041 esac
18042 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18043 rm -f "$ac_dir/POTFILES"
18044 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18045 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 -050018046 POMAKEFILEDEPS="POTFILES.in"
18047 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018048 # on $ac_dir but don't depend on user-specified configuration
18049 # parameters.
18050 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18051 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018052 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018053 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18054 fi
18055 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18056 # Hide the ALL_LINGUAS assigment from automake.
18057 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018058 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18059 else
18060 # The set of available languages was given in configure.in.
18061 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018062 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018063 # Compute POFILES
18064 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18065 # Compute UPDATEPOFILES
18066 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18067 # Compute DUMMYPOFILES
18068 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18069 # Compute GMOFILES
18070 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018071 case "$ac_given_srcdir" in
18072 .) srcdirpre= ;;
18073 *) srcdirpre='$(srcdir)/' ;;
18074 esac
18075 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018076 UPDATEPOFILES=
18077 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018078 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018079 for lang in $ALL_LINGUAS; do
18080 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018081 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18082 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018083 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040018084 done
18085 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18086 # environment variable.
18087 INST_LINGUAS=
18088 if test -n "$ALL_LINGUAS"; then
18089 for presentlang in $ALL_LINGUAS; do
18090 useit=no
18091 if test "%UNSET%" != "$LINGUAS"; then
18092 desiredlanguages="$LINGUAS"
18093 else
18094 desiredlanguages="$ALL_LINGUAS"
18095 fi
18096 for desiredlang in $desiredlanguages; do
18097 # Use the presentlang catalog if desiredlang is
18098 # a. equal to presentlang, or
18099 # b. a variant of presentlang (because in this case,
18100 # presentlang can be used as a fallback for messages
18101 # which are not translated in the desiredlang catalog).
18102 case "$desiredlang" in
18103 "$presentlang"*) useit=yes;;
18104 esac
18105 done
18106 if test $useit = yes; then
18107 INST_LINGUAS="$INST_LINGUAS $presentlang"
18108 fi
18109 done
18110 fi
18111 CATALOGS=
18112 if test -n "$INST_LINGUAS"; then
18113 for lang in $INST_LINGUAS; do
18114 CATALOGS="$CATALOGS $lang.gmo"
18115 done
18116 fi
18117 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018118 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 -040018119 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18120 if test -f "$f"; then
18121 case "$f" in
18122 *.orig | *.bak | *~) ;;
18123 *) cat "$f" >> "$ac_dir/Makefile" ;;
18124 esac
18125 fi
18126 done
18127 fi
18128 ;;
18129 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018130 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000018131
Theodore Ts'oe1052142006-10-21 21:46:47 -040018132 esac
18133done # for ac_tag
18134
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018135
18136{ (exit 0); exit 0; }
18137_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000018138chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018139ac_clean_files=$ac_clean_files_save
18140
18141
18142# configure is writing to config.log, and then calls config.status.
18143# config.status does its own redirection, appending to config.log.
18144# Unfortunately, on DOS this fails, as config.log is still kept open
18145# by configure, so config.status won't be able to write to it; its
18146# output is simply discarded. So we exec the FD to /dev/null,
18147# effectively closing config.log, so it can be properly (re)opened and
18148# appended to by config.status. When coming back to configure, we
18149# need to make the FD available again.
18150if test "$no_create" != yes; then
18151 ac_cs_success=:
18152 ac_config_status_args=
18153 test "$silent" = yes &&
18154 ac_config_status_args="$ac_config_status_args --quiet"
18155 exec 5>/dev/null
18156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18157 exec 5>>config.log
18158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18159 # would make configure fail if this is the last instruction.
18160 $ac_cs_success || { (exit 1); exit 1; }
18161fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000018162
Theodore Ts'oee683a12005-02-05 15:53:56 -050018163if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
18164