blob: ee087b4d8051d768b498ebede2cf0d9d6d4eb75f [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'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
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'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400687DEBUGFS_CMT
688IMAGER_CMT
689RESIZER_CMT
690E2FSCK_TYPE
691FSCK_PROG
692FSCK_MAN
693E2INITRD_PROG
694E2INITRD_MAN
695DEVMAPPER_REQ
696DEVMAPPER_PC_LIBS
697DEVMAPPER_LIBS
698STATIC_DEVMAPPER_LIBS
699GETTEXT_PACKAGE
700PACKAGE
701VERSION
702SET_MAKE
703INSTALL_PROGRAM
704INSTALL_SCRIPT
705INSTALL_DATA
706MKINSTALLDIRS
707USE_NLS
708MSGFMT
709GMSGFMT
710XGETTEXT
711MSGMERGE
712RANLIB
713ALLOCA
714GLIBC21
715HAVE_POSIX_PRINTF
716HAVE_ASPRINTF
717HAVE_SNPRINTF
718HAVE_WPRINTF
719LIBICONV
720LTLIBICONV
721INTLBISON
722BUILD_INCLUDED_LIBINTL
723USE_INCLUDED_LIBINTL
724CATOBJEXT
725DATADIRNAME
726INSTOBJEXT
727GENCAT
728INTLOBJS
729INTL_LIBTOOL_SUFFIX_PREFIX
730INTLLIBS
731LIBINTL
732LTLIBINTL
733POSUB
734BINARY_TYPE
735LN
736LN_S
737MV
738CP
739RM
740CHMOD
741AWK
742SED
743PERL
744LDCONFIG
745AR
746STRIP
747BUILD_CC
748SIZEOF_SHORT
749SIZEOF_INT
750SIZEOF_LONG
751SIZEOF_LONG_LONG
752SOCKET_LIB
753DLOPEN_LIB
754UNI_DIFF_OPTS
755LINUX_CMT
756CYGWIN_CMT
757UNIX_CMT
758root_prefix
759root_bindir
760root_sbindir
761root_libdir
762root_sysconfdir
763LDFLAG_STATIC
764SS_DIR
765ET_DIR
766DO_TEST_SUITE
767INTL_FLAGS
768BUILD_CFLAGS
769BUILD_LDFLAGS
770LIBOBJS
771LTLIBOBJS'
772ac_subst_files='MCONFIG
773MAKEFILE_ELF
774MAKEFILE_BSDLIB
775MAKEFILE_PROFILE
776MAKEFILE_CHECKER
777MAKEFILE_LIBRARY
778ASM_TYPES_HEADER'
779 ac_precious_vars='build_alias
780host_alias
781target_alias
782CC
783CFLAGS
784LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400785LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400786CPPFLAGS
787CPP'
788
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000789
790# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500791ac_init_help=
792ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000793# The variables have the same names as the options, with
794# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500795cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000796exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000797no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000806verbose=
807x_includes=NONE
808x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400815# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000824includedir='${prefix}/include'
825oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400826docdir='${datarootdir}/doc/${PACKAGE}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000835
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000836ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400837ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000838for ac_option
839do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000843 ac_prev=
844 continue
845 fi
846
Theodore Ts'oe1052142006-10-21 21:46:47 -0400847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
Theodore Ts'oe1052142006-10-21 21:46:47 -0400854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000857
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500861 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000862
863 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500864 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500866 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877
Theodore Ts'oe1052142006-10-21 21:46:47 -0400878 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000879 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500881 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000882
Theodore Ts'oe1052142006-10-21 21:46:47 -0400883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000890 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500891 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400897 eval enable_$ac_feature=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000908
909 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500910 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400912 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500913 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400915 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400916 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500925 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000937
938 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500939 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000940 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500941 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942
Theodore Ts'oe1052142006-10-21 21:46:47 -0400943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500954 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500959 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500964 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500971 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000972
Theodore Ts'oe1052142006-10-21 21:46:47 -0400973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000978 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400979 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500983 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500995 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001009 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001010
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001014 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001021 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001028 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001045 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001046
Theodore Ts'oe1052142006-10-21 21:46:47 -04001047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001065 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001077
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001081 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001095 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001105
1106 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001107 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001108 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001113 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114
1115 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001116 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001118 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001119 { echo "$as_me: error: invalid package name: $ac_package" >&2
1120 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001121 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001122 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001133 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001140 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001142 -*) { echo "$as_me: error: unrecognized option: $ac_option
1143Try \`$0 --help' for more information." >&2
1144 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145 ;;
1146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001153 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001154 export $ac_envvar ;;
1155
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001156 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001157 # FIXME: should be removed in autoconf 3.0.
1158 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162 ;;
1163
1164 esac
1165done
1166
1167if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 { echo "$as_me: error: missing argument to $ac_option" >&2
1170 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001171fi
1172
Theodore Ts'oe1052142006-10-21 21:46:47 -04001173# Be sure to have absolute directory names.
1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001178do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001179 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001180 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001186done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001188# There might be people who depend on the old broken behavior: `$host'
1189# used to hold the argument of --host etc.
1190# FIXME: To remove some day.
1191build=$build_alias
1192host=$host_alias
1193target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001195# FIXME: To remove some day.
1196if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used." >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1202 cross_compiling=yes
1203 fi
1204fi
1205
1206ac_tool_prefix=
1207test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208
1209test "$silent" = yes && exec 6>/dev/null
1210
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001211
Theodore Ts'oe1052142006-10-21 21:46:47 -04001212ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213ac_ls_di=`ls -di .` &&
1214ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 { echo "$as_me: error: Working directory cannot be determined" >&2
1216 { (exit 1); exit 1; }; }
1217test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 { echo "$as_me: error: pwd does not report name of working directory" >&2
1219 { (exit 1); exit 1; }; }
1220
1221
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222# Find the source files, if location was not specified.
1223if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001227$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$0" : 'X\(//\)[^/]' \| \
1229 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\).*/{
1245 s//\1/
1246 q
1247 }
1248 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001250 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001251 srcdir=..
1252 fi
1253else
1254 ac_srcdir_defaulted=no
1255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001256if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001259 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001264 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001265 pwd)`
1266# When building in place, set srcdir=.
1267if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269fi
1270# Remove unnecessary trailing slashes from srcdir.
1271# Double slashes in file names in object file debugging info
1272# mess up M-x gdb in Emacs.
1273case $srcdir in
1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275esac
1276for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001283#
1284# Report the --help message.
1285#
1286if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290\`configure' configures this package to adapt to many kinds of systems.
1291
1292Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297Defaults for the options are specified in brackets.
1298
1299Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316By default, \`make install' will install all the files in
1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319for instance \`--prefix=\$HOME'.
1320
1321For better control, use the options below.
1322
1323Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001343_ACEOF
1344
1345 cat <<\_ACEOF
1346
1347System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350_ACEOF
1351fi
1352
1353if test -n "$ac_init_help"; then
1354
1355 cat <<\_ACEOF
1356
1357Optional Features:
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001360 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361 --enable-compression enable EXPERIMENTAL compression support
1362 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001363 --enable-elf-shlibs select ELF shared libraries
1364 --enable-bsd-shlibs select BSD shared libraries
1365 --enable-profile build profiling libraries
1366 --enable-checker build checker libraries
1367 --enable-jbd-debug enable journal debugging
1368 --enable-blkid-debug enable blkid debugging
1369 --enable-testio-debug enable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001370 --disable-debugfs disable support of debugfs program
1371 --disable-imager disable support of e2image program
1372 --disable-resizer disable support of e2resize program
1373 --enable-dynamic-e2fsck build e2fsck dynamically
1374 --enable-fsck build fsck wrapper program
1375 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001376 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001377 --disable-nls do not use Native Language Support
1378 --disable-rpath do not hardcode runtime library paths
1379
1380Optional Packages:
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-diet-libc Use diet libc
1384 --with-cc=COMPILER select compiler to use
1385 --with-linker=LINKER select linker to use
1386 --with-ccopts=CCOPTS select compiler command line options
1387 --with-ldopts=LDOPTS select linker command line options
1388 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1389 --with-gnu-ld assume the C compiler uses GNU ld default=no
1390 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1391 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1392 --with-included-gettext use the GNU gettext library included here
1393 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1394 --without-libintl-prefix don't search for libintl in includedir and libdir
1395
1396Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001401 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001402 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001404 CPP C preprocessor
1405
1406Use these variables to override the choices made by `configure' or to help
1407it to find libraries and programs with nonstandard names/locations.
1408
1409_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001410ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001411fi
1412
1413if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001416 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001417 ac_builddir=.
1418
Theodore Ts'oe1052142006-10-21 21:46:47 -04001419case "$ac_dir" in
1420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428 esac ;;
1429esac
1430ac_abs_top_builddir=$ac_pwd
1431ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432# for backward compatibility:
1433ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001434
1435case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001436 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001441 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1444 *) # Relative name.
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001450
Theodore Ts'oe1052142006-10-21 21:46:47 -04001451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001459 else
1460 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001461 fi || ac_status=$?
1462 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463 done
1464fi
1465
Theodore Ts'oe1052142006-10-21 21:46:47 -04001466test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467if $ac_init_version; then
1468 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001469configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001470generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001471
Theodore Ts'oe1052142006-10-21 21:46:47 -04001472Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14732002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474This configure script is free software; the Free Software Foundation
1475gives unlimited permission to copy, distribute and modify it.
1476_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001477 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480This file contains any messages produced by compilers while
1481running configure, to aid debugging if configure makes a mistake.
1482
1483It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001484generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001485
1486 $ $0 $@
1487
1488_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001489exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490{
1491cat <<_ASUNAME
1492## --------- ##
1493## Platform. ##
1494## --------- ##
1495
1496hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501
1502/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1504
1505/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1506/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1507/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001508/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001509/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1510/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1511/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1512
1513_ASUNAME
1514
1515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516for as_dir in $PATH
1517do
1518 IFS=$as_save_IFS
1519 test -z "$as_dir" && as_dir=.
1520 echo "PATH: $as_dir"
1521done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001522IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001523
1524} >&5
1525
1526cat >&5 <<_ACEOF
1527
1528
1529## ----------- ##
1530## Core tests. ##
1531## ----------- ##
1532
1533_ACEOF
1534
1535
1536# Keep a trace of the command line.
1537# Strip out --no-create and --no-recursion so they do not pile up.
1538# Strip out --silent because we don't want to record it for future runs.
1539# Also quote any args containing shell meta-characters.
1540# Make two passes to allow for proper duplicate-argument suppression.
1541ac_configure_args=
1542ac_configure_args0=
1543ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001544ac_must_keep_next=false
1545for ac_pass in 1 2
1546do
1547 for ac_arg
1548 do
1549 case $ac_arg in
1550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552 | -silent | --silent | --silen | --sile | --sil)
1553 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001554 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1556 esac
1557 case $ac_pass in
1558 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559 2)
1560 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561 if test $ac_must_keep_next = true; then
1562 ac_must_keep_next=false # Got value, back to normal.
1563 else
1564 case $ac_arg in
1565 *=* | --config-cache | -C | -disable-* | --disable-* \
1566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568 | -with-* | --with-* | -without-* | --without-* | --x)
1569 case "$ac_configure_args0 " in
1570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1571 esac
1572 ;;
1573 -* ) ac_must_keep_next=true ;;
1574 esac
1575 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001576 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001577 ;;
1578 esac
1579 done
1580done
1581$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583
1584# When interrupted or exit'd, cleanup temporary files, and complete
1585# config.log. We remove comments because anyway the quotes in there
1586# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001587# WARNING: Use '\'' to represent an apostrophe within the trap.
1588# 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 -05001589trap 'exit_status=$?
1590 # Save into config.log some information that might help in debugging.
1591 {
1592 echo
1593
1594 cat <<\_ASBOX
1595## ---------------- ##
1596## Cache variables. ##
1597## ---------------- ##
1598_ASBOX
1599 echo
1600 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001601(
1602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603 eval ac_val=\$$ac_var
1604 case $ac_val in #(
1605 *${as_nl}*)
1606 case $ac_var in #(
1607 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1608echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1609 esac
1610 case $ac_var in #(
1611 _ | IFS | as_nl) ;; #(
1612 *) $as_unset $ac_var ;;
1613 esac ;;
1614 esac
1615 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001616 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001617 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1618 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001619 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001620 "s/'\''/'\''\\\\'\'''\''/g;
1621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1622 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001626 esac |
1627 sort
1628)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001629 echo
1630
1631 cat <<\_ASBOX
1632## ----------------- ##
1633## Output variables. ##
1634## ----------------- ##
1635_ASBOX
1636 echo
1637 for ac_var in $ac_subst_vars
1638 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001644 done | sort
1645 echo
1646
1647 if test -n "$ac_subst_files"; then
1648 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001649## ------------------- ##
1650## File substitutions. ##
1651## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001652_ASBOX
1653 echo
1654 for ac_var in $ac_subst_files
1655 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656 eval ac_val=\$$ac_var
1657 case $ac_val in
1658 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 esac
1660 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001661 done | sort
1662 echo
1663 fi
1664
1665 if test -s confdefs.h; then
1666 cat <<\_ASBOX
1667## ----------- ##
1668## confdefs.h. ##
1669## ----------- ##
1670_ASBOX
1671 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001672 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001673 echo
1674 fi
1675 test "$ac_signal" != 0 &&
1676 echo "$as_me: caught signal $ac_signal"
1677 echo "$as_me: exit $exit_status"
1678 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001679 rm -f core *.core core.conftest.* &&
1680 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001681 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001682' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001683for ac_signal in 1 2 13 15; do
1684 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1685done
1686ac_signal=0
1687
1688# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001689rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690
1691# Predefined preprocessor variables.
1692
1693cat >>confdefs.h <<_ACEOF
1694#define PACKAGE_NAME "$PACKAGE_NAME"
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1700_ACEOF
1701
1702
1703cat >>confdefs.h <<_ACEOF
1704#define PACKAGE_VERSION "$PACKAGE_VERSION"
1705_ACEOF
1706
1707
1708cat >>confdefs.h <<_ACEOF
1709#define PACKAGE_STRING "$PACKAGE_STRING"
1710_ACEOF
1711
1712
1713cat >>confdefs.h <<_ACEOF
1714#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1715_ACEOF
1716
1717
1718# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001719# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001720if test -n "$CONFIG_SITE"; then
1721 set x "$CONFIG_SITE"
1722elif test "x$prefix" != xNONE; then
1723 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1724else
1725 set x "$ac_default_prefix/share/config.site" \
1726 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001728shift
1729for ac_site_file
1730do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001731 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001732 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1733echo "$as_me: loading site script $ac_site_file" >&6;}
1734 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001735 . "$ac_site_file"
1736 fi
1737done
1738
1739if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001740 # Some versions of bash will fail to source /dev/null (special
1741 # files actually), so we avoid doing that.
1742 if test -f "$cache_file"; then
1743 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1744echo "$as_me: loading cache $cache_file" >&6;}
1745 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001746 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1747 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001748 esac
1749 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001750else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001751 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1752echo "$as_me: creating cache $cache_file" >&6;}
1753 >$cache_file
1754fi
1755
1756# Check that the precious variables saved in the cache have kept the same
1757# value.
1758ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001759for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001760 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1761 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001762 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1763 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001764 case $ac_old_set,$ac_new_set in
1765 set,)
1766 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1767echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1769 ,set)
1770 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1771echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1772 ac_cache_corrupted=: ;;
1773 ,);;
1774 *)
1775 if test "x$ac_old_val" != "x$ac_new_val"; then
1776 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1777echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1778 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1779echo "$as_me: former value: $ac_old_val" >&2;}
1780 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1781echo "$as_me: current value: $ac_new_val" >&2;}
1782 ac_cache_corrupted=:
1783 fi;;
1784 esac
1785 # Pass precious variables to config.status.
1786 if test "$ac_new_set" = set; then
1787 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001788 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001789 *) ac_arg=$ac_var=$ac_new_val ;;
1790 esac
1791 case " $ac_configure_args " in
1792 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1793 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1794 esac
1795 fi
1796done
1797if $ac_cache_corrupted; then
1798 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1799echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1800 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1801echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1802 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001803fi
1804
Theodore Ts'oe1052142006-10-21 21:46:47 -04001805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001821ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001822ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001827
1828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001829ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001830for ac_dir in config "$srcdir"/config; do
1831 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001832 ac_aux_dir=$ac_dir
1833 ac_install_sh="$ac_aux_dir/install-sh -c"
1834 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001835 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001836 ac_aux_dir=$ac_dir
1837 ac_install_sh="$ac_aux_dir/install.sh -c"
1838 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001839 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001840 ac_aux_dir=$ac_dir
1841 ac_install_sh="$ac_aux_dir/shtool install -c"
1842 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001843 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001844done
1845if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001846 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1847echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001848 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001849fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001850
1851# These three variables are undocumented and unsupported,
1852# and are intended to be withdrawn in a future Autoconf release.
1853# They can cause serious problems if a builder's source tree is in a directory
1854# whose full name contains unusual characters.
1855ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1856ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1857ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1858
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001859
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001860MCONFIG=./MCONFIG
1861
Theodore Ts'o74becf31997-04-26 14:37:06 +00001862BINARY_TYPE=bin
1863E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1864 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1865DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1866 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001867E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001868MONTH=`echo $DATE | awk -F- '{print $2}'`
1869YEAR=`echo $DATE | awk -F- '{print $3}'`
1870
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001871if expr $YEAR ">" 1900 > /dev/null ; then
1872 E2FSPROGS_YEAR=$YEAR
1873elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001874 E2FSPROGS_YEAR=19$YEAR
1875else
1876 E2FSPROGS_YEAR=20$YEAR
1877fi
1878
1879case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001880Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1881Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1882Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1883Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1884May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1885Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1886Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1887Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1888Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1889Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1890Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1891Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001892*) echo "Unknown month $MONTH??" ;;
1893esac
1894
Andreas Dilger927566a2006-11-12 19:41:25 -05001895base_ver=`echo $E2FSPROGS_VERSION | \
1896 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1897pre_vers=`echo $base_ver 0.01 - p | dc`
1898
1899date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1900
1901case $E2FSPROGS_VERSION in
1902*-WIP|pre-*)
1903 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1904 ;;
1905*)
1906 E2FSPROGS_PKGVER="$base_ver"
1907 ;;
1908esac
1909
1910unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001911echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1912echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1913
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001914
1915
1916
Andreas Dilger927566a2006-11-12 19:41:25 -05001917
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001918# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001919$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1920 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1921echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001922 { (exit 1); exit 1; }; }
1923
Theodore Ts'oe1052142006-10-21 21:46:47 -04001924{ echo "$as_me:$LINENO: checking build system type" >&5
1925echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001926if test "${ac_cv_build+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001929 ac_build_alias=$build_alias
1930test "x$ac_build_alias" = x &&
1931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1932test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001933 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1934echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1935 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001936ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1938echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001939 { (exit 1); exit 1; }; }
1940
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001941fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001942{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1943echo "${ECHO_T}$ac_cv_build" >&6; }
1944case $ac_cv_build in
1945*-*-*) ;;
1946*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1947echo "$as_me: error: invalid value of canonical build" >&2;}
1948 { (exit 1); exit 1; }; };;
1949esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001950build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001951ac_save_IFS=$IFS; IFS='-'
1952set x $ac_cv_build
1953shift
1954build_cpu=$1
1955build_vendor=$2
1956shift; shift
1957# Remember, the first character of IFS is used to create $*,
1958# except with old shells:
1959build_os=$*
1960IFS=$ac_save_IFS
1961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001962
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001963
Theodore Ts'oe1052142006-10-21 21:46:47 -04001964{ echo "$as_me:$LINENO: checking host system type" >&5
1965echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001966if test "${ac_cv_host+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001969 if test "x$host_alias" = x; then
1970 ac_cv_host=$ac_cv_build
1971else
1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001975 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001976fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001979{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980echo "${ECHO_T}$ac_cv_host" >&6; }
1981case $ac_cv_host in
1982*-*-*) ;;
1983*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984echo "$as_me: error: invalid value of canonical host" >&2;}
1985 { (exit 1); exit 1; }; };;
1986esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001987host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001988ac_save_IFS=$IFS; IFS='-'
1989set x $ac_cv_host
1990shift
1991host_cpu=$1
1992host_vendor=$2
1993shift; shift
1994# Remember, the first character of IFS is used to create $*,
1995# except with old shells:
1996host_os=$*
1997IFS=$ac_save_IFS
1998case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001999
2000
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002001
Theodore Ts'oe1052142006-10-21 21:46:47 -04002002# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002003if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002004 withval=$with_diet_libc; CC="diet cc -nostdinc"
2005{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2006echo "${ECHO_T}CC=$CC" >&6; }
2007fi
2008
2009# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002010if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002011 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2012echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002013CC=$withval
2014else
2015 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002016{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2017echo "${ECHO_T}CC defaults to $CC" >&6; }
2018fi
2019export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002021ac_ext=c
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2028set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002031if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002033else
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2036else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048done
2049done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002050IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002051
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002052fi
2053fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002054CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002055if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002056 { echo "$as_me:$LINENO: result: $CC" >&5
2057echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002058else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002059 { echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002061fi
2062
Theodore Ts'oe1052142006-10-21 21:46:47 -04002063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002064fi
2065if test -z "$ac_cv_prog_CC"; then
2066 ac_ct_CC=$CC
2067 # Extract the first word of "gcc", so it can be a program name with args.
2068set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002084 ac_cv_prog_ac_ct_CC="gcc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2087 fi
2088done
2089done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002090IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002098else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002099 { echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002101fi
2102
Theodore Ts'oe1052142006-10-21 21:46:47 -04002103 if test "x$ac_ct_CC" = x; then
2104 CC=""
2105 else
2106 case $cross_compiling:$ac_tool_warned in
2107yes:)
2108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2109whose name does not start with the host triplet. If you think this
2110configuration is useful to you, please write to autoconf@gnu.org." >&5
2111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2112whose name does not start with the host triplet. If you think this
2113configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2114ac_tool_warned=yes ;;
2115esac
2116 CC=$ac_ct_CC
2117 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002118else
2119 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002120fi
2121
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002122if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002123 if test -n "$ac_tool_prefix"; then
2124 # 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 -05002125set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002128if test "${ac_cv_prog_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002130else
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
2133else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002141 ac_cv_prog_CC="${ac_tool_prefix}cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2144 fi
2145done
2146done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002147IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002153 { echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002155else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002156 { echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002158fi
2159
Theodore Ts'oe1052142006-10-21 21:46:47 -04002160
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002161 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002162fi
2163if test -z "$CC"; then
2164 # Extract the first word of "cc", so it can be a program name with args.
2165set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002168if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002174 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2183 ac_prog_rejected=yes
2184 continue
2185 fi
2186 ac_cv_prog_CC="cc"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 break 2
2189 fi
2190done
2191done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002192IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002193
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002194if test $ac_prog_rejected = yes; then
2195 # We found a bogon in the path, so make sure we never use it.
2196 set dummy $ac_cv_prog_CC
2197 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002198 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002199 # We chose a different compiler from the bogus one.
2200 # However, it has the same basename, so the bogon will be chosen
2201 # first if we set CC to just the basename; use the full file name.
2202 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002204 fi
2205fi
2206fi
2207fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002208CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002209if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002210 { echo "$as_me:$LINENO: result: $CC" >&5
2211echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002212else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002213 { echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002215fi
2216
Theodore Ts'oe1052142006-10-21 21:46:47 -04002217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002218fi
2219if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002221 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002222 do
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002227if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002229else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2243 fi
2244done
2245done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002246IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002247
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002248fi
2249fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002250CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002251if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002252 { echo "$as_me:$LINENO: result: $CC" >&5
2253echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002254else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002255 { echo "$as_me:$LINENO: result: no" >&5
2256echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002257fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002258
Theodore Ts'oe1052142006-10-21 21:46:47 -04002259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002260 test -n "$CC" && break
2261 done
2262fi
2263if test -z "$CC"; then
2264 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002265 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002266do
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276else
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002284 ac_cv_prog_ac_ct_CC="$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002287 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002288done
2289done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002290IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002291
2292fi
2293fi
2294ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002296 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002298else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002299 { echo "$as_me:$LINENO: result: no" >&5
2300echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002301fi
2302
Theodore Ts'oe1052142006-10-21 21:46:47 -04002303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002304 test -n "$ac_ct_CC" && break
2305done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002306
Theodore Ts'oe1052142006-10-21 21:46:47 -04002307 if test "x$ac_ct_CC" = x; then
2308 CC=""
2309 else
2310 case $cross_compiling:$ac_tool_warned in
2311yes:)
2312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2313whose name does not start with the host triplet. If you think this
2314configuration is useful to you, please write to autoconf@gnu.org." >&5
2315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2316whose name does not start with the host triplet. If you think this
2317configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2318ac_tool_warned=yes ;;
2319esac
2320 CC=$ac_ct_CC
2321 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002322fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002324fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002325
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: no acceptable C compiler found in \$PATH
2330See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2332
2333# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002334echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002335ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002336{ (ac_try="$ac_compiler --version >&5"
2337case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340esac
2341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002346{ (ac_try="$ac_compiler -v >&5"
2347case "(($ac_try" in
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2350esac
2351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2352 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002356{ (ac_try="$ac_compiler -V >&5"
2357case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360esac
2361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366
2367cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373
2374int
2375main ()
2376{
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382ac_clean_files_save=$ac_clean_files
2383ac_clean_files="$ac_clean_files a.out a.exe b.out"
2384# Try to create an executable without -o first, disregard a.out.
2385# It will help us diagnose broken compilers, and finding out an intuition
2386# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002387{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2388echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002389ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002390#
2391# List of possible output files, starting from the most likely.
2392# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2393# only as a last resort. b.out is created by i960 compilers.
2394ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2395#
2396# The IRIX 6 linker writes into existing files which may not be
2397# executable, retaining their permissions. Remove them first so a
2398# subsequent execution test works.
2399ac_rmfiles=
2400for ac_file in $ac_files
2401do
2402 case $ac_file in
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2404 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2405 esac
2406done
2407rm -f $ac_rmfiles
2408
2409if { (ac_try="$ac_link_default"
2410case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413esac
2414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2420# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2421# in a Makefile. We should not override ac_cv_exeext if it was cached,
2422# so that the user can short-circuit this test for compilers unknown to
2423# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002424for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002425do
2426 test -f "$ac_file" || continue
2427 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002429 ;;
2430 [ab].out )
2431 # We found the default executable, but exeext='' is most
2432 # certainly right.
2433 break;;
2434 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2436 then :; else
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 fi
2439 # We set ac_cv_exeext here because the later test for it is not
2440 # safe: cross compilers may not add the suffix if given an `-o'
2441 # argument, so we may need to know it at that point already.
2442 # Even if this section looks crufty: it has the advantage of
2443 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 break;;
2445 * )
2446 break;;
2447 esac
2448done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002449test "$ac_cv_exeext" = no && ac_cv_exeext=
2450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002452 ac_file=''
2453fi
2454
2455{ echo "$as_me:$LINENO: result: $ac_file" >&5
2456echo "${ECHO_T}$ac_file" >&6; }
2457if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002458 echo "$as_me: failed program was:" >&5
2459sed 's/^/| /' conftest.$ac_ext >&5
2460
2461{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2462See \`config.log' for more details." >&5
2463echo "$as_me: error: C compiler cannot create executables
2464See \`config.log' for more details." >&2;}
2465 { (exit 77); exit 77; }; }
2466fi
2467
2468ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469
Theodore Ts'oe1052142006-10-21 21:46:47 -04002470# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002472{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2473echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2475# If not cross compiling, check that we can run a simple program.
2476if test "$cross_compiling" != yes; then
2477 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002488 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489 if test "$cross_compiling" = maybe; then
2490 cross_compiling=yes
2491 else
2492 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2493If you meant to cross compile, use \`--host'.
2494See \`config.log' for more details." >&5
2495echo "$as_me: error: cannot run C compiled programs.
2496If you meant to cross compile, use \`--host'.
2497See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2499 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002500 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002501fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002502{ echo "$as_me:$LINENO: result: yes" >&5
2503echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505rm -f a.out a.exe conftest$ac_cv_exeext b.out
2506ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002508# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2510echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2511{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2512echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002513
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2515echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2516if { (ac_try="$ac_link"
2517case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; then
2526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2527# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2528# work properly (i.e., refer to `conftest.exe'), while it won't with
2529# `rm'.
2530for ac_file in conftest.exe conftest conftest.*; do
2531 test -f "$ac_file" || continue
2532 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535 break;;
2536 * ) break;;
2537 esac
2538done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002539else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2541See \`config.log' for more details." >&5
2542echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2543See \`config.log' for more details." >&2;}
2544 { (exit 1); exit 1; }; }
2545fi
2546
2547rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002548{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2549echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002550
2551rm -f conftest.$ac_ext
2552EXEEXT=$ac_cv_exeext
2553ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002554{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2555echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002556if test "${ac_cv_objext+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559 cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h. */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h. */
2565
2566int
2567main ()
2568{
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002575if { (ac_try="$ac_compile"
2576case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579esac
2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002585 for ac_file in conftest.o conftest.obj conftest.*; do
2586 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2590 break;;
2591 esac
2592done
2593else
2594 echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2598See \`config.log' for more details." >&5
2599echo "$as_me: error: cannot compute suffix of object files: cannot compile
2600See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2602fi
2603
2604rm -f conftest.$ac_cv_objext conftest.$ac_ext
2605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002606{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2607echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002608OBJEXT=$ac_cv_objext
2609ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002610{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2611echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002612if test "${ac_cv_c_compiler_gnu+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615 cat >conftest.$ac_ext <<_ACEOF
2616/* confdefs.h. */
2617_ACEOF
2618cat confdefs.h >>conftest.$ac_ext
2619cat >>conftest.$ac_ext <<_ACEOF
2620/* end confdefs.h. */
2621
2622int
2623main ()
2624{
2625#ifndef __GNUC__
2626 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002627#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002629 ;
2630 return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002634if { (ac_try="$ac_compile"
2635case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638esac
2639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641 ac_status=$?
2642 grep -v '^ *+' conftest.er1 >conftest.err
2643 rm -f conftest.er1
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002646 (exit $ac_status); } && {
2647 test -z "$ac_c_werror_flag" ||
2648 test ! -s conftest.err
2649 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002651else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002652 echo "$as_me: failed program was:" >&5
2653sed 's/^/| /' conftest.$ac_ext >&5
2654
Theodore Ts'oe1052142006-10-21 21:46:47 -04002655 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002657
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002662{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664GCC=`test $ac_compiler_gnu = yes && echo yes`
2665ac_test_CFLAGS=${CFLAGS+set}
2666ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002667{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2668echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669if test "${ac_cv_prog_cc_g+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002671else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002672 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes
2674 ac_cv_prog_cc_g=no
2675 CFLAGS="-g"
2676 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002677/* confdefs.h. */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h. */
2682
2683int
2684main ()
2685{
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002692if { (ac_try="$ac_compile"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002704 (exit $ac_status); } && {
2705 test -z "$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2707 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002708 ac_cv_prog_cc_g=yes
2709else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002710 echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002712
Theodore Ts'oe1052142006-10-21 21:46:47 -04002713 CFLAGS=""
2714 cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720
2721int
2722main ()
2723{
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (ac_try="$ac_compile"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002742 (exit $ac_status); } && {
2743 test -z "$ac_c_werror_flag" ||
2744 test ! -s conftest.err
2745 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002746 :
2747else
2748 echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_c_werror_flag=$ac_save_c_werror_flag
2752 CFLAGS="-g"
2753 cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759
2760int
2761main ()
2762{
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (ac_try="$ac_compile"
2770case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773esac
2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compile") 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002781 (exit $ac_status); } && {
2782 test -z "$ac_c_werror_flag" ||
2783 test ! -s conftest.err
2784 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002785 ac_cv_prog_cc_g=yes
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002792
2793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002795
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797fi
2798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_c_werror_flag=$ac_save_c_werror_flag
2801fi
2802{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002804if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002805 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002806elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then
2808 CFLAGS="-g -O2"
2809 else
2810 CFLAGS="-g"
2811 fi
2812else
2813 if test "$GCC" = yes; then
2814 CFLAGS="-O2"
2815 else
2816 CFLAGS=
2817 fi
2818fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002819{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2820echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2821if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825ac_save_CC=$CC
2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h. */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h. */
2832#include <stdarg.h>
2833#include <stdio.h>
2834#include <sys/types.h>
2835#include <sys/stat.h>
2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2837struct buf { int x; };
2838FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839static char *e (p, i)
2840 char **p;
2841 int i;
2842{
2843 return p[i];
2844}
2845static char *f (char * (*g) (char **, int), char **p, ...)
2846{
2847 char *s;
2848 va_list v;
2849 va_start (v,p);
2850 s = g (p, va_arg (v,int));
2851 va_end (v);
2852 return s;
2853}
2854
2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2856 function prototypes and stuff, but not '\xHH' hex character constants.
2857 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002858 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2860 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002861 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2863
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2865 inside strings and character constants. */
2866#define FOO(x) 'x'
2867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2868
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002869int test (int i, double x);
2870struct s1 {int (*f) (int a);};
2871struct s2 {int (*f) (double a);};
2872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2873int argc;
2874char **argv;
2875int
2876main ()
2877{
2878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2879 ;
2880 return 0;
2881}
2882_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002885do
2886 CC="$ac_save_CC $ac_arg"
2887 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002888if { (ac_try="$ac_compile"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002904 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
Theodore Ts'oe1052142006-10-21 21:46:47 -04002909
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911
2912rm -f core conftest.err conftest.$ac_objext
2913 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002914done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002915rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916CC=$ac_save_CC
2917
2918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002919# AC_CACHE_VAL
2920case "x$ac_cv_prog_cc_c89" in
2921 x)
2922 { echo "$as_me:$LINENO: result: none needed" >&5
2923echo "${ECHO_T}none needed" >&6; } ;;
2924 xno)
2925 { echo "$as_me:$LINENO: result: unsupported" >&5
2926echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002928 CC="$CC $ac_cv_prog_cc_c89"
2929 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2930echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002931esac
2932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934ac_ext=c
2935ac_cpp='$CPP $CPPFLAGS'
2936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940ac_ext=c
2941ac_cpp='$CPP $CPPFLAGS'
2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002945{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2946echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002947# On Suns, sometimes $CPP names a directory.
2948if test -n "$CPP" && test -d "$CPP"; then
2949 CPP=
2950fi
2951if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002952 if test "${ac_cv_prog_CPP+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002954else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955 # Double quotes because CPP needs to be expanded
2956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2957 do
2958 ac_preproc_ok=false
2959for ac_c_preproc_warn_flag in '' yes
2960do
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002965 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002966 # not just through cpp. "Syntax error" is here to catch this case.
2967 cat >conftest.$ac_ext <<_ACEOF
2968/* confdefs.h. */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
2973#ifdef __STDC__
2974# include <limits.h>
2975#else
2976# include <assert.h>
2977#endif
2978 Syntax error
2979_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002980if { (ac_try="$ac_cpp conftest.$ac_ext"
2981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002992 (exit $ac_status); } >/dev/null && {
2993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2995 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002996 :
2997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002998 echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001 # Broken: fails on valid input.
3002continue
3003fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003004
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003005rm -f conftest.err conftest.$ac_ext
3006
Theodore Ts'oe1052142006-10-21 21:46:47 -04003007 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008 # can be detected and how.
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015#include <ac_nonexistent.h>
3016_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003017if { (ac_try="$ac_cpp conftest.$ac_ext"
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033 # Broken: success on invalid input.
3034continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003035else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036 echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 # Passes both tests.
3040ac_preproc_ok=:
3041break
3042fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003043
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044rm -f conftest.err conftest.$ac_ext
3045
3046done
3047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048rm -f conftest.err conftest.$ac_ext
3049if $ac_preproc_ok; then
3050 break
3051fi
3052
3053 done
3054 ac_cv_prog_CPP=$CPP
3055
3056fi
3057 CPP=$ac_cv_prog_CPP
3058else
3059 ac_cv_prog_CPP=$CPP
3060fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003061{ echo "$as_me:$LINENO: result: $CPP" >&5
3062echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003063ac_preproc_ok=false
3064for ac_c_preproc_warn_flag in '' yes
3065do
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078#ifdef __STDC__
3079# include <limits.h>
3080#else
3081# include <assert.h>
3082#endif
3083 Syntax error
3084_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003085if { (ac_try="$ac_cpp conftest.$ac_ext"
3086case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003097 (exit $ac_status); } >/dev/null && {
3098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101 :
3102else
3103 echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 # Broken: fails on valid input.
3107continue
3108fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110rm -f conftest.err conftest.$ac_ext
3111
Theodore Ts'oe1052142006-10-21 21:46:47 -04003112 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113 # can be detected and how.
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120#include <ac_nonexistent.h>
3121_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003122if { (ac_try="$ac_cpp conftest.$ac_ext"
3123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003134 (exit $ac_status); } >/dev/null && {
3135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138 # Broken: success on invalid input.
3139continue
3140else
3141 echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 # Passes both tests.
3145ac_preproc_ok=:
3146break
3147fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003149rm -f conftest.err conftest.$ac_ext
3150
3151done
3152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153rm -f conftest.err conftest.$ac_ext
3154if $ac_preproc_ok; then
3155 :
3156else
3157 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3158See \`config.log' for more details." >&5
3159echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3160See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3162fi
3163
3164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003171# Check whether --with-linker was given.
3172if test "${with_linker+set}" = set; then
3173 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3174echo "${ECHO_T}LD=$withval" >&6; }
3175LD=$withval
3176else
3177 if test -z "$LD" ; then LD=$CC; fi
3178{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3179echo "${ECHO_T}LD defaults to $LD" >&6; }
3180fi
3181export LD
3182
3183
3184# Check whether --with-ccopts was given.
3185if test "${with_ccopts+set}" = set; then
3186 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3187echo "${ECHO_T}CCOPTS is $withval" >&6; }
3188CFLAGS=$withval
3189fi
3190
3191
Theodore Ts'oe1052142006-10-21 21:46:47 -04003192{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3193echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3194if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003197 # Extract the first word of "grep ggrep" to use in msg output
3198if test -z "$GREP"; then
3199set dummy grep ggrep; ac_prog_name=$2
3200if test "${ac_cv_path_GREP+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203 ac_path_GREP_found=false
3204# Loop through the user's path and test for each of PROGNAME-LIST
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3207do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_prog in grep ggrep; do
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003213 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003214 # Check for GNU ac_path_GREP and select it if it is found.
3215 # Check for GNU $ac_path_GREP
3216case `"$ac_path_GREP" --version 2>&1` in
3217*GNU*)
3218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3219*)
3220 ac_count=0
3221 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3222 while :
3223 do
3224 cat "conftest.in" "conftest.in" >"conftest.tmp"
3225 mv "conftest.tmp" "conftest.in"
3226 cp "conftest.in" "conftest.nl"
3227 echo 'GREP' >> "conftest.nl"
3228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3230 ac_count=`expr $ac_count + 1`
3231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3232 # Best one so far, save it but keep looking for a better one
3233 ac_cv_path_GREP="$ac_path_GREP"
3234 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003235 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003236 # 10*(2^10) chars as input seems more than enough
3237 test $ac_count -gt 10 && break
3238 done
3239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3240esac
3241
3242
3243 $ac_path_GREP_found && break 3
3244 done
3245done
3246
3247done
3248IFS=$as_save_IFS
3249
3250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003252
3253GREP="$ac_cv_path_GREP"
3254if test -z "$GREP"; then
3255 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3256echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3257 { (exit 1); exit 1; }; }
3258fi
3259
3260else
3261 ac_cv_path_GREP=$GREP
3262fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003263
3264
Theodore Ts'oe1052142006-10-21 21:46:47 -04003265fi
3266{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3267echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3268 GREP="$ac_cv_path_GREP"
3269
3270
3271{ echo "$as_me:$LINENO: checking for egrep" >&5
3272echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3273if test "${ac_cv_path_EGREP+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3277 then ac_cv_path_EGREP="$GREP -E"
3278 else
3279 # Extract the first word of "egrep" to use in msg output
3280if test -z "$EGREP"; then
3281set dummy egrep; ac_prog_name=$2
3282if test "${ac_cv_path_EGREP+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285 ac_path_EGREP_found=false
3286# Loop through the user's path and test for each of PROGNAME-LIST
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_prog in egrep; do
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003295 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003296 # Check for GNU ac_path_EGREP and select it if it is found.
3297 # Check for GNU $ac_path_EGREP
3298case `"$ac_path_EGREP" --version 2>&1` in
3299*GNU*)
3300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3301*)
3302 ac_count=0
3303 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3304 while :
3305 do
3306 cat "conftest.in" "conftest.in" >"conftest.tmp"
3307 mv "conftest.tmp" "conftest.in"
3308 cp "conftest.in" "conftest.nl"
3309 echo 'EGREP' >> "conftest.nl"
3310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3312 ac_count=`expr $ac_count + 1`
3313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3314 # Best one so far, save it but keep looking for a better one
3315 ac_cv_path_EGREP="$ac_path_EGREP"
3316 ac_path_EGREP_max=$ac_count
3317 fi
3318 # 10*(2^10) chars as input seems more than enough
3319 test $ac_count -gt 10 && break
3320 done
3321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3322esac
3323
3324
3325 $ac_path_EGREP_found && break 3
3326 done
3327done
3328
3329done
3330IFS=$as_save_IFS
3331
3332
3333fi
3334
3335EGREP="$ac_cv_path_EGREP"
3336if test -z "$EGREP"; then
3337 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3338echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3339 { (exit 1); exit 1; }; }
3340fi
3341
3342else
3343 ac_cv_path_EGREP=$EGREP
3344fi
3345
3346
3347 fi
3348fi
3349{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3350echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3351 EGREP="$ac_cv_path_EGREP"
3352
3353
3354{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3355echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003356if test "${ac_cv_header_stdc+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359 cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365#include <stdlib.h>
3366#include <stdarg.h>
3367#include <string.h>
3368#include <float.h>
3369
3370int
3371main ()
3372{
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003379if { (ac_try="$ac_compile"
3380case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003391 (exit $ac_status); } && {
3392 test -z "$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003395 ac_cv_header_stdc=yes
3396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
Theodore Ts'oe1052142006-10-21 21:46:47 -04003400 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003401fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003402
3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003404
3405if test $ac_cv_header_stdc = yes; then
3406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3407 cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h. */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h. */
3413#include <string.h>
3414
3415_ACEOF
3416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3417 $EGREP "memchr" >/dev/null 2>&1; then
3418 :
3419else
3420 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003421fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003422rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003423
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003424fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425
3426if test $ac_cv_header_stdc = yes; then
3427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
3434#include <stdlib.h>
3435
3436_ACEOF
3437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3438 $EGREP "free" >/dev/null 2>&1; then
3439 :
3440else
3441 ac_cv_header_stdc=no
3442fi
3443rm -f conftest*
3444
3445fi
3446
3447if test $ac_cv_header_stdc = yes; then
3448 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3449 if test "$cross_compiling" = yes; then
3450 :
3451else
3452 cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h. */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h. */
3458#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003459#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003460#if ((' ' & 0x0FF) == 0x020)
3461# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3462# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3463#else
3464# define ISLOWER(c) \
3465 (('a' <= (c) && (c) <= 'i') \
3466 || ('j' <= (c) && (c) <= 'r') \
3467 || ('s' <= (c) && (c) <= 'z'))
3468# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3469#endif
3470
3471#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3472int
3473main ()
3474{
3475 int i;
3476 for (i = 0; i < 256; i++)
3477 if (XOR (islower (i), ISLOWER (i))
3478 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003479 return 2;
3480 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003481}
3482_ACEOF
3483rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484if { (ac_try="$ac_link"
3485case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488esac
3489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003494 { (case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497esac
3498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 :
3504else
3505 echo "$as_me: program exited with status $ac_status" >&5
3506echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509( exit $ac_status )
3510ac_cv_header_stdc=no
3511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513fi
3514
3515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003516fi
3517fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003518{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3519echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003520if test $ac_cv_header_stdc = yes; then
3521
3522cat >>confdefs.h <<\_ACEOF
3523#define STDC_HEADERS 1
3524_ACEOF
3525
3526fi
3527
3528# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3539 inttypes.h stdint.h unistd.h
3540do
3541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003542{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547 cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
3553$ac_includes_default
3554
3555#include <$ac_header>
3556_ACEOF
3557rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558if { (ac_try="$ac_compile"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003570 (exit $ac_status); } && {
3571 test -z "$ac_c_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003574 eval "$as_ac_Header=yes"
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
Theodore Ts'oe1052142006-10-21 21:46:47 -04003579 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003581
3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003584ac_res=`eval echo '${'$as_ac_Header'}'`
3585 { echo "$as_me:$LINENO: result: $ac_res" >&5
3586echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003587if test `eval echo '${'$as_ac_Header'}'` = yes; then
3588 cat >>confdefs.h <<_ACEOF
3589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3590_ACEOF
3591
3592fi
3593
3594done
3595
3596
3597if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003598 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3599echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003600if test "${ac_cv_header_linux_fs_h+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003603{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3604echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003605else
3606 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003607{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3608echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003609cat >conftest.$ac_ext <<_ACEOF
3610/* confdefs.h. */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h. */
3615$ac_includes_default
3616#include <linux/fs.h>
3617_ACEOF
3618rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003619if { (ac_try="$ac_compile"
3620case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623esac
3624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003635 ac_header_compiler=yes
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
Theodore Ts'oe1052142006-10-21 21:46:47 -04003640 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003641fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003642
3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3645echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646
3647# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003648{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3649echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003650cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
3656#include <linux/fs.h>
3657_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003658if { (ac_try="$ac_cpp conftest.$ac_ext"
3659case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662esac
3663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003670 (exit $ac_status); } >/dev/null && {
3671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003674 ac_header_preproc=yes
3675else
3676 echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 ac_header_preproc=no
3680fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003681
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3684echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003685
3686# So? What about this header?
3687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3688 yes:no: )
3689 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3690echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3691 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3692echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3693 ac_header_preproc=yes
3694 ;;
3695 no:yes:* )
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3697echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3699echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3701echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3703echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3705echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3707echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003709 ;;
3710esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003711{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3712echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003713if test "${ac_cv_header_linux_fs_h+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
3716 ac_cv_header_linux_fs_h=$ac_header_preproc
3717fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003718{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3719echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003720
3721fi
3722if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003723 linux_headers=yes
3724else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003725 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003726fi
3727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003728
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003729if test "$linux_headers" != yes; then
3730 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003731fi
3732
Theodore Ts'oe1052142006-10-21 21:46:47 -04003733{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3734echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003735if test "$GCC" = yes
3736then
3737 case "$host_cpu" in
3738 alpha) addcflags="-mieee" ;;
3739 esac
3740fi
3741if test "x$addcflags" != x
3742then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003743 { echo "$as_me:$LINENO: result: $addcflags" >&5
3744echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003745 CFLAGS="$addcflags $CFLAGS"
3746else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003747 { echo "$as_me:$LINENO: result: (none)" >&5
3748echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003749fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003750LIB_EXT=.a
3751STATIC_LIB_EXT=.a
3752PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003753
Theodore Ts'oe1052142006-10-21 21:46:47 -04003754# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003755if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003756 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3757echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003758LDFLAGS=$withval
3759else
3760 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003761fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003762
Theodore Ts'oe1052142006-10-21 21:46:47 -04003763
3764# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003765if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003766 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003767else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003768 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769fi
3770# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003771if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003773then
3774 MAINTAINER_CMT=#
3775 echo "Disabling maintainer mode"
3776else
3777 MAINTAINER_CMT=
3778 echo "Enabling maintainer mode"
3779fi
3780
3781else
3782 MAINTAINER_CMT=#
3783echo "Disabling maintainer mode by default"
3784
Theodore Ts'oe1052142006-10-21 21:46:47 -04003785fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003786
Theodore Ts'oe1052142006-10-21 21:46:47 -04003787
3788# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003789if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003790 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003791then
3792 echo "Disabling compression support"
3793else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003794 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003795#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003796_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003797
3798 echo "Enabling compression support"
3799 echo "WARNING: Compression support is experimental"
3800fi
3801
3802else
3803 echo "Disabling compression support by default"
3804
Theodore Ts'oe1052142006-10-21 21:46:47 -04003805fi
3806
3807# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003808if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003809 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003810then
3811 HTREE_CMT=#
3812 echo "Disabling htree directory support"
3813else
3814 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003815 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003816#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003817_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003818
3819 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003820fi
3821
3822else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003823 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003824cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003825#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003826_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003827
3828echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003829
Theodore Ts'oe1052142006-10-21 21:46:47 -04003830fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003831
Theodore Ts'oe1052142006-10-21 21:46:47 -04003832
3833# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003834if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003835 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003836then
3837 ELF_CMT=#
3838 MAKEFILE_ELF=/dev/null
3839 echo "Disabling ELF shared libraries"
3840else
3841 ELF_CMT=
3842 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003843 case "$host_os" in
3844 solaris2.*)
3845 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3846 ;;
3847 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003848 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003849 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850 echo "Enabling ELF shared libraries"
3851fi
3852
3853else
3854 MAKEFILE_ELF=/dev/null
3855ELF_CMT=#
3856echo "Disabling ELF shared libraries by default"
3857
Theodore Ts'oe1052142006-10-21 21:46:47 -04003858fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003859
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003860
Theodore Ts'oe1052142006-10-21 21:46:47 -04003861
3862# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003863if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003864 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003865then
3866 BSDLIB_CMT=#
3867 MAKEFILE_BSDLIB=/dev/null
3868 echo "Disabling BSD shared libraries"
3869else
3870 BSDLIB_CMT=
3871 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003872 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003873 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003874 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003875 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3876 LIB_EXT=.dylib
3877 ;;
3878 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003879 echo "Enabling BSD shared libraries"
3880fi
3881
3882else
3883 MAKEFILE_BSDLIB=/dev/null
3884BSDLIB_CMT=#
3885echo "Disabling BSD shared libraries by default"
3886
Theodore Ts'oe1052142006-10-21 21:46:47 -04003887fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003888
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003889
Theodore Ts'oe1052142006-10-21 21:46:47 -04003890
3891# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003892if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003893 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003894then
3895 PROFILE_CMT=#
3896 MAKEFILE_PROFILE=/dev/null
3897 echo "Disabling profiling libraries"
3898else
3899 PROFILE_CMT=
3900 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3901 PROFILED_LIB_EXT=_p.a
3902 echo "Building profiling libraries"
3903fi
3904
3905else
3906 PROFILE_CMT=#
3907MAKEFILE_PROFILE=/dev/null
3908echo "Disabling profiling libraries by default"
3909
Theodore Ts'oe1052142006-10-21 21:46:47 -04003910fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003911
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003912
Theodore Ts'oe1052142006-10-21 21:46:47 -04003913
3914# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003915if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003916 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003917then
3918 CHECKER_CMT=#
3919 MAKEFILE_CHECKER=/dev/null
3920 echo "Disabling checker libraries"
3921else
3922 CHECKER_CMT=
3923 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3924 echo "Building checker libraries"
3925fi
3926
3927else
3928 CHECKER_CMT=#
3929MAKEFILE_CHECKER=/dev/null
3930echo "Disabling checker libraries by default"
3931
Theodore Ts'oe1052142006-10-21 21:46:47 -04003932fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003933
3934
3935
3936
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003937
Theodore Ts'oe1052142006-10-21 21:46:47 -04003938
3939# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003940if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003941 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003942then
3943 echo "Disabling journal debugging"
3944else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003945 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003946#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003947_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003948
3949 echo "Enabling journal debugging"
3950fi
3951
3952else
3953 echo "Disabling journal debugging by default"
3954
Theodore Ts'oe1052142006-10-21 21:46:47 -04003955fi
3956
3957# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003958if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003959 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003960then
3961 echo "Disabling blkid debugging"
3962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003963 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003964#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003965_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003966
3967 echo "Enabling blkid debugging"
3968fi
3969
3970else
3971 echo "Disabling blkid debugging by default"
3972
Theodore Ts'oe1052142006-10-21 21:46:47 -04003973fi
3974
3975# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003976if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003977 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003978then
3979 echo "Disabling testio debugging"
3980else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003981 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003982#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003983_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003984
3985 echo "Enabling testio debugging"
3986fi
3987
3988else
3989 echo "Disabling testio debugging by default"
3990
Theodore Ts'oe1052142006-10-21 21:46:47 -04003991fi
3992
Theodore Ts'oe1052142006-10-21 21:46:47 -04003993# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003994if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003995 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003996then
3997 echo "Disabling debugfs support"
3998 DEBUGFS_CMT="#"
3999else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004000 DEBUGFS_CMT=
4001 echo "Enabling debugfs support"
4002fi
4003
4004else
4005 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004006DEBUGFS_CMT=
4007
Theodore Ts'oe1052142006-10-21 21:46:47 -04004008fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004009
Theodore Ts'oe1052142006-10-21 21:46:47 -04004010
4011# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004012if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004013 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004014then
4015 echo "Disabling e2image support"
4016 IMAGER_CMT="#"
4017else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004018 IMAGER_CMT=
4019 echo "Enabling e2image support"
4020fi
4021
4022else
4023 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004024IMAGER_CMT=
4025
Theodore Ts'oe1052142006-10-21 21:46:47 -04004026fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004027
Theodore Ts'oe1052142006-10-21 21:46:47 -04004028
4029# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004030if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004031 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004032then
4033 echo "Disabling e2resize support"
4034 RESIZER_CMT="#"
4035else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004036 RESIZER_CMT=
4037 echo "Enabling e2resize support"
4038fi
4039
4040else
4041 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004042RESIZER_CMT=
4043
Theodore Ts'oe1052142006-10-21 21:46:47 -04004044fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004045
Theodore Ts'oe1052142006-10-21 21:46:47 -04004046
4047# Check whether --enable-dynamic-e2fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004048if test "${enable_dynamic_e2fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004049 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004050then
4051 E2FSCK_TYPE=static
4052 echo "Building e2fsck statically"
4053else
4054 E2FSCK_TYPE=shared
4055 echo "Building e2fsck dynamically"
4056fi
4057
4058else
4059 E2FSCK_TYPE=static
4060echo "Building e2fsck statically by default"
4061
Theodore Ts'oe1052142006-10-21 21:46:47 -04004062fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004063
Theodore Ts'oe1052142006-10-21 21:46:47 -04004064
4065# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004066if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004067 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004068then
4069 FSCK_PROG='' FSCK_MAN=''
4070 echo "Not building fsck wrapper"
4071else
4072 FSCK_PROG=fsck FSCK_MAN=fsck.8
4073 echo "Building fsck wrapper"
4074fi
4075
4076else
4077 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004078 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004079 FSCK_PROG='' FSCK_MAN=''
4080 echo "Not building fsck wrapper by default"
4081 ;;
4082 *)
4083 FSCK_PROG=fsck FSCK_MAN=fsck.8
4084 echo "Building fsck wrapper by default"
4085esac
4086
Theodore Ts'oe1052142006-10-21 21:46:47 -04004087fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004088
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004089
Theodore Ts'oe1052142006-10-21 21:46:47 -04004090
4091# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004092if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004093 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004094then
4095 E2INITRD_PROG='' E2INITRD_MAN=''
4096 echo "Not building e2initrd helper"
4097else
4098 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4099 echo "Building e2initrd helper"
4100fi
4101
4102else
4103 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4104echo "Building e2initrd helper by default"
4105
Theodore Ts'oe1052142006-10-21 21:46:47 -04004106fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004107
4108
Theodore Ts'oe1052142006-10-21 21:46:47 -04004109
4110# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004111if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004112 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004113then
4114 echo "Disabling device-mapper support"
4115 DEVMAPPER_REQ=''
4116 DEVMAPPER_LIBS=''
4117 STATIC_DEVMAPPER_LIBS=''
4118else
4119 cat >>confdefs.h <<\_ACEOF
4120#define HAVE_DEVMAPPER 1
4121_ACEOF
4122
4123 echo "Enabling device-mapper support"
4124
4125 DEVMAPPER_REQ='libselinux libsepol'
4126 DEVMAPPER_PC_LIBS='-ldevmapper'
Theodore Ts'oe1052142006-10-21 21:46:47 -04004127 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4128 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
Karel Zak4db2f592006-03-08 14:17:28 -05004129
4130fi
4131
4132else
4133 echo "Disabling device-mapper support by default"
4134
Theodore Ts'oe1052142006-10-21 21:46:47 -04004135fi
4136
Karel Zak4db2f592006-03-08 14:17:28 -05004137
4138
4139
4140
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004141MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004143GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004144PACKAGE=e2fsprogs
4145VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004146VERSION=0.14.1
4147cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004148#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004149_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004151cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004152#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004153_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004154
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004155
4156
4157
4158
Theodore Ts'oe1052142006-10-21 21:46:47 -04004159{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4160echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4161set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4162if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004163 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004164else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004165 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004166SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004167all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004168 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004169_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004170# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004171case `${MAKE-make} -f conftest.make 2>/dev/null` in
4172 *@@@%%%=?*=@@@%%%*)
4173 eval ac_cv_prog_make_${ac_make}_set=yes;;
4174 *)
4175 eval ac_cv_prog_make_${ac_make}_set=no;;
4176esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004177rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004179if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4180 { echo "$as_me:$LINENO: result: yes" >&5
4181echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004182 SET_MAKE=
4183else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004184 { echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004186 SET_MAKE="MAKE=${MAKE-make}"
4187fi
4188
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004189# Find a good install program. We prefer a C program (faster),
4190# so one script is as good as another. But avoid the broken or
4191# incompatible versions:
4192# SysV /etc/install, /usr/sbin/install
4193# SunOS /usr/etc/install
4194# IRIX /sbin/install
4195# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004196# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004197# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4198# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4199# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004200# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004201# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004202{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4203echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004204if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004205if test "${ac_cv_path_install+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004207else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 # Account for people who put trailing slashes in PATH elements.
4214case $as_dir/ in
4215 ./ | .// | /cC/* | \
4216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4217 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4218 /usr/ucb/* ) ;;
4219 *)
4220 # OSF1 and SCO ODT 3.0 have their own names for install.
4221 # Don't use installbsd from OSF since it installs stuff as root
4222 # by default.
4223 for ac_prog in ginstall scoinst install; do
4224 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004225 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004226 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004228 # AIX install. It has an incompatible calling convention.
4229 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004230 elif test $ac_prog = install &&
4231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4232 # program-specific install script used by HP pwplus--don't use.
4233 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004234 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004235 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4236 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004237 fi
4238 fi
4239 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004240 done
4241 ;;
4242esac
4243done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004244IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004245
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004246
4247fi
4248 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004249 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004250 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004251 # As a last resort, use the slow shell script. Don't cache a
4252 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004253 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004254 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004255 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004256 fi
4257fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004258{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4259echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004260
4261# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4262# It thinks the first close brace ends the variable substitution.
4263test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004265test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004266
4267test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4268
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004269
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004270 MKINSTALLDIRS=
4271 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004272 case "$ac_aux_dir" in
4273 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4274 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4275 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004276 fi
4277 if test -z "$MKINSTALLDIRS"; then
4278 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4279 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004281
4282
Theodore Ts'oe1052142006-10-21 21:46:47 -04004283 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4284echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4285 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004287 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004288else
4289 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004290fi
4291
4292 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4293echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004294
4295
4296
4297
4298
4299
4300# Prepare PATH_SEPARATOR.
4301# The user is always right.
4302if test "${PATH_SEPARATOR+set}" != set; then
4303 echo "#! /bin/sh" >conf$$.sh
4304 echo "exit 0" >>conf$$.sh
4305 chmod +x conf$$.sh
4306 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4307 PATH_SEPARATOR=';'
4308 else
4309 PATH_SEPARATOR=:
4310 fi
4311 rm -f conf$$.sh
4312fi
4313
4314# Find out how to test for executable files. Don't use a zero-byte file,
4315# as systems may use methods other than mode bits to determine executability.
4316cat >conf$$.file <<_ASEOF
4317#! /bin/sh
4318exit 0
4319_ASEOF
4320chmod +x conf$$.file
4321if test -x conf$$.file >/dev/null 2>&1; then
4322 ac_executable_p="test -x"
4323else
4324 ac_executable_p="test -f"
4325fi
4326rm -f conf$$.file
4327
4328# Extract the first word of "msgfmt", so it can be a program name with args.
4329set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004332if test "${ac_cv_path_MSGFMT+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335 case "$MSGFMT" in
4336 [\\/]* | ?:[\\/]*)
4337 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4338 ;;
4339 *)
4340 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4341 for ac_dir in $PATH; do
4342 IFS="$ac_save_IFS"
4343 test -z "$ac_dir" && ac_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4346 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4347 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4348 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4349 break 2
4350 fi
4351 fi
4352 done
4353 done
4354 IFS="$ac_save_IFS"
4355 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4356 ;;
4357esac
4358fi
4359MSGFMT="$ac_cv_path_MSGFMT"
4360if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004361 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4362echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004363else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004364 { echo "$as_me:$LINENO: result: no" >&5
4365echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004366fi
4367
4368 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4369set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004372if test "${ac_cv_path_GMSGFMT+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 case $GMSGFMT in
4376 [\\/]* | ?:[\\/]*)
4377 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4378 ;;
4379 *)
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
4382do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004387 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4390 fi
4391done
4392done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004393IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004394
4395 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4396 ;;
4397esac
4398fi
4399GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004401 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4402echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004403else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004404 { echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004406fi
4407
4408
4409
Theodore Ts'oe1052142006-10-21 21:46:47 -04004410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004411# Prepare PATH_SEPARATOR.
4412# The user is always right.
4413if test "${PATH_SEPARATOR+set}" != set; then
4414 echo "#! /bin/sh" >conf$$.sh
4415 echo "exit 0" >>conf$$.sh
4416 chmod +x conf$$.sh
4417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4418 PATH_SEPARATOR=';'
4419 else
4420 PATH_SEPARATOR=:
4421 fi
4422 rm -f conf$$.sh
4423fi
4424
4425# Find out how to test for executable files. Don't use a zero-byte file,
4426# as systems may use methods other than mode bits to determine executability.
4427cat >conf$$.file <<_ASEOF
4428#! /bin/sh
4429exit 0
4430_ASEOF
4431chmod +x conf$$.file
4432if test -x conf$$.file >/dev/null 2>&1; then
4433 ac_executable_p="test -x"
4434else
4435 ac_executable_p="test -f"
4436fi
4437rm -f conf$$.file
4438
4439# Extract the first word of "xgettext", so it can be a program name with args.
4440set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004443if test "${ac_cv_path_XGETTEXT+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446 case "$XGETTEXT" in
4447 [\\/]* | ?:[\\/]*)
4448 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4449 ;;
4450 *)
4451 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4452 for ac_dir in $PATH; do
4453 IFS="$ac_save_IFS"
4454 test -z "$ac_dir" && ac_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4457 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4458 (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
4459 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4460 break 2
4461 fi
4462 fi
4463 done
4464 done
4465 IFS="$ac_save_IFS"
4466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4467 ;;
4468esac
4469fi
4470XGETTEXT="$ac_cv_path_XGETTEXT"
4471if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004472 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4473echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004474else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004475 { echo "$as_me:$LINENO: result: no" >&5
4476echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004477fi
4478
4479 rm -f messages.po
4480
4481
4482# Prepare PATH_SEPARATOR.
4483# The user is always right.
4484if test "${PATH_SEPARATOR+set}" != set; then
4485 echo "#! /bin/sh" >conf$$.sh
4486 echo "exit 0" >>conf$$.sh
4487 chmod +x conf$$.sh
4488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4489 PATH_SEPARATOR=';'
4490 else
4491 PATH_SEPARATOR=:
4492 fi
4493 rm -f conf$$.sh
4494fi
4495
4496# Find out how to test for executable files. Don't use a zero-byte file,
4497# as systems may use methods other than mode bits to determine executability.
4498cat >conf$$.file <<_ASEOF
4499#! /bin/sh
4500exit 0
4501_ASEOF
4502chmod +x conf$$.file
4503if test -x conf$$.file >/dev/null 2>&1; then
4504 ac_executable_p="test -x"
4505else
4506 ac_executable_p="test -f"
4507fi
4508rm -f conf$$.file
4509
4510# Extract the first word of "msgmerge", so it can be a program name with args.
4511set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004514if test "${ac_cv_path_MSGMERGE+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 case "$MSGMERGE" in
4518 [\\/]* | ?:[\\/]*)
4519 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4520 ;;
4521 *)
4522 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4523 for ac_dir in $PATH; do
4524 IFS="$ac_save_IFS"
4525 test -z "$ac_dir" && ac_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4528 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4529 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4530 break 2
4531 fi
4532 fi
4533 done
4534 done
4535 IFS="$ac_save_IFS"
4536 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4537 ;;
4538esac
4539fi
4540MSGMERGE="$ac_cv_path_MSGMERGE"
4541if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004542 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4543echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004544else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004545 { echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004547fi
4548
4549
4550 if test "$GMSGFMT" != ":"; then
4551 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4552 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4553 : ;
4554 else
4555 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004556 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4557echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004558 GMSGFMT=":"
4559 fi
4560 fi
4561
4562 if test "$XGETTEXT" != ":"; then
4563 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4564 (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
4565 : ;
4566 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004567 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4568echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004569 XGETTEXT=":"
4570 fi
4571 rm -f messages.po
4572 fi
4573
Theodore Ts'oe1052142006-10-21 21:46:47 -04004574 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575
4576
4577if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004582if test "${ac_cv_prog_RANLIB+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004584else
4585 if test -n "$RANLIB"; then
4586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4587else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004600done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004601IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004602
4603fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004604fi
4605RANLIB=$ac_cv_prog_RANLIB
4606if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004607 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4608echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004609else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004610 { echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004612fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004613
Theodore Ts'oe1052142006-10-21 21:46:47 -04004614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004615fi
4616if test -z "$ac_cv_prog_RANLIB"; then
4617 ac_ct_RANLIB=$RANLIB
4618 # Extract the first word of "ranlib", so it can be a program name with args.
4619set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004622if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 if test -n "$ac_ct_RANLIB"; then
4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004635 ac_cv_prog_ac_ct_RANLIB="ranlib"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
4640done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004641IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004643fi
4644fi
4645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004647 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004649else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650 { echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004652fi
4653
Theodore Ts'oe1052142006-10-21 21:46:47 -04004654 if test "x$ac_ct_RANLIB" = x; then
4655 RANLIB=":"
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658yes:)
4659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4660whose name does not start with the host triplet. If you think this
4661configuration is useful to you, please write to autoconf@gnu.org." >&5
4662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4663whose name does not start with the host triplet. If you think this
4664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4665ac_tool_warned=yes ;;
4666esac
4667 RANLIB=$ac_ct_RANLIB
4668 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004669else
4670 RANLIB="$ac_cv_prog_RANLIB"
4671fi
4672
4673
Theodore Ts'oe1052142006-10-21 21:46:47 -04004674 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4675echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004676if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679 ac_check_lib_save_LIBS=$LIBS
4680LIBS="-lcposix $LIBS"
4681cat >conftest.$ac_ext <<_ACEOF
4682/* confdefs.h. */
4683_ACEOF
4684cat confdefs.h >>conftest.$ac_ext
4685cat >>conftest.$ac_ext <<_ACEOF
4686/* end confdefs.h. */
4687
Theodore Ts'oe1052142006-10-21 21:46:47 -04004688/* Override any GCC internal prototype to avoid an error.
4689 Use char because int might match the return type of a GCC
4690 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004691#ifdef __cplusplus
4692extern "C"
4693#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004694char strerror ();
4695int
4696main ()
4697{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004698return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004699 ;
4700 return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004704if { (ac_try="$ac_link"
4705case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708esac
4709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest$ac_exeext &&
4720 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004721 ac_cv_lib_cposix_strerror=yes
4722else
4723 echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
Theodore Ts'oe1052142006-10-21 21:46:47 -04004726 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004728
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004730 conftest$ac_exeext conftest.$ac_ext
4731LIBS=$ac_check_lib_save_LIBS
4732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004733{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4734echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004735if test $ac_cv_lib_cposix_strerror = yes; then
4736 LIBS="$LIBS -lcposix"
4737fi
4738
4739
4740
Theodore Ts'oe1052142006-10-21 21:46:47 -04004741{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4742echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004743if test "${ac_cv_c_const+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 cat >conftest.$ac_ext <<_ACEOF
4747/* confdefs.h. */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h. */
4752
4753int
4754main ()
4755{
4756/* FIXME: Include the comments suggested by Paul. */
4757#ifndef __cplusplus
4758 /* Ultrix mips cc rejects this. */
4759 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004760 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004761 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004762 char const *const *pcpcc;
4763 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004764 /* NEC SVR4.0.2 mips cc rejects this. */
4765 struct point {int x, y;};
4766 static struct point const zero = {0,0};
4767 /* AIX XL C 1.02.0.0 rejects this.
4768 It does not let you subtract one const X* pointer from another in
4769 an arm of an if-expression whose if-part is not a constant
4770 expression */
4771 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004772 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004773 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004774 ++pcpcc;
4775 ppc = (char**) pcpcc;
4776 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004777 { /* SCO 3.2v4 cc rejects this. */
4778 char *t;
4779 char const *s = 0 ? (char *) 0 : (char const *) 0;
4780
4781 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004782 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004783 }
4784 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4785 int x[] = {25, 17};
4786 const int *foo = &x[0];
4787 ++foo;
4788 }
4789 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4790 typedef const int *iptr;
4791 iptr p = 0;
4792 ++p;
4793 }
4794 { /* AIX XL C 1.02.0.0 rejects this saying
4795 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4796 struct s { int j; const int *ap[3]; };
4797 struct s *b; b->j = 5;
4798 }
4799 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4800 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004801 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004802 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004803 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004804#endif
4805
4806 ;
4807 return 0;
4808}
4809_ACEOF
4810rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004811if { (ac_try="$ac_compile"
4812case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815esac
4816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004818 ac_status=$?
4819 grep -v '^ *+' conftest.er1 >conftest.err
4820 rm -f conftest.er1
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004823 (exit $ac_status); } && {
4824 test -z "$ac_c_werror_flag" ||
4825 test ! -s conftest.err
4826 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004827 ac_cv_c_const=yes
4828else
4829 echo "$as_me: failed program was:" >&5
4830sed 's/^/| /' conftest.$ac_ext >&5
4831
Theodore Ts'oe1052142006-10-21 21:46:47 -04004832 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004833fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004834
4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004836fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004837{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4838echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004839if test $ac_cv_c_const = no; then
4840
4841cat >>confdefs.h <<\_ACEOF
4842#define const
4843_ACEOF
4844
4845fi
4846
4847
Theodore Ts'oe1052142006-10-21 21:46:47 -04004848 { echo "$as_me:$LINENO: checking for signed" >&5
4849echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004850if test "${bh_cv_c_signed+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 cat >conftest.$ac_ext <<_ACEOF
4854/* confdefs.h. */
4855_ACEOF
4856cat confdefs.h >>conftest.$ac_ext
4857cat >>conftest.$ac_ext <<_ACEOF
4858/* end confdefs.h. */
4859
4860int
4861main ()
4862{
4863signed char x;
4864 ;
4865 return 0;
4866}
4867_ACEOF
4868rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004869if { (ac_try="$ac_compile"
4870case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873esac
4874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004881 (exit $ac_status); } && {
4882 test -z "$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004885 bh_cv_c_signed=yes
4886else
4887 echo "$as_me: failed program was:" >&5
4888sed 's/^/| /' conftest.$ac_ext >&5
4889
Theodore Ts'oe1052142006-10-21 21:46:47 -04004890 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004891fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004892
4893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004895{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4896echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004897 if test $bh_cv_c_signed = no; then
4898
4899cat >>confdefs.h <<\_ACEOF
4900#define signed
4901_ACEOF
4902
4903 fi
4904
Theodore Ts'oe1052142006-10-21 21:46:47 -04004905{ echo "$as_me:$LINENO: checking for inline" >&5
4906echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004907if test "${ac_cv_c_inline+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 ac_cv_c_inline=no
4911for ac_kw in inline __inline__ __inline; do
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918#ifndef __cplusplus
4919typedef int foo_t;
4920static $ac_kw foo_t static_foo () {return 0; }
4921$ac_kw foo_t foo () {return 0; }
4922#endif
4923
4924_ACEOF
4925rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004926if { (ac_try="$ac_compile"
4927case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930esac
4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004942 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004943else
4944 echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
Theodore Ts'oe1052142006-10-21 21:46:47 -04004947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004948fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004952done
4953
4954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004955{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4956echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004957
4958
4959case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004960 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004961 *)
4962 case $ac_cv_c_inline in
4963 no) ac_val=;;
4964 *) ac_val=$ac_cv_c_inline;;
4965 esac
4966 cat >>confdefs.h <<_ACEOF
4967#ifndef __cplusplus
4968#define inline $ac_val
4969#endif
4970_ACEOF
4971 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004972esac
4973
Theodore Ts'oe1052142006-10-21 21:46:47 -04004974{ echo "$as_me:$LINENO: checking for off_t" >&5
4975echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004976if test "${ac_cv_type_off_t+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004978else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004987int
4988main ()
4989{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004990if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004991 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004992if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004993 return 0;
4994 ;
4995 return 0;
4996}
4997_ACEOF
4998rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004999if { (ac_try="$ac_compile"
5000case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003esac
5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005011 (exit $ac_status); } && {
5012 test -z "$ac_c_werror_flag" ||
5013 test ! -s conftest.err
5014 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005015 ac_cv_type_off_t=yes
5016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005017 echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005019
Theodore Ts'oe1052142006-10-21 21:46:47 -04005020 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022
5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005025{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5026echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005027if test $ac_cv_type_off_t = yes; then
5028 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005030
5031cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005032#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005033_ACEOF
5034
5035fi
5036
Theodore Ts'oe1052142006-10-21 21:46:47 -04005037{ echo "$as_me:$LINENO: checking for size_t" >&5
5038echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005039if test "${ac_cv_type_size_t+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042 cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h. */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h. */
5048$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005049typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050int
5051main ()
5052{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005053if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005054 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005055if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005056 return 0;
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005062if { (ac_try="$ac_compile"
5063case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066esac
5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005074 (exit $ac_status); } && {
5075 test -z "$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005078 ac_cv_type_size_t=yes
5079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
Theodore Ts'oe1052142006-10-21 21:46:47 -04005083 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005085
5086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005088{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5089echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005090if test $ac_cv_type_size_t = yes; then
5091 :
5092else
5093
5094cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005095#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005096_ACEOF
5097
5098fi
5099
5100
Theodore Ts'oe1052142006-10-21 21:46:47 -04005101 { echo "$as_me:$LINENO: checking for long long" >&5
5102echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005103if test "${ac_cv_type_long_long+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
5112long long ll = 1LL; int i = 63;
5113int
5114main ()
5115{
5116long long llmax = (long long) -1;
5117 return ll << i | ll >> i | llmax / ll | llmax % ll;
5118 ;
5119 return 0;
5120}
5121_ACEOF
5122rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005123if { (ac_try="$ac_link"
5124case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005135 (exit $ac_status); } && {
5136 test -z "$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 } && test -s conftest$ac_exeext &&
5139 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005140 ac_cv_type_long_long=yes
5141else
5142 echo "$as_me: failed program was:" >&5
5143sed 's/^/| /' conftest.$ac_ext >&5
5144
Theodore Ts'oe1052142006-10-21 21:46:47 -04005145 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005146fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005147
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005149 conftest$ac_exeext conftest.$ac_ext
5150fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005151{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5152echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005153 if test $ac_cv_type_long_long = yes; then
5154
5155cat >>confdefs.h <<\_ACEOF
5156#define HAVE_LONG_LONG 1
5157_ACEOF
5158
5159 fi
5160
5161
Theodore Ts'oe1052142006-10-21 21:46:47 -04005162 { echo "$as_me:$LINENO: checking for long double" >&5
5163echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005164if test "${gt_cv_c_long_double+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166else
5167 if test "$GCC" = yes; then
5168 gt_cv_c_long_double=yes
5169 else
5170 cat >conftest.$ac_ext <<_ACEOF
5171/* confdefs.h. */
5172_ACEOF
5173cat confdefs.h >>conftest.$ac_ext
5174cat >>conftest.$ac_ext <<_ACEOF
5175/* end confdefs.h. */
5176
5177 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5178 long double foo = 0.0;
5179 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5180 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5181
5182int
5183main ()
5184{
5185
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005191if { (ac_try="$ac_compile"
5192case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005198 ac_status=$?
5199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005203 (exit $ac_status); } && {
5204 test -z "$ac_c_werror_flag" ||
5205 test ! -s conftest.err
5206 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005207 gt_cv_c_long_double=yes
5208else
5209 echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
Theodore Ts'oe1052142006-10-21 21:46:47 -04005212 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005213fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005214
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005216 fi
5217fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005218{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5219echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005220 if test $gt_cv_c_long_double = yes; then
5221
5222cat >>confdefs.h <<\_ACEOF
5223#define HAVE_LONG_DOUBLE 1
5224_ACEOF
5225
5226 fi
5227
5228
Theodore Ts'oe1052142006-10-21 21:46:47 -04005229 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5230echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005231if test "${gt_cv_c_wchar_t+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234 cat >conftest.$ac_ext <<_ACEOF
5235/* confdefs.h. */
5236_ACEOF
5237cat confdefs.h >>conftest.$ac_ext
5238cat >>conftest.$ac_ext <<_ACEOF
5239/* end confdefs.h. */
5240#include <stddef.h>
5241 wchar_t foo = (wchar_t)'\0';
5242int
5243main ()
5244{
5245
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005251if { (ac_try="$ac_compile"
5252case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005267 gt_cv_c_wchar_t=yes
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
Theodore Ts'oe1052142006-10-21 21:46:47 -04005272 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005273fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005274
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005277{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5278echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005279 if test $gt_cv_c_wchar_t = yes; then
5280
5281cat >>confdefs.h <<\_ACEOF
5282#define HAVE_WCHAR_T 1
5283_ACEOF
5284
5285 fi
5286
5287
Theodore Ts'oe1052142006-10-21 21:46:47 -04005288 { echo "$as_me:$LINENO: checking for wint_t" >&5
5289echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005290if test "${gt_cv_c_wint_t+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293 cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h. */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h. */
5299#include <wchar.h>
5300 wint_t foo = (wchar_t)'\0';
5301int
5302main ()
5303{
5304
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005310if { (ac_try="$ac_compile"
5311case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005326 gt_cv_c_wint_t=yes
5327else
5328 echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
Theodore Ts'oe1052142006-10-21 21:46:47 -04005331 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005332fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005333
5334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005335fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005336{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5337echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005338 if test $gt_cv_c_wint_t = yes; then
5339
5340cat >>confdefs.h <<\_ACEOF
5341#define HAVE_WINT_T 1
5342_ACEOF
5343
5344 fi
5345
5346
Theodore Ts'oe1052142006-10-21 21:46:47 -04005347 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5348echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005349if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 cat >conftest.$ac_ext <<_ACEOF
5353/* confdefs.h. */
5354_ACEOF
5355cat confdefs.h >>conftest.$ac_ext
5356cat >>conftest.$ac_ext <<_ACEOF
5357/* end confdefs.h. */
5358#include <sys/types.h>
5359#include <inttypes.h>
5360int
5361main ()
5362{
5363uintmax_t i = (uintmax_t) -1;
5364 ;
5365 return 0;
5366}
5367_ACEOF
5368rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005369if { (ac_try="$ac_compile"
5370case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373esac
5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005381 (exit $ac_status); } && {
5382 test -z "$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005385 jm_ac_cv_header_inttypes_h=yes
5386else
5387 echo "$as_me: failed program was:" >&5
5388sed 's/^/| /' conftest.$ac_ext >&5
5389
Theodore Ts'oe1052142006-10-21 21:46:47 -04005390 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005392
5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005394fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005395{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5396echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005397 if test $jm_ac_cv_header_inttypes_h = yes; then
5398
5399cat >>confdefs.h <<_ACEOF
5400#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5401_ACEOF
5402
5403 fi
5404
5405
Theodore Ts'oe1052142006-10-21 21:46:47 -04005406 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5407echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005408if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417#include <sys/types.h>
5418#include <stdint.h>
5419int
5420main ()
5421{
5422uintmax_t i = (uintmax_t) -1;
5423 ;
5424 return 0;
5425}
5426_ACEOF
5427rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005428if { (ac_try="$ac_compile"
5429case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432esac
5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005440 (exit $ac_status); } && {
5441 test -z "$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005444 jm_ac_cv_header_stdint_h=yes
5445else
5446 echo "$as_me: failed program was:" >&5
5447sed 's/^/| /' conftest.$ac_ext >&5
5448
Theodore Ts'oe1052142006-10-21 21:46:47 -04005449 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005451
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005453fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005454{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5455echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005456 if test $jm_ac_cv_header_stdint_h = yes; then
5457
5458cat >>confdefs.h <<_ACEOF
5459#define HAVE_STDINT_H_WITH_UINTMAX 1
5460_ACEOF
5461
5462 fi
5463
5464
5465
5466
Theodore Ts'oe1052142006-10-21 21:46:47 -04005467 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5468echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005469if test "${gt_cv_c_intmax_t+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472 cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478
5479#include <stddef.h>
5480#include <stdlib.h>
5481#if HAVE_STDINT_H_WITH_UINTMAX
5482#include <stdint.h>
5483#endif
5484#if HAVE_INTTYPES_H_WITH_UINTMAX
5485#include <inttypes.h>
5486#endif
5487
5488int
5489main ()
5490{
5491intmax_t x = -1;
5492 ;
5493 return 0;
5494}
5495_ACEOF
5496rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005497if { (ac_try="$ac_compile"
5498case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501esac
5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005513 gt_cv_c_intmax_t=yes
5514else
5515 echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
Theodore Ts'oe1052142006-10-21 21:46:47 -04005518 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005520
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005523{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5524echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005525 if test $gt_cv_c_intmax_t = yes; then
5526
5527cat >>confdefs.h <<\_ACEOF
5528#define HAVE_INTMAX_T 1
5529_ACEOF
5530
5531 fi
5532
5533
5534
Theodore Ts'oe1052142006-10-21 21:46:47 -04005535 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5536echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005537if test "${gt_cv_func_printf_posix+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540
5541 if test "$cross_compiling" = yes; then
5542
5543 cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h. */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h. */
5549
5550#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5551 notposix
5552#endif
5553
5554_ACEOF
5555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5556 $EGREP "notposix" >/dev/null 2>&1; then
5557 gt_cv_func_printf_posix="guessing no"
5558else
5559 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005560fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005561rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005563
5564else
5565 cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h. */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h. */
5571
5572#include <stdio.h>
5573#include <string.h>
5574/* The string "%2$d %1$d", with dollar characters protected from the shell's
5575 dollar expansion (possibly an autoconf bug). */
5576static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5577static char buf[100];
5578int main ()
5579{
5580 sprintf (buf, format, 33, 55);
5581 return (strcmp (buf, "55 33") != 0);
5582}
5583_ACEOF
5584rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005585if { (ac_try="$ac_link"
5586case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589esac
5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 gt_cv_func_printf_posix=yes
5605else
5606 echo "$as_me: program exited with status $ac_status" >&5
5607echo "$as_me: failed program was:" >&5
5608sed 's/^/| /' conftest.$ac_ext >&5
5609
5610( exit $ac_status )
5611gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005613rm -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 -05005614fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005615
Theodore Ts'oe1052142006-10-21 21:46:47 -04005616
5617
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005618fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005619{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5620echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621 case $gt_cv_func_printf_posix in
5622 *yes)
5623
5624cat >>confdefs.h <<\_ACEOF
5625#define HAVE_POSIX_PRINTF 1
5626_ACEOF
5627
5628 ;;
5629 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005630
5631# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5632# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005633{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5634echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005635if test "${ac_cv_working_alloca_h+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005637else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005638 cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h. */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005644#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645int
5646main ()
5647{
5648char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005649 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005650 ;
5651 return 0;
5652}
5653_ACEOF
5654rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005655if { (ac_try="$ac_link"
5656case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659esac
5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest$ac_exeext &&
5671 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005672 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005673else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674 echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005676
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005679
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681 conftest$ac_exeext conftest.$ac_ext
5682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005683{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5684echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005685if test $ac_cv_working_alloca_h = yes; then
5686
5687cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005688#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005689_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005690
5691fi
5692
Theodore Ts'oe1052142006-10-21 21:46:47 -04005693{ echo "$as_me:$LINENO: checking for alloca" >&5
5694echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005695if test "${ac_cv_func_alloca_works+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005697else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005698 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. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005704#ifdef __GNUC__
5705# define alloca __builtin_alloca
5706#else
5707# ifdef _MSC_VER
5708# include <malloc.h>
5709# define alloca _alloca
5710# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005711# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005712# include <alloca.h>
5713# else
5714# ifdef _AIX
5715 #pragma alloca
5716# else
5717# ifndef alloca /* predefined by HP cc +Olibcalls */
5718char *alloca ();
5719# endif
5720# endif
5721# endif
5722# endif
5723#endif
5724
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725int
5726main ()
5727{
5728char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04005729 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005730 ;
5731 return 0;
5732}
5733_ACEOF
5734rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005735if { (ac_try="$ac_link"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest$ac_exeext &&
5751 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005752 ac_cv_func_alloca_works=yes
5753else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005754 echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005756
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005759
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761 conftest$ac_exeext conftest.$ac_ext
5762fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005763{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5764echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005765
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005766if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005767
5768cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005769#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005770_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005771
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005772else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005773 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5774# that cause trouble. Some versions do not even contain alloca or
5775# contain a buggy version. If you still want to use their alloca,
5776# use ar to extract alloca.o from them instead of compiling alloca.c.
5777
Theodore Ts'oe1052142006-10-21 21:46:47 -04005778ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005779
5780cat >>confdefs.h <<\_ACEOF
5781#define C_ALLOCA 1
5782_ACEOF
5783
5784
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5786echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787if test "${ac_cv_os_cray+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005796#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005797webecray
5798#else
5799wenotbecray
5800#endif
5801
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005802_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005804 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005805 ac_cv_os_cray=yes
5806else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005807 ac_cv_os_cray=no
5808fi
5809rm -f conftest*
5810
5811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005812{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5813echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005814if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005815 for ac_func in _getb67 GETB67 getb67; do
5816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005820 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005821else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005822 cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
5828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5830#define $ac_func innocuous_$ac_func
5831
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005832/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833 which can conflict with char $ac_func (); below.
5834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5835 <limits.h> exists even on freestanding compilers. */
5836
5837#ifdef __STDC__
5838# include <limits.h>
5839#else
5840# include <assert.h>
5841#endif
5842
5843#undef $ac_func
5844
Theodore Ts'oe1052142006-10-21 21:46:47 -04005845/* Override any GCC internal prototype to avoid an error.
5846 Use char because int might match the return type of a GCC
5847 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005848#ifdef __cplusplus
5849extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005850#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005851char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005852/* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005855#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005856choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005857#endif
5858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005859int
5860main ()
5861{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005862return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005863 ;
5864 return 0;
5865}
5866_ACEOF
5867rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005868if { (ac_try="$ac_link"
5869case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872esac
5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest$ac_exeext &&
5884 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005885 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005886else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005887 echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005889
Theodore Ts'oe1052142006-10-21 21:46:47 -04005890 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005891fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005892
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005894 conftest$ac_exeext conftest.$ac_ext
5895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005896ac_res=`eval echo '${'$as_ac_var'}'`
5897 { echo "$as_me:$LINENO: result: $ac_res" >&5
5898echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005899if test `eval echo '${'$as_ac_var'}'` = yes; then
5900
5901cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005902#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005903_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005905 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005906fi
5907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005908 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005909fi
5910
Theodore Ts'oe1052142006-10-21 21:46:47 -04005911{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5912echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005913if test "${ac_cv_c_stack_direction+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005915else
5916 if test "$cross_compiling" = yes; then
5917 ac_cv_c_stack_direction=0
5918else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005925$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005926int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005927find_stack_direction ()
5928{
5929 static char *addr = 0;
5930 auto char dummy;
5931 if (addr == 0)
5932 {
5933 addr = &dummy;
5934 return find_stack_direction ();
5935 }
5936 else
5937 return (&dummy > addr) ? 1 : -1;
5938}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005939
5940int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005941main ()
5942{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005943 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005944}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005945_ACEOF
5946rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005947if { (ac_try="$ac_link"
5948case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960esac
5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005966 ac_cv_c_stack_direction=1
5967else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968 echo "$as_me: program exited with status $ac_status" >&5
5969echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005972( exit $ac_status )
5973ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005974fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005975rm -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 -05005976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005977
5978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005980{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5981echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005983cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005984#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005985_ACEOF
5986
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005987
5988fi
5989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005990
5991
5992for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005993do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006001ac_res=`eval echo '${'$as_ac_Header'}'`
6002 { echo "$as_me:$LINENO: result: $ac_res" >&5
6003echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006005 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006006{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006008cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014$ac_includes_default
6015#include <$ac_header>
6016_ACEOF
6017rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006018if { (ac_try="$ac_compile"
6019case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025 ac_status=$?
6026 grep -v '^ *+' conftest.er1 >conftest.err
6027 rm -f conftest.er1
6028 cat conftest.err >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006030 (exit $ac_status); } && {
6031 test -z "$ac_c_werror_flag" ||
6032 test ! -s conftest.err
6033 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034 ac_header_compiler=yes
6035else
6036 echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
Theodore Ts'oe1052142006-10-21 21:46:47 -04006039 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006040fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006041
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6044echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045
6046# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055#include <$ac_header>
6056_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006057if { (ac_try="$ac_cpp conftest.$ac_ext"
6058case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006069 (exit $ac_status); } >/dev/null && {
6070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073 ac_header_preproc=yes
6074else
6075 echo "$as_me: failed program was:" >&5
6076sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 ac_header_preproc=no
6079fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084
6085# So? What about this header?
6086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6087 yes:no: )
6088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6092 ac_header_preproc=yes
6093 ;;
6094 no:yes:* )
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108 ;;
6109esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 eval "$as_ac_Header=\$ac_header_preproc"
6116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006117ac_res=`eval echo '${'$as_ac_Header'}'`
6118 { echo "$as_me:$LINENO: result: $ac_res" >&5
6119echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120
6121fi
6122if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123 cat >>confdefs.h <<_ACEOF
6124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125_ACEOF
6126
6127fi
6128
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006129done
6130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006131
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006132for ac_func in getpagesize
6133do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006135{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6137if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140 cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6148#define $ac_func innocuous_$ac_func
6149
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006150/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151 which can conflict with char $ac_func (); below.
6152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6153 <limits.h> exists even on freestanding compilers. */
6154
6155#ifdef __STDC__
6156# include <limits.h>
6157#else
6158# include <assert.h>
6159#endif
6160
6161#undef $ac_func
6162
Theodore Ts'oe1052142006-10-21 21:46:47 -04006163/* Override any GCC internal prototype to avoid an error.
6164 Use char because int might match the return type of a GCC
6165 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166#ifdef __cplusplus
6167extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006170/* The GNU C library defines this for functions which it implements
6171 to always fail with ENOSYS. Some functions are actually named
6172 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006173#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006174choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006175#endif
6176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006177int
6178main ()
6179{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006180return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006181 ;
6182 return 0;
6183}
6184_ACEOF
6185rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006186if { (ac_try="$ac_link"
6187case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest$ac_exeext &&
6202 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006203 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006204else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006205 echo "$as_me: failed program was:" >&5
6206sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006207
Theodore Ts'oe1052142006-10-21 21:46:47 -04006208 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006209fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006210
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006212 conftest$ac_exeext conftest.$ac_ext
6213fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006214ac_res=`eval echo '${'$as_ac_var'}'`
6215 { echo "$as_me:$LINENO: result: $ac_res" >&5
6216echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006217if test `eval echo '${'$as_ac_var'}'` = yes; then
6218 cat >>confdefs.h <<_ACEOF
6219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6220_ACEOF
6221
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006222fi
6223done
6224
Theodore Ts'oe1052142006-10-21 21:46:47 -04006225{ echo "$as_me:$LINENO: checking for working mmap" >&5
6226echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006227if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006229else
6230 if test "$cross_compiling" = yes; then
6231 ac_cv_func_mmap_fixed_mapped=no
6232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233 cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h. */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */
6239$ac_includes_default
6240/* malloc might have been renamed as rpl_malloc. */
6241#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006242
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006243/* Thanks to Mike Haertel and Jim Avera for this test.
6244 Here is a matrix of mmap possibilities:
6245 mmap private not fixed
6246 mmap private fixed at somewhere currently unmapped
6247 mmap private fixed at somewhere already mapped
6248 mmap shared not fixed
6249 mmap shared fixed at somewhere currently unmapped
6250 mmap shared fixed at somewhere already mapped
6251 For private mappings, we should verify that changes cannot be read()
6252 back from the file, nor mmap's back from the file at a different
6253 address. (There have been systems where private was not correctly
6254 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006255 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006256 like early versions of FreeBSD and possibly contemporary NetBSD.)
6257 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006259
6260 Grep wants private fixed already mapped.
6261 The main things grep needs to know about mmap are:
6262 * does it exist and is it safe to write into the mmap'd area
6263 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006264
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006265#include <fcntl.h>
6266#include <sys/mman.h>
6267
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006268#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006269char *malloc ();
6270#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006272/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006273#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006274/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006275# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006276# define HAVE_SYS_PARAM_H 1
6277# endif
6278
6279# ifdef _SC_PAGESIZE
6280# define getpagesize() sysconf(_SC_PAGESIZE)
6281# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006282# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006283# include <sys/param.h>
6284# ifdef EXEC_PAGESIZE
6285# define getpagesize() EXEC_PAGESIZE
6286# else /* no EXEC_PAGESIZE */
6287# ifdef NBPG
6288# define getpagesize() NBPG * CLSIZE
6289# ifndef CLSIZE
6290# define CLSIZE 1
6291# endif /* no CLSIZE */
6292# else /* no NBPG */
6293# ifdef NBPC
6294# define getpagesize() NBPC
6295# else /* no NBPC */
6296# ifdef PAGESIZE
6297# define getpagesize() PAGESIZE
6298# endif /* PAGESIZE */
6299# endif /* no NBPC */
6300# endif /* no NBPG */
6301# endif /* no EXEC_PAGESIZE */
6302# else /* no HAVE_SYS_PARAM_H */
6303# define getpagesize() 8192 /* punt totally */
6304# endif /* no HAVE_SYS_PARAM_H */
6305# endif /* no _SC_PAGESIZE */
6306
6307#endif /* no HAVE_GETPAGESIZE */
6308
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006309int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006311{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006312 char *data, *data2, *data3;
6313 int i, pagesize;
6314 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006316 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006318 /* First, make a file with some known garbage in it. */
6319 data = (char *) malloc (pagesize);
6320 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006321 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006322 for (i = 0; i < pagesize; ++i)
6323 *(data + i) = rand ();
6324 umask (0);
6325 fd = creat ("conftest.mmap", 0600);
6326 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006327 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006328 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006329 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006330 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332 /* Next, try to mmap the file at a fixed address which already has
6333 something else allocated at it. If we can, also make sure that
6334 we see the same garbage. */
6335 fd = open ("conftest.mmap", O_RDWR);
6336 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006337 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338 data2 = (char *) malloc (2 * pagesize);
6339 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006340 return 1;
6341 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006342 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6343 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006344 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006345 for (i = 0; i < pagesize; ++i)
6346 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006347 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006348
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006349 /* Finally, make sure that changes to the mapped area do not
6350 percolate back to the file as seen by read(). (This is a bug on
6351 some variants of i386 svr4.0.) */
6352 for (i = 0; i < pagesize; ++i)
6353 *(data2 + i) = *(data2 + i) + 1;
6354 data3 = (char *) malloc (pagesize);
6355 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006356 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006358 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006359 for (i = 0; i < pagesize; ++i)
6360 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006361 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006363 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006364}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006365_ACEOF
6366rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006367if { (ac_try="$ac_link"
6368case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371esac
6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006377 { (case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380esac
6381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006386 ac_cv_func_mmap_fixed_mapped=yes
6387else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006388 echo "$as_me: program exited with status $ac_status" >&5
6389echo "$as_me: failed program was:" >&5
6390sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006391
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006392( exit $ac_status )
6393ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006394fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006395rm -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 -05006396fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006397
6398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006400{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6401echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006402if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006403
6404cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006405#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006406_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006407
6408fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006409rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006410
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006411
Theodore Ts'oe1052142006-10-21 21:46:47 -04006412 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6413echo $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 -05006414if test "${ac_cv_gnu_library_2_1+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006416else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006417 cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006423
6424#include <features.h>
6425#ifdef __GNU_LIBRARY__
6426 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6427 Lucky GNU user
6428 #endif
6429#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006430
6431_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006434 ac_cv_gnu_library_2_1=yes
6435else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006436 ac_cv_gnu_library_2_1=no
6437fi
6438rm -f conftest*
6439
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440
6441
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006442fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006443{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6444echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006445
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006446 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006447
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006449
6450
Theodore Ts'oe1052142006-10-21 21:46:47 -04006451 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6452echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006455else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006457 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006459 # Guess based on the CPU.
6460 case "$host_cpu" in
6461 alpha* | i3456786 | m68k | s390*)
6462 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6463 *)
6464 gt_cv_int_divbyzero_sigfpe="guessing no";;
6465 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006467else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468 cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h. */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006474
6475#include <stdlib.h>
6476#include <signal.h>
6477
6478static void
6479#ifdef __cplusplus
6480sigfpe_handler (int sig)
6481#else
6482sigfpe_handler (sig) int sig;
6483#endif
6484{
6485 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6486 exit (sig != SIGFPE);
6487}
6488
6489int x = 1;
6490int y = 0;
6491int z;
6492int nan;
6493
6494int main ()
6495{
6496 signal (SIGFPE, sigfpe_handler);
6497/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6498#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6499 signal (SIGTRAP, sigfpe_handler);
6500#endif
6501/* Linux/SPARC yields signal SIGILL. */
6502#if defined (__sparc__) && defined (__linux__)
6503 signal (SIGILL, sigfpe_handler);
6504#endif
6505
6506 z = x / y;
6507 nan = y / y;
6508 exit (1);
6509}
6510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006511_ACEOF
6512rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006513if { (ac_try="$ac_link"
6514case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517esac
6518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006532 gt_cv_int_divbyzero_sigfpe=yes
6533else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534 echo "$as_me: program exited with status $ac_status" >&5
6535echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
6538( exit $ac_status )
6539gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006540fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006541rm -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 -04006542fi
6543
Theodore Ts'oe1052142006-10-21 21:46:47 -04006544
6545
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006546fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006547{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6548echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006549 case "$gt_cv_int_divbyzero_sigfpe" in
6550 *yes) value=1;;
6551 *) value=0;;
6552 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553
6554cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006555#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006557
6558
6559
Theodore Ts'oe1052142006-10-21 21:46:47 -04006560 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6561echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565 cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h. */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h. */
6571unsigned long long ull = 1ULL; int i = 63;
6572int
6573main ()
6574{
6575unsigned long long ullmax = (unsigned long long) -1;
6576 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6577 ;
6578 return 0;
6579}
6580_ACEOF
6581rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006582if { (ac_try="$ac_link"
6583case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6586esac
6587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest$ac_exeext &&
6598 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006599 ac_cv_type_unsigned_long_long=yes
6600else
6601 echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
Theodore Ts'oe1052142006-10-21 21:46:47 -04006604 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006606
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608 conftest$ac_exeext conftest.$ac_ext
6609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006610{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6611echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612 if test $ac_cv_type_unsigned_long_long = yes; then
6613
6614cat >>confdefs.h <<\_ACEOF
6615#define HAVE_UNSIGNED_LONG_LONG 1
6616_ACEOF
6617
6618 fi
6619
6620
6621
6622
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006623 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 -05006624
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006625 test $ac_cv_type_unsigned_long_long = yes \
6626 && ac_type='unsigned long long' \
6627 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628
6629cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006630#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631_ACEOF
6632
6633 else
6634
6635cat >>confdefs.h <<\_ACEOF
6636#define HAVE_UINTMAX_T 1
6637_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006638
6639 fi
6640
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006641
Theodore Ts'oe1052142006-10-21 21:46:47 -04006642 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6643echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644if test "${gt_cv_header_inttypes_h+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006646else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006647
6648 cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h. */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006654#include <sys/types.h>
6655#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656int
6657main ()
6658{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006659
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006660 ;
6661 return 0;
6662}
6663_ACEOF
6664rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006665if { (ac_try="$ac_compile"
6666case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669esac
6670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006681 gt_cv_header_inttypes_h=yes
6682else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683 echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006685
Theodore Ts'oe1052142006-10-21 21:46:47 -04006686 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006687fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690
6691fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006692{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6693echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006694 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695
6696cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006697#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006698_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006699
6700 fi
6701
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006702
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006703
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006704 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04006705 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6706echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006707if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006709else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006710
6711 cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h. */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006717#include <inttypes.h>
6718#ifdef PRId32
6719char *p = PRId32;
6720#endif
6721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722int
6723main ()
6724{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726 ;
6727 return 0;
6728}
6729_ACEOF
6730rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006731if { (ac_try="$ac_compile"
6732case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735esac
6736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006747 gt_cv_inttypes_pri_broken=no
6748else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749 echo "$as_me: failed program was:" >&5
6750sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006751
Theodore Ts'oe1052142006-10-21 21:46:47 -04006752 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006754
6755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756
6757fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006758{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6759echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006760 fi
6761 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006762
6763cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006764#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006766
6767 fi
6768
6769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006770
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771for ac_header in stdint.h
6772do
6773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006780ac_res=`eval echo '${'$as_ac_Header'}'`
6781 { echo "$as_me:$LINENO: result: $ac_res" >&5
6782echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006783else
6784 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006785{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
6793$ac_includes_default
6794#include <$ac_header>
6795_ACEOF
6796rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006797if { (ac_try="$ac_compile"
6798case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801esac
6802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006809 (exit $ac_status); } && {
6810 test -z "$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6812 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813 ac_header_compiler=yes
6814else
6815 echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
Theodore Ts'oe1052142006-10-21 21:46:47 -04006818 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006820
6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6823echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824
6825# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006826{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006828cat >conftest.$ac_ext <<_ACEOF
6829/* confdefs.h. */
6830_ACEOF
6831cat confdefs.h >>conftest.$ac_ext
6832cat >>conftest.$ac_ext <<_ACEOF
6833/* end confdefs.h. */
6834#include <$ac_header>
6835_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006836if { (ac_try="$ac_cpp conftest.$ac_ext"
6837case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
6841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006848 (exit $ac_status); } >/dev/null && {
6849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852 ac_header_preproc=yes
6853else
6854 echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_header_preproc=no
6858fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006861{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6862echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006863
6864# So? What about this header?
6865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6866 yes:no: )
6867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6871 ac_header_preproc=yes
6872 ;;
6873 no:yes:* )
6874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006887 ;;
6888esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006889{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 eval "$as_ac_Header=\$ac_header_preproc"
6895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006896ac_res=`eval echo '${'$as_ac_Header'}'`
6897 { echo "$as_me:$LINENO: result: $ac_res" >&5
6898echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899
6900fi
6901if test `eval echo '${'$as_ac_Header'}'` = yes; then
6902 cat >>confdefs.h <<_ACEOF
6903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6904_ACEOF
6905
6906fi
6907
6908done
6909
Theodore Ts'oe1052142006-10-21 21:46:47 -04006910 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6911echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912 result=
6913 cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
6919
6920#include <limits.h>
6921#if HAVE_STDINT_H
6922#include <stdint.h>
6923#endif
6924#ifdef SIZE_MAX
6925Found it
6926#endif
6927
6928_ACEOF
6929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6930 $EGREP "Found it" >/dev/null 2>&1; then
6931 result=yes
6932fi
6933rm -f conftest*
6934
6935 if test -z "$result"; then
6936 if test "$cross_compiling" = yes; then
6937 # Depending upon the size, compute the lo and hi bounds.
6938cat >conftest.$ac_ext <<_ACEOF
6939/* confdefs.h. */
6940_ACEOF
6941cat confdefs.h >>conftest.$ac_ext
6942cat >>conftest.$ac_ext <<_ACEOF
6943/* end confdefs.h. */
6944#include <stddef.h>
6945int
6946main ()
6947{
6948static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6949test_array [0] = 0
6950
6951 ;
6952 return 0;
6953}
6954_ACEOF
6955rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006956if { (ac_try="$ac_compile"
6957case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960esac
6961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972 ac_lo=0 ac_mid=0
6973 while :; do
6974 cat >conftest.$ac_ext <<_ACEOF
6975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
6980#include <stddef.h>
6981int
6982main ()
6983{
6984static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6985test_array [0] = 0
6986
6987 ;
6988 return 0;
6989}
6990_ACEOF
6991rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006992if { (ac_try="$ac_compile"
6993case "(($ac_try" in
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6996esac
6997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6998 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008 ac_hi=$ac_mid; break
7009else
7010 echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013 ac_lo=`expr $ac_mid + 1`
7014 if test $ac_lo -le $ac_mid; then
7015 ac_lo= ac_hi=
7016 break
7017 fi
7018 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007020
7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022 done
7023else
7024 echo "$as_me: failed program was:" >&5
7025sed 's/^/| /' conftest.$ac_ext >&5
7026
Theodore Ts'oe1052142006-10-21 21:46:47 -04007027 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033#include <stddef.h>
7034int
7035main ()
7036{
7037static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7038test_array [0] = 0
7039
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007045if { (ac_try="$ac_compile"
7046case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7049esac
7050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007061 ac_hi=-1 ac_mid=-1
7062 while :; do
7063 cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h. */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */
7069#include <stddef.h>
7070int
7071main ()
7072{
7073static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7074test_array [0] = 0
7075
7076 ;
7077 return 0;
7078}
7079_ACEOF
7080rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007081if { (ac_try="$ac_compile"
7082case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7085esac
7086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097 ac_lo=$ac_mid; break
7098else
7099 echo "$as_me: failed program was:" >&5
7100sed 's/^/| /' conftest.$ac_ext >&5
7101
Theodore Ts'oe1052142006-10-21 21:46:47 -04007102 ac_hi=`expr '(' $ac_mid ')' - 1`
7103 if test $ac_mid -le $ac_hi; then
7104 ac_lo= ac_hi=
7105 break
7106 fi
7107 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007108fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007109
7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111 done
7112else
7113 echo "$as_me: failed program was:" >&5
7114sed 's/^/| /' conftest.$ac_ext >&5
7115
Theodore Ts'oe1052142006-10-21 21:46:47 -04007116 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007117fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007118
7119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007121
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123# Binary search between lo and hi bounds.
7124while test "x$ac_lo" != "x$ac_hi"; do
7125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7126 cat >conftest.$ac_ext <<_ACEOF
7127/* confdefs.h. */
7128_ACEOF
7129cat confdefs.h >>conftest.$ac_ext
7130cat >>conftest.$ac_ext <<_ACEOF
7131/* end confdefs.h. */
7132#include <stddef.h>
7133int
7134main ()
7135{
7136static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7137test_array [0] = 0
7138
7139 ;
7140 return 0;
7141}
7142_ACEOF
7143rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007144if { (ac_try="$ac_compile"
7145case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148esac
7149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 ac_hi=$ac_mid
7161else
7162 echo "$as_me: failed program was:" >&5
7163sed 's/^/| /' conftest.$ac_ext >&5
7164
Theodore Ts'oe1052142006-10-21 21:46:47 -04007165 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007167
7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007169done
7170case $ac_lo in
7171?*) res_hi=$ac_lo;;
7172'') result=? ;;
7173esac
7174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175 cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h. */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h. */
7181#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007182static long int longval () { return ~(size_t)0 / 10; }
7183static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007184#include <stdio.h>
7185#include <stdlib.h>
7186int
7187main ()
7188{
7189
7190 FILE *f = fopen ("conftest.val", "w");
7191 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007192 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007193 if ((~(size_t)0 / 10) < 0)
7194 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007195 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007197 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198 fprintf (f, "%ld\n", i);
7199 }
7200 else
7201 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007202 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007204 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205 fprintf (f, "%lu\n", i);
7206 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007207 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208
7209 ;
7210 return 0;
7211}
7212_ACEOF
7213rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007214if { (ac_try="$ac_link"
7215case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218esac
7219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007224 { (case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227esac
7228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 res_hi=`cat conftest.val`
7234else
7235 echo "$as_me: program exited with status $ac_status" >&5
7236echo "$as_me: failed program was:" >&5
7237sed 's/^/| /' conftest.$ac_ext >&5
7238
7239( exit $ac_status )
7240result=?
7241fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007242rm -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 -05007243fi
7244rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246 if test "$cross_compiling" = yes; then
7247 # Depending upon the size, compute the lo and hi bounds.
7248cat >conftest.$ac_ext <<_ACEOF
7249/* confdefs.h. */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h. */
7254#include <stddef.h>
7255int
7256main ()
7257{
7258static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7259test_array [0] = 0
7260
7261 ;
7262 return 0;
7263}
7264_ACEOF
7265rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007266if { (ac_try="$ac_compile"
7267case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270esac
7271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282 ac_lo=0 ac_mid=0
7283 while :; do
7284 cat >conftest.$ac_ext <<_ACEOF
7285/* confdefs.h. */
7286_ACEOF
7287cat confdefs.h >>conftest.$ac_ext
7288cat >>conftest.$ac_ext <<_ACEOF
7289/* end confdefs.h. */
7290#include <stddef.h>
7291int
7292main ()
7293{
7294static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7295test_array [0] = 0
7296
7297 ;
7298 return 0;
7299}
7300_ACEOF
7301rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007302if { (ac_try="$ac_compile"
7303case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306esac
7307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318 ac_hi=$ac_mid; break
7319else
7320 echo "$as_me: failed program was:" >&5
7321sed 's/^/| /' conftest.$ac_ext >&5
7322
Theodore Ts'oe1052142006-10-21 21:46:47 -04007323 ac_lo=`expr $ac_mid + 1`
7324 if test $ac_lo -le $ac_mid; then
7325 ac_lo= ac_hi=
7326 break
7327 fi
7328 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007329fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007330
7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007332 done
7333else
7334 echo "$as_me: failed program was:" >&5
7335sed 's/^/| /' conftest.$ac_ext >&5
7336
Theodore Ts'oe1052142006-10-21 21:46:47 -04007337 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343#include <stddef.h>
7344int
7345main ()
7346{
7347static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7348test_array [0] = 0
7349
7350 ;
7351 return 0;
7352}
7353_ACEOF
7354rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007355if { (ac_try="$ac_compile"
7356case "(($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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007371 ac_hi=-1 ac_mid=-1
7372 while :; do
7373 cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h. */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h. */
7379#include <stddef.h>
7380int
7381main ()
7382{
7383static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7384test_array [0] = 0
7385
7386 ;
7387 return 0;
7388}
7389_ACEOF
7390rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007391if { (ac_try="$ac_compile"
7392case "(($ac_try" in
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7395esac
7396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007403 (exit $ac_status); } && {
7404 test -z "$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007407 ac_lo=$ac_mid; break
7408else
7409 echo "$as_me: failed program was:" >&5
7410sed 's/^/| /' conftest.$ac_ext >&5
7411
Theodore Ts'oe1052142006-10-21 21:46:47 -04007412 ac_hi=`expr '(' $ac_mid ')' - 1`
7413 if test $ac_mid -le $ac_hi; then
7414 ac_lo= ac_hi=
7415 break
7416 fi
7417 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007419
7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007421 done
7422else
7423 echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
Theodore Ts'oe1052142006-10-21 21:46:47 -04007426 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007428
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007431
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007433# Binary search between lo and hi bounds.
7434while test "x$ac_lo" != "x$ac_hi"; do
7435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7436 cat >conftest.$ac_ext <<_ACEOF
7437/* confdefs.h. */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h. */
7442#include <stddef.h>
7443int
7444main ()
7445{
7446static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7447test_array [0] = 0
7448
7449 ;
7450 return 0;
7451}
7452_ACEOF
7453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007454if { (ac_try="$ac_compile"
7455case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458esac
7459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007461 ac_status=$?
7462 grep -v '^ *+' conftest.er1 >conftest.err
7463 rm -f conftest.er1
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007466 (exit $ac_status); } && {
7467 test -z "$ac_c_werror_flag" ||
7468 test ! -s conftest.err
7469 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007470 ac_hi=$ac_mid
7471else
7472 echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
Theodore Ts'oe1052142006-10-21 21:46:47 -04007475 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007477
7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479done
7480case $ac_lo in
7481?*) res_lo=$ac_lo;;
7482'') result=? ;;
7483esac
7484else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485 cat >conftest.$ac_ext <<_ACEOF
7486/* confdefs.h. */
7487_ACEOF
7488cat confdefs.h >>conftest.$ac_ext
7489cat >>conftest.$ac_ext <<_ACEOF
7490/* end confdefs.h. */
7491#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007492static long int longval () { return ~(size_t)0 % 10; }
7493static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007494#include <stdio.h>
7495#include <stdlib.h>
7496int
7497main ()
7498{
7499
7500 FILE *f = fopen ("conftest.val", "w");
7501 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007502 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007503 if ((~(size_t)0 % 10) < 0)
7504 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007505 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007506 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007507 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508 fprintf (f, "%ld\n", i);
7509 }
7510 else
7511 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007512 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007514 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515 fprintf (f, "%lu\n", i);
7516 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007517 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518
7519 ;
7520 return 0;
7521}
7522_ACEOF
7523rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007524if { (ac_try="$ac_link"
7525case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
7529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007534 { (case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
7538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 res_lo=`cat conftest.val`
7544else
7545 echo "$as_me: program exited with status $ac_status" >&5
7546echo "$as_me: failed program was:" >&5
7547sed 's/^/| /' conftest.$ac_ext >&5
7548
7549( exit $ac_status )
7550result=?
7551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007552rm -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 -05007553fi
7554rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556 if test "$cross_compiling" = yes; then
7557 # Depending upon the size, compute the lo and hi bounds.
7558cat >conftest.$ac_ext <<_ACEOF
7559/* confdefs.h. */
7560_ACEOF
7561cat confdefs.h >>conftest.$ac_ext
7562cat >>conftest.$ac_ext <<_ACEOF
7563/* end confdefs.h. */
7564#include <stddef.h>
7565int
7566main ()
7567{
7568static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7569test_array [0] = 0
7570
7571 ;
7572 return 0;
7573}
7574_ACEOF
7575rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007576if { (ac_try="$ac_compile"
7577case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580esac
7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007592 ac_lo=0 ac_mid=0
7593 while :; do
7594 cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
7600#include <stddef.h>
7601int
7602main ()
7603{
7604static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7605test_array [0] = 0
7606
7607 ;
7608 return 0;
7609}
7610_ACEOF
7611rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007612if { (ac_try="$ac_compile"
7613case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616esac
7617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628 ac_hi=$ac_mid; break
7629else
7630 echo "$as_me: failed program was:" >&5
7631sed 's/^/| /' conftest.$ac_ext >&5
7632
Theodore Ts'oe1052142006-10-21 21:46:47 -04007633 ac_lo=`expr $ac_mid + 1`
7634 if test $ac_lo -le $ac_mid; then
7635 ac_lo= ac_hi=
7636 break
7637 fi
7638 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007640
7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642 done
7643else
7644 echo "$as_me: failed program was:" >&5
7645sed 's/^/| /' conftest.$ac_ext >&5
7646
Theodore Ts'oe1052142006-10-21 21:46:47 -04007647 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648/* confdefs.h. */
7649_ACEOF
7650cat confdefs.h >>conftest.$ac_ext
7651cat >>conftest.$ac_ext <<_ACEOF
7652/* end confdefs.h. */
7653#include <stddef.h>
7654int
7655main ()
7656{
7657static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7658test_array [0] = 0
7659
7660 ;
7661 return 0;
7662}
7663_ACEOF
7664rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007665if { (ac_try="$ac_compile"
7666case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7669esac
7670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672 ac_status=$?
7673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007681 ac_hi=-1 ac_mid=-1
7682 while :; do
7683 cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
7689#include <stddef.h>
7690int
7691main ()
7692{
7693static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7694test_array [0] = 0
7695
7696 ;
7697 return 0;
7698}
7699_ACEOF
7700rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007701if { (ac_try="$ac_compile"
7702case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705esac
7706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007717 ac_lo=$ac_mid; break
7718else
7719 echo "$as_me: failed program was:" >&5
7720sed 's/^/| /' conftest.$ac_ext >&5
7721
Theodore Ts'oe1052142006-10-21 21:46:47 -04007722 ac_hi=`expr '(' $ac_mid ')' - 1`
7723 if test $ac_mid -le $ac_hi; then
7724 ac_lo= ac_hi=
7725 break
7726 fi
7727 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007729
7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007731 done
7732else
7733 echo "$as_me: failed program was:" >&5
7734sed 's/^/| /' conftest.$ac_ext >&5
7735
Theodore Ts'oe1052142006-10-21 21:46:47 -04007736 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007737fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007738
7739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007741
7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007743# Binary search between lo and hi bounds.
7744while test "x$ac_lo" != "x$ac_hi"; do
7745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7746 cat >conftest.$ac_ext <<_ACEOF
7747/* confdefs.h. */
7748_ACEOF
7749cat confdefs.h >>conftest.$ac_ext
7750cat >>conftest.$ac_ext <<_ACEOF
7751/* end confdefs.h. */
7752#include <stddef.h>
7753int
7754main ()
7755{
7756static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7757test_array [0] = 0
7758
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007764if { (ac_try="$ac_compile"
7765case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768esac
7769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007780 ac_hi=$ac_mid
7781else
7782 echo "$as_me: failed program was:" >&5
7783sed 's/^/| /' conftest.$ac_ext >&5
7784
Theodore Ts'oe1052142006-10-21 21:46:47 -04007785 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007786fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007787
7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007789done
7790case $ac_lo in
7791?*) fits_in_uint=$ac_lo;;
7792'') result=? ;;
7793esac
7794else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007795 cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007802static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7803static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007804#include <stdio.h>
7805#include <stdlib.h>
7806int
7807main ()
7808{
7809
7810 FILE *f = fopen ("conftest.val", "w");
7811 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007812 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007813 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7814 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007815 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007816 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007817 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007818 fprintf (f, "%ld\n", i);
7819 }
7820 else
7821 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007822 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007825 fprintf (f, "%lu\n", i);
7826 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007827 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007834if { (ac_try="$ac_link"
7835case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 fits_in_uint=`cat conftest.val`
7854else
7855 echo "$as_me: program exited with status $ac_status" >&5
7856echo "$as_me: failed program was:" >&5
7857sed 's/^/| /' conftest.$ac_ext >&5
7858
7859( exit $ac_status )
7860result=?
7861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007862rm -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 -05007863fi
7864rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866 if test "$fits_in_uint" = 1; then
7867 cat >conftest.$ac_ext <<_ACEOF
7868/* confdefs.h. */
7869_ACEOF
7870cat confdefs.h >>conftest.$ac_ext
7871cat >>conftest.$ac_ext <<_ACEOF
7872/* end confdefs.h. */
7873#include <stddef.h>
7874 extern size_t foo;
7875 extern unsigned long foo;
7876
7877int
7878main ()
7879{
7880
7881 ;
7882 return 0;
7883}
7884_ACEOF
7885rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007886if { (ac_try="$ac_compile"
7887case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890esac
7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007902 fits_in_uint=0
7903else
7904 echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
Theodore Ts'oe1052142006-10-21 21:46:47 -04007907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007908fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007909
7910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007911 fi
7912 if test -z "$result"; then
7913 if test "$fits_in_uint" = 1; then
7914 result="$res_hi$res_lo"U
7915 else
7916 result="$res_hi$res_lo"UL
7917 fi
7918 else
7919 result='~(size_t)0'
7920 fi
7921 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007922 { echo "$as_me:$LINENO: result: $result" >&5
7923echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007924 if test "$result" != yes; then
7925
7926cat >>confdefs.h <<_ACEOF
7927#define SIZE_MAX $result
7928_ACEOF
7929
7930 fi
7931
7932
7933
7934
7935for ac_header in stdint.h
7936do
7937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007944ac_res=`eval echo '${'$as_ac_Header'}'`
7945 { echo "$as_me:$LINENO: result: $ac_res" >&5
7946echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007947else
7948 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007949{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007951cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957$ac_includes_default
7958#include <$ac_header>
7959_ACEOF
7960rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007961if { (ac_try="$ac_compile"
7962case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965esac
7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007977 ac_header_compiler=yes
7978else
7979 echo "$as_me: failed program was:" >&5
7980sed 's/^/| /' conftest.$ac_ext >&5
7981
Theodore Ts'oe1052142006-10-21 21:46:47 -04007982 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007983fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007984
7985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7987echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007988
7989# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007990{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992cat >conftest.$ac_ext <<_ACEOF
7993/* confdefs.h. */
7994_ACEOF
7995cat confdefs.h >>conftest.$ac_ext
7996cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h. */
7998#include <$ac_header>
7999_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008000if { (ac_try="$ac_cpp conftest.$ac_ext"
8001case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004esac
8005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008012 (exit $ac_status); } >/dev/null && {
8013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008016 ac_header_preproc=yes
8017else
8018 echo "$as_me: failed program was:" >&5
8019sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 ac_header_preproc=no
8022fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008024rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8026echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008027
8028# So? What about this header?
8029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8030 yes:no: )
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8035 ac_header_preproc=yes
8036 ;;
8037 no:yes:* )
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051 ;;
8052esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008053{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057else
8058 eval "$as_ac_Header=\$ac_header_preproc"
8059fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008060ac_res=`eval echo '${'$as_ac_Header'}'`
8061 { echo "$as_me:$LINENO: result: $ac_res" >&5
8062echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008063
8064fi
8065if test `eval echo '${'$as_ac_Header'}'` = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8068_ACEOF
8069
8070fi
8071
8072done
8073
8074
8075
8076 if test "X$prefix" = "XNONE"; then
8077 acl_final_prefix="$ac_default_prefix"
8078 else
8079 acl_final_prefix="$prefix"
8080 fi
8081 if test "X$exec_prefix" = "XNONE"; then
8082 acl_final_exec_prefix='${prefix}'
8083 else
8084 acl_final_exec_prefix="$exec_prefix"
8085 fi
8086 acl_save_prefix="$prefix"
8087 prefix="$acl_final_prefix"
8088 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8089 prefix="$acl_save_prefix"
8090
8091
Theodore Ts'oe1052142006-10-21 21:46:47 -04008092# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008093if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008095else
8096 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008097fi
8098
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008099# Prepare PATH_SEPARATOR.
8100# The user is always right.
8101if test "${PATH_SEPARATOR+set}" != set; then
8102 echo "#! /bin/sh" >conf$$.sh
8103 echo "exit 0" >>conf$$.sh
8104 chmod +x conf$$.sh
8105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8106 PATH_SEPARATOR=';'
8107 else
8108 PATH_SEPARATOR=:
8109 fi
8110 rm -f conf$$.sh
8111fi
8112ac_prog=ld
8113if test "$GCC" = yes; then
8114 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008115 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8116echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008117 case $host in
8118 *-*-mingw*)
8119 # gcc leaves a trailing carriage return which upsets mingw
8120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8121 *)
8122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8123 esac
8124 case $ac_prog in
8125 # Accept absolute paths.
8126 [\\/]* | [A-Za-z]:[\\/]*)
8127 re_direlt='/[^/][^/]*/\.\./'
8128 # Canonicalize the path of ld
8129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8132 done
8133 test -z "$LD" && LD="$ac_prog"
8134 ;;
8135 "")
8136 # If it fails, then pretend we aren't using GCC.
8137 ac_prog=ld
8138 ;;
8139 *)
8140 # If it is relative, then search for the first ld in PATH.
8141 with_gnu_ld=unknown
8142 ;;
8143 esac
8144elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008145 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8146echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008147else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008148 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8149echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008150fi
8151if test "${acl_cv_path_LD+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154 if test -z "$LD"; then
8155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8156 for ac_dir in $PATH; do
8157 test -z "$ac_dir" && ac_dir=.
8158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8159 acl_cv_path_LD="$ac_dir/$ac_prog"
8160 # Check to see if the program is GNU ld. I'd rather use --version,
8161 # but apparently some GNU ld's only accept -v.
8162 # Break only if it was the GNU/non-GNU ld that we prefer.
8163 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8164 *GNU* | *'with BFD'*)
8165 test "$with_gnu_ld" != no && break ;;
8166 *)
8167 test "$with_gnu_ld" != yes && break ;;
8168 esac
8169 fi
8170 done
8171 IFS="$ac_save_ifs"
8172else
8173 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8174fi
8175fi
8176
8177LD="$acl_cv_path_LD"
8178if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008179 { echo "$as_me:$LINENO: result: $LD" >&5
8180echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008181else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008182 { echo "$as_me:$LINENO: result: no" >&5
8183echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008184fi
8185test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8186echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8187 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008188{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8189echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008190if test "${acl_cv_prog_gnu_ld+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8194case `$LD -v 2>&1 </dev/null` in
8195*GNU* | *'with BFD'*)
8196 acl_cv_prog_gnu_ld=yes ;;
8197*)
8198 acl_cv_prog_gnu_ld=no ;;
8199esac
8200fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008201{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8202echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008203with_gnu_ld=$acl_cv_prog_gnu_ld
8204
8205
8206
Theodore Ts'oe1052142006-10-21 21:46:47 -04008207 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8208echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008209if test "${acl_cv_rpath+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212
8213 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8214 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8215 . ./conftest.sh
8216 rm -f ./conftest.sh
8217 acl_cv_rpath=done
8218
8219fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008220{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8221echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008222 wl="$acl_cv_wl"
8223 libext="$acl_cv_libext"
8224 shlibext="$acl_cv_shlibext"
8225 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8226 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8227 hardcode_direct="$acl_cv_hardcode_direct"
8228 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008230if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008231 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008232else
8233 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008234fi
8235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008236
8237
8238
8239
8240
8241
8242
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008243 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008244
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008245 acl_save_prefix="$prefix"
8246 prefix="$acl_final_prefix"
8247 acl_save_exec_prefix="$exec_prefix"
8248 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008249
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008250 eval additional_includedir=\"$includedir\"
8251 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008252
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008253 exec_prefix="$acl_save_exec_prefix"
8254 prefix="$acl_save_prefix"
8255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256
Theodore Ts'oe1052142006-10-21 21:46:47 -04008257# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008258if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008259 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008260 if test "X$withval" = "Xno"; then
8261 use_additional=no
8262 else
8263 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008264
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008265 acl_save_prefix="$prefix"
8266 prefix="$acl_final_prefix"
8267 acl_save_exec_prefix="$exec_prefix"
8268 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008269
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008270 eval additional_includedir=\"$includedir\"
8271 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008273 exec_prefix="$acl_save_exec_prefix"
8274 prefix="$acl_save_prefix"
8275
8276 else
8277 additional_includedir="$withval/include"
8278 additional_libdir="$withval/lib"
8279 fi
8280 fi
8281
Theodore Ts'oe1052142006-10-21 21:46:47 -04008282fi
8283
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008284 LIBICONV=
8285 LTLIBICONV=
8286 INCICONV=
8287 rpathdirs=
8288 ltrpathdirs=
8289 names_already_handled=
8290 names_next_round='iconv '
8291 while test -n "$names_next_round"; do
8292 names_this_round="$names_next_round"
8293 names_next_round=
8294 for name in $names_this_round; do
8295 already_handled=
8296 for n in $names_already_handled; do
8297 if test "$n" = "$name"; then
8298 already_handled=yes
8299 break
8300 fi
8301 done
8302 if test -z "$already_handled"; then
8303 names_already_handled="$names_already_handled $name"
8304 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8305 eval value=\"\$HAVE_LIB$uppername\"
8306 if test -n "$value"; then
8307 if test "$value" = yes; then
8308 eval value=\"\$LIB$uppername\"
8309 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8310 eval value=\"\$LTLIB$uppername\"
8311 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8312 else
8313 :
8314 fi
8315 else
8316 found_dir=
8317 found_la=
8318 found_so=
8319 found_a=
8320 if test $use_additional = yes; then
8321 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8322 found_dir="$additional_libdir"
8323 found_so="$additional_libdir/lib$name.$shlibext"
8324 if test -f "$additional_libdir/lib$name.la"; then
8325 found_la="$additional_libdir/lib$name.la"
8326 fi
8327 else
8328 if test -f "$additional_libdir/lib$name.$libext"; then
8329 found_dir="$additional_libdir"
8330 found_a="$additional_libdir/lib$name.$libext"
8331 if test -f "$additional_libdir/lib$name.la"; then
8332 found_la="$additional_libdir/lib$name.la"
8333 fi
8334 fi
8335 fi
8336 fi
8337 if test "X$found_dir" = "X"; then
8338 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008339
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008340 acl_save_prefix="$prefix"
8341 prefix="$acl_final_prefix"
8342 acl_save_exec_prefix="$exec_prefix"
8343 exec_prefix="$acl_final_exec_prefix"
8344 eval x=\"$x\"
8345 exec_prefix="$acl_save_exec_prefix"
8346 prefix="$acl_save_prefix"
8347
8348 case "$x" in
8349 -L*)
8350 dir=`echo "X$x" | sed -e 's/^X-L//'`
8351 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8352 found_dir="$dir"
8353 found_so="$dir/lib$name.$shlibext"
8354 if test -f "$dir/lib$name.la"; then
8355 found_la="$dir/lib$name.la"
8356 fi
8357 else
8358 if test -f "$dir/lib$name.$libext"; then
8359 found_dir="$dir"
8360 found_a="$dir/lib$name.$libext"
8361 if test -f "$dir/lib$name.la"; then
8362 found_la="$dir/lib$name.la"
8363 fi
8364 fi
8365 fi
8366 ;;
8367 esac
8368 if test "X$found_dir" != "X"; then
8369 break
8370 fi
8371 done
8372 fi
8373 if test "X$found_dir" != "X"; then
8374 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8375 if test "X$found_so" != "X"; then
8376 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8377 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8378 else
8379 haveit=
8380 for x in $ltrpathdirs; do
8381 if test "X$x" = "X$found_dir"; then
8382 haveit=yes
8383 break
8384 fi
8385 done
8386 if test -z "$haveit"; then
8387 ltrpathdirs="$ltrpathdirs $found_dir"
8388 fi
8389 if test "$hardcode_direct" = yes; then
8390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8391 else
8392 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8394 haveit=
8395 for x in $rpathdirs; do
8396 if test "X$x" = "X$found_dir"; then
8397 haveit=yes
8398 break
8399 fi
8400 done
8401 if test -z "$haveit"; then
8402 rpathdirs="$rpathdirs $found_dir"
8403 fi
8404 else
8405 haveit=
8406 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008408 acl_save_prefix="$prefix"
8409 prefix="$acl_final_prefix"
8410 acl_save_exec_prefix="$exec_prefix"
8411 exec_prefix="$acl_final_exec_prefix"
8412 eval x=\"$x\"
8413 exec_prefix="$acl_save_exec_prefix"
8414 prefix="$acl_save_prefix"
8415
8416 if test "X$x" = "X-L$found_dir"; then
8417 haveit=yes
8418 break
8419 fi
8420 done
8421 if test -z "$haveit"; then
8422 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8423 fi
8424 if test "$hardcode_minus_L" != no; then
8425 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8426 else
8427 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8428 fi
8429 fi
8430 fi
8431 fi
8432 else
8433 if test "X$found_a" != "X"; then
8434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8435 else
8436 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8437 fi
8438 fi
8439 additional_includedir=
8440 case "$found_dir" in
8441 */lib | */lib/)
8442 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8443 additional_includedir="$basedir/include"
8444 ;;
8445 esac
8446 if test "X$additional_includedir" != "X"; then
8447 if test "X$additional_includedir" != "X/usr/include"; then
8448 haveit=
8449 if test "X$additional_includedir" = "X/usr/local/include"; then
8450 if test -n "$GCC"; then
8451 case $host_os in
8452 linux*) haveit=yes;;
8453 esac
8454 fi
8455 fi
8456 if test -z "$haveit"; then
8457 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008458
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008459 acl_save_prefix="$prefix"
8460 prefix="$acl_final_prefix"
8461 acl_save_exec_prefix="$exec_prefix"
8462 exec_prefix="$acl_final_exec_prefix"
8463 eval x=\"$x\"
8464 exec_prefix="$acl_save_exec_prefix"
8465 prefix="$acl_save_prefix"
8466
8467 if test "X$x" = "X-I$additional_includedir"; then
8468 haveit=yes
8469 break
8470 fi
8471 done
8472 if test -z "$haveit"; then
8473 if test -d "$additional_includedir"; then
8474 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8475 fi
8476 fi
8477 fi
8478 fi
8479 fi
8480 if test -n "$found_la"; then
8481 save_libdir="$libdir"
8482 case "$found_la" in
8483 */* | *\\*) . "$found_la" ;;
8484 *) . "./$found_la" ;;
8485 esac
8486 libdir="$save_libdir"
8487 for dep in $dependency_libs; do
8488 case "$dep" in
8489 -L*)
8490 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8491 if test "X$additional_libdir" != "X/usr/lib"; then
8492 haveit=
8493 if test "X$additional_libdir" = "X/usr/local/lib"; then
8494 if test -n "$GCC"; then
8495 case $host_os in
8496 linux*) haveit=yes;;
8497 esac
8498 fi
8499 fi
8500 if test -z "$haveit"; then
8501 haveit=
8502 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008503
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008504 acl_save_prefix="$prefix"
8505 prefix="$acl_final_prefix"
8506 acl_save_exec_prefix="$exec_prefix"
8507 exec_prefix="$acl_final_exec_prefix"
8508 eval x=\"$x\"
8509 exec_prefix="$acl_save_exec_prefix"
8510 prefix="$acl_save_prefix"
8511
8512 if test "X$x" = "X-L$additional_libdir"; then
8513 haveit=yes
8514 break
8515 fi
8516 done
8517 if test -z "$haveit"; then
8518 if test -d "$additional_libdir"; then
8519 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8520 fi
8521 fi
8522 haveit=
8523 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008524
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008525 acl_save_prefix="$prefix"
8526 prefix="$acl_final_prefix"
8527 acl_save_exec_prefix="$exec_prefix"
8528 exec_prefix="$acl_final_exec_prefix"
8529 eval x=\"$x\"
8530 exec_prefix="$acl_save_exec_prefix"
8531 prefix="$acl_save_prefix"
8532
8533 if test "X$x" = "X-L$additional_libdir"; then
8534 haveit=yes
8535 break
8536 fi
8537 done
8538 if test -z "$haveit"; then
8539 if test -d "$additional_libdir"; then
8540 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8541 fi
8542 fi
8543 fi
8544 fi
8545 ;;
8546 -R*)
8547 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8548 if test "$enable_rpath" != no; then
8549 haveit=
8550 for x in $rpathdirs; do
8551 if test "X$x" = "X$dir"; then
8552 haveit=yes
8553 break
8554 fi
8555 done
8556 if test -z "$haveit"; then
8557 rpathdirs="$rpathdirs $dir"
8558 fi
8559 haveit=
8560 for x in $ltrpathdirs; do
8561 if test "X$x" = "X$dir"; then
8562 haveit=yes
8563 break
8564 fi
8565 done
8566 if test -z "$haveit"; then
8567 ltrpathdirs="$ltrpathdirs $dir"
8568 fi
8569 fi
8570 ;;
8571 -l*)
8572 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8573 ;;
8574 *.la)
8575 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8576 ;;
8577 *)
8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8579 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8580 ;;
8581 esac
8582 done
8583 fi
8584 else
8585 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8587 fi
8588 fi
8589 fi
8590 done
8591 done
8592 if test "X$rpathdirs" != "X"; then
8593 if test -n "$hardcode_libdir_separator"; then
8594 alldirs=
8595 for found_dir in $rpathdirs; do
8596 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8597 done
8598 acl_save_libdir="$libdir"
8599 libdir="$alldirs"
8600 eval flag=\"$hardcode_libdir_flag_spec\"
8601 libdir="$acl_save_libdir"
8602 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8603 else
8604 for found_dir in $rpathdirs; do
8605 acl_save_libdir="$libdir"
8606 libdir="$found_dir"
8607 eval flag=\"$hardcode_libdir_flag_spec\"
8608 libdir="$acl_save_libdir"
8609 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8610 done
8611 fi
8612 fi
8613 if test "X$ltrpathdirs" != "X"; then
8614 for found_dir in $ltrpathdirs; do
8615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8616 done
8617 fi
8618
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008619
8620
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008621
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008622
8623
8624
8625
Theodore Ts'oe1052142006-10-21 21:46:47 -04008626 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8627echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008628if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008630else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008631 cat >conftest.$ac_ext <<_ACEOF
8632/* confdefs.h. */
8633_ACEOF
8634cat confdefs.h >>conftest.$ac_ext
8635cat >>conftest.$ac_ext <<_ACEOF
8636/* end confdefs.h. */
8637$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008638typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008639int
8640main ()
8641{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008642if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008643 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008644if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008645 return 0;
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008651if { (ac_try="$ac_compile"
8652case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655esac
8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008667 ac_cv_type_ptrdiff_t=yes
8668else
8669 echo "$as_me: failed program was:" >&5
8670sed 's/^/| /' conftest.$ac_ext >&5
8671
Theodore Ts'oe1052142006-10-21 21:46:47 -04008672 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008673fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008674
8675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008676fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008677{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8678echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008679if test $ac_cv_type_ptrdiff_t = yes; then
8680 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008681else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008682
8683cat >>confdefs.h <<\_ACEOF
8684#define ptrdiff_t long
8685_ACEOF
8686
8687
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008688fi
8689
8690
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008691
8692
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008693
8694
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008695
8696
8697
8698
8699
8700for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008701stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008702do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008708 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008709fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008710ac_res=`eval echo '${'$as_ac_Header'}'`
8711 { echo "$as_me:$LINENO: result: $ac_res" >&5
8712echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008713else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008714 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008715{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008717cat >conftest.$ac_ext <<_ACEOF
8718/* confdefs.h. */
8719_ACEOF
8720cat confdefs.h >>conftest.$ac_ext
8721cat >>conftest.$ac_ext <<_ACEOF
8722/* end confdefs.h. */
8723$ac_includes_default
8724#include <$ac_header>
8725_ACEOF
8726rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008727if { (ac_try="$ac_compile"
8728case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008734 ac_status=$?
8735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008739 (exit $ac_status); } && {
8740 test -z "$ac_c_werror_flag" ||
8741 test ! -s conftest.err
8742 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008743 ac_header_compiler=yes
8744else
8745 echo "$as_me: failed program was:" >&5
8746sed 's/^/| /' conftest.$ac_ext >&5
8747
Theodore Ts'oe1052142006-10-21 21:46:47 -04008748 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008749fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008750
8751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8753echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008754
8755# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008756{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008758cat >conftest.$ac_ext <<_ACEOF
8759/* confdefs.h. */
8760_ACEOF
8761cat confdefs.h >>conftest.$ac_ext
8762cat >>conftest.$ac_ext <<_ACEOF
8763/* end confdefs.h. */
8764#include <$ac_header>
8765_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008766if { (ac_try="$ac_cpp conftest.$ac_ext"
8767case "(($ac_try" in
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8770esac
8771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008778 (exit $ac_status); } >/dev/null && {
8779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782 ac_header_preproc=yes
8783else
8784 echo "$as_me: failed program was:" >&5
8785sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 ac_header_preproc=no
8788fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008789
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008790rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008791{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008793
8794# So? What about this header?
8795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8796 yes:no: )
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8801 ac_header_preproc=yes
8802 ;;
8803 no:yes:* )
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008817 ;;
8818esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008819{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823else
8824 eval "$as_ac_Header=\$ac_header_preproc"
8825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008826ac_res=`eval echo '${'$as_ac_Header'}'`
8827 { echo "$as_me:$LINENO: result: $ac_res" >&5
8828echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008829
8830fi
8831if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8834_ACEOF
8835
8836fi
8837
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008838done
8839
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8864mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8865strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8866__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008867do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008869{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008872 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008873else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008874 cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h. */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h. */
8880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8882#define $ac_func innocuous_$ac_func
8883
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008884/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008885 which can conflict with char $ac_func (); below.
8886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8887 <limits.h> exists even on freestanding compilers. */
8888
8889#ifdef __STDC__
8890# include <limits.h>
8891#else
8892# include <assert.h>
8893#endif
8894
8895#undef $ac_func
8896
Theodore Ts'oe1052142006-10-21 21:46:47 -04008897/* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900#ifdef __cplusplus
8901extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008902#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008904/* The GNU C library defines this for functions which it implements
8905 to always fail with ENOSYS. Some functions are actually named
8906 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008907#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008908choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008909#endif
8910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008911int
8912main ()
8913{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008914return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008915 ;
8916 return 0;
8917}
8918_ACEOF
8919rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008920if { (ac_try="$ac_link"
8921case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8924esac
8925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest$ac_exeext &&
8936 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008937 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008938else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008939 echo "$as_me: failed program was:" >&5
8940sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008941
Theodore Ts'oe1052142006-10-21 21:46:47 -04008942 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008944
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008946 conftest$ac_exeext conftest.$ac_ext
8947fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008948ac_res=`eval echo '${'$as_ac_var'}'`
8949 { echo "$as_me:$LINENO: result: $ac_res" >&5
8950echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951if test `eval echo '${'$as_ac_var'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8954_ACEOF
8955
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008956fi
8957done
8958
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008960
Theodore Ts'oe1052142006-10-21 21:46:47 -04008961 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8962echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008963if test "${ac_cv_have_decl__snprintf+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966 cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */
8972#include <stdio.h>
8973int
8974main ()
8975{
8976
8977#ifndef _snprintf
8978 char *p = (char *) _snprintf;
8979#endif
8980
8981 ;
8982 return 0;
8983}
8984_ACEOF
8985rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008986if { (ac_try="$ac_compile"
8987case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990esac
8991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008998 (exit $ac_status); } && {
8999 test -z "$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9001 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009002 ac_cv_have_decl__snprintf=yes
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
Theodore Ts'oe1052142006-10-21 21:46:47 -04009007 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009009
9010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009012{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9013echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009014 if test $ac_cv_have_decl__snprintf = yes; then
9015 gt_value=1
9016 else
9017 gt_value=0
9018 fi
9019
9020cat >>confdefs.h <<_ACEOF
9021#define HAVE_DECL__SNPRINTF $gt_value
9022_ACEOF
9023
9024
9025
Theodore Ts'oe1052142006-10-21 21:46:47 -04009026 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9027echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009028if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030else
9031 cat >conftest.$ac_ext <<_ACEOF
9032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h. */
9037#include <stdio.h>
9038int
9039main ()
9040{
9041
9042#ifndef _snwprintf
9043 char *p = (char *) _snwprintf;
9044#endif
9045
9046 ;
9047 return 0;
9048}
9049_ACEOF
9050rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009051if { (ac_try="$ac_compile"
9052case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055esac
9056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009067 ac_cv_have_decl__snwprintf=yes
9068else
9069 echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
Theodore Ts'oe1052142006-10-21 21:46:47 -04009072 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009073fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009074
9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009077{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9078echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009079 if test $ac_cv_have_decl__snwprintf = yes; then
9080 gt_value=1
9081 else
9082 gt_value=0
9083 fi
9084
9085cat >>confdefs.h <<_ACEOF
9086#define HAVE_DECL__SNWPRINTF $gt_value
9087_ACEOF
9088
9089
9090
9091
Theodore Ts'oe1052142006-10-21 21:46:47 -04009092 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9093echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009094if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096else
9097 cat >conftest.$ac_ext <<_ACEOF
9098/* confdefs.h. */
9099_ACEOF
9100cat confdefs.h >>conftest.$ac_ext
9101cat >>conftest.$ac_ext <<_ACEOF
9102/* end confdefs.h. */
9103#include <stdio.h>
9104int
9105main ()
9106{
9107
9108#ifndef feof_unlocked
9109 char *p = (char *) feof_unlocked;
9110#endif
9111
9112 ;
9113 return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009117if { (ac_try="$ac_compile"
9118case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009133 ac_cv_have_decl_feof_unlocked=yes
9134else
9135 echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
Theodore Ts'oe1052142006-10-21 21:46:47 -04009138 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009140
9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009142fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009143{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9144echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009145 if test $ac_cv_have_decl_feof_unlocked = yes; then
9146 gt_value=1
9147 else
9148 gt_value=0
9149 fi
9150
9151cat >>confdefs.h <<_ACEOF
9152#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9153_ACEOF
9154
9155
9156
Theodore Ts'oe1052142006-10-21 21:46:47 -04009157 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9158echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009159if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161else
9162 cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h. */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h. */
9168#include <stdio.h>
9169int
9170main ()
9171{
9172
9173#ifndef fgets_unlocked
9174 char *p = (char *) fgets_unlocked;
9175#endif
9176
9177 ;
9178 return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009182if { (ac_try="$ac_compile"
9183case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009194 (exit $ac_status); } && {
9195 test -z "$ac_c_werror_flag" ||
9196 test ! -s conftest.err
9197 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009198 ac_cv_have_decl_fgets_unlocked=yes
9199else
9200 echo "$as_me: failed program was:" >&5
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
Theodore Ts'oe1052142006-10-21 21:46:47 -04009203 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009205
9206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009207fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009208{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9209echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009210 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9211 gt_value=1
9212 else
9213 gt_value=0
9214 fi
9215
9216cat >>confdefs.h <<_ACEOF
9217#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9218_ACEOF
9219
9220
9221
Theodore Ts'oe1052142006-10-21 21:46:47 -04009222 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9223echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009224if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227 cat >conftest.$ac_ext <<_ACEOF
9228/* confdefs.h. */
9229_ACEOF
9230cat confdefs.h >>conftest.$ac_ext
9231cat >>conftest.$ac_ext <<_ACEOF
9232/* end confdefs.h. */
9233#include <stdio.h>
9234int
9235main ()
9236{
9237
9238#ifndef getc_unlocked
9239 char *p = (char *) getc_unlocked;
9240#endif
9241
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009247if { (ac_try="$ac_compile"
9248case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251esac
9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263 ac_cv_have_decl_getc_unlocked=yes
9264else
9265 echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
Theodore Ts'oe1052142006-10-21 21:46:47 -04009268 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009270
9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009272fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009273{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9274echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009275 if test $ac_cv_have_decl_getc_unlocked = yes; then
9276 gt_value=1
9277 else
9278 gt_value=0
9279 fi
9280
9281cat >>confdefs.h <<_ACEOF
9282#define HAVE_DECL_GETC_UNLOCKED $gt_value
9283_ACEOF
9284
9285
9286
9287 case $gt_cv_func_printf_posix in
9288 *yes) HAVE_POSIX_PRINTF=1 ;;
9289 *) HAVE_POSIX_PRINTF=0 ;;
9290 esac
9291
9292 if test "$ac_cv_func_asprintf" = yes; then
9293 HAVE_ASPRINTF=1
9294 else
9295 HAVE_ASPRINTF=0
9296 fi
9297
9298 if test "$ac_cv_func_snprintf" = yes; then
9299 HAVE_SNPRINTF=1
9300 else
9301 HAVE_SNPRINTF=0
9302 fi
9303
9304 if test "$ac_cv_func_wprintf" = yes; then
9305 HAVE_WPRINTF=1
9306 else
9307 HAVE_WPRINTF=0
9308 fi
9309
9310
9311
9312
9313
9314
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009315
9316 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009317
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009318 for element in $INCICONV; do
9319 haveit=
9320 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009321
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009322 acl_save_prefix="$prefix"
9323 prefix="$acl_final_prefix"
9324 acl_save_exec_prefix="$exec_prefix"
9325 exec_prefix="$acl_final_exec_prefix"
9326 eval x=\"$x\"
9327 exec_prefix="$acl_save_exec_prefix"
9328 prefix="$acl_save_prefix"
9329
9330 if test "X$x" = "X$element"; then
9331 haveit=yes
9332 break
9333 fi
9334 done
9335 if test -z "$haveit"; then
9336 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9337 fi
9338 done
9339
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009340
Theodore Ts'oe1052142006-10-21 21:46:47 -04009341 { echo "$as_me:$LINENO: checking for iconv" >&5
9342echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009343if test "${am_cv_func_iconv+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009345else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009346
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009347 am_cv_func_iconv="no, consider installing GNU libiconv"
9348 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009349 cat >conftest.$ac_ext <<_ACEOF
9350/* confdefs.h. */
9351_ACEOF
9352cat confdefs.h >>conftest.$ac_ext
9353cat >>conftest.$ac_ext <<_ACEOF
9354/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009355#include <stdlib.h>
9356#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009357int
9358main ()
9359{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009360iconv_t cd = iconv_open("","");
9361 iconv(cd,NULL,NULL,NULL,NULL);
9362 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009363 ;
9364 return 0;
9365}
9366_ACEOF
9367rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009368if { (ac_try="$ac_link"
9369case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372esac
9373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest$ac_exeext &&
9384 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009385 am_cv_func_iconv=yes
9386else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
Theodore Ts'oe1052142006-10-21 21:46:47 -04009390
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009392
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009394 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009395 if test "$am_cv_func_iconv" != yes; then
9396 am_save_LIBS="$LIBS"
9397 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009398 cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009404#include <stdlib.h>
9405#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009406int
9407main ()
9408{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009409iconv_t cd = iconv_open("","");
9410 iconv(cd,NULL,NULL,NULL,NULL);
9411 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009412 ;
9413 return 0;
9414}
9415_ACEOF
9416rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009417if { (ac_try="$ac_link"
9418case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424 ac_status=$?
9425 grep -v '^ *+' conftest.er1 >conftest.err
9426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009429 (exit $ac_status); } && {
9430 test -z "$ac_c_werror_flag" ||
9431 test ! -s conftest.err
9432 } && test -s conftest$ac_exeext &&
9433 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009434 am_cv_lib_iconv=yes
9435 am_cv_func_iconv=yes
9436else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009437 echo "$as_me: failed program was:" >&5
9438sed 's/^/| /' conftest.$ac_ext >&5
9439
Theodore Ts'oe1052142006-10-21 21:46:47 -04009440
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009441fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009442
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009444 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009445 LIBS="$am_save_LIBS"
9446 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009449{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9450echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009451 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009452
9453cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009454#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009455_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009456
9457 fi
9458 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009459 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9460echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9461 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9462echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009463 else
9464 CPPFLAGS="$am_save_CPPFLAGS"
9465 LIBICONV=
9466 LTLIBICONV=
9467 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468
9469
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009470
9471 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009472 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9473echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474 if test "${am_cv_proto_iconv+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009476else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009477
9478 cat >conftest.$ac_ext <<_ACEOF
9479/* confdefs.h. */
9480_ACEOF
9481cat confdefs.h >>conftest.$ac_ext
9482cat >>conftest.$ac_ext <<_ACEOF
9483/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009484
9485#include <stdlib.h>
9486#include <iconv.h>
9487extern
9488#ifdef __cplusplus
9489"C"
9490#endif
9491#if defined(__STDC__) || defined(__cplusplus)
9492size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9493#else
9494size_t iconv();
9495#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009497int
9498main ()
9499{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501 ;
9502 return 0;
9503}
9504_ACEOF
9505rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009506if { (ac_try="$ac_compile"
9507case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9510esac
9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009518 (exit $ac_status); } && {
9519 test -z "$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009522 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009523else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524 echo "$as_me: failed program was:" >&5
9525sed 's/^/| /' conftest.$ac_ext >&5
9526
Theodore Ts'oe1052142006-10-21 21:46:47 -04009527 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009529
9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009531 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 +00009532fi
9533
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009534 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009535 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536 }$am_cv_proto_iconv" >&5
9537echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009538 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009539
9540cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009541#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009542_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009543
9544 fi
9545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546
Theodore Ts'oe1052142006-10-21 21:46:47 -04009547 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9548echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009549if test "${am_cv_langinfo_codeset+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009552 cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009558#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559int
9560main ()
9561{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009562char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009563 ;
9564 return 0;
9565}
9566_ACEOF
9567rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009568if { (ac_try="$ac_link"
9569case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572esac
9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest$ac_exeext &&
9584 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009585 am_cv_langinfo_codeset=yes
9586else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009589
Theodore Ts'oe1052142006-10-21 21:46:47 -04009590 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009592
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594 conftest$ac_exeext conftest.$ac_ext
9595
9596fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009597{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9598echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009599 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009600
9601cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009602#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009604
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009605 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009606
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009607 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009608
Theodore Ts'oe1052142006-10-21 21:46:47 -04009609 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9610echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009611if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009613else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009614 cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009620#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621int
9622main ()
9623{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009624return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009625 ;
9626 return 0;
9627}
9628_ACEOF
9629rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009630if { (ac_try="$ac_link"
9631case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest$ac_exeext &&
9646 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009647 am_cv_val_LC_MESSAGES=yes
9648else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649 echo "$as_me: failed program was:" >&5
9650sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009651
Theodore Ts'oe1052142006-10-21 21:46:47 -04009652 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009654
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009656 conftest$ac_exeext conftest.$ac_ext
9657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009658{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9659echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009660 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009661
9662cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009663#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009664_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009665
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009666 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009667
9668 fi
9669
9670 for ac_prog in bison
9671do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009672 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009673set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009676if test "${ac_cv_prog_INTLBISON+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009678else
9679 if test -n "$INTLBISON"; then
9680 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9681else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9683for as_dir in $PATH
9684do
9685 IFS=$as_save_IFS
9686 test -z "$as_dir" && as_dir=.
9687 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009689 ac_cv_prog_INTLBISON="$ac_prog"
9690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9691 break 2
9692 fi
9693done
9694done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009695IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009696
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009697fi
9698fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009700if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009701 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9702echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009703else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009704 { echo "$as_me:$LINENO: result: no" >&5
9705echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009706fi
9707
Theodore Ts'oe1052142006-10-21 21:46:47 -04009708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009709 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009710done
9711
9712 if test -z "$INTLBISON"; then
9713 ac_verc_fail=yes
9714 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009715 { echo "$as_me:$LINENO: checking version of bison" >&5
9716echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009717 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9718 case $ac_prog_version in
9719 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9720 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9721 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9722 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9723 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009724 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9725echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009726 fi
9727 if test $ac_verc_fail = yes; then
9728 INTLBISON=:
9729 fi
9730
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009731
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009732
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009733
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009734
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009736
9737
9738
9739
9740
9741
9742
9743
9744
9745
Theodore Ts'oe1052142006-10-21 21:46:47 -04009746 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9747echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9748 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009749if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009750 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009751else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009752 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009753fi
9754
9755 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9756echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009757
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009759
9760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009761 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009762 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009763
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009764 LIBINTL=
9765 LTLIBINTL=
9766 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009767
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009768 if test "$USE_NLS" = "yes"; then
9769 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009770
Theodore Ts'oe1052142006-10-21 21:46:47 -04009771 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9772echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773
Theodore Ts'oe1052142006-10-21 21:46:47 -04009774# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009775if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009776 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009777else
9778 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009779fi
9780
9781 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9782echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009783
9784 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9785 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009787
9788
9789
9790
9791
Theodore Ts'oe1052142006-10-21 21:46:47 -04009792 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9793echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009794if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009796else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009797 cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h. */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009803#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009804extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009805extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009806int
9807main ()
9808{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009809bindtextdomain ("", "");
9810return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009811 ;
9812 return 0;
9813}
9814_ACEOF
9815rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009816if { (ac_try="$ac_link"
9817case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820esac
9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest$ac_exeext &&
9832 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009833 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009834else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009835 echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009837
Theodore Ts'oe1052142006-10-21 21:46:47 -04009838 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009840
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009842 conftest$ac_exeext conftest.$ac_ext
9843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009844{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9845echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009846
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009847 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848
9849
9850
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009851 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009853 acl_save_prefix="$prefix"
9854 prefix="$acl_final_prefix"
9855 acl_save_exec_prefix="$exec_prefix"
9856 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009857
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009858 eval additional_includedir=\"$includedir\"
9859 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009861 exec_prefix="$acl_save_exec_prefix"
9862 prefix="$acl_save_prefix"
9863
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009864
Theodore Ts'oe1052142006-10-21 21:46:47 -04009865# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009866if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009867 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009868 if test "X$withval" = "Xno"; then
9869 use_additional=no
9870 else
9871 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009873 acl_save_prefix="$prefix"
9874 prefix="$acl_final_prefix"
9875 acl_save_exec_prefix="$exec_prefix"
9876 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009877
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009878 eval additional_includedir=\"$includedir\"
9879 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009881 exec_prefix="$acl_save_exec_prefix"
9882 prefix="$acl_save_prefix"
9883
9884 else
9885 additional_includedir="$withval/include"
9886 additional_libdir="$withval/lib"
9887 fi
9888 fi
9889
Theodore Ts'oe1052142006-10-21 21:46:47 -04009890fi
9891
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009892 LIBINTL=
9893 LTLIBINTL=
9894 INCINTL=
9895 rpathdirs=
9896 ltrpathdirs=
9897 names_already_handled=
9898 names_next_round='intl '
9899 while test -n "$names_next_round"; do
9900 names_this_round="$names_next_round"
9901 names_next_round=
9902 for name in $names_this_round; do
9903 already_handled=
9904 for n in $names_already_handled; do
9905 if test "$n" = "$name"; then
9906 already_handled=yes
9907 break
9908 fi
9909 done
9910 if test -z "$already_handled"; then
9911 names_already_handled="$names_already_handled $name"
9912 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9913 eval value=\"\$HAVE_LIB$uppername\"
9914 if test -n "$value"; then
9915 if test "$value" = yes; then
9916 eval value=\"\$LIB$uppername\"
9917 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9918 eval value=\"\$LTLIB$uppername\"
9919 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9920 else
9921 :
9922 fi
9923 else
9924 found_dir=
9925 found_la=
9926 found_so=
9927 found_a=
9928 if test $use_additional = yes; then
9929 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9930 found_dir="$additional_libdir"
9931 found_so="$additional_libdir/lib$name.$shlibext"
9932 if test -f "$additional_libdir/lib$name.la"; then
9933 found_la="$additional_libdir/lib$name.la"
9934 fi
9935 else
9936 if test -f "$additional_libdir/lib$name.$libext"; then
9937 found_dir="$additional_libdir"
9938 found_a="$additional_libdir/lib$name.$libext"
9939 if test -f "$additional_libdir/lib$name.la"; then
9940 found_la="$additional_libdir/lib$name.la"
9941 fi
9942 fi
9943 fi
9944 fi
9945 if test "X$found_dir" = "X"; then
9946 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009948 acl_save_prefix="$prefix"
9949 prefix="$acl_final_prefix"
9950 acl_save_exec_prefix="$exec_prefix"
9951 exec_prefix="$acl_final_exec_prefix"
9952 eval x=\"$x\"
9953 exec_prefix="$acl_save_exec_prefix"
9954 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009955
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009956 case "$x" in
9957 -L*)
9958 dir=`echo "X$x" | sed -e 's/^X-L//'`
9959 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9960 found_dir="$dir"
9961 found_so="$dir/lib$name.$shlibext"
9962 if test -f "$dir/lib$name.la"; then
9963 found_la="$dir/lib$name.la"
9964 fi
9965 else
9966 if test -f "$dir/lib$name.$libext"; then
9967 found_dir="$dir"
9968 found_a="$dir/lib$name.$libext"
9969 if test -f "$dir/lib$name.la"; then
9970 found_la="$dir/lib$name.la"
9971 fi
9972 fi
9973 fi
9974 ;;
9975 esac
9976 if test "X$found_dir" != "X"; then
9977 break
9978 fi
9979 done
9980 fi
9981 if test "X$found_dir" != "X"; then
9982 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9983 if test "X$found_so" != "X"; then
9984 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9985 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9986 else
9987 haveit=
9988 for x in $ltrpathdirs; do
9989 if test "X$x" = "X$found_dir"; then
9990 haveit=yes
9991 break
9992 fi
9993 done
9994 if test -z "$haveit"; then
9995 ltrpathdirs="$ltrpathdirs $found_dir"
9996 fi
9997 if test "$hardcode_direct" = yes; then
9998 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9999 else
10000 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10002 haveit=
10003 for x in $rpathdirs; do
10004 if test "X$x" = "X$found_dir"; then
10005 haveit=yes
10006 break
10007 fi
10008 done
10009 if test -z "$haveit"; then
10010 rpathdirs="$rpathdirs $found_dir"
10011 fi
10012 else
10013 haveit=
10014 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010016 acl_save_prefix="$prefix"
10017 prefix="$acl_final_prefix"
10018 acl_save_exec_prefix="$exec_prefix"
10019 exec_prefix="$acl_final_exec_prefix"
10020 eval x=\"$x\"
10021 exec_prefix="$acl_save_exec_prefix"
10022 prefix="$acl_save_prefix"
10023
10024 if test "X$x" = "X-L$found_dir"; then
10025 haveit=yes
10026 break
10027 fi
10028 done
10029 if test -z "$haveit"; then
10030 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10031 fi
10032 if test "$hardcode_minus_L" != no; then
10033 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10034 else
10035 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10036 fi
10037 fi
10038 fi
10039 fi
10040 else
10041 if test "X$found_a" != "X"; then
10042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10043 else
10044 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10045 fi
10046 fi
10047 additional_includedir=
10048 case "$found_dir" in
10049 */lib | */lib/)
10050 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10051 additional_includedir="$basedir/include"
10052 ;;
10053 esac
10054 if test "X$additional_includedir" != "X"; then
10055 if test "X$additional_includedir" != "X/usr/include"; then
10056 haveit=
10057 if test "X$additional_includedir" = "X/usr/local/include"; then
10058 if test -n "$GCC"; then
10059 case $host_os in
10060 linux*) haveit=yes;;
10061 esac
10062 fi
10063 fi
10064 if test -z "$haveit"; then
10065 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010066
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010067 acl_save_prefix="$prefix"
10068 prefix="$acl_final_prefix"
10069 acl_save_exec_prefix="$exec_prefix"
10070 exec_prefix="$acl_final_exec_prefix"
10071 eval x=\"$x\"
10072 exec_prefix="$acl_save_exec_prefix"
10073 prefix="$acl_save_prefix"
10074
10075 if test "X$x" = "X-I$additional_includedir"; then
10076 haveit=yes
10077 break
10078 fi
10079 done
10080 if test -z "$haveit"; then
10081 if test -d "$additional_includedir"; then
10082 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10083 fi
10084 fi
10085 fi
10086 fi
10087 fi
10088 if test -n "$found_la"; then
10089 save_libdir="$libdir"
10090 case "$found_la" in
10091 */* | *\\*) . "$found_la" ;;
10092 *) . "./$found_la" ;;
10093 esac
10094 libdir="$save_libdir"
10095 for dep in $dependency_libs; do
10096 case "$dep" in
10097 -L*)
10098 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10099 if test "X$additional_libdir" != "X/usr/lib"; then
10100 haveit=
10101 if test "X$additional_libdir" = "X/usr/local/lib"; then
10102 if test -n "$GCC"; then
10103 case $host_os in
10104 linux*) haveit=yes;;
10105 esac
10106 fi
10107 fi
10108 if test -z "$haveit"; then
10109 haveit=
10110 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010112 acl_save_prefix="$prefix"
10113 prefix="$acl_final_prefix"
10114 acl_save_exec_prefix="$exec_prefix"
10115 exec_prefix="$acl_final_exec_prefix"
10116 eval x=\"$x\"
10117 exec_prefix="$acl_save_exec_prefix"
10118 prefix="$acl_save_prefix"
10119
10120 if test "X$x" = "X-L$additional_libdir"; then
10121 haveit=yes
10122 break
10123 fi
10124 done
10125 if test -z "$haveit"; then
10126 if test -d "$additional_libdir"; then
10127 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10128 fi
10129 fi
10130 haveit=
10131 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010132
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010133 acl_save_prefix="$prefix"
10134 prefix="$acl_final_prefix"
10135 acl_save_exec_prefix="$exec_prefix"
10136 exec_prefix="$acl_final_exec_prefix"
10137 eval x=\"$x\"
10138 exec_prefix="$acl_save_exec_prefix"
10139 prefix="$acl_save_prefix"
10140
10141 if test "X$x" = "X-L$additional_libdir"; then
10142 haveit=yes
10143 break
10144 fi
10145 done
10146 if test -z "$haveit"; then
10147 if test -d "$additional_libdir"; then
10148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10149 fi
10150 fi
10151 fi
10152 fi
10153 ;;
10154 -R*)
10155 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10156 if test "$enable_rpath" != no; then
10157 haveit=
10158 for x in $rpathdirs; do
10159 if test "X$x" = "X$dir"; then
10160 haveit=yes
10161 break
10162 fi
10163 done
10164 if test -z "$haveit"; then
10165 rpathdirs="$rpathdirs $dir"
10166 fi
10167 haveit=
10168 for x in $ltrpathdirs; do
10169 if test "X$x" = "X$dir"; then
10170 haveit=yes
10171 break
10172 fi
10173 done
10174 if test -z "$haveit"; then
10175 ltrpathdirs="$ltrpathdirs $dir"
10176 fi
10177 fi
10178 ;;
10179 -l*)
10180 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10181 ;;
10182 *.la)
10183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10184 ;;
10185 *)
10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10187 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10188 ;;
10189 esac
10190 done
10191 fi
10192 else
10193 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10194 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10195 fi
10196 fi
10197 fi
10198 done
10199 done
10200 if test "X$rpathdirs" != "X"; then
10201 if test -n "$hardcode_libdir_separator"; then
10202 alldirs=
10203 for found_dir in $rpathdirs; do
10204 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10205 done
10206 acl_save_libdir="$libdir"
10207 libdir="$alldirs"
10208 eval flag=\"$hardcode_libdir_flag_spec\"
10209 libdir="$acl_save_libdir"
10210 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10211 else
10212 for found_dir in $rpathdirs; do
10213 acl_save_libdir="$libdir"
10214 libdir="$found_dir"
10215 eval flag=\"$hardcode_libdir_flag_spec\"
10216 libdir="$acl_save_libdir"
10217 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10218 done
10219 fi
10220 fi
10221 if test "X$ltrpathdirs" != "X"; then
10222 for found_dir in $ltrpathdirs; do
10223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10224 done
10225 fi
10226
Theodore Ts'oe1052142006-10-21 21:46:47 -040010227 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10228echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010229if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010231else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010232 gt_save_CPPFLAGS="$CPPFLAGS"
10233 CPPFLAGS="$CPPFLAGS $INCINTL"
10234 gt_save_LIBS="$LIBS"
10235 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010236 cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010242#include <libintl.h>
10243extern int _nl_msg_cat_cntr;
10244extern
10245#ifdef __cplusplus
10246"C"
10247#endif
10248const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010249int
10250main ()
10251{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010252bindtextdomain ("", "");
10253return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254 ;
10255 return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010259if { (ac_try="$ac_link"
10260case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest$ac_exeext &&
10275 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010276 gt_cv_func_gnugettext1_libintl=yes
10277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010278 echo "$as_me: failed program was:" >&5
10279sed 's/^/| /' conftest.$ac_ext >&5
10280
Theodore Ts'oe1052142006-10-21 21:46:47 -040010281 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010282fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010283
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010285 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010286 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10287 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010288 cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010294#include <libintl.h>
10295extern int _nl_msg_cat_cntr;
10296extern
10297#ifdef __cplusplus
10298"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010299#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010300const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010301int
10302main ()
10303{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010304bindtextdomain ("", "");
10305return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010311if { (ac_try="$ac_link"
10312case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315esac
10316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010328 LIBINTL="$LIBINTL $LIBICONV"
10329 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10330 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010331
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
Theodore Ts'oe1052142006-10-21 21:46:47 -040010336
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010337fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010338
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010340 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010341 fi
10342 CPPFLAGS="$gt_save_CPPFLAGS"
10343 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010345{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10346echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010347 fi
10348
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010349 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10350 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010351 && test "$PACKAGE" != gettext-runtime \
10352 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010353 gt_use_preinstalled_gnugettext=yes
10354 else
10355 LIBINTL=
10356 LTLIBINTL=
10357 INCINTL=
10358 fi
10359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010360
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010361 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10362 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010363 fi
10364 fi
10365
10366 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010367 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010368 USE_INCLUDED_LIBINTL=yes
10369 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10370 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10371 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010372 fi
10373
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010374 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10375 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10376 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010377 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010379
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010380 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10381 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010382
10383cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010384#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010385_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010386
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010387 else
10388 USE_NLS=no
10389 fi
10390 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010391
Theodore Ts'oe1052142006-10-21 21:46:47 -040010392 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10393echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10394 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10395echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010396 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010397 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10398echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010399 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10400 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10401 gt_source="external libintl"
10402 else
10403 gt_source="libc"
10404 fi
10405 else
10406 gt_source="included intl directory"
10407 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010408 { echo "$as_me:$LINENO: result: $gt_source" >&5
10409echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010410 fi
10411
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010412 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010413
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010414 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10415 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010416 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10417echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10418 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10419echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010420
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010421 for element in $INCINTL; do
10422 haveit=
10423 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010424
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010425 acl_save_prefix="$prefix"
10426 prefix="$acl_final_prefix"
10427 acl_save_exec_prefix="$exec_prefix"
10428 exec_prefix="$acl_final_exec_prefix"
10429 eval x=\"$x\"
10430 exec_prefix="$acl_save_exec_prefix"
10431 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010432
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010433 if test "X$x" = "X$element"; then
10434 haveit=yes
10435 break
10436 fi
10437 done
10438 if test -z "$haveit"; then
10439 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10440 fi
10441 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010442
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010443 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010444
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010446cat >>confdefs.h <<\_ACEOF
10447#define HAVE_GETTEXT 1
10448_ACEOF
10449
10450
10451cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010452#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010454
10455 fi
10456
10457 POSUB=po
10458 fi
10459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010460
10461 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010462 BUILD_INCLUDED_LIBINTL=yes
10463 fi
10464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010465
10466
10467
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010468
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010469 nls_cv_header_intl=
10470 nls_cv_header_libgt=
10471
10472 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010473
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010474
10475 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010476
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010477
10478 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010479
10480
10481 if test "$USE_INCLUDED_LIBINTL" = yes; then
10482 INTLOBJS="\$(GETTOBJS)"
10483 fi
10484
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010485
10486 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010487
10488
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010489
10490 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010491
10492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010493
10494
10495
10496
10497
Theodore Ts'oe1052142006-10-21 21:46:47 -040010498{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10499echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10500set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10501if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010502 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010503else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010504 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010505SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010506all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010507 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010508_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010509# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010510case `${MAKE-make} -f conftest.make 2>/dev/null` in
10511 *@@@%%%=?*=@@@%%%*)
10512 eval ac_cv_prog_make_${ac_make}_set=yes;;
10513 *)
10514 eval ac_cv_prog_make_${ac_make}_set=no;;
10515esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010516rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010517fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010518if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10519 { echo "$as_me:$LINENO: result: yes" >&5
10520echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010521 SET_MAKE=
10522else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010523 { echo "$as_me:$LINENO: result: no" >&5
10524echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010525 SET_MAKE="MAKE=${MAKE-make}"
10526fi
10527
10528# Extract the first word of "ln", so it can be a program name with args.
10529set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010532if test "${ac_cv_path_LN+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010534else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010535 case $LN in
10536 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010537 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10538 ;;
10539 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541for as_dir in $PATH
10542do
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010547 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10550 fi
10551done
10552done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010553IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010554
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010555 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10556 ;;
10557esac
10558fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010559LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010560if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010561 { echo "$as_me:$LINENO: result: $LN" >&5
10562echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010563else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010564 { echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010566fi
10567
Theodore Ts'oe1052142006-10-21 21:46:47 -040010568
10569{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10570echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010571LN_S=$as_ln_s
10572if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010573 { echo "$as_me:$LINENO: result: yes" >&5
10574echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010575else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010576 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10577echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010578fi
10579
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010580# Extract the first word of "mv", so it can be a program name with args.
10581set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010584if test "${ac_cv_path_MV+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010586else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010587 case $MV in
10588 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010589 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10590 ;;
10591 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $PATH
10594do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10602 fi
10603done
10604done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010605IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010607 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10608 ;;
10609esac
10610fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010611MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010612if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010613 { echo "$as_me:$LINENO: result: $MV" >&5
10614echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010615else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010616 { echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010618fi
10619
Theodore Ts'oe1052142006-10-21 21:46:47 -040010620
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010621# Extract the first word of "cp", so it can be a program name with args.
10622set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010625if test "${ac_cv_path_CP+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010627else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010628 case $CP in
10629 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010630 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10631 ;;
10632 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010646IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010647
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010648 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10649 ;;
10650esac
10651fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010652CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010653if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010654 { echo "$as_me:$LINENO: result: $CP" >&5
10655echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010656else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010657 { echo "$as_me:$LINENO: result: no" >&5
10658echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010659fi
10660
Theodore Ts'oe1052142006-10-21 21:46:47 -040010661
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010662# Extract the first word of "rm", so it can be a program name with args.
10663set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010666if test "${ac_cv_path_RM+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010668else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010669 case $RM in
10670 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010671 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10672 ;;
10673 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675for as_dir in $PATH
10676do
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010681 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10684 fi
10685done
10686done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010687IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010689 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10690 ;;
10691esac
10692fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010693RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010694if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010695 { echo "$as_me:$LINENO: result: $RM" >&5
10696echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010697else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010698 { echo "$as_me:$LINENO: result: no" >&5
10699echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010700fi
10701
Theodore Ts'oe1052142006-10-21 21:46:47 -040010702
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010703# Extract the first word of "chmod", so it can be a program name with args.
10704set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707if test "${ac_cv_path_CHMOD+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010709else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010710 case $CHMOD in
10711 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010712 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10713 ;;
10714 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716for as_dir in $PATH
10717do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10725 fi
10726done
10727done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010728IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010729
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010730 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10731 ;;
10732esac
10733fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010735if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010736 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10737echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010738else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010739 { echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010741fi
10742
Theodore Ts'oe1052142006-10-21 21:46:47 -040010743
Theodore Ts'o32237012005-01-17 19:13:39 -050010744for ac_prog in gawk mawk nawk awk
10745do
10746 # Extract the first word of "$ac_prog", so it can be a program name with args.
10747set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050010750if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010751 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010752else
Theodore Ts'o32237012005-01-17 19:13:39 -050010753 if test -n "$AWK"; then
10754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010763 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010769IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010770
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010771fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010772fi
10773AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010774if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010775 { echo "$as_me:$LINENO: result: $AWK" >&5
10776echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010777else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010778 { echo "$as_me:$LINENO: result: no" >&5
10779echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010780fi
10781
Theodore Ts'oe1052142006-10-21 21:46:47 -040010782
Theodore Ts'o32237012005-01-17 19:13:39 -050010783 test -n "$AWK" && break
10784done
10785
Theodore Ts'oe1052142006-10-21 21:46:47 -040010786{ echo "$as_me:$LINENO: checking for egrep" >&5
10787echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10788if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10792 then ac_cv_path_EGREP="$GREP -E"
10793 else
10794 # Extract the first word of "egrep" to use in msg output
10795if test -z "$EGREP"; then
10796set dummy egrep; ac_prog_name=$2
10797if test "${ac_cv_path_EGREP+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 ac_path_EGREP_found=false
10801# Loop through the user's path and test for each of PROGNAME-LIST
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10804do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_prog in egrep; do
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010810 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040010811 # Check for GNU ac_path_EGREP and select it if it is found.
10812 # Check for GNU $ac_path_EGREP
10813case `"$ac_path_EGREP" --version 2>&1` in
10814*GNU*)
10815 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10816*)
10817 ac_count=0
10818 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10819 while :
10820 do
10821 cat "conftest.in" "conftest.in" >"conftest.tmp"
10822 mv "conftest.tmp" "conftest.in"
10823 cp "conftest.in" "conftest.nl"
10824 echo 'EGREP' >> "conftest.nl"
10825 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10827 ac_count=`expr $ac_count + 1`
10828 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10829 # Best one so far, save it but keep looking for a better one
10830 ac_cv_path_EGREP="$ac_path_EGREP"
10831 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050010832 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010833 # 10*(2^10) chars as input seems more than enough
10834 test $ac_count -gt 10 && break
10835 done
10836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10837esac
10838
10839
10840 $ac_path_EGREP_found && break 3
10841 done
10842done
10843
10844done
10845IFS=$as_save_IFS
10846
10847
Theodore Ts'o32237012005-01-17 19:13:39 -050010848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010849
10850EGREP="$ac_cv_path_EGREP"
10851if test -z "$EGREP"; then
10852 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10853echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10854 { (exit 1); exit 1; }; }
10855fi
10856
10857else
10858 ac_cv_path_EGREP=$EGREP
10859fi
10860
10861
10862 fi
10863fi
10864{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10865echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
10866 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050010867
10868
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010869# Extract the first word of "sed", so it can be a program name with args.
10870set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010873if test "${ac_cv_path_SED+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010875else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010876 case $SED in
10877 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010878 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10879 ;;
10880 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892done
10893done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010894IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010895
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010896 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10897 ;;
10898esac
10899fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010900SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010901if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010902 { echo "$as_me:$LINENO: result: $SED" >&5
10903echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010904else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010905 { echo "$as_me:$LINENO: result: no" >&5
10906echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010907fi
10908
Theodore Ts'oe1052142006-10-21 21:46:47 -040010909
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010910# Extract the first word of "perl", so it can be a program name with args.
10911set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010914if test "${ac_cv_path_PERL+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010917 case $PERL in
10918 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010919 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10920 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010921 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010929 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10932 fi
10933done
10934done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010936
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010937 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10938 ;;
10939esac
10940fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010941PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010942if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010943 { echo "$as_me:$LINENO: result: $PERL" >&5
10944echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010945else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010946 { echo "$as_me:$LINENO: result: no" >&5
10947echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000010948fi
10949
Theodore Ts'oe1052142006-10-21 21:46:47 -040010950
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010951# Extract the first word of "ldconfig", so it can be a program name with args.
10952set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010955if test "${ac_cv_path_LDCONFIG+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010958 case $LDCONFIG in
10959 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010960 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10961 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010962 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964for as_dir in $PATH
10965do
10966 IFS=$as_save_IFS
10967 test -z "$as_dir" && as_dir=.
10968 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010970 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 break 2
10973 fi
10974done
10975done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010976IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010977
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010978 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10979 ;;
10980esac
10981fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010982LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010983if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010984 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10985echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010986else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010987 { echo "$as_me:$LINENO: result: no" >&5
10988echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000010989fi
10990
Theodore Ts'oe1052142006-10-21 21:46:47 -040010991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010992if test -n "$ac_tool_prefix"; then
10993 # 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 +000010994set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010997if test "${ac_cv_prog_AR+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010999else
11000 if test -n "$AR"; then
11001 ac_cv_prog_AR="$AR" # Let the user override the test.
11002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011010 ac_cv_prog_AR="${ac_tool_prefix}ar"
11011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
11015done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011016IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011017
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011018fi
11019fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011021if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011022 { echo "$as_me:$LINENO: result: $AR" >&5
11023echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011024else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011025 { echo "$as_me:$LINENO: result: no" >&5
11026echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011027fi
11028
Theodore Ts'oe1052142006-10-21 21:46:47 -040011029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011030fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011031if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011032 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011033 # Extract the first word of "ar", so it can be a program name with args.
11034set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011037if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011040 if test -n "$ac_ct_AR"; then
11041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044for as_dir in $PATH
11045do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011050 ac_cv_prog_ac_ct_AR="ar"
11051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054done
11055done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011056IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011057
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011058fi
11059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011060ac_ct_AR=$ac_cv_prog_ac_ct_AR
11061if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011062 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11063echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011064else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011065 { echo "$as_me:$LINENO: result: no" >&5
11066echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011067fi
11068
Theodore Ts'oe1052142006-10-21 21:46:47 -040011069 if test "x$ac_ct_AR" = x; then
11070 AR="ar"
11071 else
11072 case $cross_compiling:$ac_tool_warned in
11073yes:)
11074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11075whose name does not start with the host triplet. If you think this
11076configuration is useful to you, please write to autoconf@gnu.org." >&5
11077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11078whose name does not start with the host triplet. If you think this
11079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11080ac_tool_warned=yes ;;
11081esac
11082 AR=$ac_ct_AR
11083 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011084else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011086fi
11087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011088if test -n "$ac_tool_prefix"; then
11089 # 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 +000011090set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011093if test "${ac_cv_prog_RANLIB+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011095else
11096 if test -n "$RANLIB"; then
11097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100for as_dir in $PATH
11101do
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11109 fi
11110done
11111done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011112IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011113
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011114fi
11115fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011116RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011117if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011118 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11119echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011120else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011121 { echo "$as_me:$LINENO: result: no" >&5
11122echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011123fi
11124
Theodore Ts'oe1052142006-10-21 21:46:47 -040011125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011126fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011127if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011128 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011129 # Extract the first word of "ranlib", so it can be a program name with args.
11130set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011133if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011136 if test -n "$ac_ct_RANLIB"; then
11137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $PATH
11141do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011146 ac_cv_prog_ac_ct_RANLIB="ranlib"
11147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11149 fi
11150done
11151done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011152IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011153
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011154fi
11155fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011156ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11157if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011158 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11159echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011160else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011161 { echo "$as_me:$LINENO: result: no" >&5
11162echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011163fi
11164
Theodore Ts'oe1052142006-10-21 21:46:47 -040011165 if test "x$ac_ct_RANLIB" = x; then
11166 RANLIB=":"
11167 else
11168 case $cross_compiling:$ac_tool_warned in
11169yes:)
11170{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11171whose name does not start with the host triplet. If you think this
11172configuration is useful to you, please write to autoconf@gnu.org." >&5
11173echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11174whose name does not start with the host triplet. If you think this
11175configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11176ac_tool_warned=yes ;;
11177esac
11178 RANLIB=$ac_ct_RANLIB
11179 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011180else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011181 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011182fi
11183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011184if test -n "$ac_tool_prefix"; then
11185 # 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 +000011186set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011189if test "${ac_cv_prog_STRIP+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011191else
11192 if test -n "$STRIP"; then
11193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11194else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198 IFS=$as_save_IFS
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011202 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 break 2
11205 fi
11206done
11207done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011208IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011209
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011210fi
11211fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011212STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011213if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011214 { echo "$as_me:$LINENO: result: $STRIP" >&5
11215echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011216else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011217 { echo "$as_me:$LINENO: result: no" >&5
11218echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011219fi
11220
Theodore Ts'oe1052142006-10-21 21:46:47 -040011221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011222fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011223if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011224 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011225 # Extract the first word of "strip", so it can be a program name with args.
11226set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011229if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011231else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011232 if test -n "$ac_ct_STRIP"; then
11233 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236for as_dir in $PATH
11237do
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011242 ac_cv_prog_ac_ct_STRIP="strip"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11245 fi
11246done
11247done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011248IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011249
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011250fi
11251fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011252ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11253if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011254 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11255echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011256else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011257 { echo "$as_me:$LINENO: result: no" >&5
11258echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011259fi
11260
Theodore Ts'oe1052142006-10-21 21:46:47 -040011261 if test "x$ac_ct_STRIP" = x; then
11262 STRIP=":"
11263 else
11264 case $cross_compiling:$ac_tool_warned in
11265yes:)
11266{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11267whose name does not start with the host triplet. If you think this
11268configuration is useful to you, please write to autoconf@gnu.org." >&5
11269echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11270whose name does not start with the host triplet. If you think this
11271configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11272ac_tool_warned=yes ;;
11273esac
11274 STRIP=$ac_ct_STRIP
11275 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011276else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011278fi
11279
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011280# Find a good install program. We prefer a C program (faster),
11281# so one script is as good as another. But avoid the broken or
11282# incompatible versions:
11283# SysV /etc/install, /usr/sbin/install
11284# SunOS /usr/etc/install
11285# IRIX /sbin/install
11286# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011287# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011288# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011289# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11290# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011291# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011292# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011293{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11294echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011295if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011296if test "${ac_cv_path_install+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 # Account for people who put trailing slashes in PATH elements.
11305case $as_dir/ in
11306 ./ | .// | /cC/* | \
11307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11309 /usr/ucb/* ) ;;
11310 *)
11311 # OSF1 and SCO ODT 3.0 have their own names for install.
11312 # Don't use installbsd from OSF since it installs stuff as root
11313 # by default.
11314 for ac_prog in ginstall scoinst install; do
11315 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011317 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011319 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011320 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011321 elif test $ac_prog = install &&
11322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11323 # program-specific install script used by HP pwplus--don't use.
11324 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011325 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11327 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011328 fi
11329 fi
11330 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011331 done
11332 ;;
11333esac
11334done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011335IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011336
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011337
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011338fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011339 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011341 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011342 # As a last resort, use the slow shell script. Don't cache a
11343 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011344 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011345 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011346 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011347 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011349{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11350echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011351
11352# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11353# It thinks the first close brace ends the variable substitution.
11354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11355
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011357
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11359
Theodore Ts'o6c133521999-07-03 20:37:03 +000011360# See if we need a separate native compiler.
11361if test $cross_compiling = no; then
11362 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011363
Theodore Ts'o6c133521999-07-03 20:37:03 +000011364else
11365 for ac_prog in gcc cc
11366do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011367 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011368set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011371if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011373else
11374 if test -n "$BUILD_CC"; then
11375 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11376else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011379do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
11382 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384 ac_cv_prog_BUILD_CC="$ac_prog"
11385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 break 2
11387 fi
11388done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011389done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011390IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011391
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011392fi
11393fi
11394BUILD_CC=$ac_cv_prog_BUILD_CC
11395if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011396 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11397echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011398else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011399 { echo "$as_me:$LINENO: result: no" >&5
11400echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401fi
11402
Theodore Ts'oe1052142006-10-21 21:46:47 -040011403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404 test -n "$BUILD_CC" && break
11405done
11406
11407fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011437
Theodore Ts'o106ad962007-04-04 21:26:37 -040011438
11439
11440for 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 -050011441do
11442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011449ac_res=`eval echo '${'$as_ac_Header'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011452else
11453 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011454{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456cat >conftest.$ac_ext <<_ACEOF
11457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
11462$ac_includes_default
11463#include <$ac_header>
11464_ACEOF
11465rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011466if { (ac_try="$ac_compile"
11467case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11470esac
11471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011478 (exit $ac_status); } && {
11479 test -z "$ac_c_werror_flag" ||
11480 test ! -s conftest.err
11481 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011482 ac_header_compiler=yes
11483else
11484 echo "$as_me: failed program was:" >&5
11485sed 's/^/| /' conftest.$ac_ext >&5
11486
Theodore Ts'oe1052142006-10-21 21:46:47 -040011487 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011489
11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011493
11494# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011497cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503#include <$ac_header>
11504_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011505if { (ac_try="$ac_cpp conftest.$ac_ext"
11506case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011517 (exit $ac_status); } >/dev/null && {
11518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011521 ac_header_preproc=yes
11522else
11523 echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 ac_header_preproc=no
11527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11531echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532
11533# So? What about this header?
11534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11535 yes:no: )
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11540 ac_header_preproc=yes
11541 ;;
11542 no:yes:* )
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011556 ;;
11557esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011558{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 eval "$as_ac_Header=\$ac_header_preproc"
11564fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011565ac_res=`eval echo '${'$as_ac_Header'}'`
11566 { echo "$as_me:$LINENO: result: $ac_res" >&5
11567echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568
11569fi
11570if test `eval echo '${'$as_ac_Header'}'` = yes; then
11571 cat >>confdefs.h <<_ACEOF
11572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11573_ACEOF
11574
11575fi
11576
11577done
11578
11579
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011580
11581for ac_header in sys/disk.h sys/mount.h
11582do
11583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588else
11589 cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595
11596#if HAVE_SYS_QUEUE_H
11597#include <sys/queue.h>
11598#endif
11599
11600
11601#include <$ac_header>
11602_ACEOF
11603rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011604if { (ac_try="$ac_compile"
11605case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608esac
11609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011611 ac_status=$?
11612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011616 (exit $ac_status); } && {
11617 test -z "$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011620 eval "$as_ac_Header=yes"
11621else
11622 echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
Theodore Ts'oe1052142006-10-21 21:46:47 -040011625 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011626fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011627
11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011630ac_res=`eval echo '${'$as_ac_Header'}'`
11631 { echo "$as_me:$LINENO: result: $ac_res" >&5
11632echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011633if test `eval echo '${'$as_ac_Header'}'` = yes; then
11634 cat >>confdefs.h <<_ACEOF
11635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636_ACEOF
11637
11638fi
11639
11640done
11641
11642
11643for ac_header in net/if.h
11644do
11645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011646{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 cat >conftest.$ac_ext <<_ACEOF
11652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657
11658#if HAVE_SYS_TYPES_H
11659#include <sys/types.h>
11660#endif
11661#if HAVE_SYS_SOCKET
11662#include <sys/socket.h>
11663#endif
11664
11665
11666#include <$ac_header>
11667_ACEOF
11668rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011669if { (ac_try="$ac_compile"
11670case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011681 (exit $ac_status); } && {
11682 test -z "$ac_c_werror_flag" ||
11683 test ! -s conftest.err
11684 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011685 eval "$as_ac_Header=yes"
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
Theodore Ts'oe1052142006-10-21 21:46:47 -040011690 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011691fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011692
11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011694fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011695ac_res=`eval echo '${'$as_ac_Header'}'`
11696 { echo "$as_me:$LINENO: result: $ac_res" >&5
11697echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011698if test `eval echo '${'$as_ac_Header'}'` = yes; then
11699 cat >>confdefs.h <<_ACEOF
11700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11701_ACEOF
11702
11703fi
11704
11705done
11706
11707
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011708for ac_func in vprintf
11709do
11710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
11722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724#define $ac_func innocuous_$ac_func
11725
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011726/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011727 which can conflict with char $ac_func (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
11730
11731#ifdef __STDC__
11732# include <limits.h>
11733#else
11734# include <assert.h>
11735#endif
11736
11737#undef $ac_func
11738
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739/* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011742#ifdef __cplusplus
11743extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011744#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011746/* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011750choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011751#endif
11752
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011753int
11754main ()
11755{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011756return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757 ;
11758 return 0;
11759}
11760_ACEOF
11761rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011762if { (ac_try="$ac_link"
11763case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011774 (exit $ac_status); } && {
11775 test -z "$ac_c_werror_flag" ||
11776 test ! -s conftest.err
11777 } && test -s conftest$ac_exeext &&
11778 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011779 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011780else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011781 echo "$as_me: failed program was:" >&5
11782sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011783
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011785fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011786
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011788 conftest$ac_exeext conftest.$ac_ext
11789fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790ac_res=`eval echo '${'$as_ac_var'}'`
11791 { echo "$as_me:$LINENO: result: $ac_res" >&5
11792echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011793if test `eval echo '${'$as_ac_var'}'` = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11796_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011797
Theodore Ts'oe1052142006-10-21 21:46:47 -040011798{ echo "$as_me:$LINENO: checking for _doprnt" >&5
11799echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011800if test "${ac_cv_func__doprnt+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011802else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011812
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011813/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011814 which can conflict with char _doprnt (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11817
11818#ifdef __STDC__
11819# include <limits.h>
11820#else
11821# include <assert.h>
11822#endif
11823
11824#undef _doprnt
11825
Theodore Ts'oe1052142006-10-21 21:46:47 -040011826/* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011829#ifdef __cplusplus
11830extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011833/* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011836#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011837choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011838#endif
11839
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011840int
11841main ()
11842{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011843return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844 ;
11845 return 0;
11846}
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest$ac_exeext &&
11865 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011866 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011867else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011870
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011873
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011875 conftest$ac_exeext conftest.$ac_ext
11876fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011877{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11878echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011879if test $ac_cv_func__doprnt = yes; then
11880
11881cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011882#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011883_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011884
11885fi
11886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011887fi
11888done
11889
11890
Theodore Ts'oe1052142006-10-21 21:46:47 -040011891{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11892echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011893if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011894 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011895else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896 cat >conftest.$ac_ext <<_ACEOF
11897/* confdefs.h. */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040011902#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904int
11905main ()
11906{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011907static struct dirent ac_aggr;
11908if (ac_aggr.d_reclen)
11909return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011910 ;
11911 return 0;
11912}
11913_ACEOF
11914rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011915if { (ac_try="$ac_compile"
11916case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919esac
11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011931 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040011932else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933 echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
Theodore Ts'oe1052142006-10-21 21:46:47 -040011936 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011937/* confdefs.h. */
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h. */
11942#include <dirent.h>
11943
11944int
11945main ()
11946{
11947static struct dirent ac_aggr;
11948if (sizeof ac_aggr.d_reclen)
11949return 0;
11950 ;
11951 return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011955if { (ac_try="$ac_compile"
11956case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011971 ac_cv_member_struct_dirent_d_reclen=yes
11972else
11973 echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
Theodore Ts'oe1052142006-10-21 21:46:47 -040011976 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040011977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011978
11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040011980fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011981
11982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011983fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011984{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11985echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011986if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11987 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011988#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011989_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040011990
11991fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011992
Theodore Ts'oe1052142006-10-21 21:46:47 -040011993{ echo "$as_me:$LINENO: checking for ssize_t" >&5
11994echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050011995if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040011997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011998 cat >conftest.$ac_ext <<_ACEOF
11999/* confdefs.h. */
12000_ACEOF
12001cat confdefs.h >>conftest.$ac_ext
12002cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012004#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012005
Theodore Ts'oe1052142006-10-21 21:46:47 -040012006typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007int
12008main ()
12009{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012010if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012011 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012012if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012013 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012014 ;
12015 return 0;
12016}
12017_ACEOF
12018rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019if { (ac_try="$ac_compile"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012035 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012036else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037 echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
Theodore Ts'oe1052142006-10-21 21:46:47 -040012040 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012041fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012042
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012045{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12046echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012047if test $ac_cv_type_ssize_t = yes; then
12048 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012049#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012051
12052fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012053
Theodore Ts'oe1052142006-10-21 21:46:47 -040012054{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12055echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012056if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012058else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059 cat >conftest.$ac_ext <<_ACEOF
12060/* confdefs.h. */
12061_ACEOF
12062cat confdefs.h >>conftest.$ac_ext
12063cat >>conftest.$ac_ext <<_ACEOF
12064/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012065#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067int
12068main ()
12069{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012070#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012071 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012072#endif
12073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012074 ;
12075 return 0;
12076}
12077_ACEOF
12078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079if { (ac_try="$ac_compile"
12080case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083esac
12084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012095 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012102
12103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012105{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12106echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012107if test $ac_cv_have_decl_llseek = yes; then
12108 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012109#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012111
12112fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012113
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12115echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012116if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012118else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119 cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012125#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012126 #define _LARGEFILE64_SOURCE
12127 #include <unistd.h>
12128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129int
12130main ()
12131{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012132#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012133 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012134#endif
12135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136 ;
12137 return 0;
12138}
12139_ACEOF
12140rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012141if { (ac_try="$ac_compile"
12142case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145esac
12146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012157 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012158else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012159 echo "$as_me: failed program was:" >&5
12160sed 's/^/| /' conftest.$ac_ext >&5
12161
Theodore Ts'oe1052142006-10-21 21:46:47 -040012162 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012164
12165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012167{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12168echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012169if test $ac_cv_have_decl_lseek64 = yes; then
12170 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012171#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012173
12174fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012175
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012176if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012177 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012178 ac_cv_sizeof_short=2
12179 ac_cv_sizeof_int=4
12180 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012181 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12183echo "$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 +000012184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185{ echo "$as_me:$LINENO: checking for short" >&5
12186echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012187if test "${ac_cv_type_short+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190 cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
12196$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012197typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198int
12199main ()
12200{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012203if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204 return 0;
12205 ;
12206 return 0;
12207}
12208_ACEOF
12209rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012210if { (ac_try="$ac_compile"
12211case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226 ac_cv_type_short=yes
12227else
12228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
Theodore Ts'oe1052142006-10-21 21:46:47 -040012231 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012233
Theodore Ts'oe1052142006-10-21 21:46:47 -040012234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235fi
12236{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12237echo "${ECHO_T}$ac_cv_type_short" >&6; }
12238
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012239# The cast to long int works around a bug in the HP C Compiler
12240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12242# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012243{ echo "$as_me:$LINENO: checking size of short" >&5
12244echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012245if test "${ac_cv_sizeof_short+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248 if test "$cross_compiling" = yes; then
12249 # Depending upon the size, compute the lo and hi bounds.
12250cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h. */
12256$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012257 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258int
12259main ()
12260{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012261static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262test_array [0] = 0
12263
12264 ;
12265 return 0;
12266}
12267_ACEOF
12268rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012269if { (ac_try="$ac_compile"
12270case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273esac
12274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276 ac_status=$?
12277 grep -v '^ *+' conftest.er1 >conftest.err
12278 rm -f conftest.er1
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285 ac_lo=0 ac_mid=0
12286 while :; do
12287 cat >conftest.$ac_ext <<_ACEOF
12288/* confdefs.h. */
12289_ACEOF
12290cat confdefs.h >>conftest.$ac_ext
12291cat >>conftest.$ac_ext <<_ACEOF
12292/* end confdefs.h. */
12293$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012294 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012295int
12296main ()
12297{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012298static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012299test_array [0] = 0
12300
12301 ;
12302 return 0;
12303}
12304_ACEOF
12305rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012306if { (ac_try="$ac_compile"
12307case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310esac
12311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012318 (exit $ac_status); } && {
12319 test -z "$ac_c_werror_flag" ||
12320 test ! -s conftest.err
12321 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012322 ac_hi=$ac_mid; break
12323else
12324 echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
Theodore Ts'oe1052142006-10-21 21:46:47 -040012327 ac_lo=`expr $ac_mid + 1`
12328 if test $ac_lo -le $ac_mid; then
12329 ac_lo= ac_hi=
12330 break
12331 fi
12332 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012333fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012334
12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336 done
12337else
12338 echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
Theodore Ts'oe1052142006-10-21 21:46:47 -040012341 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012348 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012349int
12350main ()
12351{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012352static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012353test_array [0] = 0
12354
12355 ;
12356 return 0;
12357}
12358_ACEOF
12359rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360if { (ac_try="$ac_compile"
12361case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12364esac
12365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012376 ac_hi=-1 ac_mid=-1
12377 while :; do
12378 cat >conftest.$ac_ext <<_ACEOF
12379/* confdefs.h. */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h. */
12384$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012385 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012386int
12387main ()
12388{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012389static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012390test_array [0] = 0
12391
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012397if { (ac_try="$ac_compile"
12398case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401esac
12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012413 ac_lo=$ac_mid; break
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
Theodore Ts'oe1052142006-10-21 21:46:47 -040012418 ac_hi=`expr '(' $ac_mid ')' - 1`
12419 if test $ac_mid -le $ac_hi; then
12420 ac_lo= ac_hi=
12421 break
12422 fi
12423 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012425
12426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012427 done
12428else
12429 echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
Theodore Ts'oe1052142006-10-21 21:46:47 -040012432 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012433fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012434
12435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012437
12438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012439# Binary search between lo and hi bounds.
12440while test "x$ac_lo" != "x$ac_hi"; do
12441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012449 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012450int
12451main ()
12452{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012453static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454test_array [0] = 0
12455
12456 ;
12457 return 0;
12458}
12459_ACEOF
12460rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012461if { (ac_try="$ac_compile"
12462case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465esac
12466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477 ac_hi=$ac_mid
12478else
12479 echo "$as_me: failed program was:" >&5
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
Theodore Ts'oe1052142006-10-21 21:46:47 -040012482 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012483fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012484
12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486done
12487case $ac_lo in
12488?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012489'') if test "$ac_cv_type_short" = yes; then
12490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012491See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012492echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012494 { (exit 77); exit 77; }; }
12495 else
12496 ac_cv_sizeof_short=0
12497 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012498esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012499else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500 cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h. */
12506$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012507 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012508static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12509static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012510#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511#include <stdlib.h>
12512int
12513main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012514{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012515
12516 FILE *f = fopen ("conftest.val", "w");
12517 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012518 return 1;
12519 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012521 long int i = longval ();
12522 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12523 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524 fprintf (f, "%ld\n", i);
12525 }
12526 else
12527 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012528 unsigned long int i = ulongval ();
12529 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12530 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012531 fprintf (f, "%lu\n", i);
12532 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012533 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534
12535 ;
12536 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012537}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012538_ACEOF
12539rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012540if { (ac_try="$ac_link"
12541case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012550 { (case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553esac
12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012560else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012561 echo "$as_me: program exited with status $ac_status" >&5
12562echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012566if test "$ac_cv_type_short" = yes; then
12567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012568See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012569echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012570See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012571 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012572 else
12573 ac_cv_sizeof_short=0
12574 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012576rm -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 -050012577fi
12578rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012579fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012580{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12581echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012582
12583
12584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012586#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012588
12589
Theodore Ts'oe1052142006-10-21 21:46:47 -040012590{ echo "$as_me:$LINENO: checking for int" >&5
12591echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012592if test "${ac_cv_type_int+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594else
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012602typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012603int
12604main ()
12605{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012606if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012609 return 0;
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012615if { (ac_try="$ac_compile"
12616case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12619esac
12620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012631 ac_cv_type_int=yes
12632else
12633 echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012638
Theodore Ts'oe1052142006-10-21 21:46:47 -040012639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640fi
12641{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12642echo "${ECHO_T}$ac_cv_type_int" >&6; }
12643
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012644# The cast to long int works around a bug in the HP C Compiler
12645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12647# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012648{ echo "$as_me:$LINENO: checking size of int" >&5
12649echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012650if test "${ac_cv_sizeof_int+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012653 if test "$cross_compiling" = yes; then
12654 # Depending upon the size, compute the lo and hi bounds.
12655cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012662 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663int
12664main ()
12665{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012666static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012667test_array [0] = 0
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012674if { (ac_try="$ac_compile"
12675case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690 ac_lo=0 ac_mid=0
12691 while :; do
12692 cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012699 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700int
12701main ()
12702{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012703static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012704test_array [0] = 0
12705
12706 ;
12707 return 0;
12708}
12709_ACEOF
12710rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012711if { (ac_try="$ac_compile"
12712case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715esac
12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012723 (exit $ac_status); } && {
12724 test -z "$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012727 ac_hi=$ac_mid; break
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
Theodore Ts'oe1052142006-10-21 21:46:47 -040012732 ac_lo=`expr $ac_mid + 1`
12733 if test $ac_lo -le $ac_mid; then
12734 ac_lo= ac_hi=
12735 break
12736 fi
12737 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012739
12740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012741 done
12742else
12743 echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
Theodore Ts'oe1052142006-10-21 21:46:47 -040012746 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
12752$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012753 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754int
12755main ()
12756{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012757static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758test_array [0] = 0
12759
12760 ;
12761 return 0;
12762}
12763_ACEOF
12764rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012765if { (ac_try="$ac_compile"
12766case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769esac
12770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012781 ac_hi=-1 ac_mid=-1
12782 while :; do
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012790 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012791int
12792main ()
12793{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012794static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012795test_array [0] = 0
12796
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012802if { (ac_try="$ac_compile"
12803case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818 ac_lo=$ac_mid; break
12819else
12820 echo "$as_me: failed program was:" >&5
12821sed 's/^/| /' conftest.$ac_ext >&5
12822
Theodore Ts'oe1052142006-10-21 21:46:47 -040012823 ac_hi=`expr '(' $ac_mid ')' - 1`
12824 if test $ac_mid -le $ac_hi; then
12825 ac_lo= ac_hi=
12826 break
12827 fi
12828 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012829fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012830
12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012832 done
12833else
12834 echo "$as_me: failed program was:" >&5
12835sed 's/^/| /' conftest.$ac_ext >&5
12836
Theodore Ts'oe1052142006-10-21 21:46:47 -040012837 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012839
12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012841fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012842
12843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012844# Binary search between lo and hi bounds.
12845while test "x$ac_lo" != "x$ac_hi"; do
12846 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12847 cat >conftest.$ac_ext <<_ACEOF
12848/* confdefs.h. */
12849_ACEOF
12850cat confdefs.h >>conftest.$ac_ext
12851cat >>conftest.$ac_ext <<_ACEOF
12852/* end confdefs.h. */
12853$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012854 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012855int
12856main ()
12857{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012859test_array [0] = 0
12860
12861 ;
12862 return 0;
12863}
12864_ACEOF
12865rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012866if { (ac_try="$ac_compile"
12867case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870esac
12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012878 (exit $ac_status); } && {
12879 test -z "$ac_c_werror_flag" ||
12880 test ! -s conftest.err
12881 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012882 ac_hi=$ac_mid
12883else
12884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
Theodore Ts'oe1052142006-10-21 21:46:47 -040012887 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012889
12890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012891done
12892case $ac_lo in
12893?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012894'') if test "$ac_cv_type_int" = yes; then
12895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012896See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012897echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012898See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012899 { (exit 77); exit 77; }; }
12900 else
12901 ac_cv_sizeof_int=0
12902 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012903esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012904else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905 cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h. */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h. */
12911$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012912 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012913static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12914static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012915#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012916#include <stdlib.h>
12917int
12918main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012919{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920
12921 FILE *f = fopen ("conftest.val", "w");
12922 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012923 return 1;
12924 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012925 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012926 long int i = longval ();
12927 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12928 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929 fprintf (f, "%ld\n", i);
12930 }
12931 else
12932 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012933 unsigned long int i = ulongval ();
12934 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12935 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936 fprintf (f, "%lu\n", i);
12937 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012938 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012939
12940 ;
12941 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012942}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943_ACEOF
12944rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012945if { (ac_try="$ac_link"
12946case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949esac
12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012955 { (case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958esac
12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012966 echo "$as_me: program exited with status $ac_status" >&5
12967echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012971if test "$ac_cv_type_int" = yes; then
12972 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012973See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012974echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012976 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012977 else
12978 ac_cv_sizeof_int=0
12979 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012981rm -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 -050012982fi
12983rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012984fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012985{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12986echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012987
12988
12989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012990cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012991#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012992_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012993
12994
Theodore Ts'oe1052142006-10-21 21:46:47 -040012995{ echo "$as_me:$LINENO: checking for long" >&5
12996echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997if test "${ac_cv_type_long+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999else
13000 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$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013007typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008int
13009main ()
13010{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013011if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013013if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013014 return 0;
13015 ;
13016 return 0;
13017}
13018_ACEOF
13019rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013020if { (ac_try="$ac_compile"
13021case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013032 (exit $ac_status); } && {
13033 test -z "$ac_c_werror_flag" ||
13034 test ! -s conftest.err
13035 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013036 ac_cv_type_long=yes
13037else
13038 echo "$as_me: failed program was:" >&5
13039sed 's/^/| /' conftest.$ac_ext >&5
13040
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013042fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013043
Theodore Ts'oe1052142006-10-21 21:46:47 -040013044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045fi
13046{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13047echo "${ECHO_T}$ac_cv_type_long" >&6; }
13048
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013049# The cast to long int works around a bug in the HP C Compiler
13050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13052# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013053{ echo "$as_me:$LINENO: checking size of long" >&5
13054echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013055if test "${ac_cv_sizeof_long+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013058 if test "$cross_compiling" = yes; then
13059 # Depending upon the size, compute the lo and hi bounds.
13060cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013067 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013068int
13069main ()
13070{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013071static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013072test_array [0] = 0
13073
13074 ;
13075 return 0;
13076}
13077_ACEOF
13078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013079if { (ac_try="$ac_compile"
13080case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013091 (exit $ac_status); } && {
13092 test -z "$ac_c_werror_flag" ||
13093 test ! -s conftest.err
13094 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013095 ac_lo=0 ac_mid=0
13096 while :; do
13097 cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013104 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105int
13106main ()
13107{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013108static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013109test_array [0] = 0
13110
13111 ;
13112 return 0;
13113}
13114_ACEOF
13115rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013116if { (ac_try="$ac_compile"
13117case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013123 ac_status=$?
13124 grep -v '^ *+' conftest.er1 >conftest.err
13125 rm -f conftest.er1
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013128 (exit $ac_status); } && {
13129 test -z "$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13131 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013132 ac_hi=$ac_mid; break
13133else
13134 echo "$as_me: failed program was:" >&5
13135sed 's/^/| /' conftest.$ac_ext >&5
13136
Theodore Ts'oe1052142006-10-21 21:46:47 -040013137 ac_lo=`expr $ac_mid + 1`
13138 if test $ac_lo -le $ac_mid; then
13139 ac_lo= ac_hi=
13140 break
13141 fi
13142 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013143fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013144
13145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013146 done
13147else
13148 echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
Theodore Ts'oe1052142006-10-21 21:46:47 -040013151 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
13157$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013158 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013159int
13160main ()
13161{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013162static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013163test_array [0] = 0
13164
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013170if { (ac_try="$ac_compile"
13171case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174esac
13175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013182 (exit $ac_status); } && {
13183 test -z "$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13185 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013186 ac_hi=-1 ac_mid=-1
13187 while :; do
13188 cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h. */
13194$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013195 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013196int
13197main ()
13198{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013199static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013200test_array [0] = 0
13201
13202 ;
13203 return 0;
13204}
13205_ACEOF
13206rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013207if { (ac_try="$ac_compile"
13208case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013223 ac_lo=$ac_mid; break
13224else
13225 echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
13227
Theodore Ts'oe1052142006-10-21 21:46:47 -040013228 ac_hi=`expr '(' $ac_mid ')' - 1`
13229 if test $ac_mid -le $ac_hi; then
13230 ac_lo= ac_hi=
13231 break
13232 fi
13233 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013234fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013235
13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013237 done
13238else
13239 echo "$as_me: failed program was:" >&5
13240sed 's/^/| /' conftest.$ac_ext >&5
13241
Theodore Ts'oe1052142006-10-21 21:46:47 -040013242 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013244
13245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013246fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013247
13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013249# Binary search between lo and hi bounds.
13250while test "x$ac_lo" != "x$ac_hi"; do
13251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13252 cat >conftest.$ac_ext <<_ACEOF
13253/* confdefs.h. */
13254_ACEOF
13255cat confdefs.h >>conftest.$ac_ext
13256cat >>conftest.$ac_ext <<_ACEOF
13257/* end confdefs.h. */
13258$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013259 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013260int
13261main ()
13262{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013263static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013264test_array [0] = 0
13265
13266 ;
13267 return 0;
13268}
13269_ACEOF
13270rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013271if { (ac_try="$ac_compile"
13272case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275esac
13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013287 ac_hi=$ac_mid
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
Theodore Ts'oe1052142006-10-21 21:46:47 -040013292 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013293fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013294
13295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013296done
13297case $ac_lo in
13298?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013299'') if test "$ac_cv_type_long" = yes; then
13300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013301See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013302echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013303See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013304 { (exit 77); exit 77; }; }
13305 else
13306 ac_cv_sizeof_long=0
13307 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013308esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013309else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013310 cat >conftest.$ac_ext <<_ACEOF
13311/* confdefs.h. */
13312_ACEOF
13313cat confdefs.h >>conftest.$ac_ext
13314cat >>conftest.$ac_ext <<_ACEOF
13315/* end confdefs.h. */
13316$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013317 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013318static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13319static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013320#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013321#include <stdlib.h>
13322int
13323main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013324{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013325
13326 FILE *f = fopen ("conftest.val", "w");
13327 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013328 return 1;
13329 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013330 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013331 long int i = longval ();
13332 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13333 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013334 fprintf (f, "%ld\n", i);
13335 }
13336 else
13337 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013338 unsigned long int i = ulongval ();
13339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13340 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013341 fprintf (f, "%lu\n", i);
13342 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013343 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013344
13345 ;
13346 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013347}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013348_ACEOF
13349rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013350if { (ac_try="$ac_link"
13351case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013370else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013371 echo "$as_me: program exited with status $ac_status" >&5
13372echo "$as_me: failed program was:" >&5
13373sed 's/^/| /' conftest.$ac_ext >&5
13374
13375( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013376if test "$ac_cv_type_long" = yes; then
13377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013378See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013379echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013380See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013381 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013382 else
13383 ac_cv_sizeof_long=0
13384 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013385fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013386rm -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 -050013387fi
13388rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013390{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13391echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013392
13393
13394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013395cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013396#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013397_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013398
13399
Theodore Ts'oe1052142006-10-21 21:46:47 -040013400{ echo "$as_me:$LINENO: checking for long long" >&5
13401echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013402if test "${ac_cv_type_long_long+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404else
13405 cat >conftest.$ac_ext <<_ACEOF
13406/* confdefs.h. */
13407_ACEOF
13408cat confdefs.h >>conftest.$ac_ext
13409cat >>conftest.$ac_ext <<_ACEOF
13410/* end confdefs.h. */
13411$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013412typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013413int
13414main ()
13415{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013416if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013418if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013419 return 0;
13420 ;
13421 return 0;
13422}
13423_ACEOF
13424rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013425if { (ac_try="$ac_compile"
13426case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013441 ac_cv_type_long_long=yes
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013447fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013448
Theodore Ts'oe1052142006-10-21 21:46:47 -040013449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450fi
13451{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13452echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13453
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013454# The cast to long int works around a bug in the HP C Compiler
13455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13457# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013458{ echo "$as_me:$LINENO: checking size of long long" >&5
13459echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013460if test "${ac_cv_sizeof_long_long+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013463 if test "$cross_compiling" = yes; then
13464 # Depending upon the size, compute the lo and hi bounds.
13465cat >conftest.$ac_ext <<_ACEOF
13466/* confdefs.h. */
13467_ACEOF
13468cat confdefs.h >>conftest.$ac_ext
13469cat >>conftest.$ac_ext <<_ACEOF
13470/* end confdefs.h. */
13471$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013472 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013473int
13474main ()
13475{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013476static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013477test_array [0] = 0
13478
13479 ;
13480 return 0;
13481}
13482_ACEOF
13483rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484if { (ac_try="$ac_compile"
13485case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13488esac
13489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013496 (exit $ac_status); } && {
13497 test -z "$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13499 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500 ac_lo=0 ac_mid=0
13501 while :; do
13502 cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
13508$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013509 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013510int
13511main ()
13512{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013513static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013514test_array [0] = 0
13515
13516 ;
13517 return 0;
13518}
13519_ACEOF
13520rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013521if { (ac_try="$ac_compile"
13522case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525esac
13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013528 ac_status=$?
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013533 (exit $ac_status); } && {
13534 test -z "$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13536 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013537 ac_hi=$ac_mid; break
13538else
13539 echo "$as_me: failed program was:" >&5
13540sed 's/^/| /' conftest.$ac_ext >&5
13541
Theodore Ts'oe1052142006-10-21 21:46:47 -040013542 ac_lo=`expr $ac_mid + 1`
13543 if test $ac_lo -le $ac_mid; then
13544 ac_lo= ac_hi=
13545 break
13546 fi
13547 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013549
13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013551 done
13552else
13553 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
Theodore Ts'oe1052142006-10-21 21:46:47 -040013556 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
13562$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013563 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013564int
13565main ()
13566{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013567static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013568test_array [0] = 0
13569
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013575if { (ac_try="$ac_compile"
13576case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579esac
13580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591 ac_hi=-1 ac_mid=-1
13592 while :; do
13593 cat >conftest.$ac_ext <<_ACEOF
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013600 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013601int
13602main ()
13603{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013604static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013605test_array [0] = 0
13606
13607 ;
13608 return 0;
13609}
13610_ACEOF
13611rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013612if { (ac_try="$ac_compile"
13613case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13616esac
13617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013628 ac_lo=$ac_mid; break
13629else
13630 echo "$as_me: failed program was:" >&5
13631sed 's/^/| /' conftest.$ac_ext >&5
13632
Theodore Ts'oe1052142006-10-21 21:46:47 -040013633 ac_hi=`expr '(' $ac_mid ')' - 1`
13634 if test $ac_mid -le $ac_hi; then
13635 ac_lo= ac_hi=
13636 break
13637 fi
13638 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013639fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013640
13641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013642 done
13643else
13644 echo "$as_me: failed program was:" >&5
13645sed 's/^/| /' conftest.$ac_ext >&5
13646
Theodore Ts'oe1052142006-10-21 21:46:47 -040013647 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013648fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013649
13650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013652
13653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013654# Binary search between lo and hi bounds.
13655while test "x$ac_lo" != "x$ac_hi"; do
13656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13657 cat >conftest.$ac_ext <<_ACEOF
13658/* confdefs.h. */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h. */
13663$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013664 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013665int
13666main ()
13667{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013668static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669test_array [0] = 0
13670
13671 ;
13672 return 0;
13673}
13674_ACEOF
13675rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013676if { (ac_try="$ac_compile"
13677case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680esac
13681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013692 ac_hi=$ac_mid
13693else
13694 echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
Theodore Ts'oe1052142006-10-21 21:46:47 -040013697 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013699
13700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013701done
13702case $ac_lo in
13703?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013704'') if test "$ac_cv_type_long_long" = yes; then
13705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013706See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013707echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013708See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013709 { (exit 77); exit 77; }; }
13710 else
13711 ac_cv_sizeof_long_long=0
13712 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013713esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013714else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013715 cat >conftest.$ac_ext <<_ACEOF
13716/* confdefs.h. */
13717_ACEOF
13718cat confdefs.h >>conftest.$ac_ext
13719cat >>conftest.$ac_ext <<_ACEOF
13720/* end confdefs.h. */
13721$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013722 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013723static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13724static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013725#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013726#include <stdlib.h>
13727int
13728main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013729{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013730
13731 FILE *f = fopen ("conftest.val", "w");
13732 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013733 return 1;
13734 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013735 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013736 long int i = longval ();
13737 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13738 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739 fprintf (f, "%ld\n", i);
13740 }
13741 else
13742 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013743 unsigned long int i = ulongval ();
13744 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13745 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013746 fprintf (f, "%lu\n", i);
13747 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013748 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013749
13750 ;
13751 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013752}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013753_ACEOF
13754rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013755if { (ac_try="$ac_link"
13756case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759esac
13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013765 { (case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768esac
13769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013775else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013776 echo "$as_me: program exited with status $ac_status" >&5
13777echo "$as_me: failed program was:" >&5
13778sed 's/^/| /' conftest.$ac_ext >&5
13779
13780( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013781if test "$ac_cv_type_long_long" = yes; then
13782 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013783See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013784echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013785See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013786 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013787 else
13788 ac_cv_sizeof_long_long=0
13789 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013791rm -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 -050013792fi
13793rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013795{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13796echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013797
13798
13799
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013800cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013801#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013802_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013803
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013804
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013805SIZEOF_SHORT=$ac_cv_sizeof_short
13806SIZEOF_INT=$ac_cv_sizeof_int
13807SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013808SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13809
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013810
13811
13812
Theodore Ts'oe1052142006-10-21 21:46:47 -040013813{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13814echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013815if test "${ac_cv_c_bigendian+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013817else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013818 # See if sys/param.h defines the BYTE_ORDER macro.
13819cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013825#include <sys/types.h>
13826#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828int
13829main ()
13830{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013831#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13832 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013833 bogus endian macros
13834#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013835
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013841if { (ac_try="$ac_compile"
13842case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013857 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013858cat >conftest.$ac_ext <<_ACEOF
13859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013864#include <sys/types.h>
13865#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867int
13868main ()
13869{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013870#if BYTE_ORDER != BIG_ENDIAN
13871 not big endian
13872#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013873
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879if { (ac_try="$ac_compile"
13880case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883esac
13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013891 (exit $ac_status); } && {
13892 test -z "$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013895 ac_cv_c_bigendian=yes
13896else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013897 echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
Theodore Ts'oe1052142006-10-21 21:46:47 -040013900 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013901fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013902
13903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013904else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013905 echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
Theodore Ts'oe1052142006-10-21 21:46:47 -040013908 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013909if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013910 # try to guess the endianness by grepping values into an object file
13911 ac_cv_c_bigendian=unknown
13912 cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013918short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13919short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013920void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013921short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13922short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013923void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13924int
13925main ()
13926{
13927 _ascii (); _ebcdic ();
13928 ;
13929 return 0;
13930}
13931_ACEOF
13932rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013933if { (ac_try="$ac_compile"
13934case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937esac
13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013949 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13950 ac_cv_c_bigendian=yes
13951fi
13952if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13953 if test "$ac_cv_c_bigendian" = unknown; then
13954 ac_cv_c_bigendian=no
13955 else
13956 # finding both strings is unlikely to happen, but who knows?
13957 ac_cv_c_bigendian=unknown
13958 fi
13959fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013961 echo "$as_me: failed program was:" >&5
13962sed 's/^/| /' conftest.$ac_ext >&5
13963
Theodore Ts'oe1052142006-10-21 21:46:47 -040013964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013966
13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968else
13969 cat >conftest.$ac_ext <<_ACEOF
13970/* confdefs.h. */
13971_ACEOF
13972cat confdefs.h >>conftest.$ac_ext
13973cat >>conftest.$ac_ext <<_ACEOF
13974/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013975$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976int
13977main ()
13978{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013979
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013980 /* Are we little or big endian? From Harbison&Steele. */
13981 union
13982 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013983 long int l;
13984 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013985 } u;
13986 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013987 return u.c[sizeof (long int) - 1] == 1;
13988
13989 ;
13990 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000013991}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013992_ACEOF
13993rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013994if { (ac_try="$ac_link"
13995case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014013 ac_cv_c_bigendian=no
14014else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014015 echo "$as_me: program exited with status $ac_status" >&5
14016echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014019( exit $ac_status )
14020ac_cv_c_bigendian=yes
14021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014022rm -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 -040014023fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014024
14025
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014026fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014027
14028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014030{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14031echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014032case $ac_cv_c_bigendian in
14033 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014035cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014036#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037_ACEOF
14038 ;;
14039 no)
14040 ;;
14041 *)
14042 { { echo "$as_me:$LINENO: error: unknown endianness
14043presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14044echo "$as_me: error: unknown endianness
14045presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14046 { (exit 1); exit 1; }; } ;;
14047esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014048
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014049BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014050ASM_TYPES_HEADER=./asm_types.h
14051
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014053for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014054do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014060 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014061fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014062ac_res=`eval echo '${'$as_ac_Header'}'`
14063 { echo "$as_me:$LINENO: result: $ac_res" >&5
14064echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014065else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014066 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014067{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014069cat >conftest.$ac_ext <<_ACEOF
14070/* confdefs.h. */
14071_ACEOF
14072cat confdefs.h >>conftest.$ac_ext
14073cat >>conftest.$ac_ext <<_ACEOF
14074/* end confdefs.h. */
14075$ac_includes_default
14076#include <$ac_header>
14077_ACEOF
14078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014079if { (ac_try="$ac_compile"
14080case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083esac
14084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095 ac_header_compiler=yes
14096else
14097 echo "$as_me: failed program was:" >&5
14098sed 's/^/| /' conftest.$ac_ext >&5
14099
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014102
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14105echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014106
14107# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014108{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014110cat >conftest.$ac_ext <<_ACEOF
14111/* confdefs.h. */
14112_ACEOF
14113cat confdefs.h >>conftest.$ac_ext
14114cat >>conftest.$ac_ext <<_ACEOF
14115/* end confdefs.h. */
14116#include <$ac_header>
14117_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118if { (ac_try="$ac_cpp conftest.$ac_ext"
14119case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14122esac
14123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014125 ac_status=$?
14126 grep -v '^ *+' conftest.er1 >conftest.err
14127 rm -f conftest.er1
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014130 (exit $ac_status); } >/dev/null && {
14131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14132 test ! -s conftest.err
14133 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014134 ac_header_preproc=yes
14135else
14136 echo "$as_me: failed program was:" >&5
14137sed 's/^/| /' conftest.$ac_ext >&5
14138
14139 ac_header_preproc=no
14140fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014142rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014143{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14144echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014145
14146# So? What about this header?
14147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14148 yes:no: )
14149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14152echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14153 ac_header_preproc=yes
14154 ;;
14155 no:yes:* )
14156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14159echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14161echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14163echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14167echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014169 ;;
14170esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175else
14176 eval "$as_ac_Header=\$ac_header_preproc"
14177fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014178ac_res=`eval echo '${'$as_ac_Header'}'`
14179 { echo "$as_me:$LINENO: result: $ac_res" >&5
14180echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014181
14182fi
14183if test `eval echo '${'$as_ac_Header'}'` = yes; then
14184 cat >>confdefs.h <<_ACEOF
14185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14186_ACEOF
14187
14188fi
14189
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014190done
14191
Theodore Ts'oe1052142006-10-21 21:46:47 -040014192{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14193echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014194if test "${ac_cv_type_intptr_t+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014196else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014197 cat >conftest.$ac_ext <<_ACEOF
14198/* confdefs.h. */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
14202/* end confdefs.h. */
14203$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014204typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014205int
14206main ()
14207{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014208if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014209 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014210if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014211 return 0;
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014217if { (ac_try="$ac_compile"
14218case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014233 ac_cv_type_intptr_t=yes
14234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014235 echo "$as_me: failed program was:" >&5
14236sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014237
Theodore Ts'oe1052142006-10-21 21:46:47 -040014238 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014240
14241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014242fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014243{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14244echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014245if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014246
14247cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014248#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014249_ACEOF
14250
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014252fi
14253
Theodore Ts'oe1052142006-10-21 21:46:47 -040014254{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14255echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014256if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258else
14259 cat >conftest.$ac_ext <<_ACEOF
14260/* confdefs.h. */
14261_ACEOF
14262cat confdefs.h >>conftest.$ac_ext
14263cat >>conftest.$ac_ext <<_ACEOF
14264/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014265#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014266int
14267main ()
14268{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014269struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270 ;
14271 return 0;
14272}
14273_ACEOF
14274rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014275if { (ac_try="$ac_compile"
14276case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279esac
14280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014287 (exit $ac_status); } && {
14288 test -z "$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014291 e2fsprogs_cv_struct_st_flags=yes
14292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
Theodore Ts'oe1052142006-10-21 21:46:47 -040014296 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014297fi
14298
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300fi
14301
14302{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14303echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014304if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014305 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14306echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014307 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014309else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310 cat >conftest.$ac_ext <<_ACEOF
14311/* confdefs.h. */
14312_ACEOF
14313cat confdefs.h >>conftest.$ac_ext
14314cat >>conftest.$ac_ext <<_ACEOF
14315/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014316#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014317int
14318main ()
14319{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014320struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321 ;
14322 return 0;
14323}
14324_ACEOF
14325rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014326if { (ac_try="$ac_compile"
14327case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330esac
14331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014342 e2fsprogs_cv_struct_st_flags_immut=yes
14343else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014344 echo "$as_me: failed program was:" >&5
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
Theodore Ts'oe1052142006-10-21 21:46:47 -040014347 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014348fi
14349
Theodore Ts'oe1052142006-10-21 21:46:47 -040014350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351fi
14352
14353 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14354echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014355 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014356 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014357#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014358_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014359
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014360 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014362{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14363echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014364if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014365 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014366else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014367 cat >conftest.$ac_ext <<_ACEOF
14368/* confdefs.h. */
14369_ACEOF
14370cat confdefs.h >>conftest.$ac_ext
14371cat >>conftest.$ac_ext <<_ACEOF
14372/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014373#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014374 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376int
14377main ()
14378{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014379static struct sockaddr ac_aggr;
14380if (ac_aggr.sa_len)
14381return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382 ;
14383 return 0;
14384}
14385_ACEOF
14386rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014387if { (ac_try="$ac_compile"
14388case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391esac
14392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014403 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
Theodore Ts'oe1052142006-10-21 21:46:47 -040014408 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
14414#include <sys/types.h>
14415 #include <sys/socket.h>
14416
14417int
14418main ()
14419{
14420static struct sockaddr ac_aggr;
14421if (sizeof ac_aggr.sa_len)
14422return 0;
14423 ;
14424 return 0;
14425}
14426_ACEOF
14427rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014428if { (ac_try="$ac_compile"
14429case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432esac
14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014444 ac_cv_member_struct_sockaddr_sa_len=yes
14445else
14446 echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5
14448
Theodore Ts'oe1052142006-10-21 21:46:47 -040014449 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014451
14452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014453fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014454
14455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014456fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014457{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14458echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014459if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460
14461cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014462#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014464
14465fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014485
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014486
14487
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014488
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014489
Theodore Ts'o106ad962007-04-04 21:26:37 -040014490
14491
14492
14493for 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 +000014494do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014496{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014499 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014500else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014501 cat >conftest.$ac_ext <<_ACEOF
14502/* confdefs.h. */
14503_ACEOF
14504cat confdefs.h >>conftest.$ac_ext
14505cat >>conftest.$ac_ext <<_ACEOF
14506/* end confdefs.h. */
14507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509#define $ac_func innocuous_$ac_func
14510
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014511/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014512 which can conflict with char $ac_func (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14515
14516#ifdef __STDC__
14517# include <limits.h>
14518#else
14519# include <assert.h>
14520#endif
14521
14522#undef $ac_func
14523
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524/* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014527#ifdef __cplusplus
14528extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014530char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014531/* The GNU C library defines this for functions which it implements
14532 to always fail with ENOSYS. Some functions are actually named
14533 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014534#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014535choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014536#endif
14537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014538int
14539main ()
14540{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014541return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014542 ;
14543 return 0;
14544}
14545_ACEOF
14546rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014547if { (ac_try="$ac_link"
14548case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551esac
14552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014559 (exit $ac_status); } && {
14560 test -z "$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14562 } && test -s conftest$ac_exeext &&
14563 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014564 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014565else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014566 echo "$as_me: failed program was:" >&5
14567sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014568
Theodore Ts'oe1052142006-10-21 21:46:47 -040014569 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014571
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014573 conftest$ac_exeext conftest.$ac_ext
14574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014575ac_res=`eval echo '${'$as_ac_var'}'`
14576 { echo "$as_me:$LINENO: result: $ac_res" >&5
14577echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014578if test `eval echo '${'$as_ac_var'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581_ACEOF
14582
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014583fi
14584done
14585
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014586SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014587{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14588echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014589if test "${ac_cv_lib_socket_socket+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014591else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014592 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014593LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014594cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h. */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h. */
14600
Theodore Ts'oe1052142006-10-21 21:46:47 -040014601/* Override any GCC internal prototype to avoid an error.
14602 Use char because int might match the return type of a GCC
14603 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014604#ifdef __cplusplus
14605extern "C"
14606#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014607char socket ();
14608int
14609main ()
14610{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014612 ;
14613 return 0;
14614}
14615_ACEOF
14616rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014617if { (ac_try="$ac_link"
14618case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621esac
14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest$ac_exeext &&
14633 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014635else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014638
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014641
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014643 conftest$ac_exeext conftest.$ac_ext
14644LIBS=$ac_check_lib_save_LIBS
14645fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14647echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014648if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014649 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014650fi
14651
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014652
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014653DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014654{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14655echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014656if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014658else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014659 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014660LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014661cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667
Theodore Ts'oe1052142006-10-21 21:46:47 -040014668/* Override any GCC internal prototype to avoid an error.
14669 Use char because int might match the return type of a GCC
14670 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014671#ifdef __cplusplus
14672extern "C"
14673#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014674char dlopen ();
14675int
14676main ()
14677{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014678return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014679 ;
14680 return 0;
14681}
14682_ACEOF
14683rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014684if { (ac_try="$ac_link"
14685case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688esac
14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014696 (exit $ac_status); } && {
14697 test -z "$ac_c_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest$ac_exeext &&
14700 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014701 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014702else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014703 echo "$as_me: failed program was:" >&5
14704sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014705
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014707fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014708
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014710 conftest$ac_exeext conftest.$ac_ext
14711LIBS=$ac_check_lib_save_LIBS
14712fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014713{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14714echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014716 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014717cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014718#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014720
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014721fi
14722
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014723
Theodore Ts'oe1052142006-10-21 21:46:47 -040014724{ echo "$as_me:$LINENO: checking for optreset" >&5
14725echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014726if test "${ac_cv_have_optreset+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014728else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014729 cat >conftest.$ac_ext <<_ACEOF
14730/* confdefs.h. */
14731_ACEOF
14732cat confdefs.h >>conftest.$ac_ext
14733cat >>conftest.$ac_ext <<_ACEOF
14734/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014735#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014736
14737_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014739 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014740 ac_cv_have_optreset=yes
14741else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014742 ac_cv_have_optreset=no
14743fi
14744rm -f conftest*
14745
14746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014747{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14748echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014749if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014751#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014752_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014753
14754fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014755{ echo "$as_me:$LINENO: checking for unified diff option" >&5
14756echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014757if diff -u $0 $0 >& /dev/null ; then
14758 UNI_DIFF_OPTS=-u
14759else
14760 UNI_DIFF_OPTS=-c
14761fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014762{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14763echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014764
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014765case "$host_os" in
14766linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014767 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014768#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014770
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014771 ;;
14772esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014773LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014774CYGWIN_CMT="#"
14775UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014776case "$host_os" in
14777linux*)
14778 LINUX_CMT=
14779 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014780cygwin)
14781 CYGWIN_CMT=
14782 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014783 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014784esac
14785
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014786
14787
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014788case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014789linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014790 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14791 root_prefix="";
14792 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014793 fi
14794 ;;
14795esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014796case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014797linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014798 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014799 prefix="/usr";
14800 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040014801 if test "$mandir" = '${prefix}/man' ; then
14802 echo "...and mandir defaults to /usr/share/man"
14803 mandir=/usr/share/man
14804 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014805 fi
14806;;
14807esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014808if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000014809 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014810 root_prefix="$ac_default_prefix"
14811 else
14812 root_prefix="$prefix"
14813 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040014814 root_bindir=$bindir
14815 root_sbindir=$sbindir
14816 root_libdir=$libdir
14817 root_sysconfdir=$sysconfdir
14818else
14819 root_bindir='${root_prefix}/bin'
14820 root_sbindir='${root_prefix}/sbin'
14821 root_libdir='${root_prefix}/lib'
14822 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014823fi
14824
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014825
14826
14827
14828
Theodore Ts'oe1052142006-10-21 21:46:47 -040014829{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14830echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014831if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000014833else
14834 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014835cat >conftest.$ac_ext <<_ACEOF
14836/* confdefs.h. */
14837_ACEOF
14838cat confdefs.h >>conftest.$ac_ext
14839cat >>conftest.$ac_ext <<_ACEOF
14840/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000014841#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014842int
14843main ()
14844{
Theodore Ts'oae851481997-04-29 18:13:24 +000014845fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014846 ;
14847 return 0;
14848}
14849_ACEOF
14850rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014851if { (ac_try="$ac_link"
14852case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14855esac
14856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014863 (exit $ac_status); } && {
14864 test -z "$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 } && test -s conftest$ac_exeext &&
14867 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000014868 ac_cv_e2fsprogs_use_static=yes
14869else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014870 echo "$as_me: failed program was:" >&5
14871sed 's/^/| /' conftest.$ac_ext >&5
14872
Theodore Ts'oe1052142006-10-21 21:46:47 -040014873 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000014874fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014875
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014877 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000014878LDFLAGS=$SAVE_LDFLAGS
14879fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014880
Theodore Ts'odefde781999-01-04 07:39:19 +000014881case "$host_os" in
14882solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014883 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000014884;;
14885esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014886{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14887echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000014888LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000014889if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014890 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000014891fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014892
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014893case "$host_os" in
14894darwin*)
14895 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014896 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014897#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014898_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014899
14900 ;;
14901esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014902SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14903ET_DIR=`cd ${srcdir}/lib/et; pwd`
14904
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014905
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014906if test "$cross_compiling" = yes ; then
14907 DO_TEST_SUITE=
14908else
14909 DO_TEST_SUITE=check
14910fi
14911
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040014912INTL_FLAGS=
14913if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14914 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14915fi
14916
Theodore Ts'odd947da2005-11-09 18:37:07 -040014917if test $cross_compiling = no; then
14918 BUILD_CFLAGS="$CFLAGS"
14919 BUILD_LDFLAGS="$LDFLAGS"
14920else
14921 BUILD_CFLAGS=
14922 BUILD_LDFLAGS=
14923fi
14924
14925
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014926test -d lib || mkdir lib
14927test -d include || mkdir include
14928test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000014929test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050014930for i in MCONFIG Makefile e2fsprogs.spec \
14931 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014932 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14933 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014934 lib/uuid/Makefile lib/uuid/uuid_types.h \
14935 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050014936 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14937 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050014938 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050014939 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14940 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14941 if test -d `dirname ${srcdir}/$i` ; then
14942 outlist="$outlist $i"
14943 fi
14944done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014945ac_config_files="$ac_config_files $outlist"
14946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014947cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014948# This file is a shell script that caches the results of configure
14949# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014950# scripts and configure runs, see configure's option --config-cache.
14951# It is not useful on other systems. If it contains results you don't
14952# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014953#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014954# config.status only pays attention to the cache file if you give it
14955# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014956#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014957# `ac_cv_env_foo' variables (set or unset) will be overridden when
14958# loading this file, other *unset* `ac_cv_foo' will be assigned the
14959# following values.
14960
14961_ACEOF
14962
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014963# The following way of writing the cache mishandles newlines in values,
14964# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014965# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014966# Ultrix sh set writes to stderr and can't be redirected directly,
14967# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014968(
14969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14970 eval ac_val=\$$ac_var
14971 case $ac_val in #(
14972 *${as_nl}*)
14973 case $ac_var in #(
14974 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14975echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14976 esac
14977 case $ac_var in #(
14978 _ | IFS | as_nl) ;; #(
14979 *) $as_unset $ac_var ;;
14980 esac ;;
14981 esac
14982 done
14983
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014985 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14986 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987 # `set' does not quote correctly, so add quotes (double-quote
14988 # substitution turns \\\\ into \\, and sed turns \\ into \).
14989 sed -n \
14990 "s/'/'\\\\''/g;
14991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014992 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014993 *)
14994 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014996 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014997 esac |
14998 sort
14999) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015000 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015001 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015002 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015003 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015004 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15005 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015006 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15007 :end' >>confcache
15008if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15009 if test -w "$cache_file"; then
15010 test "x$cache_file" != "x/dev/null" &&
15011 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15012echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015013 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015014 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015015 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15016echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015017 fi
15018fi
15019rm -f confcache
15020
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015021test "x$prefix" = xNONE && prefix=$ac_default_prefix
15022# Let make expand exec_prefix.
15023test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15024
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015025# Transform confdefs.h into DEFS.
15026# Protect against shell expansion while executing Makefile rules.
15027# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015028#
15029# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015030# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015031# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015032ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015033t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015034:clear
15035s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015036t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015037s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015038t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015039b any
15040:quote
15041s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15042s/\[/\\&/g
15043s/\]/\\&/g
15044s/\$/$$/g
15045H
15046:any
15047${
15048 g
15049 s/^\n//
15050 s/\n/ /g
15051 p
15052}
15053'
15054DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015055
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015057ac_libobjs=
15058ac_ltlibobjs=
15059for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15060 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15062 ac_i=`echo "$ac_i" | sed "$ac_script"`
15063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15064 # will be set to the directory where LIBOBJS objects are built.
15065 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15066 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015067done
15068LIBOBJS=$ac_libobjs
15069
15070LTLIBOBJS=$ac_ltlibobjs
15071
15072
15073
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015074: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015075ac_clean_files_save=$ac_clean_files
15076ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15077{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15078echo "$as_me: creating $CONFIG_STATUS" >&6;}
15079cat >$CONFIG_STATUS <<_ACEOF
15080#! $SHELL
15081# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015082# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015083# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015084# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015086debug=false
15087ac_cs_recheck=false
15088ac_cs_silent=false
15089SHELL=\${CONFIG_SHELL-$SHELL}
15090_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015092cat >>$CONFIG_STATUS <<\_ACEOF
15093## --------------------- ##
15094## M4sh Initialization. ##
15095## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015096
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015097# Be more Bourne compatible
15098DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15100 emulate sh
15101 NULLCMD=:
15102 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15103 # is contrary to our usage. Disable this feature.
15104 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015105 setopt NO_GLOB_SUBST
15106else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015107 case `(set -o) 2>/dev/null` in
15108 *posix*) set -o posix ;;
15109esac
15110
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015111fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015112
15113
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015114
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015115
Theodore Ts'oe1052142006-10-21 21:46:47 -040015116# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015117# Avoid depending upon Character Ranges.
15118as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15119as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15120as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15121as_cr_digits='0123456789'
15122as_cr_alnum=$as_cr_Letters$as_cr_digits
15123
15124# The user is always right.
15125if test "${PATH_SEPARATOR+set}" != set; then
15126 echo "#! /bin/sh" >conf$$.sh
15127 echo "exit 0" >>conf$$.sh
15128 chmod +x conf$$.sh
15129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15130 PATH_SEPARATOR=';'
15131 else
15132 PATH_SEPARATOR=:
15133 fi
15134 rm -f conf$$.sh
15135fi
15136
Theodore Ts'oe1052142006-10-21 21:46:47 -040015137# Support unset when possible.
15138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15139 as_unset=unset
15140else
15141 as_unset=false
15142fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015143
Theodore Ts'oe1052142006-10-21 21:46:47 -040015144
15145# IFS
15146# We need space, tab and new line, in precisely that order. Quoting is
15147# there to prevent editors from complaining about space-tab.
15148# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15149# splitting by setting IFS to empty value.)
15150as_nl='
15151'
15152IFS=" "" $as_nl"
15153
15154# Find who we are. Look in the path if we contain no directory separator.
15155case $0 in
15156 *[\\/]* ) as_myself=$0 ;;
15157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015158for as_dir in $PATH
15159do
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15163done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015164IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015165
Theodore Ts'oe1052142006-10-21 21:46:47 -040015166 ;;
15167esac
15168# We did not find ourselves, most probably we were run as `sh COMMAND'
15169# in which case we are not to be found in the path.
15170if test "x$as_myself" = x; then
15171 as_myself=$0
15172fi
15173if test ! -f "$as_myself"; then
15174 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15175 { (exit 1); exit 1; }
15176fi
15177
15178# Work around bugs in pre-3.0 UWIN ksh.
15179for as_var in ENV MAIL MAILPATH
15180do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15181done
15182PS1='$ '
15183PS2='> '
15184PS4='+ '
15185
15186# NLS nuisances.
15187for as_var in \
15188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15190 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015191do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015192 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15193 eval $as_var=C; export $as_var
15194 else
15195 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15196 fi
15197done
15198
15199# Required to use basename.
15200if expr a : '\(a\)' >/dev/null 2>&1 &&
15201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15202 as_expr=expr
15203else
15204 as_expr=false
15205fi
15206
15207if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15208 as_basename=basename
15209else
15210 as_basename=false
15211fi
15212
15213
15214# Name of the executable.
15215as_me=`$as_basename -- "$0" ||
15216$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15217 X"$0" : 'X\(//\)$' \| \
15218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15219echo X/"$0" |
15220 sed '/^.*\/\([^/][^/]*\)\/*$/{
15221 s//\1/
15222 q
15223 }
15224 /^X\/\(\/\/\)$/{
15225 s//\1/
15226 q
15227 }
15228 /^X\/\(\/\).*/{
15229 s//\1/
15230 q
15231 }
15232 s/.*/./; q'`
15233
15234# CDPATH.
15235$as_unset CDPATH
15236
15237
15238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015239 as_lineno_1=$LINENO
15240 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015241 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015242 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015243
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15245 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015246 # line-number line after each line using $LINENO; the second 'sed'
15247 # does the real work. The second script uses 'N' to pair each
15248 # line-number line with the line containing $LINENO, and appends
15249 # trailing '-' during substitution so that $LINENO is not a special
15250 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015252 # scripts with optimization help from Paolo Bonzini. Blame Lee
15253 # E. McMahon (1931-1989) for sed's syntax. :-)
15254 sed -n '
15255 p
15256 /[$]LINENO/=
15257 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015258 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015259 s/[$]LINENO.*/&-/
15260 t lineno
15261 b
15262 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015263 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015264 :loop
15265 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015266 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015267 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015268 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015269 chmod +x "$as_me.lineno" ||
15270 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015271 { (exit 1); exit 1; }; }
15272
15273 # Don't try to exec as it changes $[0], causing all sort of problems
15274 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015275 # original and so on. Autoconf is especially sensitive to this).
15276 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015277 # Exit status is that of the last command.
15278 exit
15279}
15280
15281
Theodore Ts'oe1052142006-10-21 21:46:47 -040015282if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15283 as_dirname=dirname
15284else
15285 as_dirname=false
15286fi
15287
15288ECHO_C= ECHO_N= ECHO_T=
15289case `echo -n x` in
15290-n*)
15291 case `echo 'x\c'` in
15292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15293 *) ECHO_C='\c';;
15294 esac;;
15295*)
15296 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015297esac
15298
Theodore Ts'oe1052142006-10-21 21:46:47 -040015299if expr a : '\(a\)' >/dev/null 2>&1 &&
15300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015301 as_expr=expr
15302else
15303 as_expr=false
15304fi
15305
15306rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015307if test -d conf$$.dir; then
15308 rm -f conf$$.dir/conf$$.file
15309else
15310 rm -f conf$$.dir
15311 mkdir conf$$.dir
15312fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015313echo >conf$$.file
15314if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015315 as_ln_s='ln -s'
15316 # ... but there are two gotchas:
15317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15319 # In both cases, we have to default to `cp -p'.
15320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015321 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015322elif ln conf$$.file conf$$ 2>/dev/null; then
15323 as_ln_s=ln
15324else
15325 as_ln_s='cp -p'
15326fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15328rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015329
15330if mkdir -p . 2>/dev/null; then
15331 as_mkdir_p=:
15332else
15333 test -d ./-p && rmdir ./-p
15334 as_mkdir_p=false
15335fi
15336
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015337if test -x / >/dev/null 2>&1; then
15338 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015339else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015340 if ls -dL / >/dev/null 2>&1; then
15341 as_ls_L_option=L
15342 else
15343 as_ls_L_option=
15344 fi
15345 as_test_x='
15346 eval sh -c '\''
15347 if test -d "$1"; then
15348 test -d "$1/.";
15349 else
15350 case $1 in
15351 -*)set "./$1";;
15352 esac;
15353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15354 ???[sx]*):;;*)false;;esac;fi
15355 '\'' sh
15356 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015357fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015358as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015359
15360# Sed expression to map a string onto a valid CPP name.
15361as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15362
15363# Sed expression to map a string onto a valid variable name.
15364as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15365
15366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367exec 6>&1
15368
Theodore Ts'oe1052142006-10-21 21:46:47 -040015369# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015371# values after options handling.
15372ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015373This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015374generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015375
15376 CONFIG_FILES = $CONFIG_FILES
15377 CONFIG_HEADERS = $CONFIG_HEADERS
15378 CONFIG_LINKS = $CONFIG_LINKS
15379 CONFIG_COMMANDS = $CONFIG_COMMANDS
15380 $ $0 $@
15381
Theodore Ts'oe1052142006-10-21 21:46:47 -040015382on `(hostname || uname -n) 2>/dev/null | sed 1q`
15383"
15384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015385_ACEOF
15386
Theodore Ts'oe1052142006-10-21 21:46:47 -040015387cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015388# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015389config_files="$ac_config_files"
15390config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015391
Theodore Ts'oe1052142006-10-21 21:46:47 -040015392_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015393
15394cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015395ac_cs_usage="\
15396\`$as_me' instantiates files from templates according to the
15397current configuration.
15398
15399Usage: $0 [OPTIONS] [FILE]...
15400
15401 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015402 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015403 -q, --quiet do not print progress messages
15404 -d, --debug don't remove temporary files
15405 --recheck update $as_me by reconfiguring in the same conditions
15406 --file=FILE[:TEMPLATE]
15407 instantiate the configuration file FILE
15408
15409Configuration files:
15410$config_files
15411
15412Configuration commands:
15413$config_commands
15414
15415Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015416
Theodore Ts'oe1052142006-10-21 21:46:47 -040015417_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015418cat >>$CONFIG_STATUS <<_ACEOF
15419ac_cs_version="\\
15420config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015421configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015422 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015423
Theodore Ts'oe1052142006-10-21 21:46:47 -040015424Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015425This config.status script is free software; the Free Software Foundation
15426gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015427
15428ac_pwd='$ac_pwd'
15429srcdir='$srcdir'
15430INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015431_ACEOF
15432
15433cat >>$CONFIG_STATUS <<\_ACEOF
15434# If no file are specified by the user, then we need to provide default
15435# value. By we need to know if files were specified by the user.
15436ac_need_defaults=:
15437while test $# != 0
15438do
15439 case $1 in
15440 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015443 ac_shift=:
15444 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015445 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015446 ac_option=$1
15447 ac_optarg=$2
15448 ac_shift=shift
15449 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015450 esac
15451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015452 case $ac_option in
15453 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15455 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15457 echo "$ac_cs_version"; exit ;;
15458 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015459 debug=: ;;
15460 --file | --fil | --fi | --f )
15461 $ac_shift
15462 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15463 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015464 --he | --h | --help | --hel | -h )
15465 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15467 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15468 ac_cs_silent=: ;;
15469
15470 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015471 -*) { echo "$as_me: error: unrecognized option: $1
15472Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015473 { (exit 1); exit 1; }; } ;;
15474
Theodore Ts'oe1052142006-10-21 21:46:47 -040015475 *) ac_config_targets="$ac_config_targets $1"
15476 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015477
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015478 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015479 shift
15480done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015482ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015484if $ac_cs_silent; then
15485 exec 6>/dev/null
15486 ac_configure_extra_args="$ac_configure_extra_args --silent"
15487fi
15488
15489_ACEOF
15490cat >>$CONFIG_STATUS <<_ACEOF
15491if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015492 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15493 CONFIG_SHELL=$SHELL
15494 export CONFIG_SHELL
15495 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015496fi
15497
15498_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015499cat >>$CONFIG_STATUS <<\_ACEOF
15500exec 5>>config.log
15501{
15502 echo
15503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15504## Running $as_me. ##
15505_ASBOX
15506 echo "$ac_log"
15507} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015508
Theodore Ts'oe1052142006-10-21 21:46:47 -040015509_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510cat >>$CONFIG_STATUS <<_ACEOF
15511#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015512# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015513#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015514# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015516 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015517 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015518 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15519 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015520
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015522_ACEOF
15523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015524cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015525
15526# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015527for ac_config_target in $ac_config_targets
15528do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015529 case $ac_config_target in
15530 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15531 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15534echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15535 { (exit 1); exit 1; }; };;
15536 esac
15537done
15538
Theodore Ts'oe1052142006-10-21 21:46:47 -040015539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015540# If the user did not use the arguments to specify the items to instantiate,
15541# then the envvar interface is used. Set only those that are not.
15542# We use the long form for the default assignment because of an extremely
15543# bizarre bug on SunOS 4.1.3.
15544if $ac_need_defaults; then
15545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15547fi
15548
15549# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015550# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015551# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015552# Hook for its removal unless debugging.
15553# Note that there is a small window in which the directory will not be cleaned:
15554# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015555$debug ||
15556{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015557 tmp=
15558 trap 'exit_status=$?
15559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15560' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015561 trap '{ (exit 1); exit 1; }' 1 2 13 15
15562}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015563# Create a (secure) tmp directory for tmp files.
15564
15565{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015567 test -n "$tmp" && test -d "$tmp"
15568} ||
15569{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015570 tmp=./conf$$-$RANDOM
15571 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015572} ||
15573{
15574 echo "$me: cannot create a temporary directory in ." >&2
15575 { (exit 1); exit 1; }
15576}
15577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015578#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015579# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580#
15581
15582# No need to generate the scripts if there are no CONFIG_FILES.
15583# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015584if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015585
15586_ACEOF
15587
Theodore Ts'oe1052142006-10-21 21:46:47 -040015588# Create sed commands to just substitute file output variables.
15589
15590# Remaining file output variables are in a fragment that also has non-file
15591# output varibles.
15592
15593
15594
15595ac_delim='%!_!# '
15596for ac_last_try in false false false false false :; do
15597 cat >conf$$subs.sed <<_ACEOF
15598SHELL!$SHELL$ac_delim
15599PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15600PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15601PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15602PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15603PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15604PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15605exec_prefix!$exec_prefix$ac_delim
15606prefix!$prefix$ac_delim
15607program_transform_name!$program_transform_name$ac_delim
15608bindir!$bindir$ac_delim
15609sbindir!$sbindir$ac_delim
15610libexecdir!$libexecdir$ac_delim
15611datarootdir!$datarootdir$ac_delim
15612datadir!$datadir$ac_delim
15613sysconfdir!$sysconfdir$ac_delim
15614sharedstatedir!$sharedstatedir$ac_delim
15615localstatedir!$localstatedir$ac_delim
15616includedir!$includedir$ac_delim
15617oldincludedir!$oldincludedir$ac_delim
15618docdir!$docdir$ac_delim
15619infodir!$infodir$ac_delim
15620htmldir!$htmldir$ac_delim
15621dvidir!$dvidir$ac_delim
15622pdfdir!$pdfdir$ac_delim
15623psdir!$psdir$ac_delim
15624libdir!$libdir$ac_delim
15625localedir!$localedir$ac_delim
15626mandir!$mandir$ac_delim
15627DEFS!$DEFS$ac_delim
15628ECHO_C!$ECHO_C$ac_delim
15629ECHO_N!$ECHO_N$ac_delim
15630ECHO_T!$ECHO_T$ac_delim
15631LIBS!$LIBS$ac_delim
15632build_alias!$build_alias$ac_delim
15633host_alias!$host_alias$ac_delim
15634target_alias!$target_alias$ac_delim
15635E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15636E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15637E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15638E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015639E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015640build!$build$ac_delim
15641build_cpu!$build_cpu$ac_delim
15642build_vendor!$build_vendor$ac_delim
15643build_os!$build_os$ac_delim
15644host!$host$ac_delim
15645host_cpu!$host_cpu$ac_delim
15646host_vendor!$host_vendor$ac_delim
15647host_os!$host_os$ac_delim
15648CC!$CC$ac_delim
15649CFLAGS!$CFLAGS$ac_delim
15650LDFLAGS!$LDFLAGS$ac_delim
15651CPPFLAGS!$CPPFLAGS$ac_delim
15652ac_ct_CC!$ac_ct_CC$ac_delim
15653EXEEXT!$EXEEXT$ac_delim
15654OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015655CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015656LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015657GREP!$GREP$ac_delim
15658EGREP!$EGREP$ac_delim
15659LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15660MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15661HTREE_CMT!$HTREE_CMT$ac_delim
15662ELF_CMT!$ELF_CMT$ac_delim
15663BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15664PROFILE_CMT!$PROFILE_CMT$ac_delim
15665CHECKER_CMT!$CHECKER_CMT$ac_delim
15666LIB_EXT!$LIB_EXT$ac_delim
15667STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15668PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015669DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15670IMAGER_CMT!$IMAGER_CMT$ac_delim
15671RESIZER_CMT!$RESIZER_CMT$ac_delim
15672E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
Theodore Ts'oa5dda052007-08-11 03:11:12 -040015673FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015674_ACEOF
15675
15676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15677 break
15678 elif $ac_last_try; then
15679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15680echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15681 { (exit 1); exit 1; }; }
15682 else
15683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015684 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015685done
15686
15687ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15688if test -n "$ac_eof"; then
15689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15690 ac_eof=`expr $ac_eof + 1`
15691fi
15692
15693cat >>$CONFIG_STATUS <<_ACEOF
15694cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15696/^[ ]*@MCONFIG@[ ]*$/{
15697r $MCONFIG
15698d
15699}
15700/^[ ]*@MAKEFILE_ELF@[ ]*$/{
15701r $MAKEFILE_ELF
15702d
15703}
15704/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15705r $MAKEFILE_BSDLIB
15706d
15707}
15708/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15709r $MAKEFILE_PROFILE
15710d
15711}
15712/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15713r $MAKEFILE_CHECKER
15714d
15715}
15716/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15717r $MAKEFILE_LIBRARY
15718d
15719}
15720/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15721r $ASM_TYPES_HEADER
15722d
15723}
15724_ACEOF
15725sed '
15726s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15727s/^/s,@/; s/!/@,|#_!!_#|/
15728:n
15729t n
15730s/'"$ac_delim"'$/,g/; t
15731s/$/\\/; p
15732N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15733' >>$CONFIG_STATUS <conf$$subs.sed
15734rm -f conf$$subs.sed
15735cat >>$CONFIG_STATUS <<_ACEOF
15736CEOF$ac_eof
15737_ACEOF
15738
15739
15740ac_delim='%!_!# '
15741for ac_last_try in false false false false false :; do
15742 cat >conf$$subs.sed <<_ACEOF
15743FSCK_MAN!$FSCK_MAN$ac_delim
15744E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15745E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15746DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15747DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15748DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15749STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15750GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15751PACKAGE!$PACKAGE$ac_delim
15752VERSION!$VERSION$ac_delim
15753SET_MAKE!$SET_MAKE$ac_delim
15754INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15755INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15756INSTALL_DATA!$INSTALL_DATA$ac_delim
15757MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15758USE_NLS!$USE_NLS$ac_delim
15759MSGFMT!$MSGFMT$ac_delim
15760GMSGFMT!$GMSGFMT$ac_delim
15761XGETTEXT!$XGETTEXT$ac_delim
15762MSGMERGE!$MSGMERGE$ac_delim
15763RANLIB!$RANLIB$ac_delim
15764ALLOCA!$ALLOCA$ac_delim
15765GLIBC21!$GLIBC21$ac_delim
15766HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15767HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15768HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15769HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15770LIBICONV!$LIBICONV$ac_delim
15771LTLIBICONV!$LTLIBICONV$ac_delim
15772INTLBISON!$INTLBISON$ac_delim
15773BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15774USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15775CATOBJEXT!$CATOBJEXT$ac_delim
15776DATADIRNAME!$DATADIRNAME$ac_delim
15777INSTOBJEXT!$INSTOBJEXT$ac_delim
15778GENCAT!$GENCAT$ac_delim
15779INTLOBJS!$INTLOBJS$ac_delim
15780INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15781INTLLIBS!$INTLLIBS$ac_delim
15782LIBINTL!$LIBINTL$ac_delim
15783LTLIBINTL!$LTLIBINTL$ac_delim
15784POSUB!$POSUB$ac_delim
15785BINARY_TYPE!$BINARY_TYPE$ac_delim
15786LN!$LN$ac_delim
15787LN_S!$LN_S$ac_delim
15788MV!$MV$ac_delim
15789CP!$CP$ac_delim
15790RM!$RM$ac_delim
15791CHMOD!$CHMOD$ac_delim
15792AWK!$AWK$ac_delim
15793SED!$SED$ac_delim
15794PERL!$PERL$ac_delim
15795LDCONFIG!$LDCONFIG$ac_delim
15796AR!$AR$ac_delim
15797STRIP!$STRIP$ac_delim
15798BUILD_CC!$BUILD_CC$ac_delim
15799SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15800SIZEOF_INT!$SIZEOF_INT$ac_delim
15801SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15802SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15803SOCKET_LIB!$SOCKET_LIB$ac_delim
15804DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15805UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15806LINUX_CMT!$LINUX_CMT$ac_delim
15807CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15808UNIX_CMT!$UNIX_CMT$ac_delim
15809root_prefix!$root_prefix$ac_delim
15810root_bindir!$root_bindir$ac_delim
15811root_sbindir!$root_sbindir$ac_delim
15812root_libdir!$root_libdir$ac_delim
15813root_sysconfdir!$root_sysconfdir$ac_delim
15814LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15815SS_DIR!$SS_DIR$ac_delim
15816ET_DIR!$ET_DIR$ac_delim
15817DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15818INTL_FLAGS!$INTL_FLAGS$ac_delim
15819BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15820BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15821LIBOBJS!$LIBOBJS$ac_delim
15822LTLIBOBJS!$LTLIBOBJS$ac_delim
15823_ACEOF
15824
Theodore Ts'oa5dda052007-08-11 03:11:12 -040015825 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015826 break
15827 elif $ac_last_try; then
15828 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15829echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15830 { (exit 1); exit 1; }; }
15831 else
15832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15833 fi
15834done
15835
15836ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15837if test -n "$ac_eof"; then
15838 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15839 ac_eof=`expr $ac_eof + 1`
15840fi
15841
15842cat >>$CONFIG_STATUS <<_ACEOF
15843cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15844/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15845_ACEOF
15846sed '
15847s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15848s/^/s,@/; s/!/@,|#_!!_#|/
15849:n
15850t n
15851s/'"$ac_delim"'$/,g/; t
15852s/$/\\/; p
15853N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15854' >>$CONFIG_STATUS <conf$$subs.sed
15855rm -f conf$$subs.sed
15856cat >>$CONFIG_STATUS <<_ACEOF
15857:end
15858s/|#_!!_#|//g
15859CEOF$ac_eof
15860_ACEOF
15861
15862
15863# VPATH may cause trouble with some makes, so we remove $(srcdir),
15864# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15865# trailing colons and then remove the whole line if VPATH becomes empty
15866# (actually we leave an empty line to preserve line numbers).
15867if test "x$srcdir" = x.; then
15868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15869s/:*\$(srcdir):*/:/
15870s/:*\${srcdir}:*/:/
15871s/:*@srcdir@:*/:/
15872s/^\([^=]*=[ ]*\):*/\1/
15873s/:*$//
15874s/^[^=]*=[ ]*$//
15875}'
15876fi
15877
15878cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015879fi # test -n "$CONFIG_FILES"
15880
Theodore Ts'oe1052142006-10-21 21:46:47 -040015881
15882for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
15883do
15884 case $ac_tag in
15885 :[FHLC]) ac_mode=$ac_tag; continue;;
15886 esac
15887 case $ac_mode$ac_tag in
15888 :[FHL]*:*);;
15889 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15890echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15891 { (exit 1); exit 1; }; };;
15892 :[FH]-) ac_tag=-:-;;
15893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15894 esac
15895 ac_save_IFS=$IFS
15896 IFS=:
15897 set x $ac_tag
15898 IFS=$ac_save_IFS
15899 shift
15900 ac_file=$1
15901 shift
15902
15903 case $ac_mode in
15904 :L) ac_source=$1;;
15905 :[FH])
15906 ac_file_inputs=
15907 for ac_f
15908 do
15909 case $ac_f in
15910 -) ac_f="$tmp/stdin";;
15911 *) # Look for the file first in the build tree, then in the source tree
15912 # (if the path is not absolute). The absolute path cannot be DOS-style,
15913 # because $ac_f cannot contain `:'.
15914 test -f "$ac_f" ||
15915 case $ac_f in
15916 [\\/$]*) false;;
15917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15918 esac ||
15919 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15920echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15921 { (exit 1); exit 1; }; };;
15922 esac
15923 ac_file_inputs="$ac_file_inputs $ac_f"
15924 done
15925
15926 # Let's still pretend it is `configure' which instantiates (i.e., don't
15927 # use $as_me), people would be surprised to read:
15928 # /* config.h. Generated by config.status. */
15929 configure_input="Generated from "`IFS=:
15930 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15931 if test x"$ac_file" != x-; then
15932 configure_input="$ac_file. $configure_input"
15933 { echo "$as_me:$LINENO: creating $ac_file" >&5
15934echo "$as_me: creating $ac_file" >&6;}
15935 fi
15936
15937 case $ac_tag in
15938 *:-:* | *:-) cat >"$tmp/stdin";;
15939 esac
15940 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015941 esac
15942
Theodore Ts'oe1052142006-10-21 21:46:47 -040015943 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015944$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945 X"$ac_file" : 'X\(//\)[^/]' \| \
15946 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040015947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015948echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15950 s//\1/
15951 q
15952 }
15953 /^X\(\/\/\)[^/].*/{
15954 s//\1/
15955 q
15956 }
15957 /^X\(\/\/\)$/{
15958 s//\1/
15959 q
15960 }
15961 /^X\(\/\).*/{
15962 s//\1/
15963 q
15964 }
15965 s/.*/./; q'`
15966 { as_dir="$ac_dir"
15967 case $as_dir in #(
15968 -*) as_dir=./$as_dir;;
15969 esac
15970 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015971 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040015972 while :; do
15973 case $as_dir in #(
15974 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15975 *) as_qdir=$as_dir;;
15976 esac
15977 as_dirs="'$as_qdir' $as_dirs"
15978 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15980 X"$as_dir" : 'X\(//\)[^/]' \| \
15981 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040015982 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015983echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15985 s//\1/
15986 q
15987 }
15988 /^X\(\/\/\)[^/].*/{
15989 s//\1/
15990 q
15991 }
15992 /^X\(\/\/\)$/{
15993 s//\1/
15994 q
15995 }
15996 /^X\(\/\).*/{
15997 s//\1/
15998 q
15999 }
16000 s/.*/./; q'`
16001 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016002 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016003 test -z "$as_dirs" || eval "mkdir $as_dirs"
16004 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16005echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016006 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016007 ac_builddir=.
16008
Theodore Ts'oe1052142006-10-21 21:46:47 -040016009case "$ac_dir" in
16010.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16011*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016013 # A ".." for each directory in $ac_dir_suffix.
16014 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16015 case $ac_top_builddir_sub in
16016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16018 esac ;;
16019esac
16020ac_abs_top_builddir=$ac_pwd
16021ac_abs_builddir=$ac_pwd$ac_dir_suffix
16022# for backward compatibility:
16023ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016024
16025case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016026 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016027 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016028 ac_top_srcdir=$ac_top_builddir_sub
16029 ac_abs_top_srcdir=$ac_pwd ;;
16030 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016031 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016032 ac_top_srcdir=$srcdir
16033 ac_abs_top_srcdir=$srcdir ;;
16034 *) # Relative name.
16035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16036 ac_top_srcdir=$ac_top_build_prefix$srcdir
16037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016038esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016039ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016040
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016041
Theodore Ts'oe1052142006-10-21 21:46:47 -040016042 case $ac_mode in
16043 :F)
16044 #
16045 # CONFIG_FILE
16046 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016047
16048 case $INSTALL in
16049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016051 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016052_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016053
16054cat >>$CONFIG_STATUS <<\_ACEOF
16055# If the template does not know about datarootdir, expand it.
16056# FIXME: This hack should be removed a few years after 2.60.
16057ac_datarootdir_hack=; ac_datarootdir_seen=
16058
16059case `sed -n '/datarootdir/ {
16060 p
16061 q
16062}
16063/@datadir@/p
16064/@docdir@/p
16065/@infodir@/p
16066/@localedir@/p
16067/@mandir@/p
16068' $ac_file_inputs` in
16069*datarootdir*) ac_datarootdir_seen=yes;;
16070*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16071 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16072echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16073_ACEOF
16074cat >>$CONFIG_STATUS <<_ACEOF
16075 ac_datarootdir_hack='
16076 s&@datadir@&$datadir&g
16077 s&@docdir@&$docdir&g
16078 s&@infodir@&$infodir&g
16079 s&@localedir@&$localedir&g
16080 s&@mandir@&$mandir&g
16081 s&\\\${datarootdir}&$datarootdir&g' ;;
16082esac
16083_ACEOF
16084
16085# Neutralize VPATH when `$srcdir' = `.'.
16086# Shell code in configure.ac might set extrasub.
16087# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016088cat >>$CONFIG_STATUS <<_ACEOF
16089 sed "$ac_vpsub
16090$extrasub
16091_ACEOF
16092cat >>$CONFIG_STATUS <<\_ACEOF
16093:t
16094/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016095s&@configure_input@&$configure_input&;t t
16096s&@top_builddir@&$ac_top_builddir_sub&;t t
16097s&@srcdir@&$ac_srcdir&;t t
16098s&@abs_srcdir@&$ac_abs_srcdir&;t t
16099s&@top_srcdir@&$ac_top_srcdir&;t t
16100s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16101s&@builddir@&$ac_builddir&;t t
16102s&@abs_builddir@&$ac_abs_builddir&;t t
16103s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16104s&@INSTALL@&$ac_INSTALL&;t t
16105$ac_datarootdir_hack
16106" $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 -050016107
Theodore Ts'oe1052142006-10-21 21:46:47 -040016108test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16109 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16111 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16112which seems to be undefined. Please make sure it is defined." >&5
16113echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16114which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016115
Theodore Ts'oe1052142006-10-21 21:46:47 -040016116 rm -f "$tmp/stdin"
16117 case $ac_file in
16118 -) cat "$tmp/out"; rm -f "$tmp/out";;
16119 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16120 esac
16121 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016122
16123
Theodore Ts'oe1052142006-10-21 21:46:47 -040016124 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16125echo "$as_me: executing $ac_file commands" >&6;}
16126 ;;
16127 esac
16128
16129
16130 case $ac_file$ac_mode in
16131 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016132 for ac_file in $CONFIG_FILES; do
16133 # Support "outfile[:infile[:infile...]]"
16134 case "$ac_file" in
16135 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016136 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016137 # PO directories have a Makefile.in generated from Makefile.in.in.
16138 case "$ac_file" in */Makefile.in)
16139 # Adjust a relative srcdir.
16140 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16141 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16142 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16143 # In autoconf-2.13 it is called $ac_given_srcdir.
16144 # In autoconf-2.50 it is called $srcdir.
16145 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16146 case "$ac_given_srcdir" in
16147 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16148 /*) top_srcdir="$ac_given_srcdir" ;;
16149 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16150 esac
16151 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16152 rm -f "$ac_dir/POTFILES"
16153 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16154 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 -050016155 POMAKEFILEDEPS="POTFILES.in"
16156 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016157 # on $ac_dir but don't depend on user-specified configuration
16158 # parameters.
16159 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16160 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016161 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016162 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16163 fi
16164 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16165 # Hide the ALL_LINGUAS assigment from automake.
16166 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016167 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16168 else
16169 # The set of available languages was given in configure.in.
16170 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016171 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016172 # Compute POFILES
16173 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16174 # Compute UPDATEPOFILES
16175 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16176 # Compute DUMMYPOFILES
16177 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16178 # Compute GMOFILES
16179 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016180 case "$ac_given_srcdir" in
16181 .) srcdirpre= ;;
16182 *) srcdirpre='$(srcdir)/' ;;
16183 esac
16184 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016185 UPDATEPOFILES=
16186 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016187 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016188 for lang in $ALL_LINGUAS; do
16189 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016190 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16191 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016192 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016193 done
16194 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16195 # environment variable.
16196 INST_LINGUAS=
16197 if test -n "$ALL_LINGUAS"; then
16198 for presentlang in $ALL_LINGUAS; do
16199 useit=no
16200 if test "%UNSET%" != "$LINGUAS"; then
16201 desiredlanguages="$LINGUAS"
16202 else
16203 desiredlanguages="$ALL_LINGUAS"
16204 fi
16205 for desiredlang in $desiredlanguages; do
16206 # Use the presentlang catalog if desiredlang is
16207 # a. equal to presentlang, or
16208 # b. a variant of presentlang (because in this case,
16209 # presentlang can be used as a fallback for messages
16210 # which are not translated in the desiredlang catalog).
16211 case "$desiredlang" in
16212 "$presentlang"*) useit=yes;;
16213 esac
16214 done
16215 if test $useit = yes; then
16216 INST_LINGUAS="$INST_LINGUAS $presentlang"
16217 fi
16218 done
16219 fi
16220 CATALOGS=
16221 if test -n "$INST_LINGUAS"; then
16222 for lang in $INST_LINGUAS; do
16223 CATALOGS="$CATALOGS $lang.gmo"
16224 done
16225 fi
16226 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016227 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 -040016228 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16229 if test -f "$f"; then
16230 case "$f" in
16231 *.orig | *.bak | *~) ;;
16232 *) cat "$f" >> "$ac_dir/Makefile" ;;
16233 esac
16234 fi
16235 done
16236 fi
16237 ;;
16238 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016239 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016240
Theodore Ts'oe1052142006-10-21 21:46:47 -040016241 esac
16242done # for ac_tag
16243
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016244
16245{ (exit 0); exit 0; }
16246_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016247chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016248ac_clean_files=$ac_clean_files_save
16249
16250
16251# configure is writing to config.log, and then calls config.status.
16252# config.status does its own redirection, appending to config.log.
16253# Unfortunately, on DOS this fails, as config.log is still kept open
16254# by configure, so config.status won't be able to write to it; its
16255# output is simply discarded. So we exec the FD to /dev/null,
16256# effectively closing config.log, so it can be properly (re)opened and
16257# appended to by config.status. When coming back to configure, we
16258# need to make the FD available again.
16259if test "$no_create" != yes; then
16260 ac_cs_success=:
16261 ac_config_status_args=
16262 test "$silent" = yes &&
16263 ac_config_status_args="$ac_config_status_args --quiet"
16264 exec 5>/dev/null
16265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16266 exec 5>>config.log
16267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16268 # would make configure fail if this is the last instruction.
16269 $ac_cs_success || { (exit 1); exit 1; }
16270fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016271
Theodore Ts'oee683a12005-02-05 15:53:56 -050016272if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16273