blob: 4dee53662355ee16d4bee78ca58aa636f7268835 [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'o55da9872008-09-02 23:12:38 -0400687LDFLAG_DYNAMIC
688PRIVATE_LIBS_CMT
Theodore Ts'oaf773652008-09-01 11:27:27 -0400689TEST_IO_CMT
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400690PKG_CONFIG
691LIBBLKID
692DEPLIBBLKID
693STATIC_LIBBLKID
694DEPSTATIC_LIBBLKID
695PROFILED_LIBBLKID
696DEPPROFILED_LIBBLKID
697BLKID_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400698DEBUGFS_CMT
699IMAGER_CMT
700RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400701FSCK_PROG
702FSCK_MAN
703E2INITRD_PROG
704E2INITRD_MAN
Theodore Ts'o5610f992007-12-31 11:16:56 -0500705UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400706GETTEXT_PACKAGE
707PACKAGE
708VERSION
709SET_MAKE
710INSTALL_PROGRAM
711INSTALL_SCRIPT
712INSTALL_DATA
713MKINSTALLDIRS
714USE_NLS
715MSGFMT
716GMSGFMT
717XGETTEXT
718MSGMERGE
719RANLIB
720ALLOCA
721GLIBC21
722HAVE_POSIX_PRINTF
723HAVE_ASPRINTF
724HAVE_SNPRINTF
725HAVE_WPRINTF
726LIBICONV
727LTLIBICONV
728INTLBISON
729BUILD_INCLUDED_LIBINTL
730USE_INCLUDED_LIBINTL
731CATOBJEXT
732DATADIRNAME
733INSTOBJEXT
734GENCAT
735INTLOBJS
736INTL_LIBTOOL_SUFFIX_PREFIX
737INTLLIBS
738LIBINTL
739LTLIBINTL
740POSUB
741BINARY_TYPE
742LN
743LN_S
744MV
745CP
746RM
747CHMOD
748AWK
749SED
750PERL
751LDCONFIG
752AR
753STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530754MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400755BUILD_CC
756SIZEOF_SHORT
757SIZEOF_INT
758SIZEOF_LONG
759SIZEOF_LONG_LONG
760SOCKET_LIB
761DLOPEN_LIB
Theodore Ts'od7f45af2008-09-12 10:15:26 -0400762SEM_INIT_LIB
Theodore Ts'oe1052142006-10-21 21:46:47 -0400763UNI_DIFF_OPTS
764LINUX_CMT
765CYGWIN_CMT
766UNIX_CMT
767root_prefix
768root_bindir
769root_sbindir
770root_libdir
771root_sysconfdir
772LDFLAG_STATIC
773SS_DIR
774ET_DIR
775DO_TEST_SUITE
776INTL_FLAGS
777BUILD_CFLAGS
778BUILD_LDFLAGS
779LIBOBJS
780LTLIBOBJS'
781ac_subst_files='MCONFIG
782MAKEFILE_ELF
783MAKEFILE_BSDLIB
784MAKEFILE_PROFILE
785MAKEFILE_CHECKER
786MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400787ASM_TYPES_HEADER
788PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400789 ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400795LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400796CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400797CPP
798PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400799
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000800
801# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500802ac_init_help=
803ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000804# The variables have the same names as the options, with
805# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500806cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000807exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000808no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000817verbose=
818x_includes=NONE
819x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400826# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000835includedir='${prefix}/include'
836oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400837docdir='${datarootdir}/doc/${PACKAGE}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000846
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000847ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400848ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000849for ac_option
850do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400853 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000854 ac_prev=
855 continue
856 fi
857
Theodore Ts'oe1052142006-10-21 21:46:47 -0400858 case $ac_option in
859 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *) ac_optarg=yes ;;
861 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000862
863 # Accept the important Cygnus configure options, so we can diagnose typos.
864
Theodore Ts'oe1052142006-10-21 21:46:47 -0400865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000868
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500872 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000873
874 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500875 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500877 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000888
Theodore Ts'oe1052142006-10-21 21:46:47 -0400889 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000890 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500892 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000893
Theodore Ts'oe1052142006-10-21 21:46:47 -0400894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000901 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500902 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000903 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400904 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500905 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
906 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400907 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400908 eval enable_$ac_feature=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919
920 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500921 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400923 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400926 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400927 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500936 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948
949 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500950 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000951 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500952 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000953
Theodore Ts'oe1052142006-10-21 21:46:47 -0400954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500965 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500970 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500975 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500982 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983
Theodore Ts'oe1052142006-10-21 21:46:47 -0400984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400990 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500999 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001000
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001006 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001020 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001021
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001025 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001032 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001039 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001056 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001057
Theodore Ts'oe1052142006-10-21 21:46:47 -04001058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001104 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001105
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001106 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001107 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001116
1117 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001124 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125
1126 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001127 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001129 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001130 { echo "$as_me: error: invalid package name: $ac_package" >&2
1131 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001132 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001133 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001134
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1138
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 -*) { echo "$as_me: error: unrecognized option: $ac_option
1154Try \`$0 --help' for more information." >&2
1155 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001156 ;;
1157
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1163 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001164 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001165 export $ac_envvar ;;
1166
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001167 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001168 # FIXME: should be removed in autoconf 3.0.
1169 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001173 ;;
1174
1175 esac
1176done
1177
1178if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 { echo "$as_me: error: missing argument to $ac_option" >&2
1181 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182fi
1183
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184# Be sure to have absolute directory names.
1185for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001190 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001195 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1196 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001197done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001199# There might be people who depend on the old broken behavior: `$host'
1200# used to hold the argument of --host etc.
1201# FIXME: To remove some day.
1202build=$build_alias
1203host=$host_alias
1204target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001206# FIXME: To remove some day.
1207if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used." >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1214 fi
1215fi
1216
1217ac_tool_prefix=
1218test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220test "$silent" = yes && exec 6>/dev/null
1221
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222
Theodore Ts'oe1052142006-10-21 21:46:47 -04001223ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224ac_ls_di=`ls -di .` &&
1225ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 { echo "$as_me: error: Working directory cannot be determined" >&2
1227 { (exit 1); exit 1; }; }
1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 { echo "$as_me: error: pwd does not report name of working directory" >&2
1230 { (exit 1); exit 1; }; }
1231
1232
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001238$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$0" : 'X\(//\)[^/]' \| \
1240 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001242echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001260 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001262 srcdir=..
1263 fi
1264else
1265 ac_srcdir_defaulted=no
1266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001267if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001271fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001272ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273ac_abs_confdir=`(
1274 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001275 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001276 pwd)`
1277# When building in place, set srcdir=.
1278if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 srcdir=.
1280fi
1281# Remove unnecessary trailing slashes from srcdir.
1282# Double slashes in file names in object file debugging info
1283# mess up M-x gdb in Emacs.
1284case $srcdir in
1285*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286esac
1287for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001293
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001294#
1295# Report the --help message.
1296#
1297if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1300 cat <<_ACEOF
1301\`configure' configures this package to adapt to many kinds of systems.
1302
1303Usage: $0 [OPTION]... [VAR=VALUE]...
1304
1305To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306VAR=VALUE. See below for descriptions of some of the useful variables.
1307
1308Defaults for the options are specified in brackets.
1309
1310Configuration:
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001321Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 [PREFIX]
1326
1327By default, \`make install' will install all the files in
1328\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330for instance \`--prefix=\$HOME'.
1331
1332For better control, use the options below.
1333
1334Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001354_ACEOF
1355
1356 cat <<\_ACEOF
1357
1358System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361_ACEOF
1362fi
1363
1364if test -n "$ac_init_help"; then
1365
1366 cat <<\_ACEOF
1367
1368Optional Features:
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001371 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001372 --enable-compression enable EXPERIMENTAL compression support
1373 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001374 --enable-elf-shlibs select ELF shared libraries
1375 --enable-bsd-shlibs select BSD shared libraries
1376 --enable-profile build profiling libraries
1377 --enable-checker build checker libraries
1378 --enable-jbd-debug enable journal debugging
1379 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001380 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001381 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001382 --disable-debugfs disable support of debugfs program
1383 --disable-imager disable support of e2image program
1384 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001385 --enable-fsck build fsck wrapper program
1386 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001387 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001388 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001389 --disable-nls do not use Native Language Support
1390 --disable-rpath do not hardcode runtime library paths
1391
1392Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001395 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001396 --with-cc=COMPILER select compiler to use
1397 --with-linker=LINKER select linker to use
1398 --with-ccopts=CCOPTS select compiler command line options
1399 --with-ldopts=LDOPTS select linker command line options
1400 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1401 --with-gnu-ld assume the C compiler uses GNU ld default=no
1402 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1403 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1404 --with-included-gettext use the GNU gettext library included here
1405 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1406 --without-libintl-prefix don't search for libintl in includedir and libdir
1407
1408Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001413 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001416 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001417 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418
1419Use these variables to override the choices made by `configure' or to help
1420it to find libraries and programs with nonstandard names/locations.
1421
1422_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424fi
1425
1426if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001429 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001430 ac_builddir=.
1431
Theodore Ts'oe1052142006-10-21 21:46:47 -04001432case "$ac_dir" in
1433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442esac
1443ac_abs_top_builddir=$ac_pwd
1444ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445# for backward compatibility:
1446ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447
1448case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001449 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001450 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001454 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001463
Theodore Ts'oe1052142006-10-21 21:46:47 -04001464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472 else
1473 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001476 done
1477fi
1478
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480if $ac_init_version; then
1481 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001482configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001483generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001484
Theodore Ts'oe1052142006-10-21 21:46:47 -04001485Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14862002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487This configure script is free software; the Free Software Foundation
1488gives unlimited permission to copy, distribute and modify it.
1489_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001490 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001491fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001492cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493This file contains any messages produced by compilers while
1494running configure, to aid debugging if configure makes a mistake.
1495
1496It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001497generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001498
1499 $ $0 $@
1500
1501_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001502exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503{
1504cat <<_ASUNAME
1505## --------- ##
1506## Platform. ##
1507## --------- ##
1508
1509hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1510uname -m = `(uname -m) 2>/dev/null || echo unknown`
1511uname -r = `(uname -r) 2>/dev/null || echo unknown`
1512uname -s = `(uname -s) 2>/dev/null || echo unknown`
1513uname -v = `(uname -v) 2>/dev/null || echo unknown`
1514
1515/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1516/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1517
1518/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1519/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1520/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001521/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001522/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1523/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1524/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1525
1526_ASUNAME
1527
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 echo "PATH: $as_dir"
1534done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001535IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536
1537} >&5
1538
1539cat >&5 <<_ACEOF
1540
1541
1542## ----------- ##
1543## Core tests. ##
1544## ----------- ##
1545
1546_ACEOF
1547
1548
1549# Keep a trace of the command line.
1550# Strip out --no-create and --no-recursion so they do not pile up.
1551# Strip out --silent because we don't want to record it for future runs.
1552# Also quote any args containing shell meta-characters.
1553# Make two passes to allow for proper duplicate-argument suppression.
1554ac_configure_args=
1555ac_configure_args0=
1556ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557ac_must_keep_next=false
1558for ac_pass in 1 2
1559do
1560 for ac_arg
1561 do
1562 case $ac_arg in
1563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1566 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001567 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1569 esac
1570 case $ac_pass in
1571 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1572 2)
1573 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1574 if test $ac_must_keep_next = true; then
1575 ac_must_keep_next=false # Got value, back to normal.
1576 else
1577 case $ac_arg in
1578 *=* | --config-cache | -C | -disable-* | --disable-* \
1579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1581 | -with-* | --with-* | -without-* | --without-* | --x)
1582 case "$ac_configure_args0 " in
1583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1584 esac
1585 ;;
1586 -* ) ac_must_keep_next=true ;;
1587 esac
1588 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001589 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001590 ;;
1591 esac
1592 done
1593done
1594$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1595$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1596
1597# When interrupted or exit'd, cleanup temporary files, and complete
1598# config.log. We remove comments because anyway the quotes in there
1599# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001600# WARNING: Use '\'' to represent an apostrophe within the trap.
1601# 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 -05001602trap 'exit_status=$?
1603 # Save into config.log some information that might help in debugging.
1604 {
1605 echo
1606
1607 cat <<\_ASBOX
1608## ---------------- ##
1609## Cache variables. ##
1610## ---------------- ##
1611_ASBOX
1612 echo
1613 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001614(
1615 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1616 eval ac_val=\$$ac_var
1617 case $ac_val in #(
1618 *${as_nl}*)
1619 case $ac_var in #(
1620 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1621echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1622 esac
1623 case $ac_var in #(
1624 _ | IFS | as_nl) ;; #(
1625 *) $as_unset $ac_var ;;
1626 esac ;;
1627 esac
1628 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001629 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001630 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1631 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 "s/'\''/'\''\\\\'\'''\''/g;
1634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1635 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001638 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001639 esac |
1640 sort
1641)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001642 echo
1643
1644 cat <<\_ASBOX
1645## ----------------- ##
1646## Output variables. ##
1647## ----------------- ##
1648_ASBOX
1649 echo
1650 for ac_var in $ac_subst_vars
1651 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657 done | sort
1658 echo
1659
1660 if test -n "$ac_subst_files"; then
1661 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001662## ------------------- ##
1663## File substitutions. ##
1664## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001665_ASBOX
1666 echo
1667 for ac_var in $ac_subst_files
1668 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001669 eval ac_val=\$$ac_var
1670 case $ac_val in
1671 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 esac
1673 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001674 done | sort
1675 echo
1676 fi
1677
1678 if test -s confdefs.h; then
1679 cat <<\_ASBOX
1680## ----------- ##
1681## confdefs.h. ##
1682## ----------- ##
1683_ASBOX
1684 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001685 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001686 echo
1687 fi
1688 test "$ac_signal" != 0 &&
1689 echo "$as_me: caught signal $ac_signal"
1690 echo "$as_me: exit $exit_status"
1691 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001692 rm -f core *.core core.conftest.* &&
1693 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001694 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001695' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001696for ac_signal in 1 2 13 15; do
1697 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1698done
1699ac_signal=0
1700
1701# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001702rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001703
1704# Predefined preprocessor variables.
1705
1706cat >>confdefs.h <<_ACEOF
1707#define PACKAGE_NAME "$PACKAGE_NAME"
1708_ACEOF
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1713_ACEOF
1714
1715
1716cat >>confdefs.h <<_ACEOF
1717#define PACKAGE_VERSION "$PACKAGE_VERSION"
1718_ACEOF
1719
1720
1721cat >>confdefs.h <<_ACEOF
1722#define PACKAGE_STRING "$PACKAGE_STRING"
1723_ACEOF
1724
1725
1726cat >>confdefs.h <<_ACEOF
1727#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1728_ACEOF
1729
1730
1731# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001732# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001733if test -n "$CONFIG_SITE"; then
1734 set x "$CONFIG_SITE"
1735elif test "x$prefix" != xNONE; then
1736 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1737else
1738 set x "$ac_default_prefix/share/config.site" \
1739 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001741shift
1742for ac_site_file
1743do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001744 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001745 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1746echo "$as_me: loading site script $ac_site_file" >&6;}
1747 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001748 . "$ac_site_file"
1749 fi
1750done
1751
1752if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001753 # Some versions of bash will fail to source /dev/null (special
1754 # files actually), so we avoid doing that.
1755 if test -f "$cache_file"; then
1756 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1757echo "$as_me: loading cache $cache_file" >&6;}
1758 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001759 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1760 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001761 esac
1762 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001763else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001764 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1765echo "$as_me: creating cache $cache_file" >&6;}
1766 >$cache_file
1767fi
1768
1769# Check that the precious variables saved in the cache have kept the same
1770# value.
1771ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001772for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001773 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1774 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001775 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1776 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001777 case $ac_old_set,$ac_new_set in
1778 set,)
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1780echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,set)
1783 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1784echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1786 ,);;
1787 *)
1788 if test "x$ac_old_val" != "x$ac_new_val"; then
1789 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1792echo "$as_me: former value: $ac_old_val" >&2;}
1793 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1794echo "$as_me: current value: $ac_new_val" >&2;}
1795 ac_cache_corrupted=:
1796 fi;;
1797 esac
1798 # Pass precious variables to config.status.
1799 if test "$ac_new_set" = set; then
1800 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001801 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001802 *) ac_arg=$ac_var=$ac_new_val ;;
1803 esac
1804 case " $ac_configure_args " in
1805 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1806 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1807 esac
1808 fi
1809done
1810if $ac_cache_corrupted; then
1811 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1812echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1813 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1814echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1815 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001816fi
1817
Theodore Ts'oe1052142006-10-21 21:46:47 -04001818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001834ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001835ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001839
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001840
1841
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001842ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001843for ac_dir in config "$srcdir"/config; do
1844 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001845 ac_aux_dir=$ac_dir
1846 ac_install_sh="$ac_aux_dir/install-sh -c"
1847 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001848 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/install.sh -c"
1851 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001852 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001853 ac_aux_dir=$ac_dir
1854 ac_install_sh="$ac_aux_dir/shtool install -c"
1855 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001856 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001857done
1858if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001859 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1860echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001861 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001863
1864# These three variables are undocumented and unsupported,
1865# and are intended to be withdrawn in a future Autoconf release.
1866# They can cause serious problems if a builder's source tree is in a directory
1867# whose full name contains unusual characters.
1868ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1869ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1870ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1871
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001872
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001873MCONFIG=./MCONFIG
1874
Theodore Ts'o74becf31997-04-26 14:37:06 +00001875BINARY_TYPE=bin
1876E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1877 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1878DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1879 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001880E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001881MONTH=`echo $DATE | awk -F- '{print $2}'`
1882YEAR=`echo $DATE | awk -F- '{print $3}'`
1883
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001884if expr $YEAR ">" 1900 > /dev/null ; then
1885 E2FSPROGS_YEAR=$YEAR
1886elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001887 E2FSPROGS_YEAR=19$YEAR
1888else
1889 E2FSPROGS_YEAR=20$YEAR
1890fi
1891
1892case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001893Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1894Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1895Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1896Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1897May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1898Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1899Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1900Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1901Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1902Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1903Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1904Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001905*) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1906echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001907esac
1908
Andreas Dilger927566a2006-11-12 19:41:25 -05001909base_ver=`echo $E2FSPROGS_VERSION | \
1910 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001911
1912date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1913
1914case $E2FSPROGS_VERSION in
1915*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001916 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001917 ;;
1918*)
1919 E2FSPROGS_PKGVER="$base_ver"
1920 ;;
1921esac
1922
1923unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001924{ echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1925echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1926{ echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1927echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001928
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001929
1930
1931
Andreas Dilger927566a2006-11-12 19:41:25 -05001932
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001933# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001934$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1935 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1936echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001937 { (exit 1); exit 1; }; }
1938
Theodore Ts'oe1052142006-10-21 21:46:47 -04001939{ echo "$as_me:$LINENO: checking build system type" >&5
1940echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001941if test "${ac_cv_build+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001944 ac_build_alias=$build_alias
1945test "x$ac_build_alias" = x &&
1946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1947test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001948 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1949echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1950 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001951ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1952 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1953echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001954 { (exit 1); exit 1; }; }
1955
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001956fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001957{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1958echo "${ECHO_T}$ac_cv_build" >&6; }
1959case $ac_cv_build in
1960*-*-*) ;;
1961*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1962echo "$as_me: error: invalid value of canonical build" >&2;}
1963 { (exit 1); exit 1; }; };;
1964esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001965build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001966ac_save_IFS=$IFS; IFS='-'
1967set x $ac_cv_build
1968shift
1969build_cpu=$1
1970build_vendor=$2
1971shift; shift
1972# Remember, the first character of IFS is used to create $*,
1973# except with old shells:
1974build_os=$*
1975IFS=$ac_save_IFS
1976case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001977
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001978
Theodore Ts'oe1052142006-10-21 21:46:47 -04001979{ echo "$as_me:$LINENO: checking host system type" >&5
1980echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001981if test "${ac_cv_host+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001984 if test "x$host_alias" = x; then
1985 ac_cv_host=$ac_cv_build
1986else
1987 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1988 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1989echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001990 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001991fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001993fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001994{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1995echo "${ECHO_T}$ac_cv_host" >&6; }
1996case $ac_cv_host in
1997*-*-*) ;;
1998*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1999echo "$as_me: error: invalid value of canonical host" >&2;}
2000 { (exit 1); exit 1; }; };;
2001esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002002host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002003ac_save_IFS=$IFS; IFS='-'
2004set x $ac_cv_host
2005shift
2006host_cpu=$1
2007host_vendor=$2
2008shift; shift
2009# Remember, the first character of IFS is used to create $*,
2010# except with old shells:
2011host_os=$*
2012IFS=$ac_save_IFS
2013case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002014
2015
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002016WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002017
Theodore Ts'oe1052142006-10-21 21:46:47 -04002018# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002019if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002020 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002021WITH_DIET_LIBC=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04002022{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2023echo "${ECHO_T}CC=$CC" >&6; }
2024fi
2025
2026# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002027if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002028 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2029echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002030CC=$withval
2031else
2032 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002033{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2034echo "${ECHO_T}CC defaults to $CC" >&6; }
2035fi
2036export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043if test -n "$ac_tool_prefix"; then
2044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2045set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002048if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002050else
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002060 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 -05002061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2064 fi
2065done
2066done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002067IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002068
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002069fi
2070fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002071CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002072if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002073 { echo "$as_me:$LINENO: result: $CC" >&5
2074echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002075else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002076 { echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002078fi
2079
Theodore Ts'oe1052142006-10-21 21:46:47 -04002080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002081fi
2082if test -z "$ac_cv_prog_CC"; then
2083 ac_ct_CC=$CC
2084 # Extract the first word of "gcc", so it can be a program name with args.
2085set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002100 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 -05002101 ac_cv_prog_ac_ct_CC="gcc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105done
2106done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002107IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002108
2109fi
2110fi
2111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002113 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002115else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002116 { echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002118fi
2119
Theodore Ts'oe1052142006-10-21 21:46:47 -04002120 if test "x$ac_ct_CC" = x; then
2121 CC=""
2122 else
2123 case $cross_compiling:$ac_tool_warned in
2124yes:)
2125{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2126whose name does not start with the host triplet. If you think this
2127configuration is useful to you, please write to autoconf@gnu.org." >&5
2128echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2129whose name does not start with the host triplet. If you think this
2130configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2131ac_tool_warned=yes ;;
2132esac
2133 CC=$ac_ct_CC
2134 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002135else
2136 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002137fi
2138
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002139if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002140 if test -n "$ac_tool_prefix"; then
2141 # 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 -05002142set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002145if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002147else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002157 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 -05002158 ac_cv_prog_CC="${ac_tool_prefix}cc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2161 fi
2162done
2163done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002164IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002165
2166fi
2167fi
2168CC=$ac_cv_prog_CC
2169if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002170 { echo "$as_me:$LINENO: result: $CC" >&5
2171echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002172else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002173 { echo "$as_me:$LINENO: result: no" >&5
2174echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002175fi
2176
Theodore Ts'oe1052142006-10-21 21:46:47 -04002177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002178 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002179fi
2180if test -z "$CC"; then
2181 # Extract the first word of "cc", so it can be a program name with args.
2182set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002185if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002191 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002198 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 -05002199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200 ac_prog_rejected=yes
2201 continue
2202 fi
2203 ac_cv_prog_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207done
2208done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002209IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002210
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002211if test $ac_prog_rejected = yes; then
2212 # We found a bogon in the path, so make sure we never use it.
2213 set dummy $ac_cv_prog_CC
2214 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002215 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002216 # We chose a different compiler from the bogus one.
2217 # However, it has the same basename, so the bogon will be chosen
2218 # first if we set CC to just the basename; use the full file name.
2219 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002221 fi
2222fi
2223fi
2224fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002225CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002226if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002227 { echo "$as_me:$LINENO: result: $CC" >&5
2228echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002229else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002230 { echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002232fi
2233
Theodore Ts'oe1052142006-10-21 21:46:47 -04002234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235fi
2236if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002238 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002239 do
2240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2241set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002244if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002246else
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002256 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 -05002257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2260 fi
2261done
2262done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002263IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002264
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002265fi
2266fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002267CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002268if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002269 { echo "$as_me:$LINENO: result: $CC" >&5
2270echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002271else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002272 { echo "$as_me:$LINENO: result: no" >&5
2273echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002274fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002275
Theodore Ts'oe1052142006-10-21 21:46:47 -04002276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002277 test -n "$CC" && break
2278 done
2279fi
2280if test -z "$CC"; then
2281 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002282 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002283do
2284 # Extract the first word of "$ac_prog", so it can be a program name with args.
2285set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002288if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291 if test -n "$ac_ct_CC"; then
2292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293else
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002300 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 -05002301 ac_cv_prog_ac_ct_CC="$ac_prog"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002304 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002305done
2306done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002307IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002308
2309fi
2310fi
2311ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002315else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002316 { echo "$as_me:$LINENO: result: no" >&5
2317echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002318fi
2319
Theodore Ts'oe1052142006-10-21 21:46:47 -04002320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002321 test -n "$ac_ct_CC" && break
2322done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002323
Theodore Ts'oe1052142006-10-21 21:46:47 -04002324 if test "x$ac_ct_CC" = x; then
2325 CC=""
2326 else
2327 case $cross_compiling:$ac_tool_warned in
2328yes:)
2329{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2330whose name does not start with the host triplet. If you think this
2331configuration is useful to you, please write to autoconf@gnu.org." >&5
2332echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2333whose name does not start with the host triplet. If you think this
2334configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2335ac_tool_warned=yes ;;
2336esac
2337 CC=$ac_ct_CC
2338 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002339fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002341fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002342
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002343
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002344test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: no acceptable C compiler found in \$PATH
2347See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2349
2350# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002351echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002353{ (ac_try="$ac_compiler --version >&5"
2354case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357esac
2358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002363{ (ac_try="$ac_compiler -v >&5"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002373{ (ac_try="$ac_compiler -V >&5"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2383
2384cat >conftest.$ac_ext <<_ACEOF
2385/* confdefs.h. */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h. */
2390
2391int
2392main ()
2393{
2394
2395 ;
2396 return 0;
2397}
2398_ACEOF
2399ac_clean_files_save=$ac_clean_files
2400ac_clean_files="$ac_clean_files a.out a.exe b.out"
2401# Try to create an executable without -o first, disregard a.out.
2402# It will help us diagnose broken compilers, and finding out an intuition
2403# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002404{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2405echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002406ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002407#
2408# List of possible output files, starting from the most likely.
2409# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2410# only as a last resort. b.out is created by i960 compilers.
2411ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2412#
2413# The IRIX 6 linker writes into existing files which may not be
2414# executable, retaining their permissions. Remove them first so a
2415# subsequent execution test works.
2416ac_rmfiles=
2417for ac_file in $ac_files
2418do
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2422 esac
2423done
2424rm -f $ac_rmfiles
2425
2426if { (ac_try="$ac_link_default"
2427case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430esac
2431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2437# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2438# in a Makefile. We should not override ac_cv_exeext if it was cached,
2439# so that the user can short-circuit this test for compilers unknown to
2440# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002441for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002442do
2443 test -f "$ac_file" || continue
2444 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 ;;
2447 [ab].out )
2448 # We found the default executable, but exeext='' is most
2449 # certainly right.
2450 break;;
2451 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2453 then :; else
2454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455 fi
2456 # We set ac_cv_exeext here because the later test for it is not
2457 # safe: cross compilers may not add the suffix if given an `-o'
2458 # argument, so we may need to know it at that point already.
2459 # Even if this section looks crufty: it has the advantage of
2460 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002461 break;;
2462 * )
2463 break;;
2464 esac
2465done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002466test "$ac_cv_exeext" = no && ac_cv_exeext=
2467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002468else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002469 ac_file=''
2470fi
2471
2472{ echo "$as_me:$LINENO: result: $ac_file" >&5
2473echo "${ECHO_T}$ac_file" >&6; }
2474if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002475 echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2479See \`config.log' for more details." >&5
2480echo "$as_me: error: C compiler cannot create executables
2481See \`config.log' for more details." >&2;}
2482 { (exit 77); exit 77; }; }
2483fi
2484
2485ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486
Theodore Ts'oe1052142006-10-21 21:46:47 -04002487# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002488# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002489{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2490echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2492# If not cross compiling, check that we can run a simple program.
2493if test "$cross_compiling" != yes; then
2494 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002505 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506 if test "$cross_compiling" = maybe; then
2507 cross_compiling=yes
2508 else
2509 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2510If you meant to cross compile, use \`--host'.
2511See \`config.log' for more details." >&5
2512echo "$as_me: error: cannot run C compiled programs.
2513If you meant to cross compile, use \`--host'.
2514See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2516 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002517 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002519{ echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002522rm -f a.out a.exe conftest$ac_cv_exeext b.out
2523ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002524# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002526{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2527echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2528{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2529echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002530
Theodore Ts'oe1052142006-10-21 21:46:47 -04002531{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2532echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2533if { (ac_try="$ac_link"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; then
2543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2544# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2545# work properly (i.e., refer to `conftest.exe'), while it won't with
2546# `rm'.
2547for ac_file in conftest.exe conftest conftest.*; do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552 break;;
2553 * ) break;;
2554 esac
2555done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002556else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2558See \`config.log' for more details." >&5
2559echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2560See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2562fi
2563
2564rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002565{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2566echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002567
2568rm -f conftest.$ac_ext
2569EXEEXT=$ac_cv_exeext
2570ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002571{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2572echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002573if test "${ac_cv_objext+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
2582
2583int
2584main ()
2585{
2586
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592if { (ac_try="$ac_compile"
2593case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002602 for ac_file in conftest.o conftest.obj conftest.*; do
2603 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002604 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607 break;;
2608 esac
2609done
2610else
2611 echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615See \`config.log' for more details." >&5
2616echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }
2619fi
2620
2621rm -f conftest.$ac_cv_objext conftest.$ac_ext
2622fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002623{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002625OBJEXT=$ac_cv_objext
2626ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002627{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2628echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002629if test "${ac_cv_c_compiler_gnu+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632 cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */
2638
2639int
2640main ()
2641{
2642#ifndef __GNUC__
2643 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002644#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002646 ;
2647 return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002651if { (ac_try="$ac_compile"
2652case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655esac
2656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002663 (exit $ac_status); } && {
2664 test -z "$ac_c_werror_flag" ||
2665 test ! -s conftest.err
2666 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002668else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669 echo "$as_me: failed program was:" >&5
2670sed 's/^/| /' conftest.$ac_ext >&5
2671
Theodore Ts'oe1052142006-10-21 21:46:47 -04002672 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002673fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002674
2675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002676ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002677
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002679{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002681GCC=`test $ac_compiler_gnu = yes && echo yes`
2682ac_test_CFLAGS=${CFLAGS+set}
2683ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002684{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002686if test "${ac_cv_prog_cc_g+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002688else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002689 ac_save_c_werror_flag=$ac_c_werror_flag
2690 ac_c_werror_flag=yes
2691 ac_cv_prog_cc_g=no
2692 CFLAGS="-g"
2693 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002694/* confdefs.h. */
2695_ACEOF
2696cat confdefs.h >>conftest.$ac_ext
2697cat >>conftest.$ac_ext <<_ACEOF
2698/* end confdefs.h. */
2699
2700int
2701main ()
2702{
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002721 (exit $ac_status); } && {
2722 test -z "$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2724 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002725 ac_cv_prog_cc_g=yes
2726else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002727 echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002729
Theodore Ts'oe1052142006-10-21 21:46:47 -04002730 CFLAGS=""
2731 cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737
2738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746rm -f conftest.$ac_objext
2747if { (ac_try="$ac_compile"
2748case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
2752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002763 :
2764else
2765 echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_c_werror_flag=$ac_save_c_werror_flag
2769 CFLAGS="-g"
2770 cat >conftest.$ac_ext <<_ACEOF
2771/* confdefs.h. */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h. */
2776
2777int
2778main ()
2779{
2780
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785rm -f conftest.$ac_objext
2786if { (ac_try="$ac_compile"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compile") 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002798 (exit $ac_status); } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002802 ac_cv_prog_cc_g=yes
2803else
2804 echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002809
2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002812
2813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814fi
2815
2816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 ac_c_werror_flag=$ac_save_c_werror_flag
2818fi
2819{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002821if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002823elif test $ac_cv_prog_cc_g = yes; then
2824 if test "$GCC" = yes; then
2825 CFLAGS="-g -O2"
2826 else
2827 CFLAGS="-g"
2828 fi
2829else
2830 if test "$GCC" = yes; then
2831 CFLAGS="-O2"
2832 else
2833 CFLAGS=
2834 fi
2835fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002836{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2837echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002842ac_save_CC=$CC
2843cat >conftest.$ac_ext <<_ACEOF
2844/* confdefs.h. */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h. */
2849#include <stdarg.h>
2850#include <stdio.h>
2851#include <sys/types.h>
2852#include <sys/stat.h>
2853/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2854struct buf { int x; };
2855FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856static char *e (p, i)
2857 char **p;
2858 int i;
2859{
2860 return p[i];
2861}
2862static char *f (char * (*g) (char **, int), char **p, ...)
2863{
2864 char *s;
2865 va_list v;
2866 va_start (v,p);
2867 s = g (p, va_arg (v,int));
2868 va_end (v);
2869 return s;
2870}
2871
2872/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2873 function prototypes and stuff, but not '\xHH' hex character constants.
2874 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002875 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2877 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002878 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002879int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2880
Theodore Ts'oe1052142006-10-21 21:46:47 -04002881/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2882 inside strings and character constants. */
2883#define FOO(x) 'x'
2884int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2885
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002886int test (int i, double x);
2887struct s1 {int (*f) (int a);};
2888struct s2 {int (*f) (double a);};
2889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890int argc;
2891char **argv;
2892int
2893main ()
2894{
2895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 ;
2897 return 0;
2898}
2899_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002900for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002902do
2903 CC="$ac_save_CC $ac_arg"
2904 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002905if { (ac_try="$ac_compile"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002921 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922else
2923 echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002928
2929rm -f core conftest.err conftest.$ac_objext
2930 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002931done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002932rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933CC=$ac_save_CC
2934
2935fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002936# AC_CACHE_VAL
2937case "x$ac_cv_prog_cc_c89" in
2938 x)
2939 { echo "$as_me:$LINENO: result: none needed" >&5
2940echo "${ECHO_T}none needed" >&6; } ;;
2941 xno)
2942 { echo "$as_me:$LINENO: result: unsupported" >&5
2943echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002945 CC="$CC $ac_cv_prog_cc_c89"
2946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2947echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948esac
2949
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951ac_ext=c
2952ac_cpp='$CPP $CPPFLAGS'
2953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957ac_ext=c
2958ac_cpp='$CPP $CPPFLAGS'
2959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002962{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2963echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002964# On Suns, sometimes $CPP names a directory.
2965if test -n "$CPP" && test -d "$CPP"; then
2966 CPP=
2967fi
2968if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969 if test "${ac_cv_prog_CPP+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972 # Double quotes because CPP needs to be expanded
2973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2974 do
2975 ac_preproc_ok=false
2976for ac_c_preproc_warn_flag in '' yes
2977do
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002982 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990#ifdef __STDC__
2991# include <limits.h>
2992#else
2993# include <assert.h>
2994#endif
2995 Syntax error
2996_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002997if { (ac_try="$ac_cpp conftest.$ac_ext"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003009 (exit $ac_status); } >/dev/null && {
3010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003013 :
3014else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003015 echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018 # Broken: fails on valid input.
3019continue
3020fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003021
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022rm -f conftest.err conftest.$ac_ext
3023
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h. */
3032#include <ac_nonexistent.h>
3033_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003034if { (ac_try="$ac_cpp conftest.$ac_ext"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003046 (exit $ac_status); } >/dev/null && {
3047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050 # Broken: success on invalid input.
3051continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003052else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 # Passes both tests.
3057ac_preproc_ok=:
3058break
3059fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061rm -f conftest.err conftest.$ac_ext
3062
3063done
3064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065rm -f conftest.err conftest.$ac_ext
3066if $ac_preproc_ok; then
3067 break
3068fi
3069
3070 done
3071 ac_cv_prog_CPP=$CPP
3072
3073fi
3074 CPP=$ac_cv_prog_CPP
3075else
3076 ac_cv_prog_CPP=$CPP
3077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003078{ echo "$as_me:$LINENO: result: $CPP" >&5
3079echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003080ac_preproc_ok=false
3081for ac_c_preproc_warn_flag in '' yes
3082do
3083 # Use a header file that comes with gcc, so configuring glibc
3084 # with a fresh cross-compiler works.
3085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3086 # <limits.h> exists even on freestanding compilers.
3087 # On the NeXT, cc -E runs the code through the compiler's parser,
3088 # not just through cpp. "Syntax error" is here to catch this case.
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
3095#ifdef __STDC__
3096# include <limits.h>
3097#else
3098# include <assert.h>
3099#endif
3100 Syntax error
3101_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003102if { (ac_try="$ac_cpp conftest.$ac_ext"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003114 (exit $ac_status); } >/dev/null && {
3115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118 :
3119else
3120 echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 # Broken: fails on valid input.
3124continue
3125fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127rm -f conftest.err conftest.$ac_ext
3128
Theodore Ts'oe1052142006-10-21 21:46:47 -04003129 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003130 # can be detected and how.
3131 cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h. */
3137#include <ac_nonexistent.h>
3138_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003139if { (ac_try="$ac_cpp conftest.$ac_ext"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003151 (exit $ac_status); } >/dev/null && {
3152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155 # Broken: success on invalid input.
3156continue
3157else
3158 echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 # Passes both tests.
3162ac_preproc_ok=:
3163break
3164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166rm -f conftest.err conftest.$ac_ext
3167
3168done
3169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170rm -f conftest.err conftest.$ac_ext
3171if $ac_preproc_ok; then
3172 :
3173else
3174 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3175See \`config.log' for more details." >&5
3176echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3177See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3179fi
3180
3181ac_ext=c
3182ac_cpp='$CPP $CPPFLAGS'
3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003188# Check whether --with-linker was given.
3189if test "${with_linker+set}" = set; then
3190 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3191echo "${ECHO_T}LD=$withval" >&6; }
3192LD=$withval
3193else
3194 if test -z "$LD" ; then LD=$CC; fi
3195{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3196echo "${ECHO_T}LD defaults to $LD" >&6; }
3197fi
3198export LD
3199
3200
3201# Check whether --with-ccopts was given.
3202if test "${with_ccopts+set}" = set; then
3203 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3204echo "${ECHO_T}CCOPTS is $withval" >&6; }
3205CFLAGS=$withval
3206fi
3207
3208
Theodore Ts'oe1052142006-10-21 21:46:47 -04003209{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3210echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3211if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003214 # Extract the first word of "grep ggrep" to use in msg output
3215if test -z "$GREP"; then
3216set dummy grep ggrep; ac_prog_name=$2
3217if test "${ac_cv_path_GREP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_path_GREP_found=false
3221# Loop through the user's path and test for each of PROGNAME-LIST
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3224do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in grep ggrep; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003230 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003231 # Check for GNU ac_path_GREP and select it if it is found.
3232 # Check for GNU $ac_path_GREP
3233case `"$ac_path_GREP" --version 2>&1` in
3234*GNU*)
3235 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3236*)
3237 ac_count=0
3238 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3239 while :
3240 do
3241 cat "conftest.in" "conftest.in" >"conftest.tmp"
3242 mv "conftest.tmp" "conftest.in"
3243 cp "conftest.in" "conftest.nl"
3244 echo 'GREP' >> "conftest.nl"
3245 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3247 ac_count=`expr $ac_count + 1`
3248 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3249 # Best one so far, save it but keep looking for a better one
3250 ac_cv_path_GREP="$ac_path_GREP"
3251 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003252 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003253 # 10*(2^10) chars as input seems more than enough
3254 test $ac_count -gt 10 && break
3255 done
3256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3257esac
3258
3259
3260 $ac_path_GREP_found && break 3
3261 done
3262done
3263
3264done
3265IFS=$as_save_IFS
3266
3267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003269
3270GREP="$ac_cv_path_GREP"
3271if test -z "$GREP"; then
3272 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3273echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3274 { (exit 1); exit 1; }; }
3275fi
3276
3277else
3278 ac_cv_path_GREP=$GREP
3279fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003280
3281
Theodore Ts'oe1052142006-10-21 21:46:47 -04003282fi
3283{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3284echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3285 GREP="$ac_cv_path_GREP"
3286
3287
3288{ echo "$as_me:$LINENO: checking for egrep" >&5
3289echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3290if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3294 then ac_cv_path_EGREP="$GREP -E"
3295 else
3296 # Extract the first word of "egrep" to use in msg output
3297if test -z "$EGREP"; then
3298set dummy egrep; ac_prog_name=$2
3299if test "${ac_cv_path_EGREP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302 ac_path_EGREP_found=false
3303# Loop through the user's path and test for each of PROGNAME-LIST
3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3306do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_prog in egrep; do
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003312 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003313 # Check for GNU ac_path_EGREP and select it if it is found.
3314 # Check for GNU $ac_path_EGREP
3315case `"$ac_path_EGREP" --version 2>&1` in
3316*GNU*)
3317 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3318*)
3319 ac_count=0
3320 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3321 while :
3322 do
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
3324 mv "conftest.tmp" "conftest.in"
3325 cp "conftest.in" "conftest.nl"
3326 echo 'EGREP' >> "conftest.nl"
3327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3329 ac_count=`expr $ac_count + 1`
3330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3331 # Best one so far, save it but keep looking for a better one
3332 ac_cv_path_EGREP="$ac_path_EGREP"
3333 ac_path_EGREP_max=$ac_count
3334 fi
3335 # 10*(2^10) chars as input seems more than enough
3336 test $ac_count -gt 10 && break
3337 done
3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3339esac
3340
3341
3342 $ac_path_EGREP_found && break 3
3343 done
3344done
3345
3346done
3347IFS=$as_save_IFS
3348
3349
3350fi
3351
3352EGREP="$ac_cv_path_EGREP"
3353if test -z "$EGREP"; then
3354 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3355echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3356 { (exit 1); exit 1; }; }
3357fi
3358
3359else
3360 ac_cv_path_EGREP=$EGREP
3361fi
3362
3363
3364 fi
3365fi
3366{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3367echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3368 EGREP="$ac_cv_path_EGREP"
3369
3370
3371{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003373if test "${ac_cv_header_stdc+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h. */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h. */
3382#include <stdlib.h>
3383#include <stdarg.h>
3384#include <string.h>
3385#include <float.h>
3386
3387int
3388main ()
3389{
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003396if { (ac_try="$ac_compile"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412 ac_cv_header_stdc=yes
3413else
3414 echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
Theodore Ts'oe1052142006-10-21 21:46:47 -04003417 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003419
3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003421
3422if test $ac_cv_header_stdc = yes; then
3423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h. */
3430#include <string.h>
3431
3432_ACEOF
3433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 $EGREP "memchr" >/dev/null 2>&1; then
3435 :
3436else
3437 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003438fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003439rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003440
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003441fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003442
3443if test $ac_cv_header_stdc = yes; then
3444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3445 cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h. */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h. */
3451#include <stdlib.h>
3452
3453_ACEOF
3454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455 $EGREP "free" >/dev/null 2>&1; then
3456 :
3457else
3458 ac_cv_header_stdc=no
3459fi
3460rm -f conftest*
3461
3462fi
3463
3464if test $ac_cv_header_stdc = yes; then
3465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3466 if test "$cross_compiling" = yes; then
3467 :
3468else
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003476#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003477#if ((' ' & 0x0FF) == 0x020)
3478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3480#else
3481# define ISLOWER(c) \
3482 (('a' <= (c) && (c) <= 'i') \
3483 || ('j' <= (c) && (c) <= 'r') \
3484 || ('s' <= (c) && (c) <= 'z'))
3485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3486#endif
3487
3488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3489int
3490main ()
3491{
3492 int i;
3493 for (i = 0; i < 256; i++)
3494 if (XOR (islower (i), ISLOWER (i))
3495 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496 return 2;
3497 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498}
3499_ACEOF
3500rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501if { (ac_try="$ac_link"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003511 { (case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 :
3521else
3522 echo "$as_me: program exited with status $ac_status" >&5
3523echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526( exit $ac_status )
3527ac_cv_header_stdc=no
3528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3530fi
3531
3532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003533fi
3534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003535{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3536echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003537if test $ac_cv_header_stdc = yes; then
3538
3539cat >>confdefs.h <<\_ACEOF
3540#define STDC_HEADERS 1
3541_ACEOF
3542
3543fi
3544
3545# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3556 inttypes.h stdint.h unistd.h
3557do
3558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003559{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570$ac_includes_default
3571
3572#include <$ac_header>
3573_ACEOF
3574rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003575if { (ac_try="$ac_compile"
3576case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579esac
3580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003587 (exit $ac_status); } && {
3588 test -z "$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591 eval "$as_ac_Header=yes"
3592else
3593 echo "$as_me: failed program was:" >&5
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
Theodore Ts'oe1052142006-10-21 21:46:47 -04003596 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003598
3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003600fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003601ac_res=`eval echo '${'$as_ac_Header'}'`
3602 { echo "$as_me:$LINENO: result: $ac_res" >&5
3603echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003604if test `eval echo '${'$as_ac_Header'}'` = yes; then
3605 cat >>confdefs.h <<_ACEOF
3606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3607_ACEOF
3608
3609fi
3610
3611done
3612
3613
3614if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3616echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003617if test "${ac_cv_header_linux_fs_h+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003620{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3621echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003622else
3623 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003624{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3625echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003626cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632$ac_includes_default
3633#include <linux/fs.h>
3634_ACEOF
3635rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003636if { (ac_try="$ac_compile"
3637case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652 ac_header_compiler=yes
3653else
3654 echo "$as_me: failed program was:" >&5
3655sed 's/^/| /' conftest.$ac_ext >&5
3656
Theodore Ts'oe1052142006-10-21 21:46:47 -04003657 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003658fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003659
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3662echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003663
3664# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3666echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003667cat >conftest.$ac_ext <<_ACEOF
3668/* confdefs.h. */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h. */
3673#include <linux/fs.h>
3674_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003675if { (ac_try="$ac_cpp conftest.$ac_ext"
3676case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003687 (exit $ac_status); } >/dev/null && {
3688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003691 ac_header_preproc=yes
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 ac_header_preproc=no
3697fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003699rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3701echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003702
3703# So? What about this header?
3704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3705 yes:no: )
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3707echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3709echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3710 ac_header_preproc=yes
3711 ;;
3712 no:yes:* )
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3714echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3716echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3718echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3719 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3720echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3721 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3722echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3723 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3724echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003726 ;;
3727esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003728{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3729echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003730if test "${ac_cv_header_linux_fs_h+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 ac_cv_header_linux_fs_h=$ac_header_preproc
3734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003735{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3736echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003737
3738fi
3739if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003740 linux_headers=yes
3741else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003742 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003743fi
3744
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003745
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003746if test "$linux_headers" != yes; then
3747 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003748fi
3749
Theodore Ts'oe1052142006-10-21 21:46:47 -04003750{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3751echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003752if test "$GCC" = yes
3753then
3754 case "$host_cpu" in
3755 alpha) addcflags="-mieee" ;;
3756 esac
3757fi
3758if test "x$addcflags" != x
3759then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003760 { echo "$as_me:$LINENO: result: $addcflags" >&5
3761echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003762 CFLAGS="$addcflags $CFLAGS"
3763else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003764 { echo "$as_me:$LINENO: result: (none)" >&5
3765echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003766fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003767LIB_EXT=.a
3768STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04003769PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003770
Theodore Ts'oe1052142006-10-21 21:46:47 -04003771# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003772if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003773 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3774echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003775LDFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003776fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003777
Theodore Ts'oe1052142006-10-21 21:46:47 -04003778
3779# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003780if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003781 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003782else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003783 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003784fi
3785# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003786if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003787 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003788then
3789 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003790 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3791echo "${ECHO_T}Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003792else
3793 MAINTAINER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003794 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3795echo "${ECHO_T}Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003796fi
3797
3798else
3799 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003800{ echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3801echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003802
Theodore Ts'oe1052142006-10-21 21:46:47 -04003803fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003804
Theodore Ts'oe1052142006-10-21 21:46:47 -04003805
3806# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003807if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003808 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003809then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003810 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3811echo "${ECHO_T}Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003812else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003813 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003814#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003815_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003816
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003817 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3818echo "${ECHO_T}Enabling compression support" >&6; }
3819 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3820echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003821fi
3822
3823else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003824 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3825echo "${ECHO_T}Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003826
Theodore Ts'oe1052142006-10-21 21:46:47 -04003827fi
3828
3829# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003830if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003831 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003832then
3833 HTREE_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003834 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3835echo "${ECHO_T}Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003836else
3837 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003838 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003839#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003840_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003841
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003842 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3843echo "${ECHO_T}Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003844fi
3845
3846else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003847 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003848cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003849#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003850_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003851
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003852{ echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3853echo "${ECHO_T}Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003854
Theodore Ts'oe1052142006-10-21 21:46:47 -04003855fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003856
Theodore Ts'oe1052142006-10-21 21:46:47 -04003857
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003858E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04003859LDFLAG_DYNAMIC=
3860PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003861# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003862if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003863 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003864then
3865 ELF_CMT=#
3866 MAKEFILE_ELF=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003867 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3868echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003869else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003870 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003871 ELF_CMT=
3872 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003873 case "$host_os" in
3874 solaris2.*)
3875 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3876 ;;
3877 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003878 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003879 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04003880 PRIVATE_LIBS_CMT=#
3881 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003882 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3883echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003884fi
3885
3886else
3887 MAKEFILE_ELF=/dev/null
3888ELF_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003889{ echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3890echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003891
Theodore Ts'oe1052142006-10-21 21:46:47 -04003892fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003893
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003894
Theodore Ts'oe1052142006-10-21 21:46:47 -04003895
3896# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003897if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003898 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003899then
3900 BSDLIB_CMT=#
3901 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003902 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3903echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003904else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003905 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003906 BSDLIB_CMT=
3907 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003908 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003909 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003910 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003911 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3912 LIB_EXT=.dylib
3913 ;;
3914 esac
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003915 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3916echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003917fi
3918
3919else
3920 MAKEFILE_BSDLIB=/dev/null
3921BSDLIB_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003922{ echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3923echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003924
Theodore Ts'oe1052142006-10-21 21:46:47 -04003925fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003926
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003927
Theodore Ts'oe1052142006-10-21 21:46:47 -04003928
3929# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003930if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003931 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003932then
3933 PROFILE_CMT=#
3934 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003935 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3936echo "${ECHO_T}Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003937else
3938 PROFILE_CMT=
3939 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3940 PROFILED_LIB_EXT=_p.a
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003941 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3942echo "${ECHO_T}Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003943fi
3944
3945else
3946 PROFILE_CMT=#
3947MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003948{ echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3949echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003950
Theodore Ts'oe1052142006-10-21 21:46:47 -04003951fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003952
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003953
Theodore Ts'oe1052142006-10-21 21:46:47 -04003954
3955# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003956if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003957 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003958then
3959 CHECKER_CMT=#
3960 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003961 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3962echo "${ECHO_T}Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003963else
3964 CHECKER_CMT=
3965 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003966 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3967echo "${ECHO_T}Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003968fi
3969
3970else
3971 CHECKER_CMT=#
3972MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003973{ echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3974echo "${ECHO_T}Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003975
Theodore Ts'oe1052142006-10-21 21:46:47 -04003976fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003977
3978
3979
3980
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003981
Theodore Ts'oe1052142006-10-21 21:46:47 -04003982
Theodore Ts'o55da9872008-09-02 23:12:38 -04003983
3984
Theodore Ts'oe1052142006-10-21 21:46:47 -04003985# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003986if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003987 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003988then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003989 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3990echo "${ECHO_T}Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003992 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003993#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003994_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003995
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003996 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3997echo "${ECHO_T}Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003998fi
3999
4000else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004001 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4002echo "${ECHO_T}Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004003
Theodore Ts'oe1052142006-10-21 21:46:47 -04004004fi
4005
4006# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004007if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004008 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004009then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004010 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4011echo "${ECHO_T}Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004012else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004013 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004014#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004015_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004016
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004017 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4018echo "${ECHO_T}Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004019fi
4020
4021else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004022 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4023echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004024
Theodore Ts'oe1052142006-10-21 21:46:47 -04004025fi
4026
4027# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004028if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004029 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004030then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004031 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4032echo "${ECHO_T}Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004033 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004034else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004035 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004036 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004037#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004038_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004039
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004040 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4041echo "${ECHO_T}Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004042fi
4043
4044else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004045 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4046echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4047cat >>confdefs.h <<\_ACEOF
4048#define CONFIG_TESTIO_DEBUG 1
4049_ACEOF
4050
4051TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004052
Theodore Ts'oe1052142006-10-21 21:46:47 -04004053fi
4054
Theodore Ts'oaf773652008-09-01 11:27:27 -04004055
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004056
4057
4058if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4059 if test -n "$ac_tool_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4061set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4064if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067 case $PKG_CONFIG in
4068 [\\/]* | ?:[\\/]*)
4069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4070 ;;
4071 *)
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083done
4084done
4085IFS=$as_save_IFS
4086
4087 ;;
4088esac
4089fi
4090PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4091if test -n "$PKG_CONFIG"; then
4092 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4093echo "${ECHO_T}$PKG_CONFIG" >&6; }
4094else
4095 { echo "$as_me:$LINENO: result: no" >&5
4096echo "${ECHO_T}no" >&6; }
4097fi
4098
4099
4100fi
4101if test -z "$ac_cv_path_PKG_CONFIG"; then
4102 ac_pt_PKG_CONFIG=$PKG_CONFIG
4103 # Extract the first word of "pkg-config", so it can be a program name with args.
4104set dummy pkg-config; ac_word=$2
4105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4107if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110 case $ac_pt_PKG_CONFIG in
4111 [\\/]* | ?:[\\/]*)
4112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4113 ;;
4114 *)
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126done
4127done
4128IFS=$as_save_IFS
4129
4130 ;;
4131esac
4132fi
4133ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4134if test -n "$ac_pt_PKG_CONFIG"; then
4135 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4136echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4137else
4138 { echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6; }
4140fi
4141
4142 if test "x$ac_pt_PKG_CONFIG" = x; then
4143 PKG_CONFIG=""
4144 else
4145 case $cross_compiling:$ac_tool_warned in
4146yes:)
4147{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4148whose name does not start with the host triplet. If you think this
4149configuration is useful to you, please write to autoconf@gnu.org." >&5
4150echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4151whose name does not start with the host triplet. If you think this
4152configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4153ac_tool_warned=yes ;;
4154esac
4155 PKG_CONFIG=$ac_pt_PKG_CONFIG
4156 fi
4157else
4158 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4159fi
4160
4161fi
4162if test -n "$PKG_CONFIG"; then
4163 _pkg_min_version=0.9.0
4164 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4165echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4166 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4167 { echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6; }
4169 else
4170 { echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6; }
4172 PKG_CONFIG=""
4173 fi
4174
4175fi
4176LIBBLKID=
4177DEPLIBBLKID=
4178STATIC_LIBBLKID=
4179DEPSTATIC_LIBBLKID=
4180PROFILED_LIBBLKID=
4181DEPPROFILED_LIBBLKID=
4182BLKID_CMT=
4183# Check whether --enable-libblkid was given.
4184if test "${enable_libblkid+set}" = set; then
4185 enableval=$enable_libblkid; if test "$enableval" = "no"
4186then
4187 if test -z "$PKG_CONFIG"; then
4188 { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4189echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4190 { (exit 1); exit 1; }; }
4191 fi
4192
4193 { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4194echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
4195if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197else
4198 ac_check_lib_save_LIBS=$LIBS
4199LIBS="-lblkid $LIBBLKID $LIBS"
4200cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206
4207/* Override any GCC internal prototype to avoid an error.
4208 Use char because int might match the return type of a GCC
4209 builtin and then its argument prototype would still apply. */
4210#ifdef __cplusplus
4211extern "C"
4212#endif
4213char blkid_get_cache ();
4214int
4215main ()
4216{
4217return blkid_get_cache ();
4218 ;
4219 return 0;
4220}
4221_ACEOF
4222rm -f conftest.$ac_objext conftest$ac_exeext
4223if { (ac_try="$ac_link"
4224case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227esac
4228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_link") 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest$ac_exeext &&
4239 $as_test_x conftest$ac_exeext; then
4240 ac_cv_lib_blkid_blkid_get_cache=yes
4241else
4242 echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 ac_cv_lib_blkid_blkid_get_cache=no
4246fi
4247
4248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4249 conftest$ac_exeext conftest.$ac_ext
4250LIBS=$ac_check_lib_save_LIBS
4251fi
4252{ echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4253echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4254if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
4255 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4256 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4257else
4258 { { echo "$as_me:$LINENO: error: external blkid library not found" >&5
4259echo "$as_me: error: external blkid library not found" >&2;}
4260 { (exit 1); exit 1; }; }
4261fi
4262
4263 BLKID_CMT=#
4264 { echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4265echo "${ECHO_T}Disabling private blkid library" >&6; }
4266else
4267 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4268 DEPLIBBLKID=$LIBBLKID
4269 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4270 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4271 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4272 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4273 cat >>confdefs.h <<\_ACEOF
4274#define CONFIG_BUILD_FINDFS 1
4275_ACEOF
4276
4277 { echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4278echo "${ECHO_T}Enabling private blkid library" >&6; }
4279fi
4280
4281else
4282 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4283DEPLIBBLKID=$LIBBLKID
4284STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4285DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4286PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4287DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4288cat >>confdefs.h <<\_ACEOF
4289#define CONFIG_BUILD_FINDFS 1
4290_ACEOF
4291
4292{ echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4293echo "${ECHO_T}Enabling private blkid library by default" >&6; }
4294
4295fi
4296
4297
4298
4299
4300
4301
4302
4303
Theodore Ts'oe1052142006-10-21 21:46:47 -04004304# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004305if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004306 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004307then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004308 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4309echo "${ECHO_T}Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004310 DEBUGFS_CMT="#"
4311else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004312 DEBUGFS_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004313 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4314echo "${ECHO_T}Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004315fi
4316
4317else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004318 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4319echo "${ECHO_T}Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004320DEBUGFS_CMT=
4321
Theodore Ts'oe1052142006-10-21 21:46:47 -04004322fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004323
Theodore Ts'oe1052142006-10-21 21:46:47 -04004324
4325# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004326if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004327 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004328then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004329 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4330echo "${ECHO_T}Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004331 IMAGER_CMT="#"
4332else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004333 IMAGER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004334 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4335echo "${ECHO_T}Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004336fi
4337
4338else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004339 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4340echo "${ECHO_T}Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004341IMAGER_CMT=
4342
Theodore Ts'oe1052142006-10-21 21:46:47 -04004343fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004344
Theodore Ts'oe1052142006-10-21 21:46:47 -04004345
4346# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004347if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004348 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004349then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004350 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4351echo "${ECHO_T}Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004352 RESIZER_CMT="#"
4353else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004354 RESIZER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004355 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4356echo "${ECHO_T}Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004357fi
4358
4359else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004360 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4361echo "${ECHO_T}Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004362RESIZER_CMT=
4363
Theodore Ts'oe1052142006-10-21 21:46:47 -04004364fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004365
Theodore Ts'oe1052142006-10-21 21:46:47 -04004366
Theodore Ts'oe1052142006-10-21 21:46:47 -04004367# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004368if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004369 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004370then
4371 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004372 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4373echo "${ECHO_T}Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004374else
4375 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004376 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4377echo "${ECHO_T}Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004378fi
4379
4380else
4381 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004382 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004383 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004384 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4385echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004386 ;;
4387 *)
4388 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004389 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4390echo "${ECHO_T}Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004391esac
4392
Theodore Ts'oe1052142006-10-21 21:46:47 -04004393fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004394
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004395
Theodore Ts'oe1052142006-10-21 21:46:47 -04004396
4397# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004398if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004399 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004400then
4401 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004402 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4403echo "${ECHO_T}Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004404else
4405 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004406 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4407echo "${ECHO_T}Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004408fi
4409
4410else
4411 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004412{ echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4413echo "${ECHO_T}Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004414
Theodore Ts'oe1052142006-10-21 21:46:47 -04004415fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004416
4417
Theodore Ts'oe1052142006-10-21 21:46:47 -04004418
Theodore Ts'o32493942007-12-31 10:45:01 -05004419# Check whether --enable-tls was given.
4420if test "${enable_tls+set}" = set; then
4421 enableval=$enable_tls; if test "$enableval" = "no"
4422then
4423 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004424 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4425echo "${ECHO_T}Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004426else
4427 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004428 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4429echo "${ECHO_T}Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004430fi
4431
4432else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004433 if test -n "$WITH_DIET_LIBC"
4434then
4435 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004436 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4437echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004438else
4439 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004440 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4441echo "${ECHO_T}Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004442fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004443
4444fi
4445
4446if test "$try_tls" = "yes"
4447then
4448
4449 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4450echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4451 if test "${ac_cv_tls+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454
4455 ax_tls_keywords="__thread __declspec(thread) none"
4456 for ax_tls_keyword in $ax_tls_keywords; do
4457 case $ax_tls_keyword in
4458 none) ac_cv_tls=none ; break ;;
4459 *)
4460 cat >conftest.$ac_ext <<_ACEOF
4461/* confdefs.h. */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h. */
4466#include <stdlib.h>
4467 static void
4468 foo(void) {
4469 static $ax_tls_keyword int bar;
4470 exit(1);
4471 }
4472int
4473main ()
4474{
4475
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext
4481if { (ac_try="$ac_compile"
4482case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
4486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_compile") 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } && {
4494 test -z "$ac_c_werror_flag" ||
4495 test ! -s conftest.err
4496 } && test -s conftest.$ac_objext; then
4497 ac_cv_tls=$ax_tls_keyword ; break
4498else
4499 echo "$as_me: failed program was:" >&5
4500sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 ac_cv_tls=none
4503
4504fi
4505
4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 esac
4508 done
4509
4510fi
4511
4512
4513 if test "$ac_cv_tls" != "none"; then
4514
4515cat >>confdefs.h <<_ACEOF
4516#define TLS $ac_cv_tls
4517_ACEOF
4518
4519 fi
4520 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4521echo "${ECHO_T}$ac_cv_tls" >&6; }
4522
4523fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004524# Check whether --enable-uuidd was given.
4525if test "${enable_uuidd+set}" = set; then
4526 enableval=$enable_uuidd; if test "$enableval" = "no"
4527then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004528 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4529echo "${ECHO_T}Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004530 UUIDD_CMT="#"
4531else
4532 cat >>confdefs.h <<\_ACEOF
4533#define USE_UUIDD 1
4534_ACEOF
4535
4536 UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004537 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4538echo "${ECHO_T}Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004539fi
4540
4541else
4542 cat >>confdefs.h <<\_ACEOF
4543#define USE_UUIDD 1
4544_ACEOF
4545
4546UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004547{ echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4548echo "${ECHO_T}Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004549
4550fi
4551
4552
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004553MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004556PACKAGE=e2fsprogs
4557VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004558VERSION=0.14.1
4559cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004560#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004561_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004563cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004564#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004565_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004566
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004567
4568
4569
4570
Theodore Ts'oe1052142006-10-21 21:46:47 -04004571{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4573set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4574if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004576else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004577 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004578SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004579all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004580 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004581_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004582# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004583case `${MAKE-make} -f conftest.make 2>/dev/null` in
4584 *@@@%%%=?*=@@@%%%*)
4585 eval ac_cv_prog_make_${ac_make}_set=yes;;
4586 *)
4587 eval ac_cv_prog_make_${ac_make}_set=no;;
4588esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004589rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004591if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4592 { echo "$as_me:$LINENO: result: yes" >&5
4593echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004594 SET_MAKE=
4595else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004596 { echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004598 SET_MAKE="MAKE=${MAKE-make}"
4599fi
4600
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004601# Find a good install program. We prefer a C program (faster),
4602# so one script is as good as another. But avoid the broken or
4603# incompatible versions:
4604# SysV /etc/install, /usr/sbin/install
4605# SunOS /usr/etc/install
4606# IRIX /sbin/install
4607# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004608# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004609# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4610# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4611# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004612# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004613# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004614{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4615echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004616if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004617if test "${ac_cv_path_install+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004619else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 # Account for people who put trailing slashes in PATH elements.
4626case $as_dir/ in
4627 ./ | .// | /cC/* | \
4628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4629 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4630 /usr/ucb/* ) ;;
4631 *)
4632 # OSF1 and SCO ODT 3.0 have their own names for install.
4633 # Don't use installbsd from OSF since it installs stuff as root
4634 # by default.
4635 for ac_prog in ginstall scoinst install; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004637 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 -04004638 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004640 # AIX install. It has an incompatible calling convention.
4641 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004642 elif test $ac_prog = install &&
4643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4644 # program-specific install script used by HP pwplus--don't use.
4645 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004646 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4648 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004649 fi
4650 fi
4651 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004652 done
4653 ;;
4654esac
4655done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004656IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004657
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004658
4659fi
4660 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004661 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004662 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004663 # As a last resort, use the slow shell script. Don't cache a
4664 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004665 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004666 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004667 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004668 fi
4669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004670{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4671echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004672
4673# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4674# It thinks the first close brace ends the variable substitution.
4675test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4676
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004677test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004678
4679test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4680
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004681
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004682 MKINSTALLDIRS=
4683 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004684 case "$ac_aux_dir" in
4685 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4686 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4687 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004688 fi
4689 if test -z "$MKINSTALLDIRS"; then
4690 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4691 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004692
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004693
4694
Theodore Ts'oe1052142006-10-21 21:46:47 -04004695 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4696echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4697 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004698if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004699 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004700else
4701 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004702fi
4703
4704 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4705echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004706
4707
4708
4709
4710
4711
4712# Prepare PATH_SEPARATOR.
4713# The user is always right.
4714if test "${PATH_SEPARATOR+set}" != set; then
4715 echo "#! /bin/sh" >conf$$.sh
4716 echo "exit 0" >>conf$$.sh
4717 chmod +x conf$$.sh
4718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4719 PATH_SEPARATOR=';'
4720 else
4721 PATH_SEPARATOR=:
4722 fi
4723 rm -f conf$$.sh
4724fi
4725
4726# Find out how to test for executable files. Don't use a zero-byte file,
4727# as systems may use methods other than mode bits to determine executability.
4728cat >conf$$.file <<_ASEOF
4729#! /bin/sh
4730exit 0
4731_ASEOF
4732chmod +x conf$$.file
4733if test -x conf$$.file >/dev/null 2>&1; then
4734 ac_executable_p="test -x"
4735else
4736 ac_executable_p="test -f"
4737fi
4738rm -f conf$$.file
4739
4740# Extract the first word of "msgfmt", so it can be a program name with args.
4741set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004744if test "${ac_cv_path_MSGFMT+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747 case "$MSGFMT" in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4750 ;;
4751 *)
4752 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4753 for ac_dir in $PATH; do
4754 IFS="$ac_save_IFS"
4755 test -z "$ac_dir" && ac_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4758 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4759 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4760 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4761 break 2
4762 fi
4763 fi
4764 done
4765 done
4766 IFS="$ac_save_IFS"
4767 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4768 ;;
4769esac
4770fi
4771MSGFMT="$ac_cv_path_MSGFMT"
4772if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4774echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004775else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004776 { echo "$as_me:$LINENO: result: no" >&5
4777echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004778fi
4779
4780 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4781set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004784if test "${ac_cv_path_GMSGFMT+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787 case $GMSGFMT in
4788 [\\/]* | ?:[\\/]*)
4789 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4790 ;;
4791 *)
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004798 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 -05004799 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803done
4804done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004805IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004806
4807 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4808 ;;
4809esac
4810fi
4811GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004812if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004813 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4814echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004815else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004816 { echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004818fi
4819
4820
4821
Theodore Ts'oe1052142006-10-21 21:46:47 -04004822
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004823# Prepare PATH_SEPARATOR.
4824# The user is always right.
4825if test "${PATH_SEPARATOR+set}" != set; then
4826 echo "#! /bin/sh" >conf$$.sh
4827 echo "exit 0" >>conf$$.sh
4828 chmod +x conf$$.sh
4829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4830 PATH_SEPARATOR=';'
4831 else
4832 PATH_SEPARATOR=:
4833 fi
4834 rm -f conf$$.sh
4835fi
4836
4837# Find out how to test for executable files. Don't use a zero-byte file,
4838# as systems may use methods other than mode bits to determine executability.
4839cat >conf$$.file <<_ASEOF
4840#! /bin/sh
4841exit 0
4842_ASEOF
4843chmod +x conf$$.file
4844if test -x conf$$.file >/dev/null 2>&1; then
4845 ac_executable_p="test -x"
4846else
4847 ac_executable_p="test -f"
4848fi
4849rm -f conf$$.file
4850
4851# Extract the first word of "xgettext", so it can be a program name with args.
4852set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004855if test "${ac_cv_path_XGETTEXT+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 case "$XGETTEXT" in
4859 [\\/]* | ?:[\\/]*)
4860 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4861 ;;
4862 *)
4863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4864 for ac_dir in $PATH; do
4865 IFS="$ac_save_IFS"
4866 test -z "$ac_dir" && ac_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4869 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4870 (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
4871 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4872 break 2
4873 fi
4874 fi
4875 done
4876 done
4877 IFS="$ac_save_IFS"
4878 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4879 ;;
4880esac
4881fi
4882XGETTEXT="$ac_cv_path_XGETTEXT"
4883if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004884 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4885echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004886else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004887 { echo "$as_me:$LINENO: result: no" >&5
4888echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004889fi
4890
4891 rm -f messages.po
4892
4893
4894# Prepare PATH_SEPARATOR.
4895# The user is always right.
4896if test "${PATH_SEPARATOR+set}" != set; then
4897 echo "#! /bin/sh" >conf$$.sh
4898 echo "exit 0" >>conf$$.sh
4899 chmod +x conf$$.sh
4900 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4901 PATH_SEPARATOR=';'
4902 else
4903 PATH_SEPARATOR=:
4904 fi
4905 rm -f conf$$.sh
4906fi
4907
4908# Find out how to test for executable files. Don't use a zero-byte file,
4909# as systems may use methods other than mode bits to determine executability.
4910cat >conf$$.file <<_ASEOF
4911#! /bin/sh
4912exit 0
4913_ASEOF
4914chmod +x conf$$.file
4915if test -x conf$$.file >/dev/null 2>&1; then
4916 ac_executable_p="test -x"
4917else
4918 ac_executable_p="test -f"
4919fi
4920rm -f conf$$.file
4921
4922# Extract the first word of "msgmerge", so it can be a program name with args.
4923set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004926if test "${ac_cv_path_MSGMERGE+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 case "$MSGMERGE" in
4930 [\\/]* | ?:[\\/]*)
4931 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4932 ;;
4933 *)
4934 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4935 for ac_dir in $PATH; do
4936 IFS="$ac_save_IFS"
4937 test -z "$ac_dir" && ac_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4940 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4941 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4942 break 2
4943 fi
4944 fi
4945 done
4946 done
4947 IFS="$ac_save_IFS"
4948 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4949 ;;
4950esac
4951fi
4952MSGMERGE="$ac_cv_path_MSGMERGE"
4953if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004954 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4955echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004956else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004957 { echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004959fi
4960
4961
4962 if test "$GMSGFMT" != ":"; then
4963 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4964 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4965 : ;
4966 else
4967 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004968 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4969echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004970 GMSGFMT=":"
4971 fi
4972 fi
4973
4974 if test "$XGETTEXT" != ":"; then
4975 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4976 (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
4977 : ;
4978 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004979 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4980echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004981 XGETTEXT=":"
4982 fi
4983 rm -f messages.po
4984 fi
4985
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004987
4988
4989if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004994if test "${ac_cv_prog_RANLIB+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004996else
4997 if test -n "$RANLIB"; then
4998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001for as_dir in $PATH
5002do
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005006 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 -05005007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5010 fi
5011done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005012done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005013IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005014
5015fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005016fi
5017RANLIB=$ac_cv_prog_RANLIB
5018if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005019 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5020echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005021else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022 { echo "$as_me:$LINENO: result: no" >&5
5023echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005024fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005025
Theodore Ts'oe1052142006-10-21 21:46:47 -04005026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005027fi
5028if test -z "$ac_cv_prog_RANLIB"; then
5029 ac_ct_RANLIB=$RANLIB
5030 # Extract the first word of "ranlib", so it can be a program name with args.
5031set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04005032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005034if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037 if test -n "$ac_ct_RANLIB"; then
5038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5039else
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005046 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 -05005047 ac_cv_prog_ac_ct_RANLIB="ranlib"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051done
5052done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005053IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005054
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005055fi
5056fi
5057ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5058if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005059 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5060echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005061else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005062 { echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005064fi
5065
Theodore Ts'oe1052142006-10-21 21:46:47 -04005066 if test "x$ac_ct_RANLIB" = x; then
5067 RANLIB=":"
5068 else
5069 case $cross_compiling:$ac_tool_warned in
5070yes:)
5071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5072whose name does not start with the host triplet. If you think this
5073configuration is useful to you, please write to autoconf@gnu.org." >&5
5074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5075whose name does not start with the host triplet. If you think this
5076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5077ac_tool_warned=yes ;;
5078esac
5079 RANLIB=$ac_ct_RANLIB
5080 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005081else
5082 RANLIB="$ac_cv_prog_RANLIB"
5083fi
5084
5085
Theodore Ts'oe1052142006-10-21 21:46:47 -04005086 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5087echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005088if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090else
5091 ac_check_lib_save_LIBS=$LIBS
5092LIBS="-lcposix $LIBS"
5093cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099
Theodore Ts'oe1052142006-10-21 21:46:47 -04005100/* Override any GCC internal prototype to avoid an error.
5101 Use char because int might match the return type of a GCC
5102 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005103#ifdef __cplusplus
5104extern "C"
5105#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005106char strerror ();
5107int
5108main ()
5109{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005110return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111 ;
5112 return 0;
5113}
5114_ACEOF
5115rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005116if { (ac_try="$ac_link"
5117case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120esac
5121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest$ac_exeext &&
5132 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005133 ac_cv_lib_cposix_strerror=yes
5134else
5135 echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
Theodore Ts'oe1052142006-10-21 21:46:47 -04005138 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005140
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005142 conftest$ac_exeext conftest.$ac_ext
5143LIBS=$ac_check_lib_save_LIBS
5144fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005145{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5146echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005147if test $ac_cv_lib_cposix_strerror = yes; then
5148 LIBS="$LIBS -lcposix"
5149fi
5150
5151
5152
Theodore Ts'oe1052142006-10-21 21:46:47 -04005153{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5154echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005155if test "${ac_cv_c_const+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164
5165int
5166main ()
5167{
5168/* FIXME: Include the comments suggested by Paul. */
5169#ifndef __cplusplus
5170 /* Ultrix mips cc rejects this. */
5171 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005172 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005173 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005174 char const *const *pcpcc;
5175 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005176 /* NEC SVR4.0.2 mips cc rejects this. */
5177 struct point {int x, y;};
5178 static struct point const zero = {0,0};
5179 /* AIX XL C 1.02.0.0 rejects this.
5180 It does not let you subtract one const X* pointer from another in
5181 an arm of an if-expression whose if-part is not a constant
5182 expression */
5183 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005184 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005185 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005186 ++pcpcc;
5187 ppc = (char**) pcpcc;
5188 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005189 { /* SCO 3.2v4 cc rejects this. */
5190 char *t;
5191 char const *s = 0 ? (char *) 0 : (char const *) 0;
5192
5193 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005194 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005195 }
5196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5197 int x[] = {25, 17};
5198 const int *foo = &x[0];
5199 ++foo;
5200 }
5201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5202 typedef const int *iptr;
5203 iptr p = 0;
5204 ++p;
5205 }
5206 { /* AIX XL C 1.02.0.0 rejects this saying
5207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5208 struct s { int j; const int *ap[3]; };
5209 struct s *b; b->j = 5;
5210 }
5211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5212 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005213 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005214 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005215 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005216#endif
5217
5218 ;
5219 return 0;
5220}
5221_ACEOF
5222rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005223if { (ac_try="$ac_compile"
5224case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227esac
5228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005239 ac_cv_c_const=yes
5240else
5241 echo "$as_me: failed program was:" >&5
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
Theodore Ts'oe1052142006-10-21 21:46:47 -04005244 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005245fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005246
5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005248fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005249{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5250echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005251if test $ac_cv_c_const = no; then
5252
5253cat >>confdefs.h <<\_ACEOF
5254#define const
5255_ACEOF
5256
5257fi
5258
5259
Theodore Ts'oe1052142006-10-21 21:46:47 -04005260 { echo "$as_me:$LINENO: checking for signed" >&5
5261echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005262if test "${bh_cv_c_signed+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h. */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h. */
5271
5272int
5273main ()
5274{
5275signed char x;
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005281if { (ac_try="$ac_compile"
5282case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285esac
5286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005297 bh_cv_c_signed=yes
5298else
5299 echo "$as_me: failed program was:" >&5
5300sed 's/^/| /' conftest.$ac_ext >&5
5301
Theodore Ts'oe1052142006-10-21 21:46:47 -04005302 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005304
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005306fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005307{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5308echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005309 if test $bh_cv_c_signed = no; then
5310
5311cat >>confdefs.h <<\_ACEOF
5312#define signed
5313_ACEOF
5314
5315 fi
5316
Theodore Ts'oe1052142006-10-21 21:46:47 -04005317{ echo "$as_me:$LINENO: checking for inline" >&5
5318echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005319if test "${ac_cv_c_inline+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322 ac_cv_c_inline=no
5323for ac_kw in inline __inline__ __inline; do
5324 cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h. */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h. */
5330#ifndef __cplusplus
5331typedef int foo_t;
5332static $ac_kw foo_t static_foo () {return 0; }
5333$ac_kw foo_t foo () {return 0; }
5334#endif
5335
5336_ACEOF
5337rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005338if { (ac_try="$ac_compile"
5339case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342esac
5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005354 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005355else
5356 echo "$as_me: failed program was:" >&5
5357sed 's/^/| /' conftest.$ac_ext >&5
5358
Theodore Ts'oe1052142006-10-21 21:46:47 -04005359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005361
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005364done
5365
5366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005367{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5368echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005369
5370
5371case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005372 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005373 *)
5374 case $ac_cv_c_inline in
5375 no) ac_val=;;
5376 *) ac_val=$ac_cv_c_inline;;
5377 esac
5378 cat >>confdefs.h <<_ACEOF
5379#ifndef __cplusplus
5380#define inline $ac_val
5381#endif
5382_ACEOF
5383 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005384esac
5385
Theodore Ts'oe1052142006-10-21 21:46:47 -04005386{ echo "$as_me:$LINENO: checking for off_t" >&5
5387echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005388if test "${ac_cv_type_off_t+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005390else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005391 cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005398typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005399int
5400main ()
5401{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005402if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005403 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005405 return 0;
5406 ;
5407 return 0;
5408}
5409_ACEOF
5410rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005411if { (ac_try="$ac_compile"
5412case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005427 ac_cv_type_off_t=yes
5428else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005429 echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005431
Theodore Ts'oe1052142006-10-21 21:46:47 -04005432 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005433fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005434
5435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005437{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5438echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005439if test $ac_cv_type_off_t = yes; then
5440 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005441else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005442
5443cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005444#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005445_ACEOF
5446
5447fi
5448
Theodore Ts'oe1052142006-10-21 21:46:47 -04005449{ echo "$as_me:$LINENO: checking for size_t" >&5
5450echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005451if test "${ac_cv_type_size_t+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454 cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
5460$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005461typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005462int
5463main ()
5464{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005465if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005466 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005467if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005468 return 0;
5469 ;
5470 return 0;
5471}
5472_ACEOF
5473rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005474if { (ac_try="$ac_compile"
5475case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478esac
5479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005486 (exit $ac_status); } && {
5487 test -z "$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005490 ac_cv_type_size_t=yes
5491else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005492 echo "$as_me: failed program was:" >&5
5493sed 's/^/| /' conftest.$ac_ext >&5
5494
Theodore Ts'oe1052142006-10-21 21:46:47 -04005495 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005496fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005497
5498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005500{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5501echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005502if test $ac_cv_type_size_t = yes; then
5503 :
5504else
5505
5506cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005507#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005508_ACEOF
5509
5510fi
5511
5512
Theodore Ts'oe1052142006-10-21 21:46:47 -04005513 { echo "$as_me:$LINENO: checking for long long" >&5
5514echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005515if test "${ac_cv_type_long_long+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
5524long long ll = 1LL; int i = 63;
5525int
5526main ()
5527{
5528long long llmax = (long long) -1;
5529 return ll << i | ll >> i | llmax / ll | llmax % ll;
5530 ;
5531 return 0;
5532}
5533_ACEOF
5534rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005535if { (ac_try="$ac_link"
5536case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005547 (exit $ac_status); } && {
5548 test -z "$ac_c_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest$ac_exeext &&
5551 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005552 ac_cv_type_long_long=yes
5553else
5554 echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
Theodore Ts'oe1052142006-10-21 21:46:47 -04005557 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005558fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005559
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005561 conftest$ac_exeext conftest.$ac_ext
5562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005563{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5564echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005565 if test $ac_cv_type_long_long = yes; then
5566
5567cat >>confdefs.h <<\_ACEOF
5568#define HAVE_LONG_LONG 1
5569_ACEOF
5570
5571 fi
5572
5573
Theodore Ts'oe1052142006-10-21 21:46:47 -04005574 { echo "$as_me:$LINENO: checking for long double" >&5
5575echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005576if test "${gt_cv_c_long_double+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579 if test "$GCC" = yes; then
5580 gt_cv_c_long_double=yes
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588
5589 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5590 long double foo = 0.0;
5591 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5592 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5593
5594int
5595main ()
5596{
5597
5598 ;
5599 return 0;
5600}
5601_ACEOF
5602rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005603if { (ac_try="$ac_compile"
5604case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005619 gt_cv_c_long_double=yes
5620else
5621 echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
Theodore Ts'oe1052142006-10-21 21:46:47 -04005624 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005625fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005626
5627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005628 fi
5629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005630{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5631echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005632 if test $gt_cv_c_long_double = yes; then
5633
5634cat >>confdefs.h <<\_ACEOF
5635#define HAVE_LONG_DOUBLE 1
5636_ACEOF
5637
5638 fi
5639
5640
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5642echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005643if test "${gt_cv_c_wchar_t+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h. */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h. */
5652#include <stddef.h>
5653 wchar_t foo = (wchar_t)'\0';
5654int
5655main ()
5656{
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5662rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005663if { (ac_try="$ac_compile"
5664case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005679 gt_cv_c_wchar_t=yes
5680else
5681 echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
Theodore Ts'oe1052142006-10-21 21:46:47 -04005684 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005686
5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005689{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5690echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005691 if test $gt_cv_c_wchar_t = yes; then
5692
5693cat >>confdefs.h <<\_ACEOF
5694#define HAVE_WCHAR_T 1
5695_ACEOF
5696
5697 fi
5698
5699
Theodore Ts'oe1052142006-10-21 21:46:47 -04005700 { echo "$as_me:$LINENO: checking for wint_t" >&5
5701echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702if test "${gt_cv_c_wint_t+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h. */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h. */
5711#include <wchar.h>
5712 wint_t foo = (wchar_t)'\0';
5713int
5714main ()
5715{
5716
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005722if { (ac_try="$ac_compile"
5723case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005738 gt_cv_c_wint_t=yes
5739else
5740 echo "$as_me: failed program was:" >&5
5741sed 's/^/| /' conftest.$ac_ext >&5
5742
Theodore Ts'oe1052142006-10-21 21:46:47 -04005743 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005745
5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005748{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5749echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005750 if test $gt_cv_c_wint_t = yes; then
5751
5752cat >>confdefs.h <<\_ACEOF
5753#define HAVE_WINT_T 1
5754_ACEOF
5755
5756 fi
5757
5758
Theodore Ts'oe1052142006-10-21 21:46:47 -04005759 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5760echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764 cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h. */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h. */
5770#include <sys/types.h>
5771#include <inttypes.h>
5772int
5773main ()
5774{
5775uintmax_t i = (uintmax_t) -1;
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005781if { (ac_try="$ac_compile"
5782case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785esac
5786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005797 jm_ac_cv_header_inttypes_h=yes
5798else
5799 echo "$as_me: failed program was:" >&5
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
Theodore Ts'oe1052142006-10-21 21:46:47 -04005802 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005804
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005806fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005807{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5808echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005809 if test $jm_ac_cv_header_inttypes_h = yes; then
5810
5811cat >>confdefs.h <<_ACEOF
5812#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5813_ACEOF
5814
5815 fi
5816
5817
Theodore Ts'oe1052142006-10-21 21:46:47 -04005818 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5819echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005820if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823 cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h. */
5829#include <sys/types.h>
5830#include <stdint.h>
5831int
5832main ()
5833{
5834uintmax_t i = (uintmax_t) -1;
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005840if { (ac_try="$ac_compile"
5841case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005856 jm_ac_cv_header_stdint_h=yes
5857else
5858 echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
Theodore Ts'oe1052142006-10-21 21:46:47 -04005861 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005863
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005865fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005866{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5867echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005868 if test $jm_ac_cv_header_stdint_h = yes; then
5869
5870cat >>confdefs.h <<_ACEOF
5871#define HAVE_STDINT_H_WITH_UINTMAX 1
5872_ACEOF
5873
5874 fi
5875
5876
5877
5878
Theodore Ts'oe1052142006-10-21 21:46:47 -04005879 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5880echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005881if test "${gt_cv_c_intmax_t+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884 cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h. */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h. */
5890
5891#include <stddef.h>
5892#include <stdlib.h>
5893#if HAVE_STDINT_H_WITH_UINTMAX
5894#include <stdint.h>
5895#endif
5896#if HAVE_INTTYPES_H_WITH_UINTMAX
5897#include <inttypes.h>
5898#endif
5899
5900int
5901main ()
5902{
5903intmax_t x = -1;
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005909if { (ac_try="$ac_compile"
5910case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005925 gt_cv_c_intmax_t=yes
5926else
5927 echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
Theodore Ts'oe1052142006-10-21 21:46:47 -04005930 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005931fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005932
5933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005934fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005935{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5936echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005937 if test $gt_cv_c_intmax_t = yes; then
5938
5939cat >>confdefs.h <<\_ACEOF
5940#define HAVE_INTMAX_T 1
5941_ACEOF
5942
5943 fi
5944
5945
5946
Theodore Ts'oe1052142006-10-21 21:46:47 -04005947 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5948echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005949if test "${gt_cv_func_printf_posix+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952
5953 if test "$cross_compiling" = yes; then
5954
5955 cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
5961
5962#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5963 notposix
5964#endif
5965
5966_ACEOF
5967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5968 $EGREP "notposix" >/dev/null 2>&1; then
5969 gt_cv_func_printf_posix="guessing no"
5970else
5971 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005972fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005973rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005975
5976else
5977 cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h. */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
5982/* end confdefs.h. */
5983
5984#include <stdio.h>
5985#include <string.h>
5986/* The string "%2$d %1$d", with dollar characters protected from the shell's
5987 dollar expansion (possibly an autoconf bug). */
5988static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5989static char buf[100];
5990int main ()
5991{
5992 sprintf (buf, format, 33, 55);
5993 return (strcmp (buf, "55 33") != 0);
5994}
5995_ACEOF
5996rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997if { (ac_try="$ac_link"
5998case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001esac
6002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006007 { (case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 gt_cv_func_printf_posix=yes
6017else
6018 echo "$as_me: program exited with status $ac_status" >&5
6019echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022( exit $ac_status )
6023gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006025rm -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 -05006026fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006027
Theodore Ts'oe1052142006-10-21 21:46:47 -04006028
6029
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006031{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6032echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033 case $gt_cv_func_printf_posix in
6034 *yes)
6035
6036cat >>confdefs.h <<\_ACEOF
6037#define HAVE_POSIX_PRINTF 1
6038_ACEOF
6039
6040 ;;
6041 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006042
6043# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6044# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04006045{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6046echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047if test "${ac_cv_working_alloca_h+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050 cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h. */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006056#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006057int
6058main ()
6059{
6060char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006061 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062 ;
6063 return 0;
6064}
6065_ACEOF
6066rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006067if { (ac_try="$ac_link"
6068case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071esac
6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest$ac_exeext &&
6083 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006085else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086 echo "$as_me: failed program was:" >&5
6087sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006088
Theodore Ts'oe1052142006-10-21 21:46:47 -04006089 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006091
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093 conftest$ac_exeext conftest.$ac_ext
6094fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006095{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6096echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006097if test $ac_cv_working_alloca_h = yes; then
6098
6099cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006100#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006102
6103fi
6104
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105{ echo "$as_me:$LINENO: checking for alloca" >&5
6106echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107if test "${ac_cv_func_alloca_works+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006109else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006116#ifdef __GNUC__
6117# define alloca __builtin_alloca
6118#else
6119# ifdef _MSC_VER
6120# include <malloc.h>
6121# define alloca _alloca
6122# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006123# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006124# include <alloca.h>
6125# else
6126# ifdef _AIX
6127 #pragma alloca
6128# else
6129# ifndef alloca /* predefined by HP cc +Olibcalls */
6130char *alloca ();
6131# endif
6132# endif
6133# endif
6134# endif
6135#endif
6136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006137int
6138main ()
6139{
6140char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006141 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 ;
6143 return 0;
6144}
6145_ACEOF
6146rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006147if { (ac_try="$ac_link"
6148case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151esac
6152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest$ac_exeext &&
6163 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006164 ac_cv_func_alloca_works=yes
6165else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006166 echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006168
Theodore Ts'oe1052142006-10-21 21:46:47 -04006169 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006171
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006173 conftest$ac_exeext conftest.$ac_ext
6174fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006175{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6176echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006177
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006178if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179
6180cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006181#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006183
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006184else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6186# that cause trouble. Some versions do not even contain alloca or
6187# contain a buggy version. If you still want to use their alloca,
6188# use ar to extract alloca.o from them instead of compiling alloca.c.
6189
Theodore Ts'oe1052142006-10-21 21:46:47 -04006190ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006191
6192cat >>confdefs.h <<\_ACEOF
6193#define C_ALLOCA 1
6194_ACEOF
6195
6196
Theodore Ts'oe1052142006-10-21 21:46:47 -04006197{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6198echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199if test "${ac_cv_os_cray+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202 cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h. */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006208#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006209webecray
6210#else
6211wenotbecray
6212#endif
6213
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006214_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006216 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006217 ac_cv_os_cray=yes
6218else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006219 ac_cv_os_cray=no
6220fi
6221rm -f conftest*
6222
6223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006224{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6225echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006226if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006227 for ac_func in _getb67 GETB67 getb67; do
6228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006232 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006233else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006234 cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h. */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h. */
6240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6242#define $ac_func innocuous_$ac_func
6243
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006244/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245 which can conflict with char $ac_func (); below.
6246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6247 <limits.h> exists even on freestanding compilers. */
6248
6249#ifdef __STDC__
6250# include <limits.h>
6251#else
6252# include <assert.h>
6253#endif
6254
6255#undef $ac_func
6256
Theodore Ts'oe1052142006-10-21 21:46:47 -04006257/* Override any GCC internal prototype to avoid an error.
6258 Use char because int might match the return type of a GCC
6259 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006260#ifdef __cplusplus
6261extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006262#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006263char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006264/* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006267#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006268choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006269#endif
6270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006271int
6272main ()
6273{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006274return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 ;
6276 return 0;
6277}
6278_ACEOF
6279rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006280if { (ac_try="$ac_link"
6281case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest$ac_exeext &&
6296 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006297 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299 echo "$as_me: failed program was:" >&5
6300sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006301
Theodore Ts'oe1052142006-10-21 21:46:47 -04006302 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006304
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006306 conftest$ac_exeext conftest.$ac_ext
6307fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006308ac_res=`eval echo '${'$as_ac_var'}'`
6309 { echo "$as_me:$LINENO: result: $ac_res" >&5
6310echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006311if test `eval echo '${'$as_ac_var'}'` = yes; then
6312
6313cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006314#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006315_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006316
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006317 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006318fi
6319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006320 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006321fi
6322
Theodore Ts'oe1052142006-10-21 21:46:47 -04006323{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6324echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006325if test "${ac_cv_c_stack_direction+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006327else
6328 if test "$cross_compiling" = yes; then
6329 ac_cv_c_stack_direction=0
6330else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006331 cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h. */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006337$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006339find_stack_direction ()
6340{
6341 static char *addr = 0;
6342 auto char dummy;
6343 if (addr == 0)
6344 {
6345 addr = &dummy;
6346 return find_stack_direction ();
6347 }
6348 else
6349 return (&dummy > addr) ? 1 : -1;
6350}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006351
6352int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006353main ()
6354{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006355 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006356}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006357_ACEOF
6358rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006359if { (ac_try="$ac_link"
6360case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363esac
6364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372esac
6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006378 ac_cv_c_stack_direction=1
6379else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006380 echo "$as_me: program exited with status $ac_status" >&5
6381echo "$as_me: failed program was:" >&5
6382sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006384( exit $ac_status )
6385ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006387rm -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 -05006388fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006389
6390
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006392{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6393echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006394
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006396#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006397_ACEOF
6398
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006399
6400fi
6401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402
6403
6404for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006405do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006412fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006413ac_res=`eval echo '${'$as_ac_Header'}'`
6414 { echo "$as_me:$LINENO: result: $ac_res" >&5
6415echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006416else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006417 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h. */
6426$ac_includes_default
6427#include <$ac_header>
6428_ACEOF
6429rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006430if { (ac_try="$ac_compile"
6431case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434esac
6435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006442 (exit $ac_status); } && {
6443 test -z "$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446 ac_header_compiler=yes
6447else
6448 echo "$as_me: failed program was:" >&5
6449sed 's/^/| /' conftest.$ac_ext >&5
6450
Theodore Ts'oe1052142006-10-21 21:46:47 -04006451 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006452fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006453
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457
6458# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467#include <$ac_header>
6468_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006469if { (ac_try="$ac_cpp conftest.$ac_ext"
6470case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006481 (exit $ac_status); } >/dev/null && {
6482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6483 test ! -s conftest.err
6484 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485 ac_header_preproc=yes
6486else
6487 echo "$as_me: failed program was:" >&5
6488sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 ac_header_preproc=no
6491fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006494{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6495echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496
6497# So? What about this header?
6498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6499 yes:no: )
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6504 ac_header_preproc=yes
6505 ;;
6506 no:yes:* )
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520 ;;
6521esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006522{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
6527 eval "$as_ac_Header=\$ac_header_preproc"
6528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006529ac_res=`eval echo '${'$as_ac_Header'}'`
6530 { echo "$as_me:$LINENO: result: $ac_res" >&5
6531echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532
6533fi
6534if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535 cat >>confdefs.h <<_ACEOF
6536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537_ACEOF
6538
6539fi
6540
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006541done
6542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006543
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006544for ac_func in getpagesize
6545do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006547{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6549if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552 cat >conftest.$ac_ext <<_ACEOF
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
6558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6560#define $ac_func innocuous_$ac_func
6561
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006562/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006563 which can conflict with char $ac_func (); below.
6564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 <limits.h> exists even on freestanding compilers. */
6566
6567#ifdef __STDC__
6568# include <limits.h>
6569#else
6570# include <assert.h>
6571#endif
6572
6573#undef $ac_func
6574
Theodore Ts'oe1052142006-10-21 21:46:47 -04006575/* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006578#ifdef __cplusplus
6579extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006581char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006582/* The GNU C library defines this for functions which it implements
6583 to always fail with ENOSYS. Some functions are actually named
6584 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006585#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006586choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006587#endif
6588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589int
6590main ()
6591{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006592return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593 ;
6594 return 0;
6595}
6596_ACEOF
6597rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006598if { (ac_try="$ac_link"
6599case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602esac
6603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest$ac_exeext &&
6614 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006616else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617 echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006619
Theodore Ts'oe1052142006-10-21 21:46:47 -04006620 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006622
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006624 conftest$ac_exeext conftest.$ac_ext
6625fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006626ac_res=`eval echo '${'$as_ac_var'}'`
6627 { echo "$as_me:$LINENO: result: $ac_res" >&5
6628echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629if test `eval echo '${'$as_ac_var'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6632_ACEOF
6633
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006634fi
6635done
6636
Theodore Ts'oe1052142006-10-21 21:46:47 -04006637{ echo "$as_me:$LINENO: checking for working mmap" >&5
6638echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006641else
6642 if test "$cross_compiling" = yes; then
6643 ac_cv_func_mmap_fixed_mapped=no
6644else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645 cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h. */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h. */
6651$ac_includes_default
6652/* malloc might have been renamed as rpl_malloc. */
6653#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006654
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006655/* Thanks to Mike Haertel and Jim Avera for this test.
6656 Here is a matrix of mmap possibilities:
6657 mmap private not fixed
6658 mmap private fixed at somewhere currently unmapped
6659 mmap private fixed at somewhere already mapped
6660 mmap shared not fixed
6661 mmap shared fixed at somewhere currently unmapped
6662 mmap shared fixed at somewhere already mapped
6663 For private mappings, we should verify that changes cannot be read()
6664 back from the file, nor mmap's back from the file at a different
6665 address. (There have been systems where private was not correctly
6666 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006667 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006668 like early versions of FreeBSD and possibly contemporary NetBSD.)
6669 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006671
6672 Grep wants private fixed already mapped.
6673 The main things grep needs to know about mmap are:
6674 * does it exist and is it safe to write into the mmap'd area
6675 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006677#include <fcntl.h>
6678#include <sys/mman.h>
6679
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006680#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681char *malloc ();
6682#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006683
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006685#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006686/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006687# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006688# define HAVE_SYS_PARAM_H 1
6689# endif
6690
6691# ifdef _SC_PAGESIZE
6692# define getpagesize() sysconf(_SC_PAGESIZE)
6693# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006694# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006695# include <sys/param.h>
6696# ifdef EXEC_PAGESIZE
6697# define getpagesize() EXEC_PAGESIZE
6698# else /* no EXEC_PAGESIZE */
6699# ifdef NBPG
6700# define getpagesize() NBPG * CLSIZE
6701# ifndef CLSIZE
6702# define CLSIZE 1
6703# endif /* no CLSIZE */
6704# else /* no NBPG */
6705# ifdef NBPC
6706# define getpagesize() NBPC
6707# else /* no NBPC */
6708# ifdef PAGESIZE
6709# define getpagesize() PAGESIZE
6710# endif /* PAGESIZE */
6711# endif /* no NBPC */
6712# endif /* no NBPG */
6713# endif /* no EXEC_PAGESIZE */
6714# else /* no HAVE_SYS_PARAM_H */
6715# define getpagesize() 8192 /* punt totally */
6716# endif /* no HAVE_SYS_PARAM_H */
6717# endif /* no _SC_PAGESIZE */
6718
6719#endif /* no HAVE_GETPAGESIZE */
6720
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006721int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006723{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006724 char *data, *data2, *data3;
6725 int i, pagesize;
6726 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730 /* First, make a file with some known garbage in it. */
6731 data = (char *) malloc (pagesize);
6732 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006733 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734 for (i = 0; i < pagesize; ++i)
6735 *(data + i) = rand ();
6736 umask (0);
6737 fd = creat ("conftest.mmap", 0600);
6738 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006739 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006741 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006744 /* Next, try to mmap the file at a fixed address which already has
6745 something else allocated at it. If we can, also make sure that
6746 we see the same garbage. */
6747 fd = open ("conftest.mmap", O_RDWR);
6748 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006749 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750 data2 = (char *) malloc (2 * pagesize);
6751 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006752 return 1;
6753 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006756 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757 for (i = 0; i < pagesize; ++i)
6758 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006759 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761 /* Finally, make sure that changes to the mapped area do not
6762 percolate back to the file as seen by read(). (This is a bug on
6763 some variants of i386 svr4.0.) */
6764 for (i = 0; i < pagesize; ++i)
6765 *(data2 + i) = *(data2 + i) + 1;
6766 data3 = (char *) malloc (pagesize);
6767 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006768 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006770 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771 for (i = 0; i < pagesize; ++i)
6772 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006773 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006774 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006775 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006776}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777_ACEOF
6778rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006779if { (ac_try="$ac_link"
6780case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783esac
6784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006789 { (case "(($ac_try" in
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6792esac
6793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006798 ac_cv_func_mmap_fixed_mapped=yes
6799else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800 echo "$as_me: program exited with status $ac_status" >&5
6801echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804( exit $ac_status )
6805ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006806fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006807rm -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 -05006808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006809
6810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006812{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6813echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006814if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815
6816cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006817#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006818_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006819
6820fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006822
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006823
Theodore Ts'oe1052142006-10-21 21:46:47 -04006824 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6825echo $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 -05006826if test "${ac_cv_gnu_library_2_1+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006828else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829 cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h. */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006835
6836#include <features.h>
6837#ifdef __GNU_LIBRARY__
6838 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6839 Lucky GNU user
6840 #endif
6841#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842
6843_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006846 ac_cv_gnu_library_2_1=yes
6847else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006848 ac_cv_gnu_library_2_1=no
6849fi
6850rm -f conftest*
6851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852
6853
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006854fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006855{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6856echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006857
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006858 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006859
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006860
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861
6862
Theodore Ts'oe1052142006-10-21 21:46:47 -04006863 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6864echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006867else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006869 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006870
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006871 # Guess based on the CPU.
6872 case "$host_cpu" in
6873 alpha* | i3456786 | m68k | s390*)
6874 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6875 *)
6876 gt_cv_int_divbyzero_sigfpe="guessing no";;
6877 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006878
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006886
6887#include <stdlib.h>
6888#include <signal.h>
6889
6890static void
6891#ifdef __cplusplus
6892sigfpe_handler (int sig)
6893#else
6894sigfpe_handler (sig) int sig;
6895#endif
6896{
6897 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6898 exit (sig != SIGFPE);
6899}
6900
6901int x = 1;
6902int y = 0;
6903int z;
6904int nan;
6905
6906int main ()
6907{
6908 signal (SIGFPE, sigfpe_handler);
6909/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6910#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6911 signal (SIGTRAP, sigfpe_handler);
6912#endif
6913/* Linux/SPARC yields signal SIGILL. */
6914#if defined (__sparc__) && defined (__linux__)
6915 signal (SIGILL, sigfpe_handler);
6916#endif
6917
6918 z = x / y;
6919 nan = y / y;
6920 exit (1);
6921}
6922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923_ACEOF
6924rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006925if { (ac_try="$ac_link"
6926case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929esac
6930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006935 { (case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938esac
6939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006944 gt_cv_int_divbyzero_sigfpe=yes
6945else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006946 echo "$as_me: program exited with status $ac_status" >&5
6947echo "$as_me: failed program was:" >&5
6948sed 's/^/| /' conftest.$ac_ext >&5
6949
6950( exit $ac_status )
6951gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006952fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006953rm -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 -04006954fi
6955
Theodore Ts'oe1052142006-10-21 21:46:47 -04006956
6957
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006959{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6960echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006961 case "$gt_cv_int_divbyzero_sigfpe" in
6962 *yes) value=1;;
6963 *) value=0;;
6964 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006965
6966cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006967#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006969
6970
6971
Theodore Ts'oe1052142006-10-21 21:46:47 -04006972 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6973echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977 cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
6983unsigned long long ull = 1ULL; int i = 63;
6984int
6985main ()
6986{
6987unsigned long long ullmax = (unsigned long long) -1;
6988 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6989 ;
6990 return 0;
6991}
6992_ACEOF
6993rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006994if { (ac_try="$ac_link"
6995case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998esac
6999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest$ac_exeext &&
7010 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011 ac_cv_type_unsigned_long_long=yes
7012else
7013 echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
Theodore Ts'oe1052142006-10-21 21:46:47 -04007016 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007017fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007018
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020 conftest$ac_exeext conftest.$ac_ext
7021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007022{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7023echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024 if test $ac_cv_type_unsigned_long_long = yes; then
7025
7026cat >>confdefs.h <<\_ACEOF
7027#define HAVE_UNSIGNED_LONG_LONG 1
7028_ACEOF
7029
7030 fi
7031
7032
7033
7034
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007035 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 -05007036
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007037 test $ac_cv_type_unsigned_long_long = yes \
7038 && ac_type='unsigned long long' \
7039 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040
7041cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007042#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043_ACEOF
7044
7045 else
7046
7047cat >>confdefs.h <<\_ACEOF
7048#define HAVE_UINTMAX_T 1
7049_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007050
7051 fi
7052
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007053
Theodore Ts'oe1052142006-10-21 21:46:47 -04007054 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7055echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056if test "${gt_cv_header_inttypes_h+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007058else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059
7060 cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h. */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007066#include <sys/types.h>
7067#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068int
7069main ()
7070{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072 ;
7073 return 0;
7074}
7075_ACEOF
7076rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007077if { (ac_try="$ac_compile"
7078case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081esac
7082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007093 gt_cv_header_inttypes_h=yes
7094else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007095 echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007097
Theodore Ts'oe1052142006-10-21 21:46:47 -04007098 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007100
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102
7103fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007104{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7105echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007106 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107
7108cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007109#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007110_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007111
7112 fi
7113
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007116 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007117 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7118echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007119if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007121else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122
7123 cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h. */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007129#include <inttypes.h>
7130#ifdef PRId32
7131char *p = PRId32;
7132#endif
7133
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134int
7135main ()
7136{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138 ;
7139 return 0;
7140}
7141_ACEOF
7142rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007143if { (ac_try="$ac_compile"
7144case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7147esac
7148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007155 (exit $ac_status); } && {
7156 test -z "$ac_c_werror_flag" ||
7157 test ! -s conftest.err
7158 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007159 gt_cv_inttypes_pri_broken=no
7160else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161 echo "$as_me: failed program was:" >&5
7162sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007163
Theodore Ts'oe1052142006-10-21 21:46:47 -04007164 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007166
7167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168
7169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007170{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7171echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007172 fi
7173 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174
7175cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007176#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007178
7179 fi
7180
7181
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183for ac_header in stdint.h
7184do
7185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007192ac_res=`eval echo '${'$as_ac_Header'}'`
7193 { echo "$as_me:$LINENO: result: $ac_res" >&5
7194echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007195else
7196 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007197{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199cat >conftest.$ac_ext <<_ACEOF
7200/* confdefs.h. */
7201_ACEOF
7202cat confdefs.h >>conftest.$ac_ext
7203cat >>conftest.$ac_ext <<_ACEOF
7204/* end confdefs.h. */
7205$ac_includes_default
7206#include <$ac_header>
7207_ACEOF
7208rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007209if { (ac_try="$ac_compile"
7210case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213esac
7214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007221 (exit $ac_status); } && {
7222 test -z "$ac_c_werror_flag" ||
7223 test ! -s conftest.err
7224 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225 ac_header_compiler=yes
7226else
7227 echo "$as_me: failed program was:" >&5
7228sed 's/^/| /' conftest.$ac_ext >&5
7229
Theodore Ts'oe1052142006-10-21 21:46:47 -04007230 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007232
7233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7235echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236
7237# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007238{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240cat >conftest.$ac_ext <<_ACEOF
7241/* confdefs.h. */
7242_ACEOF
7243cat confdefs.h >>conftest.$ac_ext
7244cat >>conftest.$ac_ext <<_ACEOF
7245/* end confdefs.h. */
7246#include <$ac_header>
7247_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007248if { (ac_try="$ac_cpp conftest.$ac_ext"
7249case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252esac
7253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007260 (exit $ac_status); } >/dev/null && {
7261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264 ac_header_preproc=yes
7265else
7266 echo "$as_me: failed program was:" >&5
7267sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_header_preproc=no
7270fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007272rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007273{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7274echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275
7276# So? What about this header?
7277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7278 yes:no: )
7279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7283 ac_header_preproc=yes
7284 ;;
7285 no:yes:* )
7286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7289echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7293echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007299 ;;
7300esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007301{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306 eval "$as_ac_Header=\$ac_header_preproc"
7307fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007308ac_res=`eval echo '${'$as_ac_Header'}'`
7309 { echo "$as_me:$LINENO: result: $ac_res" >&5
7310echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311
7312fi
7313if test `eval echo '${'$as_ac_Header'}'` = yes; then
7314 cat >>confdefs.h <<_ACEOF
7315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7316_ACEOF
7317
7318fi
7319
7320done
7321
Theodore Ts'oe1052142006-10-21 21:46:47 -04007322 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7323echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007324 result=
7325 cat >conftest.$ac_ext <<_ACEOF
7326/* confdefs.h. */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h. */
7331
7332#include <limits.h>
7333#if HAVE_STDINT_H
7334#include <stdint.h>
7335#endif
7336#ifdef SIZE_MAX
7337Found it
7338#endif
7339
7340_ACEOF
7341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7342 $EGREP "Found it" >/dev/null 2>&1; then
7343 result=yes
7344fi
7345rm -f conftest*
7346
7347 if test -z "$result"; then
7348 if test "$cross_compiling" = yes; then
7349 # Depending upon the size, compute the lo and hi bounds.
7350cat >conftest.$ac_ext <<_ACEOF
7351/* confdefs.h. */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h. */
7356#include <stddef.h>
7357int
7358main ()
7359{
7360static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7361test_array [0] = 0
7362
7363 ;
7364 return 0;
7365}
7366_ACEOF
7367rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007368if { (ac_try="$ac_compile"
7369case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7372esac
7373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007384 ac_lo=0 ac_mid=0
7385 while :; do
7386 cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h. */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h. */
7392#include <stddef.h>
7393int
7394main ()
7395{
7396static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7397test_array [0] = 0
7398
7399 ;
7400 return 0;
7401}
7402_ACEOF
7403rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007404if { (ac_try="$ac_compile"
7405case "(($ac_try" in
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7408esac
7409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420 ac_hi=$ac_mid; break
7421else
7422 echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
7424
Theodore Ts'oe1052142006-10-21 21:46:47 -04007425 ac_lo=`expr $ac_mid + 1`
7426 if test $ac_lo -le $ac_mid; then
7427 ac_lo= ac_hi=
7428 break
7429 fi
7430 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007431fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007432
7433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007434 done
7435else
7436 echo "$as_me: failed program was:" >&5
7437sed 's/^/| /' conftest.$ac_ext >&5
7438
Theodore Ts'oe1052142006-10-21 21:46:47 -04007439 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440/* confdefs.h. */
7441_ACEOF
7442cat confdefs.h >>conftest.$ac_ext
7443cat >>conftest.$ac_ext <<_ACEOF
7444/* end confdefs.h. */
7445#include <stddef.h>
7446int
7447main ()
7448{
7449static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7450test_array [0] = 0
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007457if { (ac_try="$ac_compile"
7458case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461esac
7462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007473 ac_hi=-1 ac_mid=-1
7474 while :; do
7475 cat >conftest.$ac_ext <<_ACEOF
7476/* confdefs.h. */
7477_ACEOF
7478cat confdefs.h >>conftest.$ac_ext
7479cat >>conftest.$ac_ext <<_ACEOF
7480/* end confdefs.h. */
7481#include <stddef.h>
7482int
7483main ()
7484{
7485static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7486test_array [0] = 0
7487
7488 ;
7489 return 0;
7490}
7491_ACEOF
7492rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007493if { (ac_try="$ac_compile"
7494case "(($ac_try" in
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7497esac
7498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007505 (exit $ac_status); } && {
7506 test -z "$ac_c_werror_flag" ||
7507 test ! -s conftest.err
7508 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509 ac_lo=$ac_mid; break
7510else
7511 echo "$as_me: failed program was:" >&5
7512sed 's/^/| /' conftest.$ac_ext >&5
7513
Theodore Ts'oe1052142006-10-21 21:46:47 -04007514 ac_hi=`expr '(' $ac_mid ')' - 1`
7515 if test $ac_mid -le $ac_hi; then
7516 ac_lo= ac_hi=
7517 break
7518 fi
7519 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007521
7522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523 done
7524else
7525 echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
Theodore Ts'oe1052142006-10-21 21:46:47 -04007528 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007530
7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007533
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007535# Binary search between lo and hi bounds.
7536while test "x$ac_lo" != "x$ac_hi"; do
7537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7538 cat >conftest.$ac_ext <<_ACEOF
7539/* confdefs.h. */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h. */
7544#include <stddef.h>
7545int
7546main ()
7547{
7548static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7549test_array [0] = 0
7550
7551 ;
7552 return 0;
7553}
7554_ACEOF
7555rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007556if { (ac_try="$ac_compile"
7557case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7560esac
7561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572 ac_hi=$ac_mid
7573else
7574 echo "$as_me: failed program was:" >&5
7575sed 's/^/| /' conftest.$ac_ext >&5
7576
Theodore Ts'oe1052142006-10-21 21:46:47 -04007577 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007578fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007579
7580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007581done
7582case $ac_lo in
7583?*) res_hi=$ac_lo;;
7584'') result=? ;;
7585esac
7586else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587 cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
7593#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007594static long int longval () { return ~(size_t)0 / 10; }
7595static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007596#include <stdio.h>
7597#include <stdlib.h>
7598int
7599main ()
7600{
7601
7602 FILE *f = fopen ("conftest.val", "w");
7603 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007604 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007605 if ((~(size_t)0 / 10) < 0)
7606 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007607 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007608 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007609 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007610 fprintf (f, "%ld\n", i);
7611 }
7612 else
7613 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007614 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007616 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617 fprintf (f, "%lu\n", i);
7618 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007619 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620
7621 ;
7622 return 0;
7623}
7624_ACEOF
7625rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007626if { (ac_try="$ac_link"
7627case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630esac
7631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007636 { (case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639esac
7640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 res_hi=`cat conftest.val`
7646else
7647 echo "$as_me: program exited with status $ac_status" >&5
7648echo "$as_me: failed program was:" >&5
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
7651( exit $ac_status )
7652result=?
7653fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007654rm -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 -05007655fi
7656rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007657
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658 if test "$cross_compiling" = yes; then
7659 # Depending upon the size, compute the lo and hi bounds.
7660cat >conftest.$ac_ext <<_ACEOF
7661/* confdefs.h. */
7662_ACEOF
7663cat confdefs.h >>conftest.$ac_ext
7664cat >>conftest.$ac_ext <<_ACEOF
7665/* end confdefs.h. */
7666#include <stddef.h>
7667int
7668main ()
7669{
7670static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7671test_array [0] = 0
7672
7673 ;
7674 return 0;
7675}
7676_ACEOF
7677rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007678if { (ac_try="$ac_compile"
7679case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682esac
7683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007694 ac_lo=0 ac_mid=0
7695 while :; do
7696 cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h. */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h. */
7702#include <stddef.h>
7703int
7704main ()
7705{
7706static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7707test_array [0] = 0
7708
7709 ;
7710 return 0;
7711}
7712_ACEOF
7713rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007714if { (ac_try="$ac_compile"
7715case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718esac
7719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007730 ac_hi=$ac_mid; break
7731else
7732 echo "$as_me: failed program was:" >&5
7733sed 's/^/| /' conftest.$ac_ext >&5
7734
Theodore Ts'oe1052142006-10-21 21:46:47 -04007735 ac_lo=`expr $ac_mid + 1`
7736 if test $ac_lo -le $ac_mid; then
7737 ac_lo= ac_hi=
7738 break
7739 fi
7740 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007741fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007742
7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007744 done
7745else
7746 echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
Theodore Ts'oe1052142006-10-21 21:46:47 -04007749 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007750/* confdefs.h. */
7751_ACEOF
7752cat confdefs.h >>conftest.$ac_ext
7753cat >>conftest.$ac_ext <<_ACEOF
7754/* end confdefs.h. */
7755#include <stddef.h>
7756int
7757main ()
7758{
7759static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7760test_array [0] = 0
7761
7762 ;
7763 return 0;
7764}
7765_ACEOF
7766rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007767if { (ac_try="$ac_compile"
7768case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771esac
7772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007783 ac_hi=-1 ac_mid=-1
7784 while :; do
7785 cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
7791#include <stddef.h>
7792int
7793main ()
7794{
7795static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7796test_array [0] = 0
7797
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007803if { (ac_try="$ac_compile"
7804case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807esac
7808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007815 (exit $ac_status); } && {
7816 test -z "$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7818 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007819 ac_lo=$ac_mid; break
7820else
7821 echo "$as_me: failed program was:" >&5
7822sed 's/^/| /' conftest.$ac_ext >&5
7823
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824 ac_hi=`expr '(' $ac_mid ')' - 1`
7825 if test $ac_mid -le $ac_hi; then
7826 ac_lo= ac_hi=
7827 break
7828 fi
7829 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007831
7832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833 done
7834else
7835 echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
Theodore Ts'oe1052142006-10-21 21:46:47 -04007838 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007840
7841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007842fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007843
7844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007845# Binary search between lo and hi bounds.
7846while test "x$ac_lo" != "x$ac_hi"; do
7847 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7848 cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h. */
7854#include <stddef.h>
7855int
7856main ()
7857{
7858static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7859test_array [0] = 0
7860
7861 ;
7862 return 0;
7863}
7864_ACEOF
7865rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007866if { (ac_try="$ac_compile"
7867case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870esac
7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007878 (exit $ac_status); } && {
7879 test -z "$ac_c_werror_flag" ||
7880 test ! -s conftest.err
7881 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007882 ac_hi=$ac_mid
7883else
7884 echo "$as_me: failed program was:" >&5
7885sed 's/^/| /' conftest.$ac_ext >&5
7886
Theodore Ts'oe1052142006-10-21 21:46:47 -04007887 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007889
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007891done
7892case $ac_lo in
7893?*) res_lo=$ac_lo;;
7894'') result=? ;;
7895esac
7896else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007897 cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h. */
7903#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007904static long int longval () { return ~(size_t)0 % 10; }
7905static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007906#include <stdio.h>
7907#include <stdlib.h>
7908int
7909main ()
7910{
7911
7912 FILE *f = fopen ("conftest.val", "w");
7913 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007914 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007915 if ((~(size_t)0 % 10) < 0)
7916 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007917 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007918 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007919 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007920 fprintf (f, "%ld\n", i);
7921 }
7922 else
7923 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007924 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007925 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007926 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007927 fprintf (f, "%lu\n", i);
7928 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007929 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007930
7931 ;
7932 return 0;
7933}
7934_ACEOF
7935rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007936if { (ac_try="$ac_link"
7937case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940esac
7941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949esac
7950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 res_lo=`cat conftest.val`
7956else
7957 echo "$as_me: program exited with status $ac_status" >&5
7958echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961( exit $ac_status )
7962result=?
7963fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007964rm -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 -05007965fi
7966rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007967
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007968 if test "$cross_compiling" = yes; then
7969 # Depending upon the size, compute the lo and hi bounds.
7970cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h. */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h. */
7976#include <stddef.h>
7977int
7978main ()
7979{
7980static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7981test_array [0] = 0
7982
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007988if { (ac_try="$ac_compile"
7989case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992esac
7993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008004 ac_lo=0 ac_mid=0
8005 while :; do
8006 cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012#include <stddef.h>
8013int
8014main ()
8015{
8016static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8017test_array [0] = 0
8018
8019 ;
8020 return 0;
8021}
8022_ACEOF
8023rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008024if { (ac_try="$ac_compile"
8025case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
8029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008040 ac_hi=$ac_mid; break
8041else
8042 echo "$as_me: failed program was:" >&5
8043sed 's/^/| /' conftest.$ac_ext >&5
8044
Theodore Ts'oe1052142006-10-21 21:46:47 -04008045 ac_lo=`expr $ac_mid + 1`
8046 if test $ac_lo -le $ac_mid; then
8047 ac_lo= ac_hi=
8048 break
8049 fi
8050 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008052
8053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008054 done
8055else
8056 echo "$as_me: failed program was:" >&5
8057sed 's/^/| /' conftest.$ac_ext >&5
8058
Theodore Ts'oe1052142006-10-21 21:46:47 -04008059 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008060/* confdefs.h. */
8061_ACEOF
8062cat confdefs.h >>conftest.$ac_ext
8063cat >>conftest.$ac_ext <<_ACEOF
8064/* end confdefs.h. */
8065#include <stddef.h>
8066int
8067main ()
8068{
8069static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8070test_array [0] = 0
8071
8072 ;
8073 return 0;
8074}
8075_ACEOF
8076rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008077if { (ac_try="$ac_compile"
8078case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081esac
8082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008093 ac_hi=-1 ac_mid=-1
8094 while :; do
8095 cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h. */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */
8101#include <stddef.h>
8102int
8103main ()
8104{
8105static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8106test_array [0] = 0
8107
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008113if { (ac_try="$ac_compile"
8114case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117esac
8118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008129 ac_lo=$ac_mid; break
8130else
8131 echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
Theodore Ts'oe1052142006-10-21 21:46:47 -04008134 ac_hi=`expr '(' $ac_mid ')' - 1`
8135 if test $ac_mid -le $ac_hi; then
8136 ac_lo= ac_hi=
8137 break
8138 fi
8139 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008140fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008141
8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008143 done
8144else
8145 echo "$as_me: failed program was:" >&5
8146sed 's/^/| /' conftest.$ac_ext >&5
8147
Theodore Ts'oe1052142006-10-21 21:46:47 -04008148 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008149fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008150
8151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008153
8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008155# Binary search between lo and hi bounds.
8156while test "x$ac_lo" != "x$ac_hi"; do
8157 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8158 cat >conftest.$ac_ext <<_ACEOF
8159/* confdefs.h. */
8160_ACEOF
8161cat confdefs.h >>conftest.$ac_ext
8162cat >>conftest.$ac_ext <<_ACEOF
8163/* end confdefs.h. */
8164#include <stddef.h>
8165int
8166main ()
8167{
8168static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8169test_array [0] = 0
8170
8171 ;
8172 return 0;
8173}
8174_ACEOF
8175rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008176if { (ac_try="$ac_compile"
8177case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180esac
8181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008192 ac_hi=$ac_mid
8193else
8194 echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
Theodore Ts'oe1052142006-10-21 21:46:47 -04008197 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008198fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008199
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008201done
8202case $ac_lo in
8203?*) fits_in_uint=$ac_lo;;
8204'') result=? ;;
8205esac
8206else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008207 cat >conftest.$ac_ext <<_ACEOF
8208/* confdefs.h. */
8209_ACEOF
8210cat confdefs.h >>conftest.$ac_ext
8211cat >>conftest.$ac_ext <<_ACEOF
8212/* end confdefs.h. */
8213#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008214static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8215static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008216#include <stdio.h>
8217#include <stdlib.h>
8218int
8219main ()
8220{
8221
8222 FILE *f = fopen ("conftest.val", "w");
8223 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008224 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008225 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8226 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008227 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008228 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008230 fprintf (f, "%ld\n", i);
8231 }
8232 else
8233 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008234 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008235 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008236 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008237 fprintf (f, "%lu\n", i);
8238 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008239 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008246if { (ac_try="$ac_link"
8247case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 fits_in_uint=`cat conftest.val`
8266else
8267 echo "$as_me: program exited with status $ac_status" >&5
8268echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271( exit $ac_status )
8272result=?
8273fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008274rm -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 -05008275fi
8276rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278 if test "$fits_in_uint" = 1; then
8279 cat >conftest.$ac_ext <<_ACEOF
8280/* confdefs.h. */
8281_ACEOF
8282cat confdefs.h >>conftest.$ac_ext
8283cat >>conftest.$ac_ext <<_ACEOF
8284/* end confdefs.h. */
8285#include <stddef.h>
8286 extern size_t foo;
8287 extern unsigned long foo;
8288
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008298if { (ac_try="$ac_compile"
8299case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008314 fits_in_uint=0
8315else
8316 echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
Theodore Ts'oe1052142006-10-21 21:46:47 -04008319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008320fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008321
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323 fi
8324 if test -z "$result"; then
8325 if test "$fits_in_uint" = 1; then
8326 result="$res_hi$res_lo"U
8327 else
8328 result="$res_hi$res_lo"UL
8329 fi
8330 else
8331 result='~(size_t)0'
8332 fi
8333 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008334 { echo "$as_me:$LINENO: result: $result" >&5
8335echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336 if test "$result" != yes; then
8337
8338cat >>confdefs.h <<_ACEOF
8339#define SIZE_MAX $result
8340_ACEOF
8341
8342 fi
8343
8344
8345
8346
8347for ac_header in stdint.h
8348do
8349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008356ac_res=`eval echo '${'$as_ac_Header'}'`
8357 { echo "$as_me:$LINENO: result: $ac_res" >&5
8358echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008359else
8360 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008363cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369$ac_includes_default
8370#include <$ac_header>
8371_ACEOF
8372rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373if { (ac_try="$ac_compile"
8374case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008385 (exit $ac_status); } && {
8386 test -z "$ac_c_werror_flag" ||
8387 test ! -s conftest.err
8388 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008389 ac_header_compiler=yes
8390else
8391 echo "$as_me: failed program was:" >&5
8392sed 's/^/| /' conftest.$ac_ext >&5
8393
Theodore Ts'oe1052142006-10-21 21:46:47 -04008394 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008395fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008396
8397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8399echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400
8401# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404cat >conftest.$ac_ext <<_ACEOF
8405/* confdefs.h. */
8406_ACEOF
8407cat confdefs.h >>conftest.$ac_ext
8408cat >>conftest.$ac_ext <<_ACEOF
8409/* end confdefs.h. */
8410#include <$ac_header>
8411_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008412if { (ac_try="$ac_cpp conftest.$ac_ext"
8413case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008424 (exit $ac_status); } >/dev/null && {
8425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008428 ac_header_preproc=yes
8429else
8430 echo "$as_me: failed program was:" >&5
8431sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 ac_header_preproc=no
8434fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008436rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8438echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008439
8440# So? What about this header?
8441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8442 yes:no: )
8443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8447 ac_header_preproc=yes
8448 ;;
8449 no:yes:* )
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008463 ;;
8464esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469else
8470 eval "$as_ac_Header=\$ac_header_preproc"
8471fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008472ac_res=`eval echo '${'$as_ac_Header'}'`
8473 { echo "$as_me:$LINENO: result: $ac_res" >&5
8474echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008475
8476fi
8477if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8480_ACEOF
8481
8482fi
8483
8484done
8485
8486
8487
8488 if test "X$prefix" = "XNONE"; then
8489 acl_final_prefix="$ac_default_prefix"
8490 else
8491 acl_final_prefix="$prefix"
8492 fi
8493 if test "X$exec_prefix" = "XNONE"; then
8494 acl_final_exec_prefix='${prefix}'
8495 else
8496 acl_final_exec_prefix="$exec_prefix"
8497 fi
8498 acl_save_prefix="$prefix"
8499 prefix="$acl_final_prefix"
8500 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8501 prefix="$acl_save_prefix"
8502
8503
Theodore Ts'oe1052142006-10-21 21:46:47 -04008504# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008505if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008506 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008507else
8508 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008509fi
8510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008511# Prepare PATH_SEPARATOR.
8512# The user is always right.
8513if test "${PATH_SEPARATOR+set}" != set; then
8514 echo "#! /bin/sh" >conf$$.sh
8515 echo "exit 0" >>conf$$.sh
8516 chmod +x conf$$.sh
8517 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8518 PATH_SEPARATOR=';'
8519 else
8520 PATH_SEPARATOR=:
8521 fi
8522 rm -f conf$$.sh
8523fi
8524ac_prog=ld
8525if test "$GCC" = yes; then
8526 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008527 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8528echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008529 case $host in
8530 *-*-mingw*)
8531 # gcc leaves a trailing carriage return which upsets mingw
8532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8533 *)
8534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8535 esac
8536 case $ac_prog in
8537 # Accept absolute paths.
8538 [\\/]* | [A-Za-z]:[\\/]*)
8539 re_direlt='/[^/][^/]*/\.\./'
8540 # Canonicalize the path of ld
8541 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8542 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8543 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8544 done
8545 test -z "$LD" && LD="$ac_prog"
8546 ;;
8547 "")
8548 # If it fails, then pretend we aren't using GCC.
8549 ac_prog=ld
8550 ;;
8551 *)
8552 # If it is relative, then search for the first ld in PATH.
8553 with_gnu_ld=unknown
8554 ;;
8555 esac
8556elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008557 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8558echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008559else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008560 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8561echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008562fi
8563if test "${acl_cv_path_LD+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566 if test -z "$LD"; then
8567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8568 for ac_dir in $PATH; do
8569 test -z "$ac_dir" && ac_dir=.
8570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8571 acl_cv_path_LD="$ac_dir/$ac_prog"
8572 # Check to see if the program is GNU ld. I'd rather use --version,
8573 # but apparently some GNU ld's only accept -v.
8574 # Break only if it was the GNU/non-GNU ld that we prefer.
8575 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8576 *GNU* | *'with BFD'*)
8577 test "$with_gnu_ld" != no && break ;;
8578 *)
8579 test "$with_gnu_ld" != yes && break ;;
8580 esac
8581 fi
8582 done
8583 IFS="$ac_save_ifs"
8584else
8585 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8586fi
8587fi
8588
8589LD="$acl_cv_path_LD"
8590if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008591 { echo "$as_me:$LINENO: result: $LD" >&5
8592echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008593else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008594 { echo "$as_me:$LINENO: result: no" >&5
8595echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008596fi
8597test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8598echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8599 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008600{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8601echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008602if test "${acl_cv_prog_gnu_ld+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604else
8605 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8606case `$LD -v 2>&1 </dev/null` in
8607*GNU* | *'with BFD'*)
8608 acl_cv_prog_gnu_ld=yes ;;
8609*)
8610 acl_cv_prog_gnu_ld=no ;;
8611esac
8612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008613{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8614echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008615with_gnu_ld=$acl_cv_prog_gnu_ld
8616
8617
8618
Theodore Ts'oe1052142006-10-21 21:46:47 -04008619 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8620echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008621if test "${acl_cv_rpath+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623else
8624
8625 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8626 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8627 . ./conftest.sh
8628 rm -f ./conftest.sh
8629 acl_cv_rpath=done
8630
8631fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008632{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8633echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008634 wl="$acl_cv_wl"
8635 libext="$acl_cv_libext"
8636 shlibext="$acl_cv_shlibext"
8637 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8638 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8639 hardcode_direct="$acl_cv_hardcode_direct"
8640 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008641 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008642if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008643 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008644else
8645 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008646fi
8647
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008648
8649
8650
8651
8652
8653
8654
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008655 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008656
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008657 acl_save_prefix="$prefix"
8658 prefix="$acl_final_prefix"
8659 acl_save_exec_prefix="$exec_prefix"
8660 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008661
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008662 eval additional_includedir=\"$includedir\"
8663 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008664
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008668
Theodore Ts'oe1052142006-10-21 21:46:47 -04008669# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008670if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008671 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008672 if test "X$withval" = "Xno"; then
8673 use_additional=no
8674 else
8675 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008676
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008677 acl_save_prefix="$prefix"
8678 prefix="$acl_final_prefix"
8679 acl_save_exec_prefix="$exec_prefix"
8680 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008681
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008682 eval additional_includedir=\"$includedir\"
8683 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008684
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008685 exec_prefix="$acl_save_exec_prefix"
8686 prefix="$acl_save_prefix"
8687
8688 else
8689 additional_includedir="$withval/include"
8690 additional_libdir="$withval/lib"
8691 fi
8692 fi
8693
Theodore Ts'oe1052142006-10-21 21:46:47 -04008694fi
8695
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008696 LIBICONV=
8697 LTLIBICONV=
8698 INCICONV=
8699 rpathdirs=
8700 ltrpathdirs=
8701 names_already_handled=
8702 names_next_round='iconv '
8703 while test -n "$names_next_round"; do
8704 names_this_round="$names_next_round"
8705 names_next_round=
8706 for name in $names_this_round; do
8707 already_handled=
8708 for n in $names_already_handled; do
8709 if test "$n" = "$name"; then
8710 already_handled=yes
8711 break
8712 fi
8713 done
8714 if test -z "$already_handled"; then
8715 names_already_handled="$names_already_handled $name"
8716 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8717 eval value=\"\$HAVE_LIB$uppername\"
8718 if test -n "$value"; then
8719 if test "$value" = yes; then
8720 eval value=\"\$LIB$uppername\"
8721 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8722 eval value=\"\$LTLIB$uppername\"
8723 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8724 else
8725 :
8726 fi
8727 else
8728 found_dir=
8729 found_la=
8730 found_so=
8731 found_a=
8732 if test $use_additional = yes; then
8733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8734 found_dir="$additional_libdir"
8735 found_so="$additional_libdir/lib$name.$shlibext"
8736 if test -f "$additional_libdir/lib$name.la"; then
8737 found_la="$additional_libdir/lib$name.la"
8738 fi
8739 else
8740 if test -f "$additional_libdir/lib$name.$libext"; then
8741 found_dir="$additional_libdir"
8742 found_a="$additional_libdir/lib$name.$libext"
8743 if test -f "$additional_libdir/lib$name.la"; then
8744 found_la="$additional_libdir/lib$name.la"
8745 fi
8746 fi
8747 fi
8748 fi
8749 if test "X$found_dir" = "X"; then
8750 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008751
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008752 acl_save_prefix="$prefix"
8753 prefix="$acl_final_prefix"
8754 acl_save_exec_prefix="$exec_prefix"
8755 exec_prefix="$acl_final_exec_prefix"
8756 eval x=\"$x\"
8757 exec_prefix="$acl_save_exec_prefix"
8758 prefix="$acl_save_prefix"
8759
8760 case "$x" in
8761 -L*)
8762 dir=`echo "X$x" | sed -e 's/^X-L//'`
8763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8764 found_dir="$dir"
8765 found_so="$dir/lib$name.$shlibext"
8766 if test -f "$dir/lib$name.la"; then
8767 found_la="$dir/lib$name.la"
8768 fi
8769 else
8770 if test -f "$dir/lib$name.$libext"; then
8771 found_dir="$dir"
8772 found_a="$dir/lib$name.$libext"
8773 if test -f "$dir/lib$name.la"; then
8774 found_la="$dir/lib$name.la"
8775 fi
8776 fi
8777 fi
8778 ;;
8779 esac
8780 if test "X$found_dir" != "X"; then
8781 break
8782 fi
8783 done
8784 fi
8785 if test "X$found_dir" != "X"; then
8786 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8787 if test "X$found_so" != "X"; then
8788 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8790 else
8791 haveit=
8792 for x in $ltrpathdirs; do
8793 if test "X$x" = "X$found_dir"; then
8794 haveit=yes
8795 break
8796 fi
8797 done
8798 if test -z "$haveit"; then
8799 ltrpathdirs="$ltrpathdirs $found_dir"
8800 fi
8801 if test "$hardcode_direct" = yes; then
8802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8803 else
8804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8806 haveit=
8807 for x in $rpathdirs; do
8808 if test "X$x" = "X$found_dir"; then
8809 haveit=yes
8810 break
8811 fi
8812 done
8813 if test -z "$haveit"; then
8814 rpathdirs="$rpathdirs $found_dir"
8815 fi
8816 else
8817 haveit=
8818 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008820 acl_save_prefix="$prefix"
8821 prefix="$acl_final_prefix"
8822 acl_save_exec_prefix="$exec_prefix"
8823 exec_prefix="$acl_final_exec_prefix"
8824 eval x=\"$x\"
8825 exec_prefix="$acl_save_exec_prefix"
8826 prefix="$acl_save_prefix"
8827
8828 if test "X$x" = "X-L$found_dir"; then
8829 haveit=yes
8830 break
8831 fi
8832 done
8833 if test -z "$haveit"; then
8834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8835 fi
8836 if test "$hardcode_minus_L" != no; then
8837 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8838 else
8839 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8840 fi
8841 fi
8842 fi
8843 fi
8844 else
8845 if test "X$found_a" != "X"; then
8846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8847 else
8848 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8849 fi
8850 fi
8851 additional_includedir=
8852 case "$found_dir" in
8853 */lib | */lib/)
8854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8855 additional_includedir="$basedir/include"
8856 ;;
8857 esac
8858 if test "X$additional_includedir" != "X"; then
8859 if test "X$additional_includedir" != "X/usr/include"; then
8860 haveit=
8861 if test "X$additional_includedir" = "X/usr/local/include"; then
8862 if test -n "$GCC"; then
8863 case $host_os in
8864 linux*) haveit=yes;;
8865 esac
8866 fi
8867 fi
8868 if test -z "$haveit"; then
8869 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008870
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008871 acl_save_prefix="$prefix"
8872 prefix="$acl_final_prefix"
8873 acl_save_exec_prefix="$exec_prefix"
8874 exec_prefix="$acl_final_exec_prefix"
8875 eval x=\"$x\"
8876 exec_prefix="$acl_save_exec_prefix"
8877 prefix="$acl_save_prefix"
8878
8879 if test "X$x" = "X-I$additional_includedir"; then
8880 haveit=yes
8881 break
8882 fi
8883 done
8884 if test -z "$haveit"; then
8885 if test -d "$additional_includedir"; then
8886 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8887 fi
8888 fi
8889 fi
8890 fi
8891 fi
8892 if test -n "$found_la"; then
8893 save_libdir="$libdir"
8894 case "$found_la" in
8895 */* | *\\*) . "$found_la" ;;
8896 *) . "./$found_la" ;;
8897 esac
8898 libdir="$save_libdir"
8899 for dep in $dependency_libs; do
8900 case "$dep" in
8901 -L*)
8902 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8903 if test "X$additional_libdir" != "X/usr/lib"; then
8904 haveit=
8905 if test "X$additional_libdir" = "X/usr/local/lib"; then
8906 if test -n "$GCC"; then
8907 case $host_os in
8908 linux*) haveit=yes;;
8909 esac
8910 fi
8911 fi
8912 if test -z "$haveit"; then
8913 haveit=
8914 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008915
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008916 acl_save_prefix="$prefix"
8917 prefix="$acl_final_prefix"
8918 acl_save_exec_prefix="$exec_prefix"
8919 exec_prefix="$acl_final_exec_prefix"
8920 eval x=\"$x\"
8921 exec_prefix="$acl_save_exec_prefix"
8922 prefix="$acl_save_prefix"
8923
8924 if test "X$x" = "X-L$additional_libdir"; then
8925 haveit=yes
8926 break
8927 fi
8928 done
8929 if test -z "$haveit"; then
8930 if test -d "$additional_libdir"; then
8931 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8932 fi
8933 fi
8934 haveit=
8935 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008936
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008937 acl_save_prefix="$prefix"
8938 prefix="$acl_final_prefix"
8939 acl_save_exec_prefix="$exec_prefix"
8940 exec_prefix="$acl_final_exec_prefix"
8941 eval x=\"$x\"
8942 exec_prefix="$acl_save_exec_prefix"
8943 prefix="$acl_save_prefix"
8944
8945 if test "X$x" = "X-L$additional_libdir"; then
8946 haveit=yes
8947 break
8948 fi
8949 done
8950 if test -z "$haveit"; then
8951 if test -d "$additional_libdir"; then
8952 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8953 fi
8954 fi
8955 fi
8956 fi
8957 ;;
8958 -R*)
8959 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8960 if test "$enable_rpath" != no; then
8961 haveit=
8962 for x in $rpathdirs; do
8963 if test "X$x" = "X$dir"; then
8964 haveit=yes
8965 break
8966 fi
8967 done
8968 if test -z "$haveit"; then
8969 rpathdirs="$rpathdirs $dir"
8970 fi
8971 haveit=
8972 for x in $ltrpathdirs; do
8973 if test "X$x" = "X$dir"; then
8974 haveit=yes
8975 break
8976 fi
8977 done
8978 if test -z "$haveit"; then
8979 ltrpathdirs="$ltrpathdirs $dir"
8980 fi
8981 fi
8982 ;;
8983 -l*)
8984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8985 ;;
8986 *.la)
8987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8988 ;;
8989 *)
8990 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8992 ;;
8993 esac
8994 done
8995 fi
8996 else
8997 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8999 fi
9000 fi
9001 fi
9002 done
9003 done
9004 if test "X$rpathdirs" != "X"; then
9005 if test -n "$hardcode_libdir_separator"; then
9006 alldirs=
9007 for found_dir in $rpathdirs; do
9008 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9009 done
9010 acl_save_libdir="$libdir"
9011 libdir="$alldirs"
9012 eval flag=\"$hardcode_libdir_flag_spec\"
9013 libdir="$acl_save_libdir"
9014 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9015 else
9016 for found_dir in $rpathdirs; do
9017 acl_save_libdir="$libdir"
9018 libdir="$found_dir"
9019 eval flag=\"$hardcode_libdir_flag_spec\"
9020 libdir="$acl_save_libdir"
9021 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9022 done
9023 fi
9024 fi
9025 if test "X$ltrpathdirs" != "X"; then
9026 for found_dir in $ltrpathdirs; do
9027 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9028 done
9029 fi
9030
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009031
9032
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009034
9035
9036
9037
Theodore Ts'oe1052142006-10-21 21:46:47 -04009038 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9039echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009040if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009043 cat >conftest.$ac_ext <<_ACEOF
9044/* confdefs.h. */
9045_ACEOF
9046cat confdefs.h >>conftest.$ac_ext
9047cat >>conftest.$ac_ext <<_ACEOF
9048/* end confdefs.h. */
9049$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04009050typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009051int
9052main ()
9053{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009054if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04009056if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009057 return 0;
9058 ;
9059 return 0;
9060}
9061_ACEOF
9062rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009063if { (ac_try="$ac_compile"
9064case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067esac
9068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009079 ac_cv_type_ptrdiff_t=yes
9080else
9081 echo "$as_me: failed program was:" >&5
9082sed 's/^/| /' conftest.$ac_ext >&5
9083
Theodore Ts'oe1052142006-10-21 21:46:47 -04009084 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009086
9087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009088fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009089{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9090echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091if test $ac_cv_type_ptrdiff_t = yes; then
9092 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009094
9095cat >>confdefs.h <<\_ACEOF
9096#define ptrdiff_t long
9097_ACEOF
9098
9099
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009100fi
9101
9102
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009103
9104
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009105
9106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009107
9108
9109
9110
9111
9112for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009113stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009114do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009120 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009121fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009122ac_res=`eval echo '${'$as_ac_Header'}'`
9123 { echo "$as_me:$LINENO: result: $ac_res" >&5
9124echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009125else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009126 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009127{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009129cat >conftest.$ac_ext <<_ACEOF
9130/* confdefs.h. */
9131_ACEOF
9132cat confdefs.h >>conftest.$ac_ext
9133cat >>conftest.$ac_ext <<_ACEOF
9134/* end confdefs.h. */
9135$ac_includes_default
9136#include <$ac_header>
9137_ACEOF
9138rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009139if { (ac_try="$ac_compile"
9140case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143esac
9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009151 (exit $ac_status); } && {
9152 test -z "$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009155 ac_header_compiler=yes
9156else
9157 echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
Theodore Ts'oe1052142006-10-21 21:46:47 -04009160 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009161fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009162
9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9165echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009166
9167# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009168{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009170cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h. */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h. */
9176#include <$ac_header>
9177_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009178if { (ac_try="$ac_cpp conftest.$ac_ext"
9179case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182esac
9183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009190 (exit $ac_status); } >/dev/null && {
9191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009194 ac_header_preproc=yes
9195else
9196 echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 ac_header_preproc=no
9200fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009202rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009203{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9204echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009205
9206# So? What about this header?
9207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9208 yes:no: )
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9213 ac_header_preproc=yes
9214 ;;
9215 no:yes:* )
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9223echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009229 ;;
9230esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009231{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235else
9236 eval "$as_ac_Header=\$ac_header_preproc"
9237fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009238ac_res=`eval echo '${'$as_ac_Header'}'`
9239 { echo "$as_me:$LINENO: result: $ac_res" >&5
9240echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009241
9242fi
9243if test `eval echo '${'$as_ac_Header'}'` = yes; then
9244 cat >>confdefs.h <<_ACEOF
9245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9246_ACEOF
9247
9248fi
9249
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009250done
9251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9276mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9277strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9278__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009279do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009281{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9282echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9283if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009284 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286 cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9294#define $ac_func innocuous_$ac_func
9295
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009296/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009297 which can conflict with char $ac_func (); below.
9298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9299 <limits.h> exists even on freestanding compilers. */
9300
9301#ifdef __STDC__
9302# include <limits.h>
9303#else
9304# include <assert.h>
9305#endif
9306
9307#undef $ac_func
9308
Theodore Ts'oe1052142006-10-21 21:46:47 -04009309/* Override any GCC internal prototype to avoid an error.
9310 Use char because int might match the return type of a GCC
9311 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312#ifdef __cplusplus
9313extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009314#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009315char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009316/* The GNU C library defines this for functions which it implements
9317 to always fail with ENOSYS. Some functions are actually named
9318 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009319#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009320choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009321#endif
9322
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009323int
9324main ()
9325{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009326return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009327 ;
9328 return 0;
9329}
9330_ACEOF
9331rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009332if { (ac_try="$ac_link"
9333case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336esac
9337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest$ac_exeext &&
9348 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009349 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009351 echo "$as_me: failed program was:" >&5
9352sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009353
Theodore Ts'oe1052142006-10-21 21:46:47 -04009354 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009356
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009358 conftest$ac_exeext conftest.$ac_ext
9359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009360ac_res=`eval echo '${'$as_ac_var'}'`
9361 { echo "$as_me:$LINENO: result: $ac_res" >&5
9362echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009363if test `eval echo '${'$as_ac_var'}'` = yes; then
9364 cat >>confdefs.h <<_ACEOF
9365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9366_ACEOF
9367
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009368fi
9369done
9370
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009372
Theodore Ts'oe1052142006-10-21 21:46:47 -04009373 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9374echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009375if test "${ac_cv_have_decl__snprintf+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378 cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h. */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h. */
9384#include <stdio.h>
9385int
9386main ()
9387{
9388
9389#ifndef _snprintf
9390 char *p = (char *) _snprintf;
9391#endif
9392
9393 ;
9394 return 0;
9395}
9396_ACEOF
9397rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009398if { (ac_try="$ac_compile"
9399case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009414 ac_cv_have_decl__snprintf=yes
9415else
9416 echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
Theodore Ts'oe1052142006-10-21 21:46:47 -04009419 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009420fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009421
9422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009424{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9425echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009426 if test $ac_cv_have_decl__snprintf = yes; then
9427 gt_value=1
9428 else
9429 gt_value=0
9430 fi
9431
9432cat >>confdefs.h <<_ACEOF
9433#define HAVE_DECL__SNPRINTF $gt_value
9434_ACEOF
9435
9436
9437
Theodore Ts'oe1052142006-10-21 21:46:47 -04009438 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9439echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009440if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442else
9443 cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449#include <stdio.h>
9450int
9451main ()
9452{
9453
9454#ifndef _snwprintf
9455 char *p = (char *) _snwprintf;
9456#endif
9457
9458 ;
9459 return 0;
9460}
9461_ACEOF
9462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009463if { (ac_try="$ac_compile"
9464case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467esac
9468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479 ac_cv_have_decl__snwprintf=yes
9480else
9481 echo "$as_me: failed program was:" >&5
9482sed 's/^/| /' conftest.$ac_ext >&5
9483
Theodore Ts'oe1052142006-10-21 21:46:47 -04009484 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009486
9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009489{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9490echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491 if test $ac_cv_have_decl__snwprintf = yes; then
9492 gt_value=1
9493 else
9494 gt_value=0
9495 fi
9496
9497cat >>confdefs.h <<_ACEOF
9498#define HAVE_DECL__SNWPRINTF $gt_value
9499_ACEOF
9500
9501
9502
9503
Theodore Ts'oe1052142006-10-21 21:46:47 -04009504 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9505echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515#include <stdio.h>
9516int
9517main ()
9518{
9519
9520#ifndef feof_unlocked
9521 char *p = (char *) feof_unlocked;
9522#endif
9523
9524 ;
9525 return 0;
9526}
9527_ACEOF
9528rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009529if { (ac_try="$ac_compile"
9530case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533esac
9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545 ac_cv_have_decl_feof_unlocked=yes
9546else
9547 echo "$as_me: failed program was:" >&5
9548sed 's/^/| /' conftest.$ac_ext >&5
9549
Theodore Ts'oe1052142006-10-21 21:46:47 -04009550 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009552
9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009554fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009555{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9556echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009557 if test $ac_cv_have_decl_feof_unlocked = yes; then
9558 gt_value=1
9559 else
9560 gt_value=0
9561 fi
9562
9563cat >>confdefs.h <<_ACEOF
9564#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9565_ACEOF
9566
9567
9568
Theodore Ts'oe1052142006-10-21 21:46:47 -04009569 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9570echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009571if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574 cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580#include <stdio.h>
9581int
9582main ()
9583{
9584
9585#ifndef fgets_unlocked
9586 char *p = (char *) fgets_unlocked;
9587#endif
9588
9589 ;
9590 return 0;
9591}
9592_ACEOF
9593rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009594if { (ac_try="$ac_compile"
9595case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598esac
9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009610 ac_cv_have_decl_fgets_unlocked=yes
9611else
9612 echo "$as_me: failed program was:" >&5
9613sed 's/^/| /' conftest.$ac_ext >&5
9614
Theodore Ts'oe1052142006-10-21 21:46:47 -04009615 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009616fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009617
9618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009619fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009620{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9621echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9623 gt_value=1
9624 else
9625 gt_value=0
9626 fi
9627
9628cat >>confdefs.h <<_ACEOF
9629#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9630_ACEOF
9631
9632
9633
Theodore Ts'oe1052142006-10-21 21:46:47 -04009634 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9635echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645#include <stdio.h>
9646int
9647main ()
9648{
9649
9650#ifndef getc_unlocked
9651 char *p = (char *) getc_unlocked;
9652#endif
9653
9654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009659if { (ac_try="$ac_compile"
9660case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009675 ac_cv_have_decl_getc_unlocked=yes
9676else
9677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
Theodore Ts'oe1052142006-10-21 21:46:47 -04009680 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009682
9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009684fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009685{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9686echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009687 if test $ac_cv_have_decl_getc_unlocked = yes; then
9688 gt_value=1
9689 else
9690 gt_value=0
9691 fi
9692
9693cat >>confdefs.h <<_ACEOF
9694#define HAVE_DECL_GETC_UNLOCKED $gt_value
9695_ACEOF
9696
9697
9698
9699 case $gt_cv_func_printf_posix in
9700 *yes) HAVE_POSIX_PRINTF=1 ;;
9701 *) HAVE_POSIX_PRINTF=0 ;;
9702 esac
9703
9704 if test "$ac_cv_func_asprintf" = yes; then
9705 HAVE_ASPRINTF=1
9706 else
9707 HAVE_ASPRINTF=0
9708 fi
9709
9710 if test "$ac_cv_func_snprintf" = yes; then
9711 HAVE_SNPRINTF=1
9712 else
9713 HAVE_SNPRINTF=0
9714 fi
9715
9716 if test "$ac_cv_func_wprintf" = yes; then
9717 HAVE_WPRINTF=1
9718 else
9719 HAVE_WPRINTF=0
9720 fi
9721
9722
9723
9724
9725
9726
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009727
9728 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009729
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009730 for element in $INCICONV; do
9731 haveit=
9732 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009733
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009734 acl_save_prefix="$prefix"
9735 prefix="$acl_final_prefix"
9736 acl_save_exec_prefix="$exec_prefix"
9737 exec_prefix="$acl_final_exec_prefix"
9738 eval x=\"$x\"
9739 exec_prefix="$acl_save_exec_prefix"
9740 prefix="$acl_save_prefix"
9741
9742 if test "X$x" = "X$element"; then
9743 haveit=yes
9744 break
9745 fi
9746 done
9747 if test -z "$haveit"; then
9748 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9749 fi
9750 done
9751
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009752
Theodore Ts'oe1052142006-10-21 21:46:47 -04009753 { echo "$as_me:$LINENO: checking for iconv" >&5
9754echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009755if test "${am_cv_func_iconv+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009758
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009759 am_cv_func_iconv="no, consider installing GNU libiconv"
9760 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009761 cat >conftest.$ac_ext <<_ACEOF
9762/* confdefs.h. */
9763_ACEOF
9764cat confdefs.h >>conftest.$ac_ext
9765cat >>conftest.$ac_ext <<_ACEOF
9766/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009767#include <stdlib.h>
9768#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009769int
9770main ()
9771{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009772iconv_t cd = iconv_open("","");
9773 iconv(cd,NULL,NULL,NULL,NULL);
9774 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009780if { (ac_try="$ac_link"
9781case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest$ac_exeext &&
9796 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009797 am_cv_func_iconv=yes
9798else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009799 echo "$as_me: failed program was:" >&5
9800sed 's/^/| /' conftest.$ac_ext >&5
9801
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009804
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009806 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009807 if test "$am_cv_func_iconv" != yes; then
9808 am_save_LIBS="$LIBS"
9809 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009810 cat >conftest.$ac_ext <<_ACEOF
9811/* confdefs.h. */
9812_ACEOF
9813cat confdefs.h >>conftest.$ac_ext
9814cat >>conftest.$ac_ext <<_ACEOF
9815/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009816#include <stdlib.h>
9817#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009818int
9819main ()
9820{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009821iconv_t cd = iconv_open("","");
9822 iconv(cd,NULL,NULL,NULL,NULL);
9823 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009824 ;
9825 return 0;
9826}
9827_ACEOF
9828rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009829if { (ac_try="$ac_link"
9830case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext &&
9845 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009846 am_cv_lib_iconv=yes
9847 am_cv_func_iconv=yes
9848else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009849 echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
Theodore Ts'oe1052142006-10-21 21:46:47 -04009852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009854
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009856 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009857 LIBS="$am_save_LIBS"
9858 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009861{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9862echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009863 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009864
9865cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009866#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009868
9869 fi
9870 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009871 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9872echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9873 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9874echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009875 else
9876 CPPFLAGS="$am_save_CPPFLAGS"
9877 LIBICONV=
9878 LTLIBICONV=
9879 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880
9881
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009882
9883 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009884 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9885echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009886 if test "${am_cv_proto_iconv+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009888else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009889
9890 cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h. */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009896
9897#include <stdlib.h>
9898#include <iconv.h>
9899extern
9900#ifdef __cplusplus
9901"C"
9902#endif
9903#if defined(__STDC__) || defined(__cplusplus)
9904size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9905#else
9906size_t iconv();
9907#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009909int
9910main ()
9911{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009913 ;
9914 return 0;
9915}
9916_ACEOF
9917rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009918if { (ac_try="$ac_compile"
9919case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922esac
9923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
9933 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009934 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936 echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
Theodore Ts'oe1052142006-10-21 21:46:47 -04009939 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009940fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009941
9942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009943 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 +00009944fi
9945
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009946 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009947 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948 }$am_cv_proto_iconv" >&5
9949echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009950 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009951
9952cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009953#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009954_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009955
9956 fi
9957
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958
Theodore Ts'oe1052142006-10-21 21:46:47 -04009959 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9960echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961if test "${am_cv_langinfo_codeset+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009963else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009964 cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h. */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009970#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009971int
9972main ()
9973{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009974char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975 ;
9976 return 0;
9977}
9978_ACEOF
9979rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009980if { (ac_try="$ac_link"
9981case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984esac
9985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 } && test -s conftest$ac_exeext &&
9996 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009997 am_cv_langinfo_codeset=yes
9998else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009999 echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010001
Theodore Ts'oe1052142006-10-21 21:46:47 -040010002 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010004
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010006 conftest$ac_exeext conftest.$ac_ext
10007
10008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010009{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10010echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010011 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012
10013cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010014#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010016
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010017 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010018
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010019 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020
Theodore Ts'oe1052142006-10-21 21:46:47 -040010021 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10022echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010025else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010026 cat >conftest.$ac_ext <<_ACEOF
10027/* confdefs.h. */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010032#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033int
10034main ()
10035{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010036return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010037 ;
10038 return 0;
10039}
10040_ACEOF
10041rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010042if { (ac_try="$ac_link"
10043case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046esac
10047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest$ac_exeext &&
10058 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010059 am_cv_val_LC_MESSAGES=yes
10060else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061 echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010063
Theodore Ts'oe1052142006-10-21 21:46:47 -040010064 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010065fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010066
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010068 conftest$ac_exeext conftest.$ac_ext
10069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010070{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10071echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010072 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010073
10074cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010075#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010076_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010077
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010078 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010079
10080 fi
10081
10082 for ac_prog in bison
10083do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010084 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010085set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010088if test "${ac_cv_prog_INTLBISON+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010090else
10091 if test -n "$INTLBISON"; then
10092 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095for as_dir in $PATH
10096do
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010100 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 -050010101 ac_cv_prog_INTLBISON="$ac_prog"
10102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105done
10106done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010107IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010108
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010109fi
10110fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010112if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010113 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10114echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010115else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010116 { echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010118fi
10119
Theodore Ts'oe1052142006-10-21 21:46:47 -040010120
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010121 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010122done
10123
10124 if test -z "$INTLBISON"; then
10125 ac_verc_fail=yes
10126 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010127 { echo "$as_me:$LINENO: checking version of bison" >&5
10128echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010129 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10130 case $ac_prog_version in
10131 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10132 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10133 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10134 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10135 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010136 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10137echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010138 fi
10139 if test $ac_verc_fail = yes; then
10140 INTLBISON=:
10141 fi
10142
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010143
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010144
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010145
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010146
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010148
10149
10150
10151
10152
10153
10154
10155
10156
10157
Theodore Ts'oe1052142006-10-21 21:46:47 -040010158 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10159echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10160 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010161if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010162 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010163else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010164 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010165fi
10166
10167 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10168echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010169
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010171
10172
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010173 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010174 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010176 LIBINTL=
10177 LTLIBINTL=
10178 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010179
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010180 if test "$USE_NLS" = "yes"; then
10181 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010182
Theodore Ts'oe1052142006-10-21 21:46:47 -040010183 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10184echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010185
Theodore Ts'oe1052142006-10-21 21:46:47 -040010186# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010187if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010188 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010189else
10190 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010191fi
10192
10193 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10194echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010195
10196 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10197 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010199
10200
10201
10202
10203
Theodore Ts'oe1052142006-10-21 21:46:47 -040010204 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10205echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010206if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010208else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209 cat >conftest.$ac_ext <<_ACEOF
10210/* confdefs.h. */
10211_ACEOF
10212cat confdefs.h >>conftest.$ac_ext
10213cat >>conftest.$ac_ext <<_ACEOF
10214/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010215#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010216extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010217extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218int
10219main ()
10220{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010221bindtextdomain ("", "");
10222return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010223 ;
10224 return 0;
10225}
10226_ACEOF
10227rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010228if { (ac_try="$ac_link"
10229case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010245 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010247 echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010249
Theodore Ts'oe1052142006-10-21 21:46:47 -040010250 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010252
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254 conftest$ac_exeext conftest.$ac_ext
10255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010256{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10257echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010258
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010259 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010260
10261
10262
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010263 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010264
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010265 acl_save_prefix="$prefix"
10266 prefix="$acl_final_prefix"
10267 acl_save_exec_prefix="$exec_prefix"
10268 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010269
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010270 eval additional_includedir=\"$includedir\"
10271 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010272
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010276
Theodore Ts'oe1052142006-10-21 21:46:47 -040010277# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010278if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010279 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010280 if test "X$withval" = "Xno"; then
10281 use_additional=no
10282 else
10283 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010284
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010289
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010290 eval additional_includedir=\"$includedir\"
10291 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010292
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010293 exec_prefix="$acl_save_exec_prefix"
10294 prefix="$acl_save_prefix"
10295
10296 else
10297 additional_includedir="$withval/include"
10298 additional_libdir="$withval/lib"
10299 fi
10300 fi
10301
Theodore Ts'oe1052142006-10-21 21:46:47 -040010302fi
10303
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010304 LIBINTL=
10305 LTLIBINTL=
10306 INCINTL=
10307 rpathdirs=
10308 ltrpathdirs=
10309 names_already_handled=
10310 names_next_round='intl '
10311 while test -n "$names_next_round"; do
10312 names_this_round="$names_next_round"
10313 names_next_round=
10314 for name in $names_this_round; do
10315 already_handled=
10316 for n in $names_already_handled; do
10317 if test "$n" = "$name"; then
10318 already_handled=yes
10319 break
10320 fi
10321 done
10322 if test -z "$already_handled"; then
10323 names_already_handled="$names_already_handled $name"
10324 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10325 eval value=\"\$HAVE_LIB$uppername\"
10326 if test -n "$value"; then
10327 if test "$value" = yes; then
10328 eval value=\"\$LIB$uppername\"
10329 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10330 eval value=\"\$LTLIB$uppername\"
10331 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10332 else
10333 :
10334 fi
10335 else
10336 found_dir=
10337 found_la=
10338 found_so=
10339 found_a=
10340 if test $use_additional = yes; then
10341 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10342 found_dir="$additional_libdir"
10343 found_so="$additional_libdir/lib$name.$shlibext"
10344 if test -f "$additional_libdir/lib$name.la"; then
10345 found_la="$additional_libdir/lib$name.la"
10346 fi
10347 else
10348 if test -f "$additional_libdir/lib$name.$libext"; then
10349 found_dir="$additional_libdir"
10350 found_a="$additional_libdir/lib$name.$libext"
10351 if test -f "$additional_libdir/lib$name.la"; then
10352 found_la="$additional_libdir/lib$name.la"
10353 fi
10354 fi
10355 fi
10356 fi
10357 if test "X$found_dir" = "X"; then
10358 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010359
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010360 acl_save_prefix="$prefix"
10361 prefix="$acl_final_prefix"
10362 acl_save_exec_prefix="$exec_prefix"
10363 exec_prefix="$acl_final_exec_prefix"
10364 eval x=\"$x\"
10365 exec_prefix="$acl_save_exec_prefix"
10366 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010367
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010368 case "$x" in
10369 -L*)
10370 dir=`echo "X$x" | sed -e 's/^X-L//'`
10371 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10372 found_dir="$dir"
10373 found_so="$dir/lib$name.$shlibext"
10374 if test -f "$dir/lib$name.la"; then
10375 found_la="$dir/lib$name.la"
10376 fi
10377 else
10378 if test -f "$dir/lib$name.$libext"; then
10379 found_dir="$dir"
10380 found_a="$dir/lib$name.$libext"
10381 if test -f "$dir/lib$name.la"; then
10382 found_la="$dir/lib$name.la"
10383 fi
10384 fi
10385 fi
10386 ;;
10387 esac
10388 if test "X$found_dir" != "X"; then
10389 break
10390 fi
10391 done
10392 fi
10393 if test "X$found_dir" != "X"; then
10394 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10395 if test "X$found_so" != "X"; then
10396 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10397 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10398 else
10399 haveit=
10400 for x in $ltrpathdirs; do
10401 if test "X$x" = "X$found_dir"; then
10402 haveit=yes
10403 break
10404 fi
10405 done
10406 if test -z "$haveit"; then
10407 ltrpathdirs="$ltrpathdirs $found_dir"
10408 fi
10409 if test "$hardcode_direct" = yes; then
10410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10411 else
10412 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10414 haveit=
10415 for x in $rpathdirs; do
10416 if test "X$x" = "X$found_dir"; then
10417 haveit=yes
10418 break
10419 fi
10420 done
10421 if test -z "$haveit"; then
10422 rpathdirs="$rpathdirs $found_dir"
10423 fi
10424 else
10425 haveit=
10426 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010427
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010428 acl_save_prefix="$prefix"
10429 prefix="$acl_final_prefix"
10430 acl_save_exec_prefix="$exec_prefix"
10431 exec_prefix="$acl_final_exec_prefix"
10432 eval x=\"$x\"
10433 exec_prefix="$acl_save_exec_prefix"
10434 prefix="$acl_save_prefix"
10435
10436 if test "X$x" = "X-L$found_dir"; then
10437 haveit=yes
10438 break
10439 fi
10440 done
10441 if test -z "$haveit"; then
10442 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10443 fi
10444 if test "$hardcode_minus_L" != no; then
10445 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10446 else
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10448 fi
10449 fi
10450 fi
10451 fi
10452 else
10453 if test "X$found_a" != "X"; then
10454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10455 else
10456 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10457 fi
10458 fi
10459 additional_includedir=
10460 case "$found_dir" in
10461 */lib | */lib/)
10462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10463 additional_includedir="$basedir/include"
10464 ;;
10465 esac
10466 if test "X$additional_includedir" != "X"; then
10467 if test "X$additional_includedir" != "X/usr/include"; then
10468 haveit=
10469 if test "X$additional_includedir" = "X/usr/local/include"; then
10470 if test -n "$GCC"; then
10471 case $host_os in
10472 linux*) haveit=yes;;
10473 esac
10474 fi
10475 fi
10476 if test -z "$haveit"; then
10477 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010478
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10483 eval x=\"$x\"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10486
10487 if test "X$x" = "X-I$additional_includedir"; then
10488 haveit=yes
10489 break
10490 fi
10491 done
10492 if test -z "$haveit"; then
10493 if test -d "$additional_includedir"; then
10494 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10495 fi
10496 fi
10497 fi
10498 fi
10499 fi
10500 if test -n "$found_la"; then
10501 save_libdir="$libdir"
10502 case "$found_la" in
10503 */* | *\\*) . "$found_la" ;;
10504 *) . "./$found_la" ;;
10505 esac
10506 libdir="$save_libdir"
10507 for dep in $dependency_libs; do
10508 case "$dep" in
10509 -L*)
10510 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10511 if test "X$additional_libdir" != "X/usr/lib"; then
10512 haveit=
10513 if test "X$additional_libdir" = "X/usr/local/lib"; then
10514 if test -n "$GCC"; then
10515 case $host_os in
10516 linux*) haveit=yes;;
10517 esac
10518 fi
10519 fi
10520 if test -z "$haveit"; then
10521 haveit=
10522 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010523
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010524 acl_save_prefix="$prefix"
10525 prefix="$acl_final_prefix"
10526 acl_save_exec_prefix="$exec_prefix"
10527 exec_prefix="$acl_final_exec_prefix"
10528 eval x=\"$x\"
10529 exec_prefix="$acl_save_exec_prefix"
10530 prefix="$acl_save_prefix"
10531
10532 if test "X$x" = "X-L$additional_libdir"; then
10533 haveit=yes
10534 break
10535 fi
10536 done
10537 if test -z "$haveit"; then
10538 if test -d "$additional_libdir"; then
10539 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10540 fi
10541 fi
10542 haveit=
10543 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010544
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010545 acl_save_prefix="$prefix"
10546 prefix="$acl_final_prefix"
10547 acl_save_exec_prefix="$exec_prefix"
10548 exec_prefix="$acl_final_exec_prefix"
10549 eval x=\"$x\"
10550 exec_prefix="$acl_save_exec_prefix"
10551 prefix="$acl_save_prefix"
10552
10553 if test "X$x" = "X-L$additional_libdir"; then
10554 haveit=yes
10555 break
10556 fi
10557 done
10558 if test -z "$haveit"; then
10559 if test -d "$additional_libdir"; then
10560 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10561 fi
10562 fi
10563 fi
10564 fi
10565 ;;
10566 -R*)
10567 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10568 if test "$enable_rpath" != no; then
10569 haveit=
10570 for x in $rpathdirs; do
10571 if test "X$x" = "X$dir"; then
10572 haveit=yes
10573 break
10574 fi
10575 done
10576 if test -z "$haveit"; then
10577 rpathdirs="$rpathdirs $dir"
10578 fi
10579 haveit=
10580 for x in $ltrpathdirs; do
10581 if test "X$x" = "X$dir"; then
10582 haveit=yes
10583 break
10584 fi
10585 done
10586 if test -z "$haveit"; then
10587 ltrpathdirs="$ltrpathdirs $dir"
10588 fi
10589 fi
10590 ;;
10591 -l*)
10592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10593 ;;
10594 *.la)
10595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10596 ;;
10597 *)
10598 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10599 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10600 ;;
10601 esac
10602 done
10603 fi
10604 else
10605 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10606 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10607 fi
10608 fi
10609 fi
10610 done
10611 done
10612 if test "X$rpathdirs" != "X"; then
10613 if test -n "$hardcode_libdir_separator"; then
10614 alldirs=
10615 for found_dir in $rpathdirs; do
10616 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10617 done
10618 acl_save_libdir="$libdir"
10619 libdir="$alldirs"
10620 eval flag=\"$hardcode_libdir_flag_spec\"
10621 libdir="$acl_save_libdir"
10622 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10623 else
10624 for found_dir in $rpathdirs; do
10625 acl_save_libdir="$libdir"
10626 libdir="$found_dir"
10627 eval flag=\"$hardcode_libdir_flag_spec\"
10628 libdir="$acl_save_libdir"
10629 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10630 done
10631 fi
10632 fi
10633 if test "X$ltrpathdirs" != "X"; then
10634 for found_dir in $ltrpathdirs; do
10635 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10636 done
10637 fi
10638
Theodore Ts'oe1052142006-10-21 21:46:47 -040010639 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10640echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010641if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010643else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010644 gt_save_CPPFLAGS="$CPPFLAGS"
10645 CPPFLAGS="$CPPFLAGS $INCINTL"
10646 gt_save_LIBS="$LIBS"
10647 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648 cat >conftest.$ac_ext <<_ACEOF
10649/* confdefs.h. */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010654#include <libintl.h>
10655extern int _nl_msg_cat_cntr;
10656extern
10657#ifdef __cplusplus
10658"C"
10659#endif
10660const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661int
10662main ()
10663{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010664bindtextdomain ("", "");
10665return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010666 ;
10667 return 0;
10668}
10669_ACEOF
10670rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010671if { (ac_try="$ac_link"
10672case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675esac
10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678 ac_status=$?
10679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010683 (exit $ac_status); } && {
10684 test -z "$ac_c_werror_flag" ||
10685 test ! -s conftest.err
10686 } && test -s conftest$ac_exeext &&
10687 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010688 gt_cv_func_gnugettext1_libintl=yes
10689else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010690 echo "$as_me: failed program was:" >&5
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
Theodore Ts'oe1052142006-10-21 21:46:47 -040010693 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010694fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010695
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010697 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010698 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10699 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010700 cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h. */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010706#include <libintl.h>
10707extern int _nl_msg_cat_cntr;
10708extern
10709#ifdef __cplusplus
10710"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010711#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010712const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010713int
10714main ()
10715{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010716bindtextdomain ("", "");
10717return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010718 ;
10719 return 0;
10720}
10721_ACEOF
10722rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723if { (ac_try="$ac_link"
10724case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727esac
10728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest$ac_exeext &&
10739 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010740 LIBINTL="$LIBINTL $LIBICONV"
10741 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10742 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010744else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
Theodore Ts'oe1052142006-10-21 21:46:47 -040010748
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010749fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010750
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010753 fi
10754 CPPFLAGS="$gt_save_CPPFLAGS"
10755 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010756fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010757{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10758echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010759 fi
10760
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10762 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763 && test "$PACKAGE" != gettext-runtime \
10764 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010765 gt_use_preinstalled_gnugettext=yes
10766 else
10767 LIBINTL=
10768 LTLIBINTL=
10769 INCINTL=
10770 fi
10771
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10774 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010775 fi
10776 fi
10777
10778 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010780 USE_INCLUDED_LIBINTL=yes
10781 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10782 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10783 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010784 fi
10785
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010786 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10787 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10788 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010789 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010790
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010791
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10793 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794
10795cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010796#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010798
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010799 else
10800 USE_NLS=no
10801 fi
10802 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010803
Theodore Ts'oe1052142006-10-21 21:46:47 -040010804 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10805echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10806 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10807echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010808 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010809 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10810echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010811 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10812 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10813 gt_source="external libintl"
10814 else
10815 gt_source="libc"
10816 fi
10817 else
10818 gt_source="included intl directory"
10819 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010820 { echo "$as_me:$LINENO: result: $gt_source" >&5
10821echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822 fi
10823
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010825
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010826 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10827 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010828 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10829echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10830 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10831echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010832
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010833 for element in $INCINTL; do
10834 haveit=
10835 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010837 acl_save_prefix="$prefix"
10838 prefix="$acl_final_prefix"
10839 acl_save_exec_prefix="$exec_prefix"
10840 exec_prefix="$acl_final_exec_prefix"
10841 eval x=\"$x\"
10842 exec_prefix="$acl_save_exec_prefix"
10843 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010844
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010845 if test "X$x" = "X$element"; then
10846 haveit=yes
10847 break
10848 fi
10849 done
10850 if test -z "$haveit"; then
10851 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10852 fi
10853 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010854
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010855 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010856
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010857
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010858cat >>confdefs.h <<\_ACEOF
10859#define HAVE_GETTEXT 1
10860_ACEOF
10861
10862
10863cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010864#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010865_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010866
10867 fi
10868
10869 POSUB=po
10870 fi
10871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010872
10873 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010874 BUILD_INCLUDED_LIBINTL=yes
10875 fi
10876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010877
10878
10879
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010880
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010881 nls_cv_header_intl=
10882 nls_cv_header_libgt=
10883
10884 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010885
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010886
10887 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010889
10890 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010891
10892
10893 if test "$USE_INCLUDED_LIBINTL" = yes; then
10894 INTLOBJS="\$(GETTOBJS)"
10895 fi
10896
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010897
10898 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010899
10900
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010901
10902 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010903
10904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010905
10906
10907
10908
10909
Theodore Ts'oe1052142006-10-21 21:46:47 -040010910{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10911echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10912set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10913if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010914 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010915else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010917SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010918all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010919 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010920_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010921# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010922case `${MAKE-make} -f conftest.make 2>/dev/null` in
10923 *@@@%%%=?*=@@@%%%*)
10924 eval ac_cv_prog_make_${ac_make}_set=yes;;
10925 *)
10926 eval ac_cv_prog_make_${ac_make}_set=no;;
10927esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010928rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010930if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10931 { echo "$as_me:$LINENO: result: yes" >&5
10932echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010933 SET_MAKE=
10934else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935 { echo "$as_me:$LINENO: result: no" >&5
10936echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010937 SET_MAKE="MAKE=${MAKE-make}"
10938fi
10939
10940# Extract the first word of "ln", so it can be a program name with args.
10941set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010944if test "${ac_cv_path_LN+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010946else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010947 case $LN in
10948 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010949 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10950 ;;
10951 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010958 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 -050010959 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963done
10964done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010965IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010966
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010967 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10968 ;;
10969esac
10970fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010971LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010972if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010973 { echo "$as_me:$LINENO: result: $LN" >&5
10974echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010975else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010976 { echo "$as_me:$LINENO: result: no" >&5
10977echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010978fi
10979
Theodore Ts'oe1052142006-10-21 21:46:47 -040010980
10981{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10982echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010983LN_S=$as_ln_s
10984if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010985 { echo "$as_me:$LINENO: result: yes" >&5
10986echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010987else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010988 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10989echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010990fi
10991
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010992# Extract the first word of "mv", so it can be a program name with args.
10993set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010996if test "${ac_cv_path_MV+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010998else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010999 case $MV in
11000 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011001 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11002 ;;
11003 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005for as_dir in $PATH
11006do
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011010 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 -050011011 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11014 fi
11015done
11016done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011017IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011018
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011019 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11020 ;;
11021esac
11022fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011023MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011024if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011025 { echo "$as_me:$LINENO: result: $MV" >&5
11026echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011027else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011028 { echo "$as_me:$LINENO: result: no" >&5
11029echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011030fi
11031
Theodore Ts'oe1052142006-10-21 21:46:47 -040011032
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011033# Extract the first word of "cp", so it can be a program name with args.
11034set dummy cp; 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_path_CP+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 case $CP in
11041 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011042 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11043 ;;
11044 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046for as_dir in $PATH
11047do
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011051 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 -050011052 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056done
11057done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011059
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011060 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11061 ;;
11062esac
11063fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011064CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011065if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011066 { echo "$as_me:$LINENO: result: $CP" >&5
11067echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011068else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011069 { echo "$as_me:$LINENO: result: no" >&5
11070echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011071fi
11072
Theodore Ts'oe1052142006-10-21 21:46:47 -040011073
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011074# Extract the first word of "rm", so it can be a program name with args.
11075set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011078if test "${ac_cv_path_RM+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011081 case $RM in
11082 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011083 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11084 ;;
11085 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087for as_dir in $PATH
11088do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011092 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 -050011093 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097done
11098done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011099IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011100
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011101 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11102 ;;
11103esac
11104fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011105RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011106if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011107 { echo "$as_me:$LINENO: result: $RM" >&5
11108echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011109else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011110 { echo "$as_me:$LINENO: result: no" >&5
11111echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011112fi
11113
Theodore Ts'oe1052142006-10-21 21:46:47 -040011114
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011115# Extract the first word of "chmod", so it can be a program name with args.
11116set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011119if test "${ac_cv_path_CHMOD+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011121else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011122 case $CHMOD in
11123 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011124 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11125 ;;
11126 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011133 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 -050011134 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11137 fi
11138done
11139done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011140IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011141
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011142 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11143 ;;
11144esac
11145fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011146CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011147if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011148 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11149echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011150else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011151 { echo "$as_me:$LINENO: result: no" >&5
11152echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011153fi
11154
Theodore Ts'oe1052142006-10-21 21:46:47 -040011155
Theodore Ts'o32237012005-01-17 19:13:39 -050011156for ac_prog in gawk mawk nawk awk
11157do
11158 # Extract the first word of "$ac_prog", so it can be a program name with args.
11159set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011162if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011163 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011164else
Theodore Ts'o32237012005-01-17 19:13:39 -050011165 if test -n "$AWK"; then
11166 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11167else
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011169for as_dir in $PATH
11170do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011174 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 -050011175 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11178 fi
11179done
11180done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011181IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011182
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011183fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011184fi
11185AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011186if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011187 { echo "$as_me:$LINENO: result: $AWK" >&5
11188echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011189else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011190 { echo "$as_me:$LINENO: result: no" >&5
11191echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011192fi
11193
Theodore Ts'oe1052142006-10-21 21:46:47 -040011194
Theodore Ts'o32237012005-01-17 19:13:39 -050011195 test -n "$AWK" && break
11196done
11197
Theodore Ts'oe1052142006-10-21 21:46:47 -040011198{ echo "$as_me:$LINENO: checking for egrep" >&5
11199echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11200if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011203 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11204 then ac_cv_path_EGREP="$GREP -E"
11205 else
11206 # Extract the first word of "egrep" to use in msg output
11207if test -z "$EGREP"; then
11208set dummy egrep; ac_prog_name=$2
11209if test "${ac_cv_path_EGREP+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11211else
11212 ac_path_EGREP_found=false
11213# Loop through the user's path and test for each of PROGNAME-LIST
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_prog in egrep; do
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011222 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011223 # Check for GNU ac_path_EGREP and select it if it is found.
11224 # Check for GNU $ac_path_EGREP
11225case `"$ac_path_EGREP" --version 2>&1` in
11226*GNU*)
11227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11228*)
11229 ac_count=0
11230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11231 while :
11232 do
11233 cat "conftest.in" "conftest.in" >"conftest.tmp"
11234 mv "conftest.tmp" "conftest.in"
11235 cp "conftest.in" "conftest.nl"
11236 echo 'EGREP' >> "conftest.nl"
11237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11239 ac_count=`expr $ac_count + 1`
11240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11241 # Best one so far, save it but keep looking for a better one
11242 ac_cv_path_EGREP="$ac_path_EGREP"
11243 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011244 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011245 # 10*(2^10) chars as input seems more than enough
11246 test $ac_count -gt 10 && break
11247 done
11248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11249esac
11250
11251
11252 $ac_path_EGREP_found && break 3
11253 done
11254done
11255
11256done
11257IFS=$as_save_IFS
11258
11259
Theodore Ts'o32237012005-01-17 19:13:39 -050011260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011261
11262EGREP="$ac_cv_path_EGREP"
11263if test -z "$EGREP"; then
11264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11265echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11266 { (exit 1); exit 1; }; }
11267fi
11268
11269else
11270 ac_cv_path_EGREP=$EGREP
11271fi
11272
11273
11274 fi
11275fi
11276{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11277echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11278 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011279
11280
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011281# Extract the first word of "sed", so it can be a program name with args.
11282set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011285if test "${ac_cv_path_SED+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011288 case $SED in
11289 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011290 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11291 ;;
11292 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294for as_dir in $PATH
11295do
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011299 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 -050011300 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11303 fi
11304done
11305done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011306IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011307
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011308 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11309 ;;
11310esac
11311fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011313if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011314 { echo "$as_me:$LINENO: result: $SED" >&5
11315echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011316else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011317 { echo "$as_me:$LINENO: result: no" >&5
11318echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011319fi
11320
Theodore Ts'oe1052142006-10-21 21:46:47 -040011321
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011322# Extract the first word of "perl", so it can be a program name with args.
11323set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011326if test "${ac_cv_path_PERL+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011328else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011329 case $PERL in
11330 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011331 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11332 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011333 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335for as_dir in $PATH
11336do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011340 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 -050011341 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11344 fi
11345done
11346done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011347IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011349 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11350 ;;
11351esac
11352fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011354if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011355 { echo "$as_me:$LINENO: result: $PERL" >&5
11356echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011357else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011358 { echo "$as_me:$LINENO: result: no" >&5
11359echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011360fi
11361
Theodore Ts'oe1052142006-10-21 21:46:47 -040011362
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011363# Extract the first word of "ldconfig", so it can be a program name with args.
11364set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011367if test "${ac_cv_path_LDCONFIG+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011369else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011370 case $LDCONFIG in
11371 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011372 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11373 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011374 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376for as_dir in $PATH
11377do
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011381 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 -050011382 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11384 break 2
11385 fi
11386done
11387done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011388IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011390 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11391 ;;
11392esac
11393fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011394LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011395if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011396 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11397echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011398else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011399 { echo "$as_me:$LINENO: result: no" >&5
11400echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011401fi
11402
Theodore Ts'oe1052142006-10-21 21:46:47 -040011403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404if test -n "$ac_tool_prefix"; then
11405 # 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 +000011406set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011409if test "${ac_cv_prog_AR+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011411else
11412 if test -n "$AR"; then
11413 ac_cv_prog_AR="$AR" # Let the user override the test.
11414else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416for as_dir in $PATH
11417do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011421 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 -050011422 ac_cv_prog_AR="${ac_tool_prefix}ar"
11423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11425 fi
11426done
11427done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011428IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011429
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011430fi
11431fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011433if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011434 { echo "$as_me:$LINENO: result: $AR" >&5
11435echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011436else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011437 { echo "$as_me:$LINENO: result: no" >&5
11438echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011439fi
11440
Theodore Ts'oe1052142006-10-21 21:46:47 -040011441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011443if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011445 # Extract the first word of "ar", so it can be a program name with args.
11446set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011451else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011452 if test -n "$ac_ct_AR"; then
11453 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011454else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456for as_dir in $PATH
11457do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011461 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 -050011462 ac_cv_prog_ac_ct_AR="ar"
11463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11465 fi
11466done
11467done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011468IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011470fi
11471fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011472ac_ct_AR=$ac_cv_prog_ac_ct_AR
11473if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011474 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11475echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011476else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011477 { echo "$as_me:$LINENO: result: no" >&5
11478echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011479fi
11480
Theodore Ts'oe1052142006-10-21 21:46:47 -040011481 if test "x$ac_ct_AR" = x; then
11482 AR="ar"
11483 else
11484 case $cross_compiling:$ac_tool_warned in
11485yes:)
11486{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11487whose name does not start with the host triplet. If you think this
11488configuration is useful to you, please write to autoconf@gnu.org." >&5
11489echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11490whose name does not start with the host triplet. If you think this
11491configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11492ac_tool_warned=yes ;;
11493esac
11494 AR=$ac_ct_AR
11495 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011496else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011497 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011498fi
11499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500if test -n "$ac_tool_prefix"; then
11501 # 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 +000011502set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505if test "${ac_cv_prog_RANLIB+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011507else
11508 if test -n "$RANLIB"; then
11509 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11510else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011517 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 -050011518 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11521 fi
11522done
11523done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011524IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011525
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011526fi
11527fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011529if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011530 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11531echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011532else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011533 { echo "$as_me:$LINENO: result: no" >&5
11534echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011535fi
11536
Theodore Ts'oe1052142006-10-21 21:46:47 -040011537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011538fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011539if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011540 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011541 # Extract the first word of "ranlib", so it can be a program name with args.
11542set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011545if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011547else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011548 if test -n "$ac_ct_RANLIB"; then
11549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011557 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 -050011558 ac_cv_prog_ac_ct_RANLIB="ranlib"
11559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11561 fi
11562done
11563done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011564IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011565
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011566fi
11567fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11569if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011570 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11571echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011573 { echo "$as_me:$LINENO: result: no" >&5
11574echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011575fi
11576
Theodore Ts'oe1052142006-10-21 21:46:47 -040011577 if test "x$ac_ct_RANLIB" = x; then
11578 RANLIB=":"
11579 else
11580 case $cross_compiling:$ac_tool_warned in
11581yes:)
11582{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11583whose name does not start with the host triplet. If you think this
11584configuration is useful to you, please write to autoconf@gnu.org." >&5
11585echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11586whose name does not start with the host triplet. If you think this
11587configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11588ac_tool_warned=yes ;;
11589esac
11590 RANLIB=$ac_ct_RANLIB
11591 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011592else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011593 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594fi
11595
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596if test -n "$ac_tool_prefix"; then
11597 # 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 +000011598set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011601if test "${ac_cv_prog_STRIP+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603else
11604 if test -n "$STRIP"; then
11605 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11606else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608for as_dir in $PATH
11609do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011613 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 -050011614 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11617 fi
11618done
11619done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011620IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011621
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011622fi
11623fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011624STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011625if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011626 { echo "$as_me:$LINENO: result: $STRIP" >&5
11627echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011628else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011629 { echo "$as_me:$LINENO: result: no" >&5
11630echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011631fi
11632
Theodore Ts'oe1052142006-10-21 21:46:47 -040011633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011634fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011635if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011636 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011637 # Extract the first word of "strip", so it can be a program name with args.
11638set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011641if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011643else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011644 if test -n "$ac_ct_STRIP"; then
11645 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011646else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648for as_dir in $PATH
11649do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011653 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 -050011654 ac_cv_prog_ac_ct_STRIP="strip"
11655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658done
11659done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011660IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011661
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011662fi
11663fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011664ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11665if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011666 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11667echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011668else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011669 { echo "$as_me:$LINENO: result: no" >&5
11670echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671fi
11672
Theodore Ts'oe1052142006-10-21 21:46:47 -040011673 if test "x$ac_ct_STRIP" = x; then
11674 STRIP=":"
11675 else
11676 case $cross_compiling:$ac_tool_warned in
11677yes:)
11678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11679whose name does not start with the host triplet. If you think this
11680configuration is useful to you, please write to autoconf@gnu.org." >&5
11681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11682whose name does not start with the host triplet. If you think this
11683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11684ac_tool_warned=yes ;;
11685esac
11686 STRIP=$ac_ct_STRIP
11687 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011688else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011689 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011690fi
11691
Manish Katiyar7321d942008-04-14 17:20:03 +053011692# Extract the first word of "makeinfo", so it can be a program name with args.
11693set dummy makeinfo; ac_word=$2
11694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11696if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
11699 if test -n "$MAKEINFO"; then
11700 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11701else
11702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703for as_dir in $PATH
11704do
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_prog_MAKEINFO="makeinfo"
11710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11712 fi
11713done
11714done
11715IFS=$as_save_IFS
11716
11717fi
11718fi
11719MAKEINFO=$ac_cv_prog_MAKEINFO
11720if test -n "$MAKEINFO"; then
11721 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11722echo "${ECHO_T}$MAKEINFO" >&6; }
11723else
11724 { echo "$as_me:$LINENO: result: no" >&5
11725echo "${ECHO_T}no" >&6; }
11726fi
11727
11728
11729if test "_$MAKEINFO" = "_"; then
11730 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11731else
11732 case "$MAKEINFO" in
11733 */missing.*)
11734 { echo "$as_me:$LINENO: WARNING:
11735*** Makeinfo is missing. Info documentation will not be built." >&5
11736echo "$as_me: WARNING:
11737*** Makeinfo is missing. Info documentation will not be built." >&2;}
11738 ;;
11739 *)
11740 ;;
11741 esac
11742fi
11743
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011744# Find a good install program. We prefer a C program (faster),
11745# so one script is as good as another. But avoid the broken or
11746# incompatible versions:
11747# SysV /etc/install, /usr/sbin/install
11748# SunOS /usr/etc/install
11749# IRIX /sbin/install
11750# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011751# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011755# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011757{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11758echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011760if test "${ac_cv_path_install+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764for as_dir in $PATH
11765do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 # Account for people who put trailing slashes in PATH elements.
11769case $as_dir/ in
11770 ./ | .// | /cC/* | \
11771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11772 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11773 /usr/ucb/* ) ;;
11774 *)
11775 # OSF1 and SCO ODT 3.0 have their own names for install.
11776 # Don't use installbsd from OSF since it installs stuff as root
11777 # by default.
11778 for ac_prog in ginstall scoinst install; do
11779 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011780 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 +000011781 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011783 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011784 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011785 elif test $ac_prog = install &&
11786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11787 # program-specific install script used by HP pwplus--don't use.
11788 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011789 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11791 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792 fi
11793 fi
11794 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011795 done
11796 ;;
11797esac
11798done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011800
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011801
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011802fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011803 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011805 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011806 # As a last resort, use the slow shell script. Don't cache a
11807 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011808 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011809 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011810 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011811 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011812fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011813{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11814echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011815
11816# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11817# It thinks the first close brace ends the variable substitution.
11818test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11819
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011820test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011821
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011822test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11823
Theodore Ts'o6c133521999-07-03 20:37:03 +000011824# See if we need a separate native compiler.
11825if test $cross_compiling = no; then
11826 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011827
Theodore Ts'o6c133521999-07-03 20:37:03 +000011828else
11829 for ac_prog in gcc cc
11830do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011832set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011835if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011837else
11838 if test -n "$BUILD_CC"; then
11839 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11840else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011843do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011847 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 -050011848 ac_cv_prog_BUILD_CC="$ac_prog"
11849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11851 fi
11852done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011853done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856fi
11857fi
11858BUILD_CC=$ac_cv_prog_BUILD_CC
11859if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011860 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11861echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011862else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863 { echo "$as_me:$LINENO: result: no" >&5
11864echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011865fi
11866
Theodore Ts'oe1052142006-10-21 21:46:47 -040011867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868 test -n "$BUILD_CC" && break
11869done
11870
11871fi
11872
Theodore Ts'o740837d2007-12-16 17:21:38 -050011873
11874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011903
Theodore Ts'o106ad962007-04-04 21:26:37 -040011904
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011905
11906
Theodore Ts'o3d058022008-07-12 22:06:30 -040011907
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040011908
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011909
11910for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011911do
11912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011919ac_res=`eval echo '${'$as_ac_Header'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011922else
11923 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011924{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011926cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932$ac_includes_default
11933#include <$ac_header>
11934_ACEOF
11935rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011936if { (ac_try="$ac_compile"
11937case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011952 ac_header_compiler=yes
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
Theodore Ts'oe1052142006-10-21 21:46:47 -040011957 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959
11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11962echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011963
11964# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011965{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011967cat >conftest.$ac_ext <<_ACEOF
11968/* confdefs.h. */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h. */
11973#include <$ac_header>
11974_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011975if { (ac_try="$ac_cpp conftest.$ac_ext"
11976case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011987 (exit $ac_status); } >/dev/null && {
11988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011991 ac_header_preproc=yes
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_header_preproc=no
11997fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012002
12003# So? What about this header?
12004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12005 yes:no: )
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc=yes
12011 ;;
12012 no:yes:* )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012025
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012026 ;;
12027esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032else
12033 eval "$as_ac_Header=\$ac_header_preproc"
12034fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012035ac_res=`eval echo '${'$as_ac_Header'}'`
12036 { echo "$as_me:$LINENO: result: $ac_res" >&5
12037echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012038
12039fi
12040if test `eval echo '${'$as_ac_Header'}'` = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12043_ACEOF
12044
12045fi
12046
12047done
12048
12049
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012050
12051for ac_header in sys/disk.h sys/mount.h
12052do
12053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058else
12059 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. */
12065
12066#if HAVE_SYS_QUEUE_H
12067#include <sys/queue.h>
12068#endif
12069
12070
12071#include <$ac_header>
12072_ACEOF
12073rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012074if { (ac_try="$ac_compile"
12075case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078esac
12079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012081 ac_status=$?
12082 grep -v '^ *+' conftest.er1 >conftest.err
12083 rm -f conftest.er1
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012086 (exit $ac_status); } && {
12087 test -z "$ac_c_werror_flag" ||
12088 test ! -s conftest.err
12089 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012090 eval "$as_ac_Header=yes"
12091else
12092 echo "$as_me: failed program was:" >&5
12093sed 's/^/| /' conftest.$ac_ext >&5
12094
Theodore Ts'oe1052142006-10-21 21:46:47 -040012095 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012096fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012097
12098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100ac_res=`eval echo '${'$as_ac_Header'}'`
12101 { echo "$as_me:$LINENO: result: $ac_res" >&5
12102echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012103if test `eval echo '${'$as_ac_Header'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12106_ACEOF
12107
12108fi
12109
12110done
12111
12112
12113for ac_header in net/if.h
12114do
12115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012116{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120else
12121 cat >conftest.$ac_ext <<_ACEOF
12122/* confdefs.h. */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h. */
12127
12128#if HAVE_SYS_TYPES_H
12129#include <sys/types.h>
12130#endif
12131#if HAVE_SYS_SOCKET
12132#include <sys/socket.h>
12133#endif
12134
12135
12136#include <$ac_header>
12137_ACEOF
12138rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012139if { (ac_try="$ac_compile"
12140case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12143esac
12144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012155 eval "$as_ac_Header=yes"
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012161fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012162
12163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165ac_res=`eval echo '${'$as_ac_Header'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012168if test `eval echo '${'$as_ac_Header'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12171_ACEOF
12172
12173fi
12174
12175done
12176
12177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178for ac_func in vprintf
12179do
12180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185else
12186 cat >conftest.$ac_ext <<_ACEOF
12187/* confdefs.h. */
12188_ACEOF
12189cat confdefs.h >>conftest.$ac_ext
12190cat >>conftest.$ac_ext <<_ACEOF
12191/* end confdefs.h. */
12192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12194#define $ac_func innocuous_$ac_func
12195
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012196/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197 which can conflict with char $ac_func (); below.
12198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12199 <limits.h> exists even on freestanding compilers. */
12200
12201#ifdef __STDC__
12202# include <limits.h>
12203#else
12204# include <assert.h>
12205#endif
12206
12207#undef $ac_func
12208
Theodore Ts'oe1052142006-10-21 21:46:47 -040012209/* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012212#ifdef __cplusplus
12213extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012214#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216/* The GNU C library defines this for functions which it implements
12217 to always fail with ENOSYS. Some functions are actually named
12218 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012219#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012220choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012221#endif
12222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012223int
12224main ()
12225{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012226return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012227 ;
12228 return 0;
12229}
12230_ACEOF
12231rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012232if { (ac_try="$ac_link"
12233case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236esac
12237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest$ac_exeext &&
12248 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012253
Theodore Ts'oe1052142006-10-21 21:46:47 -040012254 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012256
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258 conftest$ac_exeext conftest.$ac_ext
12259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012260ac_res=`eval echo '${'$as_ac_var'}'`
12261 { echo "$as_me:$LINENO: result: $ac_res" >&5
12262echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012263if test `eval echo '${'$as_ac_var'}'` = yes; then
12264 cat >>confdefs.h <<_ACEOF
12265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12266_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012267
Theodore Ts'oe1052142006-10-21 21:46:47 -040012268{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12269echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012270if test "${ac_cv_func__doprnt+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012273 cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
12279/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12281#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012282
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012283/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012284 which can conflict with char _doprnt (); below.
12285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 <limits.h> exists even on freestanding compilers. */
12287
12288#ifdef __STDC__
12289# include <limits.h>
12290#else
12291# include <assert.h>
12292#endif
12293
12294#undef _doprnt
12295
Theodore Ts'oe1052142006-10-21 21:46:47 -040012296/* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012299#ifdef __cplusplus
12300extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012302char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012303/* The GNU C library defines this for functions which it implements
12304 to always fail with ENOSYS. Some functions are actually named
12305 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012306#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012307choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012308#endif
12309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012310int
12311main ()
12312{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012314 ;
12315 return 0;
12316}
12317_ACEOF
12318rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012319if { (ac_try="$ac_link"
12320case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323esac
12324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012331 (exit $ac_status); } && {
12332 test -z "$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 } && test -s conftest$ac_exeext &&
12335 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012337else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012338 echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012340
Theodore Ts'oe1052142006-10-21 21:46:47 -040012341 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012343
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012345 conftest$ac_exeext conftest.$ac_ext
12346fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012347{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12348echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012349if test $ac_cv_func__doprnt = yes; then
12350
12351cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012352#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012353_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012354
12355fi
12356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012357fi
12358done
12359
12360
Theodore Ts'oe1052142006-10-21 21:46:47 -040012361{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12362echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012363if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012365else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012366 cat >conftest.$ac_ext <<_ACEOF
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012372#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012374int
12375main ()
12376{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012377static struct dirent ac_aggr;
12378if (ac_aggr.d_reclen)
12379return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012380 ;
12381 return 0;
12382}
12383_ACEOF
12384rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012385if { (ac_try="$ac_compile"
12386case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389esac
12390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012397 (exit $ac_status); } && {
12398 test -z "$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012401 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012402else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012403 echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
Theodore Ts'oe1052142006-10-21 21:46:47 -040012406 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412#include <dirent.h>
12413
12414int
12415main ()
12416{
12417static struct dirent ac_aggr;
12418if (sizeof ac_aggr.d_reclen)
12419return 0;
12420 ;
12421 return 0;
12422}
12423_ACEOF
12424rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012425if { (ac_try="$ac_compile"
12426case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429esac
12430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012441 ac_cv_member_struct_dirent_d_reclen=yes
12442else
12443 echo "$as_me: failed program was:" >&5
12444sed 's/^/| /' conftest.$ac_ext >&5
12445
Theodore Ts'oe1052142006-10-21 21:46:47 -040012446 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012447fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012448
12449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012451
12452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012453fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012454{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12455echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012456if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12457 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012458#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012459_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012460
12461fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012462
Theodore Ts'oe1052142006-10-21 21:46:47 -040012463{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12464echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012465if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012466 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012467else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012468 cat >conftest.$ac_ext <<_ACEOF
12469/* confdefs.h. */
12470_ACEOF
12471cat confdefs.h >>conftest.$ac_ext
12472cat >>conftest.$ac_ext <<_ACEOF
12473/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012474#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012475
Theodore Ts'oe1052142006-10-21 21:46:47 -040012476typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477int
12478main ()
12479{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012480if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012481 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012482if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012483 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012484 ;
12485 return 0;
12486}
12487_ACEOF
12488rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489if { (ac_try="$ac_compile"
12490case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012505 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012506else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
Theodore Ts'oe1052142006-10-21 21:46:47 -040012510 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012511fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012512
12513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012514fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012515{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12516echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012517if test $ac_cv_type_ssize_t = yes; then
12518 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012519#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012521
12522fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012523
Theodore Ts'oe1052142006-10-21 21:46:47 -040012524{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12525echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012526if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012529 cat >conftest.$ac_ext <<_ACEOF
12530/* confdefs.h. */
12531_ACEOF
12532cat confdefs.h >>conftest.$ac_ext
12533cat >>conftest.$ac_ext <<_ACEOF
12534/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012535#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012536
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012537int
12538main ()
12539{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012540#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012541 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012542#endif
12543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544 ;
12545 return 0;
12546}
12547_ACEOF
12548rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012549if { (ac_try="$ac_compile"
12550case "(($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_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012565 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012566else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
Theodore Ts'oe1052142006-10-21 21:46:47 -040012570 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012572
12573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012575{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12576echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012577if test $ac_cv_have_decl_llseek = yes; then
12578 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012579#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012580_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012581
12582fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012583
Theodore Ts'oe1052142006-10-21 21:46:47 -040012584{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12585echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012586if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012588else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012589 cat >conftest.$ac_ext <<_ACEOF
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012595#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012596 #define _LARGEFILE64_SOURCE
12597 #include <unistd.h>
12598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012599int
12600main ()
12601{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012602#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012603 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012604#endif
12605
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012606 ;
12607 return 0;
12608}
12609_ACEOF
12610rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012611if { (ac_try="$ac_compile"
12612case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012627 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012628else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012629 echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
Theodore Ts'oe1052142006-10-21 21:46:47 -040012632 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012634
12635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012636fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012637{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12638echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012639if test $ac_cv_have_decl_lseek64 = yes; then
12640 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012641#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012642_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012643
12644fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012645
Theodore Ts'oe1052142006-10-21 21:46:47 -040012646{ echo "$as_me:$LINENO: checking for short" >&5
12647echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012648if test "${ac_cv_type_short+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650else
12651 cat >conftest.$ac_ext <<_ACEOF
12652/* confdefs.h. */
12653_ACEOF
12654cat confdefs.h >>conftest.$ac_ext
12655cat >>conftest.$ac_ext <<_ACEOF
12656/* end confdefs.h. */
12657$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012658typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012659int
12660main ()
12661{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012662if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012665 return 0;
12666 ;
12667 return 0;
12668}
12669_ACEOF
12670rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012671if { (ac_try="$ac_compile"
12672case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675esac
12676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012687 ac_cv_type_short=yes
12688else
12689 echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
Theodore Ts'oe1052142006-10-21 21:46:47 -040012692 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012694
Theodore Ts'oe1052142006-10-21 21:46:47 -040012695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696fi
12697{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12698echo "${ECHO_T}$ac_cv_type_short" >&6; }
12699
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012700# The cast to long int works around a bug in the HP C Compiler
12701# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12702# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12703# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012704{ echo "$as_me:$LINENO: checking size of short" >&5
12705echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012706if test "${ac_cv_sizeof_short+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012709 if test "$cross_compiling" = yes; then
12710 # Depending upon the size, compute the lo and hi bounds.
12711cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012718 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719int
12720main ()
12721{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012722static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012723test_array [0] = 0
12724
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012730if { (ac_try="$ac_compile"
12731case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734esac
12735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012746 ac_lo=0 ac_mid=0
12747 while :; do
12748 cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012755 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756int
12757main ()
12758{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012759static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012760test_array [0] = 0
12761
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012767if { (ac_try="$ac_compile"
12768case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771esac
12772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012783 ac_hi=$ac_mid; break
12784else
12785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
Theodore Ts'oe1052142006-10-21 21:46:47 -040012788 ac_lo=`expr $ac_mid + 1`
12789 if test $ac_lo -le $ac_mid; then
12790 ac_lo= ac_hi=
12791 break
12792 fi
12793 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012795
12796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012797 done
12798else
12799 echo "$as_me: failed program was:" >&5
12800sed 's/^/| /' conftest.$ac_ext >&5
12801
Theodore Ts'oe1052142006-10-21 21:46:47 -040012802 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012809 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012810int
12811main ()
12812{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012813static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814test_array [0] = 0
12815
12816 ;
12817 return 0;
12818}
12819_ACEOF
12820rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012821if { (ac_try="$ac_compile"
12822case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825esac
12826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012828 ac_status=$?
12829 grep -v '^ *+' conftest.er1 >conftest.err
12830 rm -f conftest.er1
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012833 (exit $ac_status); } && {
12834 test -z "$ac_c_werror_flag" ||
12835 test ! -s conftest.err
12836 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012837 ac_hi=-1 ac_mid=-1
12838 while :; do
12839 cat >conftest.$ac_ext <<_ACEOF
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
12844/* end confdefs.h. */
12845$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012846 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012847int
12848main ()
12849{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012850static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012851test_array [0] = 0
12852
12853 ;
12854 return 0;
12855}
12856_ACEOF
12857rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858if { (ac_try="$ac_compile"
12859case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12862esac
12863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012870 (exit $ac_status); } && {
12871 test -z "$ac_c_werror_flag" ||
12872 test ! -s conftest.err
12873 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012874 ac_lo=$ac_mid; break
12875else
12876 echo "$as_me: failed program was:" >&5
12877sed 's/^/| /' conftest.$ac_ext >&5
12878
Theodore Ts'oe1052142006-10-21 21:46:47 -040012879 ac_hi=`expr '(' $ac_mid ')' - 1`
12880 if test $ac_mid -le $ac_hi; then
12881 ac_lo= ac_hi=
12882 break
12883 fi
12884 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012885fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012886
12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888 done
12889else
12890 echo "$as_me: failed program was:" >&5
12891sed 's/^/| /' conftest.$ac_ext >&5
12892
Theodore Ts'oe1052142006-10-21 21:46:47 -040012893 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012895
12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012897fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012898
12899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012900# Binary search between lo and hi bounds.
12901while test "x$ac_lo" != "x$ac_hi"; do
12902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12903 cat >conftest.$ac_ext <<_ACEOF
12904/* confdefs.h. */
12905_ACEOF
12906cat confdefs.h >>conftest.$ac_ext
12907cat >>conftest.$ac_ext <<_ACEOF
12908/* end confdefs.h. */
12909$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012910 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012911int
12912main ()
12913{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012914static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915test_array [0] = 0
12916
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012922if { (ac_try="$ac_compile"
12923case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926esac
12927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938 ac_hi=$ac_mid
12939else
12940 echo "$as_me: failed program was:" >&5
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
Theodore Ts'oe1052142006-10-21 21:46:47 -040012943 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012945
12946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012947done
12948case $ac_lo in
12949?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012950'') if test "$ac_cv_type_short" = yes; then
12951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012952See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012953echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012955 { (exit 77); exit 77; }; }
12956 else
12957 ac_cv_sizeof_short=0
12958 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012959esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012961 cat >conftest.$ac_ext <<_ACEOF
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
12967$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012968 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012969static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12970static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012971#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972#include <stdlib.h>
12973int
12974main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012975{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012976
12977 FILE *f = fopen ("conftest.val", "w");
12978 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012979 return 1;
12980 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012982 long int i = longval ();
12983 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12984 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012985 fprintf (f, "%ld\n", i);
12986 }
12987 else
12988 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012989 unsigned long int i = ulongval ();
12990 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12991 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012992 fprintf (f, "%lu\n", i);
12993 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012994 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012995
12996 ;
12997 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012998}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012999_ACEOF
13000rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013001if { (ac_try="$ac_link"
13002case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
13015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013021else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013022 echo "$as_me: program exited with status $ac_status" >&5
13023echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013027if test "$ac_cv_type_short" = yes; then
13028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013029See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013030echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013032 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013033 else
13034 ac_cv_sizeof_short=0
13035 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013036fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013037rm -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 -050013038fi
13039rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013040fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13042echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013043
13044
13045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013046cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013047#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013048_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013049
13050
Theodore Ts'oe1052142006-10-21 21:46:47 -040013051{ echo "$as_me:$LINENO: checking for int" >&5
13052echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013053if test "${ac_cv_type_int+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055else
13056 cat >conftest.$ac_ext <<_ACEOF
13057/* confdefs.h. */
13058_ACEOF
13059cat confdefs.h >>conftest.$ac_ext
13060cat >>conftest.$ac_ext <<_ACEOF
13061/* end confdefs.h. */
13062$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013063typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013064int
13065main ()
13066{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013067if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013068 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013069if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013070 return 0;
13071 ;
13072 return 0;
13073}
13074_ACEOF
13075rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013076if { (ac_try="$ac_compile"
13077case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013088 (exit $ac_status); } && {
13089 test -z "$ac_c_werror_flag" ||
13090 test ! -s conftest.err
13091 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013092 ac_cv_type_int=yes
13093else
13094 echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
Theodore Ts'oe1052142006-10-21 21:46:47 -040013097 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013098fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013099
Theodore Ts'oe1052142006-10-21 21:46:47 -040013100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101fi
13102{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13103echo "${ECHO_T}$ac_cv_type_int" >&6; }
13104
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013105# The cast to long int works around a bug in the HP C Compiler
13106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13108# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013109{ echo "$as_me:$LINENO: checking size of int" >&5
13110echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013111if test "${ac_cv_sizeof_int+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013114 if test "$cross_compiling" = yes; then
13115 # Depending upon the size, compute the lo and hi bounds.
13116cat >conftest.$ac_ext <<_ACEOF
13117/* confdefs.h. */
13118_ACEOF
13119cat confdefs.h >>conftest.$ac_ext
13120cat >>conftest.$ac_ext <<_ACEOF
13121/* end confdefs.h. */
13122$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013123 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013124int
13125main ()
13126{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013127static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013128test_array [0] = 0
13129
13130 ;
13131 return 0;
13132}
13133_ACEOF
13134rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013135if { (ac_try="$ac_compile"
13136case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013147 (exit $ac_status); } && {
13148 test -z "$ac_c_werror_flag" ||
13149 test ! -s conftest.err
13150 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013151 ac_lo=0 ac_mid=0
13152 while :; do
13153 cat >conftest.$ac_ext <<_ACEOF
13154/* confdefs.h. */
13155_ACEOF
13156cat confdefs.h >>conftest.$ac_ext
13157cat >>conftest.$ac_ext <<_ACEOF
13158/* end confdefs.h. */
13159$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013160 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013161int
13162main ()
13163{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013164static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013165test_array [0] = 0
13166
13167 ;
13168 return 0;
13169}
13170_ACEOF
13171rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013172if { (ac_try="$ac_compile"
13173case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176esac
13177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013188 ac_hi=$ac_mid; break
13189else
13190 echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
Theodore Ts'oe1052142006-10-21 21:46:47 -040013193 ac_lo=`expr $ac_mid + 1`
13194 if test $ac_lo -le $ac_mid; then
13195 ac_lo= ac_hi=
13196 break
13197 fi
13198 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013199fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013200
13201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013202 done
13203else
13204 echo "$as_me: failed program was:" >&5
13205sed 's/^/| /' conftest.$ac_ext >&5
13206
Theodore Ts'oe1052142006-10-21 21:46:47 -040013207 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013208/* confdefs.h. */
13209_ACEOF
13210cat confdefs.h >>conftest.$ac_ext
13211cat >>conftest.$ac_ext <<_ACEOF
13212/* end confdefs.h. */
13213$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013214 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013215int
13216main ()
13217{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013218static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013219test_array [0] = 0
13220
13221 ;
13222 return 0;
13223}
13224_ACEOF
13225rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013226if { (ac_try="$ac_compile"
13227case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013238 (exit $ac_status); } && {
13239 test -z "$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013242 ac_hi=-1 ac_mid=-1
13243 while :; do
13244 cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013251 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013252int
13253main ()
13254{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013255static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013256test_array [0] = 0
13257
13258 ;
13259 return 0;
13260}
13261_ACEOF
13262rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013263if { (ac_try="$ac_compile"
13264case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267esac
13268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013275 (exit $ac_status); } && {
13276 test -z "$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13278 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013279 ac_lo=$ac_mid; break
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
Theodore Ts'oe1052142006-10-21 21:46:47 -040013284 ac_hi=`expr '(' $ac_mid ')' - 1`
13285 if test $ac_mid -le $ac_hi; then
13286 ac_lo= ac_hi=
13287 break
13288 fi
13289 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013290fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013291
13292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013293 done
13294else
13295 echo "$as_me: failed program was:" >&5
13296sed 's/^/| /' conftest.$ac_ext >&5
13297
Theodore Ts'oe1052142006-10-21 21:46:47 -040013298 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013300
13301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013303
13304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013305# Binary search between lo and hi bounds.
13306while test "x$ac_lo" != "x$ac_hi"; do
13307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13308 cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h. */
13314$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013315 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013316int
13317main ()
13318{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013319static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013320test_array [0] = 0
13321
13322 ;
13323 return 0;
13324}
13325_ACEOF
13326rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013327if { (ac_try="$ac_compile"
13328case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013339 (exit $ac_status); } && {
13340 test -z "$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13342 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013343 ac_hi=$ac_mid
13344else
13345 echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
Theodore Ts'oe1052142006-10-21 21:46:47 -040013348 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013350
13351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013352done
13353case $ac_lo in
13354?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013355'') if test "$ac_cv_type_int" = yes; then
13356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013357See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013358echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013359See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013360 { (exit 77); exit 77; }; }
13361 else
13362 ac_cv_sizeof_int=0
13363 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013364esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013365else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013366 cat >conftest.$ac_ext <<_ACEOF
13367/* confdefs.h. */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h. */
13372$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013373 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013374static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13375static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013376#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013377#include <stdlib.h>
13378int
13379main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013380{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013381
13382 FILE *f = fopen ("conftest.val", "w");
13383 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013384 return 1;
13385 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013386 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013387 long int i = longval ();
13388 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13389 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013390 fprintf (f, "%ld\n", i);
13391 }
13392 else
13393 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013394 unsigned long int i = ulongval ();
13395 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13396 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013397 fprintf (f, "%lu\n", i);
13398 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013399 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013400
13401 ;
13402 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013403}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013404_ACEOF
13405rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013406if { (ac_try="$ac_link"
13407case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013426else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013427 echo "$as_me: program exited with status $ac_status" >&5
13428echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
13430
13431( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013432if test "$ac_cv_type_int" = yes; then
13433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013434See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013435echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013436See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013437 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013438 else
13439 ac_cv_sizeof_int=0
13440 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013441fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013442rm -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 -050013443fi
13444rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13447echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013448
13449
13450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013451cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013452#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013453_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013454
13455
Theodore Ts'oe1052142006-10-21 21:46:47 -040013456{ echo "$as_me:$LINENO: checking for long" >&5
13457echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013458if test "${ac_cv_type_long+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
13467$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013468typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013469int
13470main ()
13471{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013472if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013473 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013474if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013475 return 0;
13476 ;
13477 return 0;
13478}
13479_ACEOF
13480rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013481if { (ac_try="$ac_compile"
13482case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013493 (exit $ac_status); } && {
13494 test -z "$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13496 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013497 ac_cv_type_long=yes
13498else
13499 echo "$as_me: failed program was:" >&5
13500sed 's/^/| /' conftest.$ac_ext >&5
13501
Theodore Ts'oe1052142006-10-21 21:46:47 -040013502 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013503fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013504
Theodore Ts'oe1052142006-10-21 21:46:47 -040013505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506fi
13507{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13508echo "${ECHO_T}$ac_cv_type_long" >&6; }
13509
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013510# The cast to long int works around a bug in the HP C Compiler
13511# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13512# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13513# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013514{ echo "$as_me:$LINENO: checking size of long" >&5
13515echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013516if test "${ac_cv_sizeof_long+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013519 if test "$cross_compiling" = yes; then
13520 # Depending upon the size, compute the lo and hi bounds.
13521cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
13527$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013528 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013529int
13530main ()
13531{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013532static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013533test_array [0] = 0
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013540if { (ac_try="$ac_compile"
13541case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544esac
13545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013556 ac_lo=0 ac_mid=0
13557 while :; do
13558 cat >conftest.$ac_ext <<_ACEOF
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
13563/* end confdefs.h. */
13564$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013565 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013566int
13567main ()
13568{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013569static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013570test_array [0] = 0
13571
13572 ;
13573 return 0;
13574}
13575_ACEOF
13576rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013577if { (ac_try="$ac_compile"
13578case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581esac
13582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013593 ac_hi=$ac_mid; break
13594else
13595 echo "$as_me: failed program was:" >&5
13596sed 's/^/| /' conftest.$ac_ext >&5
13597
Theodore Ts'oe1052142006-10-21 21:46:47 -040013598 ac_lo=`expr $ac_mid + 1`
13599 if test $ac_lo -le $ac_mid; then
13600 ac_lo= ac_hi=
13601 break
13602 fi
13603 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013604fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013605
13606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013607 done
13608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
Theodore Ts'oe1052142006-10-21 21:46:47 -040013612 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013613/* confdefs.h. */
13614_ACEOF
13615cat confdefs.h >>conftest.$ac_ext
13616cat >>conftest.$ac_ext <<_ACEOF
13617/* end confdefs.h. */
13618$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013619 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013620int
13621main ()
13622{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013623static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624test_array [0] = 0
13625
13626 ;
13627 return 0;
13628}
13629_ACEOF
13630rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013631if { (ac_try="$ac_compile"
13632case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635esac
13636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013647 ac_hi=-1 ac_mid=-1
13648 while :; do
13649 cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
13655$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013656 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013657int
13658main ()
13659{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013660static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013661test_array [0] = 0
13662
13663 ;
13664 return 0;
13665}
13666_ACEOF
13667rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013668if { (ac_try="$ac_compile"
13669case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013684 ac_lo=$ac_mid; break
13685else
13686 echo "$as_me: failed program was:" >&5
13687sed 's/^/| /' conftest.$ac_ext >&5
13688
Theodore Ts'oe1052142006-10-21 21:46:47 -040013689 ac_hi=`expr '(' $ac_mid ')' - 1`
13690 if test $ac_mid -le $ac_hi; then
13691 ac_lo= ac_hi=
13692 break
13693 fi
13694 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013696
13697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698 done
13699else
13700 echo "$as_me: failed program was:" >&5
13701sed 's/^/| /' conftest.$ac_ext >&5
13702
Theodore Ts'oe1052142006-10-21 21:46:47 -040013703 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013704fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013705
13706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013707fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013708
13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013710# Binary search between lo and hi bounds.
13711while test "x$ac_lo" != "x$ac_hi"; do
13712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13713 cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013720 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013721int
13722main ()
13723{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013724static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013725test_array [0] = 0
13726
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013732if { (ac_try="$ac_compile"
13733case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13736esac
13737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013748 ac_hi=$ac_mid
13749else
13750 echo "$as_me: failed program was:" >&5
13751sed 's/^/| /' conftest.$ac_ext >&5
13752
Theodore Ts'oe1052142006-10-21 21:46:47 -040013753 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013754fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013755
13756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013757done
13758case $ac_lo in
13759?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013760'') if test "$ac_cv_type_long" = yes; then
13761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013763echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013764See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013765 { (exit 77); exit 77; }; }
13766 else
13767 ac_cv_sizeof_long=0
13768 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013769esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013770else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013771 cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h. */
13777$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013778 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013779static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13780static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013781#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013782#include <stdlib.h>
13783int
13784main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013785{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013786
13787 FILE *f = fopen ("conftest.val", "w");
13788 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013789 return 1;
13790 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013791 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013792 long int i = longval ();
13793 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13794 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013795 fprintf (f, "%ld\n", i);
13796 }
13797 else
13798 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013799 unsigned long int i = ulongval ();
13800 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13801 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013802 fprintf (f, "%lu\n", i);
13803 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013805
13806 ;
13807 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013808}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013809_ACEOF
13810rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013811if { (ac_try="$ac_link"
13812case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815esac
13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821 { (case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824esac
13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013831else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013832 echo "$as_me: program exited with status $ac_status" >&5
13833echo "$as_me: failed program was:" >&5
13834sed 's/^/| /' conftest.$ac_ext >&5
13835
13836( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013837if test "$ac_cv_type_long" = yes; then
13838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013839See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013840echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013841See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013842 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013843 else
13844 ac_cv_sizeof_long=0
13845 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013846fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013847rm -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 -050013848fi
13849rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013851{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13852echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013853
13854
13855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013856cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013857#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013858_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013859
13860
Theodore Ts'oe1052142006-10-21 21:46:47 -040013861{ echo "$as_me:$LINENO: checking for long long" >&5
13862echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013863if test "${ac_cv_type_long_long+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866 cat >conftest.$ac_ext <<_ACEOF
13867/* confdefs.h. */
13868_ACEOF
13869cat confdefs.h >>conftest.$ac_ext
13870cat >>conftest.$ac_ext <<_ACEOF
13871/* end confdefs.h. */
13872$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013873typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013874int
13875main ()
13876{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013877if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013878 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013880 return 0;
13881 ;
13882 return 0;
13883}
13884_ACEOF
13885rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013886if { (ac_try="$ac_compile"
13887case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013902 ac_cv_type_long_long=yes
13903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
Theodore Ts'oe1052142006-10-21 21:46:47 -040013907 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013908fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013909
Theodore Ts'oe1052142006-10-21 21:46:47 -040013910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911fi
13912{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13913echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13914
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013915# The cast to long int works around a bug in the HP C Compiler
13916# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13917# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13918# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013919{ echo "$as_me:$LINENO: checking size of long long" >&5
13920echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013921if test "${ac_cv_sizeof_long_long+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013924 if test "$cross_compiling" = yes; then
13925 # Depending upon the size, compute the lo and hi bounds.
13926cat >conftest.$ac_ext <<_ACEOF
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013933 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013934int
13935main ()
13936{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013937static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938test_array [0] = 0
13939
13940 ;
13941 return 0;
13942}
13943_ACEOF
13944rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013945if { (ac_try="$ac_compile"
13946case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013957 (exit $ac_status); } && {
13958 test -z "$ac_c_werror_flag" ||
13959 test ! -s conftest.err
13960 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013961 ac_lo=0 ac_mid=0
13962 while :; do
13963 cat >conftest.$ac_ext <<_ACEOF
13964/* confdefs.h. */
13965_ACEOF
13966cat confdefs.h >>conftest.$ac_ext
13967cat >>conftest.$ac_ext <<_ACEOF
13968/* end confdefs.h. */
13969$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013970 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971int
13972main ()
13973{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013974static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013975test_array [0] = 0
13976
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013982if { (ac_try="$ac_compile"
13983case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986esac
13987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013994 (exit $ac_status); } && {
13995 test -z "$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13997 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998 ac_hi=$ac_mid; break
13999else
14000 echo "$as_me: failed program was:" >&5
14001sed 's/^/| /' conftest.$ac_ext >&5
14002
Theodore Ts'oe1052142006-10-21 21:46:47 -040014003 ac_lo=`expr $ac_mid + 1`
14004 if test $ac_lo -le $ac_mid; then
14005 ac_lo= ac_hi=
14006 break
14007 fi
14008 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014009fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014010
14011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014012 done
14013else
14014 echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
Theodore Ts'oe1052142006-10-21 21:46:47 -040014017 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018/* confdefs.h. */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
14022/* end confdefs.h. */
14023$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014024 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014025int
14026main ()
14027{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014028static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029test_array [0] = 0
14030
14031 ;
14032 return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014036if { (ac_try="$ac_compile"
14037case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014052 ac_hi=-1 ac_mid=-1
14053 while :; do
14054 cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
14059/* end confdefs.h. */
14060$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014061 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014062int
14063main ()
14064{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014065static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014066test_array [0] = 0
14067
14068 ;
14069 return 0;
14070}
14071_ACEOF
14072rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014073if { (ac_try="$ac_compile"
14074case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14077esac
14078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089 ac_lo=$ac_mid; break
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
Theodore Ts'oe1052142006-10-21 21:46:47 -040014094 ac_hi=`expr '(' $ac_mid ')' - 1`
14095 if test $ac_mid -le $ac_hi; then
14096 ac_lo= ac_hi=
14097 break
14098 fi
14099 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014101
14102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103 done
14104else
14105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
Theodore Ts'oe1052142006-10-21 21:46:47 -040014108 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014109fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110
14111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014112fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014113
14114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014115# Binary search between lo and hi bounds.
14116while test "x$ac_lo" != "x$ac_hi"; do
14117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14118 cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h. */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h. */
14124$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014125 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014126int
14127main ()
14128{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014129static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014130test_array [0] = 0
14131
14132 ;
14133 return 0;
14134}
14135_ACEOF
14136rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014137if { (ac_try="$ac_compile"
14138case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141esac
14142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014144 ac_status=$?
14145 grep -v '^ *+' conftest.er1 >conftest.err
14146 rm -f conftest.er1
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153 ac_hi=$ac_mid
14154else
14155 echo "$as_me: failed program was:" >&5
14156sed 's/^/| /' conftest.$ac_ext >&5
14157
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014159fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014160
14161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014162done
14163case $ac_lo in
14164?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014165'') if test "$ac_cv_type_long_long" = yes; then
14166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014167See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014168echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014169See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014170 { (exit 77); exit 77; }; }
14171 else
14172 ac_cv_sizeof_long_long=0
14173 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014174esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014175else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014176 cat >conftest.$ac_ext <<_ACEOF
14177/* confdefs.h. */
14178_ACEOF
14179cat confdefs.h >>conftest.$ac_ext
14180cat >>conftest.$ac_ext <<_ACEOF
14181/* end confdefs.h. */
14182$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014183 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014184static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14185static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014186#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014187#include <stdlib.h>
14188int
14189main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014190{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014191
14192 FILE *f = fopen ("conftest.val", "w");
14193 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014194 return 1;
14195 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014196 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014197 long int i = longval ();
14198 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14199 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014200 fprintf (f, "%ld\n", i);
14201 }
14202 else
14203 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014204 unsigned long int i = ulongval ();
14205 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14206 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014207 fprintf (f, "%lu\n", i);
14208 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014209 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210
14211 ;
14212 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014213}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014214_ACEOF
14215rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014216if { (ac_try="$ac_link"
14217case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237 echo "$as_me: program exited with status $ac_status" >&5
14238echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
14241( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014242if test "$ac_cv_type_long_long" = yes; then
14243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014244See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014245echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014246See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014247 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014248 else
14249 ac_cv_sizeof_long_long=0
14250 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014252rm -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 -050014253fi
14254rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014256{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14257echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014258
14259
14260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014261cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014262#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014263_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014264
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014265
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014266SIZEOF_SHORT=$ac_cv_sizeof_short
14267SIZEOF_INT=$ac_cv_sizeof_int
14268SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014269SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14270
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014271
14272
14273
Theodore Ts'oe1052142006-10-21 21:46:47 -040014274{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14275echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276if test "${ac_cv_c_bigendian+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014278else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014279 # See if sys/param.h defines the BYTE_ORDER macro.
14280cat >conftest.$ac_ext <<_ACEOF
14281/* confdefs.h. */
14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014286#include <sys/types.h>
14287#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014289int
14290main ()
14291{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014292#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14293 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014294 bogus endian macros
14295#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014296
14297 ;
14298 return 0;
14299}
14300_ACEOF
14301rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014302if { (ac_try="$ac_compile"
14303case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306esac
14307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014318 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014319cat >conftest.$ac_ext <<_ACEOF
14320/* confdefs.h. */
14321_ACEOF
14322cat confdefs.h >>conftest.$ac_ext
14323cat >>conftest.$ac_ext <<_ACEOF
14324/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014325#include <sys/types.h>
14326#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014328int
14329main ()
14330{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014331#if BYTE_ORDER != BIG_ENDIAN
14332 not big endian
14333#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014334
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014340if { (ac_try="$ac_compile"
14341case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344esac
14345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014352 (exit $ac_status); } && {
14353 test -z "$ac_c_werror_flag" ||
14354 test ! -s conftest.err
14355 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014356 ac_cv_c_bigendian=yes
14357else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014358 echo "$as_me: failed program was:" >&5
14359sed 's/^/| /' conftest.$ac_ext >&5
14360
Theodore Ts'oe1052142006-10-21 21:46:47 -040014361 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014362fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014363
14364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014365else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014366 echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
14368
Theodore Ts'oe1052142006-10-21 21:46:47 -040014369 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014370if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014371 # try to guess the endianness by grepping values into an object file
14372 ac_cv_c_bigendian=unknown
14373 cat >conftest.$ac_ext <<_ACEOF
14374/* confdefs.h. */
14375_ACEOF
14376cat confdefs.h >>conftest.$ac_ext
14377cat >>conftest.$ac_ext <<_ACEOF
14378/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014379short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14380short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014381void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014382short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14383short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014384void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14385int
14386main ()
14387{
14388 _ascii (); _ebcdic ();
14389 ;
14390 return 0;
14391}
14392_ACEOF
14393rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014394if { (ac_try="$ac_compile"
14395case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398esac
14399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14411 ac_cv_c_bigendian=yes
14412fi
14413if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14414 if test "$ac_cv_c_bigendian" = unknown; then
14415 ac_cv_c_bigendian=no
14416 else
14417 # finding both strings is unlikely to happen, but who knows?
14418 ac_cv_c_bigendian=unknown
14419 fi
14420fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014421else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422 echo "$as_me: failed program was:" >&5
14423sed 's/^/| /' conftest.$ac_ext >&5
14424
Theodore Ts'oe1052142006-10-21 21:46:47 -040014425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014427
14428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014429else
14430 cat >conftest.$ac_ext <<_ACEOF
14431/* confdefs.h. */
14432_ACEOF
14433cat confdefs.h >>conftest.$ac_ext
14434cat >>conftest.$ac_ext <<_ACEOF
14435/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014436$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014437int
14438main ()
14439{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014440
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014441 /* Are we little or big endian? From Harbison&Steele. */
14442 union
14443 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014444 long int l;
14445 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014446 } u;
14447 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014448 return u.c[sizeof (long int) - 1] == 1;
14449
14450 ;
14451 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014452}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014453_ACEOF
14454rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014455if { (ac_try="$ac_link"
14456case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14459esac
14460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014465 { (case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468esac
14469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014474 ac_cv_c_bigendian=no
14475else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014476 echo "$as_me: program exited with status $ac_status" >&5
14477echo "$as_me: failed program was:" >&5
14478sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480( exit $ac_status )
14481ac_cv_c_bigendian=yes
14482fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014483rm -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 -040014484fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014485
14486
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014488
14489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014491{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14492echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014493case $ac_cv_c_bigendian in
14494 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014496cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014497#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014498_ACEOF
14499 ;;
14500 no)
14501 ;;
14502 *)
14503 { { echo "$as_me:$LINENO: error: unknown endianness
14504presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14505echo "$as_me: error: unknown endianness
14506presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14507 { (exit 1); exit 1; }; } ;;
14508esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014509
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014510BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014511ASM_TYPES_HEADER=./asm_types.h
14512
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014513echo "/* These defines are needed for the public ext2fs.h header file */" \
14514 > public_config.h
14515if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14516 uniq tmp_config.$$ >> public_config.h
14517else
14518 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14519fi
14520if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14521 uniq tmp_config.$$ >> public_config.h
14522else
14523 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14524fi
14525rm -f tmp_config.$$
14526PUBLIC_CONFIG_HEADER=./public_config.h
14527
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014530do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014536 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014538ac_res=`eval echo '${'$as_ac_Header'}'`
14539 { echo "$as_me:$LINENO: result: $ac_res" >&5
14540echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014541else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014542 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014543{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014545cat >conftest.$ac_ext <<_ACEOF
14546/* confdefs.h. */
14547_ACEOF
14548cat confdefs.h >>conftest.$ac_ext
14549cat >>conftest.$ac_ext <<_ACEOF
14550/* end confdefs.h. */
14551$ac_includes_default
14552#include <$ac_header>
14553_ACEOF
14554rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014555if { (ac_try="$ac_compile"
14556case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559esac
14560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014567 (exit $ac_status); } && {
14568 test -z "$ac_c_werror_flag" ||
14569 test ! -s conftest.err
14570 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014571 ac_header_compiler=yes
14572else
14573 echo "$as_me: failed program was:" >&5
14574sed 's/^/| /' conftest.$ac_ext >&5
14575
Theodore Ts'oe1052142006-10-21 21:46:47 -040014576 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014578
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14581echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014582
14583# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014584{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014586cat >conftest.$ac_ext <<_ACEOF
14587/* confdefs.h. */
14588_ACEOF
14589cat confdefs.h >>conftest.$ac_ext
14590cat >>conftest.$ac_ext <<_ACEOF
14591/* end confdefs.h. */
14592#include <$ac_header>
14593_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014594if { (ac_try="$ac_cpp conftest.$ac_ext"
14595case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14598esac
14599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014606 (exit $ac_status); } >/dev/null && {
14607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14609 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014610 ac_header_preproc=yes
14611else
14612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_header_preproc=no
14616fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014617
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014618rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14620echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014621
14622# So? What about this header?
14623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14624 yes:no: )
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14629 ac_header_preproc=yes
14630 ;;
14631 no:yes:* )
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14639echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014645 ;;
14646esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651else
14652 eval "$as_ac_Header=\$ac_header_preproc"
14653fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014654ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657
14658fi
14659if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14662_ACEOF
14663
14664fi
14665
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014666done
14667
Theodore Ts'oe1052142006-10-21 21:46:47 -040014668{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14669echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014670if test "${ac_cv_type_intptr_t+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014672else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014673 cat >conftest.$ac_ext <<_ACEOF
14674/* confdefs.h. */
14675_ACEOF
14676cat confdefs.h >>conftest.$ac_ext
14677cat >>conftest.$ac_ext <<_ACEOF
14678/* end confdefs.h. */
14679$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014680typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014681int
14682main ()
14683{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014684if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014685 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014687 return 0;
14688 ;
14689 return 0;
14690}
14691_ACEOF
14692rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014709 ac_cv_type_intptr_t=yes
14710else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014711 echo "$as_me: failed program was:" >&5
14712sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014713
Theodore Ts'oe1052142006-10-21 21:46:47 -040014714 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014716
14717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014718fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014719{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14720echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014721if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014722
14723cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014724#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014725_ACEOF
14726
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014728fi
14729
Theodore Ts'oe1052142006-10-21 21:46:47 -040014730{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14731echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014732if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734else
14735 cat >conftest.$ac_ext <<_ACEOF
14736/* confdefs.h. */
14737_ACEOF
14738cat confdefs.h >>conftest.$ac_ext
14739cat >>conftest.$ac_ext <<_ACEOF
14740/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014741#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014742int
14743main ()
14744{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014745struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014746 ;
14747 return 0;
14748}
14749_ACEOF
14750rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014751if { (ac_try="$ac_compile"
14752case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755esac
14756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014767 e2fsprogs_cv_struct_st_flags=yes
14768else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
Theodore Ts'oe1052142006-10-21 21:46:47 -040014772 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014773fi
14774
Theodore Ts'oe1052142006-10-21 21:46:47 -040014775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776fi
14777
14778{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14779echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014780if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014781 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14782echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014783 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014785else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786 cat >conftest.$ac_ext <<_ACEOF
14787/* confdefs.h. */
14788_ACEOF
14789cat confdefs.h >>conftest.$ac_ext
14790cat >>conftest.$ac_ext <<_ACEOF
14791/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014792#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014793int
14794main ()
14795{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014796struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797 ;
14798 return 0;
14799}
14800_ACEOF
14801rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014802if { (ac_try="$ac_compile"
14803case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806esac
14807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014818 e2fsprogs_cv_struct_st_flags_immut=yes
14819else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014820 echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014824fi
14825
Theodore Ts'oe1052142006-10-21 21:46:47 -040014826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827fi
14828
14829 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14830echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014831 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014832 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014833#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014834_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014835
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014836 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014837fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014838{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14839echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014840if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014841 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014842else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014843 cat >conftest.$ac_ext <<_ACEOF
14844/* confdefs.h. */
14845_ACEOF
14846cat confdefs.h >>conftest.$ac_ext
14847cat >>conftest.$ac_ext <<_ACEOF
14848/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014849#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014850 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014852int
14853main ()
14854{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014855static struct sockaddr ac_aggr;
14856if (ac_aggr.sa_len)
14857return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014858 ;
14859 return 0;
14860}
14861_ACEOF
14862rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014863if { (ac_try="$ac_compile"
14864case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867esac
14868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014875 (exit $ac_status); } && {
14876 test -z "$ac_c_werror_flag" ||
14877 test ! -s conftest.err
14878 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014879 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014880else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014881 echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
Theodore Ts'oe1052142006-10-21 21:46:47 -040014884 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014885/* confdefs.h. */
14886_ACEOF
14887cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h. */
14890#include <sys/types.h>
14891 #include <sys/socket.h>
14892
14893int
14894main ()
14895{
14896static struct sockaddr ac_aggr;
14897if (sizeof ac_aggr.sa_len)
14898return 0;
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014904if { (ac_try="$ac_compile"
14905case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014920 ac_cv_member_struct_sockaddr_sa_len=yes
14921else
14922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
Theodore Ts'oe1052142006-10-21 21:46:47 -040014925 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014926fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014927
14928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014930
14931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014933{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14934echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014935if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014936
14937cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014938#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014939_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014940
14941fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014961
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014962
14963
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014964
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014965
Theodore Ts'o106ad962007-04-04 21:26:37 -040014966
14967
14968
Theodore Ts'o740837d2007-12-16 17:21:38 -050014969
14970
Theodore Ts'o261cd392008-01-21 13:45:00 -050014971
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014972
14973
Theodore Ts'o1207e362009-04-15 13:05:09 -040014974
14975
14976for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014977do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014982 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014983else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984 cat >conftest.$ac_ext <<_ACEOF
14985/* confdefs.h. */
14986_ACEOF
14987cat confdefs.h >>conftest.$ac_ext
14988cat >>conftest.$ac_ext <<_ACEOF
14989/* end confdefs.h. */
14990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14992#define $ac_func innocuous_$ac_func
14993
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014994/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014995 which can conflict with char $ac_func (); below.
14996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14997 <limits.h> exists even on freestanding compilers. */
14998
14999#ifdef __STDC__
15000# include <limits.h>
15001#else
15002# include <assert.h>
15003#endif
15004
15005#undef $ac_func
15006
Theodore Ts'oe1052142006-10-21 21:46:47 -040015007/* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015010#ifdef __cplusplus
15011extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015013char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015014/* The GNU C library defines this for functions which it implements
15015 to always fail with ENOSYS. Some functions are actually named
15016 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015017#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015018choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015019#endif
15020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021int
15022main ()
15023{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015024return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015030if { (ac_try="$ac_link"
15031case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034esac
15035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015042 (exit $ac_status); } && {
15043 test -z "$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15045 } && test -s conftest$ac_exeext &&
15046 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015047 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015048else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015051
Theodore Ts'oe1052142006-10-21 21:46:47 -040015052 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015053fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015054
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015056 conftest$ac_exeext conftest.$ac_ext
15057fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015058ac_res=`eval echo '${'$as_ac_var'}'`
15059 { echo "$as_me:$LINENO: result: $ac_res" >&5
15060echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061if test `eval echo '${'$as_ac_var'}'` = yes; then
15062 cat >>confdefs.h <<_ACEOF
15063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15064_ACEOF
15065
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015066fi
15067done
15068
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015069SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015070{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15071echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015072if test "${ac_cv_lib_socket_socket+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015074else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015075 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015076LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015077cat >conftest.$ac_ext <<_ACEOF
15078/* confdefs.h. */
15079_ACEOF
15080cat confdefs.h >>conftest.$ac_ext
15081cat >>conftest.$ac_ext <<_ACEOF
15082/* end confdefs.h. */
15083
Theodore Ts'oe1052142006-10-21 21:46:47 -040015084/* Override any GCC internal prototype to avoid an error.
15085 Use char because int might match the return type of a GCC
15086 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015087#ifdef __cplusplus
15088extern "C"
15089#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015090char socket ();
15091int
15092main ()
15093{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015094return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015095 ;
15096 return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015100if { (ac_try="$ac_link"
15101case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015112 (exit $ac_status); } && {
15113 test -z "$ac_c_werror_flag" ||
15114 test ! -s conftest.err
15115 } && test -s conftest$ac_exeext &&
15116 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015117 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015118else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015119 echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015121
Theodore Ts'oe1052142006-10-21 21:46:47 -040015122 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015123fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015124
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015126 conftest$ac_exeext conftest.$ac_ext
15127LIBS=$ac_check_lib_save_LIBS
15128fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015129{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15130echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015131if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015132 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015133fi
15134
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015135
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015136DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015137{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15138echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015139if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015142 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015143LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015144cat >conftest.$ac_ext <<_ACEOF
15145/* confdefs.h. */
15146_ACEOF
15147cat confdefs.h >>conftest.$ac_ext
15148cat >>conftest.$ac_ext <<_ACEOF
15149/* end confdefs.h. */
15150
Theodore Ts'oe1052142006-10-21 21:46:47 -040015151/* Override any GCC internal prototype to avoid an error.
15152 Use char because int might match the return type of a GCC
15153 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015154#ifdef __cplusplus
15155extern "C"
15156#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015157char dlopen ();
15158int
15159main ()
15160{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015161return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015162 ;
15163 return 0;
15164}
15165_ACEOF
15166rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015167if { (ac_try="$ac_link"
15168case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15171esac
15172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015179 (exit $ac_status); } && {
15180 test -z "$ac_c_werror_flag" ||
15181 test ! -s conftest.err
15182 } && test -s conftest$ac_exeext &&
15183 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015184 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015185else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015186 echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015188
Theodore Ts'oe1052142006-10-21 21:46:47 -040015189 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015190fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015191
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015193 conftest$ac_exeext conftest.$ac_ext
15194LIBS=$ac_check_lib_save_LIBS
15195fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015196{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15197echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015198if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015199 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015200cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015201#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015202_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015203
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015204fi
15205
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015206
Theodore Ts'oe1052142006-10-21 21:46:47 -040015207{ echo "$as_me:$LINENO: checking for optreset" >&5
15208echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015209if test "${ac_cv_have_optreset+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015211else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015212 cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015218#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015219
15220_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015222 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015223 ac_cv_have_optreset=yes
15224else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015225 ac_cv_have_optreset=no
15226fi
15227rm -f conftest*
15228
15229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015230{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15231echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015232if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015233 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015234#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015235_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015236
15237fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040015238SEM_INIT_LIB=''
15239{ echo "$as_me:$LINENO: checking for sem_init" >&5
15240echo $ECHO_N "checking for sem_init... $ECHO_C" >&6; }
15241if test "${ac_cv_func_sem_init+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243else
15244 cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
15250/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
15251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15252#define sem_init innocuous_sem_init
15253
15254/* System header to define __stub macros and hopefully few prototypes,
15255 which can conflict with char sem_init (); below.
15256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15257 <limits.h> exists even on freestanding compilers. */
15258
15259#ifdef __STDC__
15260# include <limits.h>
15261#else
15262# include <assert.h>
15263#endif
15264
15265#undef sem_init
15266
15267/* Override any GCC internal prototype to avoid an error.
15268 Use char because int might match the return type of a GCC
15269 builtin and then its argument prototype would still apply. */
15270#ifdef __cplusplus
15271extern "C"
15272#endif
15273char sem_init ();
15274/* The GNU C library defines this for functions which it implements
15275 to always fail with ENOSYS. Some functions are actually named
15276 something starting with __ and the normal name is an alias. */
15277#if defined __stub_sem_init || defined __stub___sem_init
15278choke me
15279#endif
15280
15281int
15282main ()
15283{
15284return sem_init ();
15285 ;
15286 return 0;
15287}
15288_ACEOF
15289rm -f conftest.$ac_objext conftest$ac_exeext
15290if { (ac_try="$ac_link"
15291case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15294esac
15295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296 (eval "$ac_link") 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && {
15303 test -z "$ac_c_werror_flag" ||
15304 test ! -s conftest.err
15305 } && test -s conftest$ac_exeext &&
15306 $as_test_x conftest$ac_exeext; then
15307 ac_cv_func_sem_init=yes
15308else
15309 echo "$as_me: failed program was:" >&5
15310sed 's/^/| /' conftest.$ac_ext >&5
15311
15312 ac_cv_func_sem_init=no
15313fi
15314
15315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15316 conftest$ac_exeext conftest.$ac_ext
15317fi
15318{ echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
15319echo "${ECHO_T}$ac_cv_func_sem_init" >&6; }
15320if test $ac_cv_func_sem_init = yes; then
15321 :
15322else
15323 { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
15324echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
15325if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327else
15328 ac_check_lib_save_LIBS=$LIBS
15329LIBS="-lpthread $LIBS"
15330cat >conftest.$ac_ext <<_ACEOF
15331/* confdefs.h. */
15332_ACEOF
15333cat confdefs.h >>conftest.$ac_ext
15334cat >>conftest.$ac_ext <<_ACEOF
15335/* end confdefs.h. */
15336
15337/* Override any GCC internal prototype to avoid an error.
15338 Use char because int might match the return type of a GCC
15339 builtin and then its argument prototype would still apply. */
15340#ifdef __cplusplus
15341extern "C"
15342#endif
15343char sem_init ();
15344int
15345main ()
15346{
15347return sem_init ();
15348 ;
15349 return 0;
15350}
15351_ACEOF
15352rm -f conftest.$ac_objext conftest$ac_exeext
15353if { (ac_try="$ac_link"
15354case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357esac
15358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext &&
15369 $as_test_x conftest$ac_exeext; then
15370 ac_cv_lib_pthread_sem_init=yes
15371else
15372 echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
15375 ac_cv_lib_pthread_sem_init=no
15376fi
15377
15378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379 conftest$ac_exeext conftest.$ac_ext
15380LIBS=$ac_check_lib_save_LIBS
15381fi
15382{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
15383echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
15384if test $ac_cv_lib_pthread_sem_init = yes; then
15385 cat >>confdefs.h <<\_ACEOF
15386#define HAVE_SEM_INIT 1
15387_ACEOF
15388
15389 SEM_INIT_LIB=-lpthread
15390else
15391 { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
15392echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; }
15393if test "${ac_cv_lib_rt_sem_init+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395else
15396 ac_check_lib_save_LIBS=$LIBS
15397LIBS="-lrt $LIBS"
15398cat >conftest.$ac_ext <<_ACEOF
15399/* confdefs.h. */
15400_ACEOF
15401cat confdefs.h >>conftest.$ac_ext
15402cat >>conftest.$ac_ext <<_ACEOF
15403/* end confdefs.h. */
15404
15405/* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15408#ifdef __cplusplus
15409extern "C"
15410#endif
15411char sem_init ();
15412int
15413main ()
15414{
15415return sem_init ();
15416 ;
15417 return 0;
15418}
15419_ACEOF
15420rm -f conftest.$ac_objext conftest$ac_exeext
15421if { (ac_try="$ac_link"
15422case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425esac
15426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && {
15434 test -z "$ac_c_werror_flag" ||
15435 test ! -s conftest.err
15436 } && test -s conftest$ac_exeext &&
15437 $as_test_x conftest$ac_exeext; then
15438 ac_cv_lib_rt_sem_init=yes
15439else
15440 echo "$as_me: failed program was:" >&5
15441sed 's/^/| /' conftest.$ac_ext >&5
15442
15443 ac_cv_lib_rt_sem_init=no
15444fi
15445
15446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15447 conftest$ac_exeext conftest.$ac_ext
15448LIBS=$ac_check_lib_save_LIBS
15449fi
15450{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
15451echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; }
15452if test $ac_cv_lib_rt_sem_init = yes; then
15453 cat >>confdefs.h <<\_ACEOF
15454#define HAVE_SEM_INIT 1
15455_ACEOF
15456
15457 SEM_INIT_LIB=-lrt
15458else
15459 { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
15460echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; }
15461if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463else
15464 ac_check_lib_save_LIBS=$LIBS
15465LIBS="-lposix4 $LIBS"
15466cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
15472
15473/* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15476#ifdef __cplusplus
15477extern "C"
15478#endif
15479char sem_init ();
15480int
15481main ()
15482{
15483return sem_init ();
15484 ;
15485 return 0;
15486}
15487_ACEOF
15488rm -f conftest.$ac_objext conftest$ac_exeext
15489if { (ac_try="$ac_link"
15490case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493esac
15494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_link") 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest$ac_exeext &&
15505 $as_test_x conftest$ac_exeext; then
15506 ac_cv_lib_posix4_sem_init=yes
15507else
15508 echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511 ac_cv_lib_posix4_sem_init=no
15512fi
15513
15514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515 conftest$ac_exeext conftest.$ac_ext
15516LIBS=$ac_check_lib_save_LIBS
15517fi
15518{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
15519echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; }
15520if test $ac_cv_lib_posix4_sem_init = yes; then
15521 cat >>confdefs.h <<\_ACEOF
15522#define HAVE_SEM_INIT 1
15523_ACEOF
15524
15525 SEM_INIT_LIB=-lposix4
15526fi
15527
15528fi
15529
15530fi
15531
15532fi
15533
Theodore Ts'oe1052142006-10-21 21:46:47 -040015534{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15535echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015536if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015537 UNI_DIFF_OPTS=-u
15538else
15539 UNI_DIFF_OPTS=-c
15540fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015541{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15542echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015543
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015544case "$host_os" in
15545linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015546 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015547#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015548_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015549
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015550 ;;
15551esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015552LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015553CYGWIN_CMT="#"
15554UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015555case "$host_os" in
15556linux*)
15557 LINUX_CMT=
15558 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015559cygwin)
15560 CYGWIN_CMT=
15561 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015562 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015563esac
15564
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015565
15566
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015567case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015568linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015569 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15570 root_prefix="";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015571 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15572echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015573 fi
15574 ;;
15575esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015576case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015577linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015578 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015579 prefix="/usr";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015580 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15581echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015582 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015583 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15584echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015585 mandir=/usr/share/man
15586 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015587 fi
15588;;
15589esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015590if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015591 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015592 root_prefix="$ac_default_prefix"
15593 else
15594 root_prefix="$prefix"
15595 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015596 root_bindir=$bindir
15597 root_sbindir=$sbindir
15598 root_libdir=$libdir
15599 root_sysconfdir=$sysconfdir
15600else
15601 root_bindir='${root_prefix}/bin'
15602 root_sbindir='${root_prefix}/sbin'
15603 root_libdir='${root_prefix}/lib'
15604 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015605fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015606if test "$bindir" != '${exec_prefix}/bin'; then
15607 root_bindir=$bindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015608 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15609echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015610fi
15611if test "$sbindir" != '${exec_prefix}/sbin'; then
15612 root_sbindir=$sbindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015613 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15614echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015615fi
15616if test "$libdir" != '${exec_prefix}/lib'; then
15617 root_libdir=$libdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015618 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15619echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015620fi
15621if test "$sysconfdir" != '${prefix}/etc'; then
15622 root_sysconfdir=$sysconfdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015623 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15624echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015625fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015626
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015627
15628
15629
15630
Theodore Ts'oe1052142006-10-21 21:46:47 -040015631{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15632echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015633if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015635else
15636 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015637cat >conftest.$ac_ext <<_ACEOF
15638/* confdefs.h. */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015643#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015644int
15645main ()
15646{
Theodore Ts'oae851481997-04-29 18:13:24 +000015647fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015648 ;
15649 return 0;
15650}
15651_ACEOF
15652rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015653if { (ac_try="$ac_link"
15654case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657esac
15658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest$ac_exeext &&
15669 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015670 ac_cv_e2fsprogs_use_static=yes
15671else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015672 echo "$as_me: failed program was:" >&5
15673sed 's/^/| /' conftest.$ac_ext >&5
15674
Theodore Ts'oe1052142006-10-21 21:46:47 -040015675 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015676fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015677
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015679 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015680LDFLAGS=$SAVE_LDFLAGS
15681fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015682
Theodore Ts'odefde781999-01-04 07:39:19 +000015683case "$host_os" in
15684solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015685 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015686;;
15687esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015688{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15689echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015690LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015691if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015692 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015693fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015694
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015695case "$host_os" in
15696darwin*)
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015697 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15698echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015699 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015700#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015701_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015702
15703 ;;
15704esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015705SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15706ET_DIR=`cd ${srcdir}/lib/et; pwd`
15707
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015708
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015709if test "$cross_compiling" = yes ; then
15710 DO_TEST_SUITE=
15711else
15712 DO_TEST_SUITE=check
15713fi
15714
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015715INTL_FLAGS=
15716if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15717 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15718fi
15719
Theodore Ts'odd947da2005-11-09 18:37:07 -040015720if test $cross_compiling = no; then
15721 BUILD_CFLAGS="$CFLAGS"
15722 BUILD_LDFLAGS="$LDFLAGS"
15723else
15724 BUILD_CFLAGS=
15725 BUILD_LDFLAGS=
15726fi
15727
15728
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015729test -d lib || mkdir lib
15730test -d include || mkdir include
15731test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015732test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015733for i in MCONFIG Makefile e2fsprogs.spec \
15734 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015735 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15736 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015737 lib/uuid/Makefile lib/uuid/uuid_types.h \
15738 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015739 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15740 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015741 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015742 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15743 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15744 if test -d `dirname ${srcdir}/$i` ; then
15745 outlist="$outlist $i"
15746 fi
15747done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015748ac_config_files="$ac_config_files $outlist"
15749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015750cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015751# This file is a shell script that caches the results of configure
15752# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015753# scripts and configure runs, see configure's option --config-cache.
15754# It is not useful on other systems. If it contains results you don't
15755# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015756#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015757# config.status only pays attention to the cache file if you give it
15758# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015759#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015760# `ac_cv_env_foo' variables (set or unset) will be overridden when
15761# loading this file, other *unset* `ac_cv_foo' will be assigned the
15762# following values.
15763
15764_ACEOF
15765
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015766# The following way of writing the cache mishandles newlines in values,
15767# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015768# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015769# Ultrix sh set writes to stderr and can't be redirected directly,
15770# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015771(
15772 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15773 eval ac_val=\$$ac_var
15774 case $ac_val in #(
15775 *${as_nl}*)
15776 case $ac_var in #(
15777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15778echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15779 esac
15780 case $ac_var in #(
15781 _ | IFS | as_nl) ;; #(
15782 *) $as_unset $ac_var ;;
15783 esac ;;
15784 esac
15785 done
15786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015787 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15789 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015790 # `set' does not quote correctly, so add quotes (double-quote
15791 # substitution turns \\\\ into \\, and sed turns \\ into \).
15792 sed -n \
15793 "s/'/'\\\\''/g;
15794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015795 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015796 *)
15797 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015800 esac |
15801 sort
15802) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015803 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015804 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015805 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015806 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15808 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15810 :end' >>confcache
15811if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15812 if test -w "$cache_file"; then
15813 test "x$cache_file" != "x/dev/null" &&
15814 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15815echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015816 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015817 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015818 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15819echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015820 fi
15821fi
15822rm -f confcache
15823
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015824test "x$prefix" = xNONE && prefix=$ac_default_prefix
15825# Let make expand exec_prefix.
15826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15827
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015828# Transform confdefs.h into DEFS.
15829# Protect against shell expansion while executing Makefile rules.
15830# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015831#
15832# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015833# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015834# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015835ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015836t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015837:clear
15838s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015839t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015840s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015841t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015842b any
15843:quote
15844s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15845s/\[/\\&/g
15846s/\]/\\&/g
15847s/\$/$$/g
15848H
15849:any
15850${
15851 g
15852 s/^\n//
15853 s/\n/ /g
15854 p
15855}
15856'
15857DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015858
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015860ac_libobjs=
15861ac_ltlibobjs=
15862for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15863 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15865 ac_i=`echo "$ac_i" | sed "$ac_script"`
15866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15867 # will be set to the directory where LIBOBJS objects are built.
15868 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15869 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015870done
15871LIBOBJS=$ac_libobjs
15872
15873LTLIBOBJS=$ac_ltlibobjs
15874
15875
15876
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015877: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015878ac_clean_files_save=$ac_clean_files
15879ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15880{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15881echo "$as_me: creating $CONFIG_STATUS" >&6;}
15882cat >$CONFIG_STATUS <<_ACEOF
15883#! $SHELL
15884# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015885# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015886# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015887# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015888
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015889debug=false
15890ac_cs_recheck=false
15891ac_cs_silent=false
15892SHELL=\${CONFIG_SHELL-$SHELL}
15893_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015895cat >>$CONFIG_STATUS <<\_ACEOF
15896## --------------------- ##
15897## M4sh Initialization. ##
15898## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015899
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015900# Be more Bourne compatible
15901DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015902if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15903 emulate sh
15904 NULLCMD=:
15905 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15906 # is contrary to our usage. Disable this feature.
15907 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015908 setopt NO_GLOB_SUBST
15909else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015910 case `(set -o) 2>/dev/null` in
15911 *posix*) set -o posix ;;
15912esac
15913
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015914fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015915
15916
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015917
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015918
Theodore Ts'oe1052142006-10-21 21:46:47 -040015919# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015920# Avoid depending upon Character Ranges.
15921as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15922as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15923as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15924as_cr_digits='0123456789'
15925as_cr_alnum=$as_cr_Letters$as_cr_digits
15926
15927# The user is always right.
15928if test "${PATH_SEPARATOR+set}" != set; then
15929 echo "#! /bin/sh" >conf$$.sh
15930 echo "exit 0" >>conf$$.sh
15931 chmod +x conf$$.sh
15932 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15933 PATH_SEPARATOR=';'
15934 else
15935 PATH_SEPARATOR=:
15936 fi
15937 rm -f conf$$.sh
15938fi
15939
Theodore Ts'oe1052142006-10-21 21:46:47 -040015940# Support unset when possible.
15941if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15942 as_unset=unset
15943else
15944 as_unset=false
15945fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015946
Theodore Ts'oe1052142006-10-21 21:46:47 -040015947
15948# IFS
15949# We need space, tab and new line, in precisely that order. Quoting is
15950# there to prevent editors from complaining about space-tab.
15951# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15952# splitting by setting IFS to empty value.)
15953as_nl='
15954'
15955IFS=" "" $as_nl"
15956
15957# Find who we are. Look in the path if we contain no directory separator.
15958case $0 in
15959 *[\\/]* ) as_myself=$0 ;;
15960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015961for as_dir in $PATH
15962do
15963 IFS=$as_save_IFS
15964 test -z "$as_dir" && as_dir=.
15965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15966done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015967IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015968
Theodore Ts'oe1052142006-10-21 21:46:47 -040015969 ;;
15970esac
15971# We did not find ourselves, most probably we were run as `sh COMMAND'
15972# in which case we are not to be found in the path.
15973if test "x$as_myself" = x; then
15974 as_myself=$0
15975fi
15976if test ! -f "$as_myself"; then
15977 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15978 { (exit 1); exit 1; }
15979fi
15980
15981# Work around bugs in pre-3.0 UWIN ksh.
15982for as_var in ENV MAIL MAILPATH
15983do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15984done
15985PS1='$ '
15986PS2='> '
15987PS4='+ '
15988
15989# NLS nuisances.
15990for as_var in \
15991 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15992 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15993 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015994do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015995 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15996 eval $as_var=C; export $as_var
15997 else
15998 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15999 fi
16000done
16001
16002# Required to use basename.
16003if expr a : '\(a\)' >/dev/null 2>&1 &&
16004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16005 as_expr=expr
16006else
16007 as_expr=false
16008fi
16009
16010if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16011 as_basename=basename
16012else
16013 as_basename=false
16014fi
16015
16016
16017# Name of the executable.
16018as_me=`$as_basename -- "$0" ||
16019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16020 X"$0" : 'X\(//\)$' \| \
16021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16022echo X/"$0" |
16023 sed '/^.*\/\([^/][^/]*\)\/*$/{
16024 s//\1/
16025 q
16026 }
16027 /^X\/\(\/\/\)$/{
16028 s//\1/
16029 q
16030 }
16031 /^X\/\(\/\).*/{
16032 s//\1/
16033 q
16034 }
16035 s/.*/./; q'`
16036
16037# CDPATH.
16038$as_unset CDPATH
16039
16040
16041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016042 as_lineno_1=$LINENO
16043 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016044 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016045 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016047 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16048 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040016049 # line-number line after each line using $LINENO; the second 'sed'
16050 # does the real work. The second script uses 'N' to pair each
16051 # line-number line with the line containing $LINENO, and appends
16052 # trailing '-' during substitution so that $LINENO is not a special
16053 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016055 # scripts with optimization help from Paolo Bonzini. Blame Lee
16056 # E. McMahon (1931-1989) for sed's syntax. :-)
16057 sed -n '
16058 p
16059 /[$]LINENO/=
16060 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016061 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016062 s/[$]LINENO.*/&-/
16063 t lineno
16064 b
16065 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016066 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040016067 :loop
16068 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016069 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040016070 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016071 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016072 chmod +x "$as_me.lineno" ||
16073 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016074 { (exit 1); exit 1; }; }
16075
16076 # Don't try to exec as it changes $[0], causing all sort of problems
16077 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016078 # original and so on. Autoconf is especially sensitive to this).
16079 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016080 # Exit status is that of the last command.
16081 exit
16082}
16083
16084
Theodore Ts'oe1052142006-10-21 21:46:47 -040016085if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16086 as_dirname=dirname
16087else
16088 as_dirname=false
16089fi
16090
16091ECHO_C= ECHO_N= ECHO_T=
16092case `echo -n x` in
16093-n*)
16094 case `echo 'x\c'` in
16095 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16096 *) ECHO_C='\c';;
16097 esac;;
16098*)
16099 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016100esac
16101
Theodore Ts'oe1052142006-10-21 21:46:47 -040016102if expr a : '\(a\)' >/dev/null 2>&1 &&
16103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016104 as_expr=expr
16105else
16106 as_expr=false
16107fi
16108
16109rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040016110if test -d conf$$.dir; then
16111 rm -f conf$$.dir/conf$$.file
16112else
16113 rm -f conf$$.dir
16114 mkdir conf$$.dir
16115fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016116echo >conf$$.file
16117if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016118 as_ln_s='ln -s'
16119 # ... but there are two gotchas:
16120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16122 # In both cases, we have to default to `cp -p'.
16123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016124 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016125elif ln conf$$.file conf$$ 2>/dev/null; then
16126 as_ln_s=ln
16127else
16128 as_ln_s='cp -p'
16129fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016130rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16131rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016132
16133if mkdir -p . 2>/dev/null; then
16134 as_mkdir_p=:
16135else
16136 test -d ./-p && rmdir ./-p
16137 as_mkdir_p=false
16138fi
16139
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016140if test -x / >/dev/null 2>&1; then
16141 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016142else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016143 if ls -dL / >/dev/null 2>&1; then
16144 as_ls_L_option=L
16145 else
16146 as_ls_L_option=
16147 fi
16148 as_test_x='
16149 eval sh -c '\''
16150 if test -d "$1"; then
16151 test -d "$1/.";
16152 else
16153 case $1 in
16154 -*)set "./$1";;
16155 esac;
16156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16157 ???[sx]*):;;*)false;;esac;fi
16158 '\'' sh
16159 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016160fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016161as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016162
16163# Sed expression to map a string onto a valid CPP name.
16164as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16165
16166# Sed expression to map a string onto a valid variable name.
16167as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16168
16169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016170exec 6>&1
16171
Theodore Ts'oe1052142006-10-21 21:46:47 -040016172# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016173# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040016174# values after options handling.
16175ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016176This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016177generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016178
16179 CONFIG_FILES = $CONFIG_FILES
16180 CONFIG_HEADERS = $CONFIG_HEADERS
16181 CONFIG_LINKS = $CONFIG_LINKS
16182 CONFIG_COMMANDS = $CONFIG_COMMANDS
16183 $ $0 $@
16184
Theodore Ts'oe1052142006-10-21 21:46:47 -040016185on `(hostname || uname -n) 2>/dev/null | sed 1q`
16186"
16187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016188_ACEOF
16189
Theodore Ts'oe1052142006-10-21 21:46:47 -040016190cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016191# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016192config_files="$ac_config_files"
16193config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016194
Theodore Ts'oe1052142006-10-21 21:46:47 -040016195_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016196
16197cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016198ac_cs_usage="\
16199\`$as_me' instantiates files from templates according to the
16200current configuration.
16201
16202Usage: $0 [OPTIONS] [FILE]...
16203
16204 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016205 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016206 -q, --quiet do not print progress messages
16207 -d, --debug don't remove temporary files
16208 --recheck update $as_me by reconfiguring in the same conditions
16209 --file=FILE[:TEMPLATE]
16210 instantiate the configuration file FILE
16211
16212Configuration files:
16213$config_files
16214
16215Configuration commands:
16216$config_commands
16217
16218Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016219
Theodore Ts'oe1052142006-10-21 21:46:47 -040016220_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016221cat >>$CONFIG_STATUS <<_ACEOF
16222ac_cs_version="\\
16223config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016224configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040016225 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016226
Theodore Ts'oe1052142006-10-21 21:46:47 -040016227Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016228This config.status script is free software; the Free Software Foundation
16229gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040016230
16231ac_pwd='$ac_pwd'
16232srcdir='$srcdir'
16233INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016234_ACEOF
16235
16236cat >>$CONFIG_STATUS <<\_ACEOF
16237# If no file are specified by the user, then we need to provide default
16238# value. By we need to know if files were specified by the user.
16239ac_need_defaults=:
16240while test $# != 0
16241do
16242 case $1 in
16243 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040016244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016246 ac_shift=:
16247 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016248 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016249 ac_option=$1
16250 ac_optarg=$2
16251 ac_shift=shift
16252 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016253 esac
16254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016255 case $ac_option in
16256 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16258 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016259 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16260 echo "$ac_cs_version"; exit ;;
16261 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016262 debug=: ;;
16263 --file | --fil | --fi | --f )
16264 $ac_shift
16265 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16266 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016267 --he | --h | --help | --hel | -h )
16268 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16270 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16271 ac_cs_silent=: ;;
16272
16273 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016274 -*) { echo "$as_me: error: unrecognized option: $1
16275Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016276 { (exit 1); exit 1; }; } ;;
16277
Theodore Ts'oe1052142006-10-21 21:46:47 -040016278 *) ac_config_targets="$ac_config_targets $1"
16279 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016280
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016281 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016282 shift
16283done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016284
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016285ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016287if $ac_cs_silent; then
16288 exec 6>/dev/null
16289 ac_configure_extra_args="$ac_configure_extra_args --silent"
16290fi
16291
16292_ACEOF
16293cat >>$CONFIG_STATUS <<_ACEOF
16294if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016295 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16296 CONFIG_SHELL=$SHELL
16297 export CONFIG_SHELL
16298 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016299fi
16300
16301_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016302cat >>$CONFIG_STATUS <<\_ACEOF
16303exec 5>>config.log
16304{
16305 echo
16306 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16307## Running $as_me. ##
16308_ASBOX
16309 echo "$ac_log"
16310} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016311
Theodore Ts'oe1052142006-10-21 21:46:47 -040016312_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016313cat >>$CONFIG_STATUS <<_ACEOF
16314#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016315# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016316#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016317# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016318 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016319 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016320 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016321 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16322 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016323
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016325_ACEOF
16326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016327cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016328
16329# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016330for ac_config_target in $ac_config_targets
16331do
Theodore Ts'oe1052142006-10-21 21:46:47 -040016332 case $ac_config_target in
16333 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16334 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16335
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016336 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16337echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16338 { (exit 1); exit 1; }; };;
16339 esac
16340done
16341
Theodore Ts'oe1052142006-10-21 21:46:47 -040016342
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016343# If the user did not use the arguments to specify the items to instantiate,
16344# then the envvar interface is used. Set only those that are not.
16345# We use the long form for the default assignment because of an extremely
16346# bizarre bug on SunOS 4.1.3.
16347if $ac_need_defaults; then
16348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16350fi
16351
16352# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040016353# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016354# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016355# Hook for its removal unless debugging.
16356# Note that there is a small window in which the directory will not be cleaned:
16357# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016358$debug ||
16359{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016360 tmp=
16361 trap 'exit_status=$?
16362 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16363' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016364 trap '{ (exit 1); exit 1; }' 1 2 13 15
16365}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016366# Create a (secure) tmp directory for tmp files.
16367
16368{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016369 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016370 test -n "$tmp" && test -d "$tmp"
16371} ||
16372{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016373 tmp=./conf$$-$RANDOM
16374 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016375} ||
16376{
16377 echo "$me: cannot create a temporary directory in ." >&2
16378 { (exit 1); exit 1; }
16379}
16380
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016381#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016382# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016383#
16384
16385# No need to generate the scripts if there are no CONFIG_FILES.
16386# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040016387if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016388
16389_ACEOF
16390
Theodore Ts'oe1052142006-10-21 21:46:47 -040016391# Create sed commands to just substitute file output variables.
16392
16393# Remaining file output variables are in a fragment that also has non-file
16394# output varibles.
16395
16396
16397
16398ac_delim='%!_!# '
16399for ac_last_try in false false false false false :; do
16400 cat >conf$$subs.sed <<_ACEOF
16401SHELL!$SHELL$ac_delim
16402PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16403PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16404PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16405PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16406PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16407PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16408exec_prefix!$exec_prefix$ac_delim
16409prefix!$prefix$ac_delim
16410program_transform_name!$program_transform_name$ac_delim
16411bindir!$bindir$ac_delim
16412sbindir!$sbindir$ac_delim
16413libexecdir!$libexecdir$ac_delim
16414datarootdir!$datarootdir$ac_delim
16415datadir!$datadir$ac_delim
16416sysconfdir!$sysconfdir$ac_delim
16417sharedstatedir!$sharedstatedir$ac_delim
16418localstatedir!$localstatedir$ac_delim
16419includedir!$includedir$ac_delim
16420oldincludedir!$oldincludedir$ac_delim
16421docdir!$docdir$ac_delim
16422infodir!$infodir$ac_delim
16423htmldir!$htmldir$ac_delim
16424dvidir!$dvidir$ac_delim
16425pdfdir!$pdfdir$ac_delim
16426psdir!$psdir$ac_delim
16427libdir!$libdir$ac_delim
16428localedir!$localedir$ac_delim
16429mandir!$mandir$ac_delim
16430DEFS!$DEFS$ac_delim
16431ECHO_C!$ECHO_C$ac_delim
16432ECHO_N!$ECHO_N$ac_delim
16433ECHO_T!$ECHO_T$ac_delim
16434LIBS!$LIBS$ac_delim
16435build_alias!$build_alias$ac_delim
16436host_alias!$host_alias$ac_delim
16437target_alias!$target_alias$ac_delim
16438E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16439E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16440E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16441E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016442E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016443build!$build$ac_delim
16444build_cpu!$build_cpu$ac_delim
16445build_vendor!$build_vendor$ac_delim
16446build_os!$build_os$ac_delim
16447host!$host$ac_delim
16448host_cpu!$host_cpu$ac_delim
16449host_vendor!$host_vendor$ac_delim
16450host_os!$host_os$ac_delim
16451CC!$CC$ac_delim
16452CFLAGS!$CFLAGS$ac_delim
16453LDFLAGS!$LDFLAGS$ac_delim
16454CPPFLAGS!$CPPFLAGS$ac_delim
16455ac_ct_CC!$ac_ct_CC$ac_delim
16456EXEEXT!$EXEEXT$ac_delim
16457OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016458CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016459LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016460GREP!$GREP$ac_delim
16461EGREP!$EGREP$ac_delim
16462LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16463MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16464HTREE_CMT!$HTREE_CMT$ac_delim
16465ELF_CMT!$ELF_CMT$ac_delim
16466BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16467PROFILE_CMT!$PROFILE_CMT$ac_delim
16468CHECKER_CMT!$CHECKER_CMT$ac_delim
16469LIB_EXT!$LIB_EXT$ac_delim
16470STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16471PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'o55da9872008-09-02 23:12:38 -040016472LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim
16473PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016474_ACEOF
16475
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016476 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016477 break
16478 elif $ac_last_try; then
16479 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16480echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16481 { (exit 1); exit 1; }; }
16482 else
16483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016484 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016485done
16486
16487ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16488if test -n "$ac_eof"; then
16489 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16490 ac_eof=`expr $ac_eof + 1`
16491fi
16492
16493cat >>$CONFIG_STATUS <<_ACEOF
16494cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16495/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16496/^[ ]*@MCONFIG@[ ]*$/{
16497r $MCONFIG
16498d
16499}
16500/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16501r $MAKEFILE_ELF
16502d
16503}
16504/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16505r $MAKEFILE_BSDLIB
16506d
16507}
16508/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16509r $MAKEFILE_PROFILE
16510d
16511}
16512/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16513r $MAKEFILE_CHECKER
16514d
16515}
16516/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16517r $MAKEFILE_LIBRARY
16518d
16519}
16520/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16521r $ASM_TYPES_HEADER
16522d
16523}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016524/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16525r $PUBLIC_CONFIG_HEADER
16526d
16527}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016528_ACEOF
16529sed '
16530s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16531s/^/s,@/; s/!/@,|#_!!_#|/
16532:n
16533t n
16534s/'"$ac_delim"'$/,g/; t
16535s/$/\\/; p
16536N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16537' >>$CONFIG_STATUS <conf$$subs.sed
16538rm -f conf$$subs.sed
16539cat >>$CONFIG_STATUS <<_ACEOF
16540CEOF$ac_eof
16541_ACEOF
16542
16543
16544ac_delim='%!_!# '
16545for ac_last_try in false false false false false :; do
16546 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o55da9872008-09-02 23:12:38 -040016547TEST_IO_CMT!$TEST_IO_CMT$ac_delim
Theodore Ts'o14b596d2009-04-22 09:18:30 -040016548PKG_CONFIG!$PKG_CONFIG$ac_delim
16549LIBBLKID!$LIBBLKID$ac_delim
16550DEPLIBBLKID!$DEPLIBBLKID$ac_delim
16551STATIC_LIBBLKID!$STATIC_LIBBLKID$ac_delim
16552DEPSTATIC_LIBBLKID!$DEPSTATIC_LIBBLKID$ac_delim
16553PROFILED_LIBBLKID!$PROFILED_LIBBLKID$ac_delim
16554DEPPROFILED_LIBBLKID!$DEPPROFILED_LIBBLKID$ac_delim
16555BLKID_CMT!$BLKID_CMT$ac_delim
Theodore Ts'o55da9872008-09-02 23:12:38 -040016556DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
Theodore Ts'oaf773652008-09-01 11:27:27 -040016557IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016558RESIZER_CMT!$RESIZER_CMT$ac_delim
16559FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016560FSCK_MAN!$FSCK_MAN$ac_delim
16561E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16562E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016563UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016564GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16565PACKAGE!$PACKAGE$ac_delim
16566VERSION!$VERSION$ac_delim
16567SET_MAKE!$SET_MAKE$ac_delim
16568INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16569INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16570INSTALL_DATA!$INSTALL_DATA$ac_delim
16571MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16572USE_NLS!$USE_NLS$ac_delim
16573MSGFMT!$MSGFMT$ac_delim
16574GMSGFMT!$GMSGFMT$ac_delim
16575XGETTEXT!$XGETTEXT$ac_delim
16576MSGMERGE!$MSGMERGE$ac_delim
16577RANLIB!$RANLIB$ac_delim
16578ALLOCA!$ALLOCA$ac_delim
16579GLIBC21!$GLIBC21$ac_delim
16580HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16581HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16582HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16583HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16584LIBICONV!$LIBICONV$ac_delim
16585LTLIBICONV!$LTLIBICONV$ac_delim
16586INTLBISON!$INTLBISON$ac_delim
16587BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16588USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16589CATOBJEXT!$CATOBJEXT$ac_delim
16590DATADIRNAME!$DATADIRNAME$ac_delim
16591INSTOBJEXT!$INSTOBJEXT$ac_delim
16592GENCAT!$GENCAT$ac_delim
16593INTLOBJS!$INTLOBJS$ac_delim
16594INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16595INTLLIBS!$INTLLIBS$ac_delim
16596LIBINTL!$LIBINTL$ac_delim
16597LTLIBINTL!$LTLIBINTL$ac_delim
16598POSUB!$POSUB$ac_delim
16599BINARY_TYPE!$BINARY_TYPE$ac_delim
16600LN!$LN$ac_delim
16601LN_S!$LN_S$ac_delim
16602MV!$MV$ac_delim
16603CP!$CP$ac_delim
16604RM!$RM$ac_delim
16605CHMOD!$CHMOD$ac_delim
16606AWK!$AWK$ac_delim
16607SED!$SED$ac_delim
16608PERL!$PERL$ac_delim
16609LDCONFIG!$LDCONFIG$ac_delim
16610AR!$AR$ac_delim
16611STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016612MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016613BUILD_CC!$BUILD_CC$ac_delim
16614SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16615SIZEOF_INT!$SIZEOF_INT$ac_delim
16616SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16617SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16618SOCKET_LIB!$SOCKET_LIB$ac_delim
16619DLOPEN_LIB!$DLOPEN_LIB$ac_delim
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016620SEM_INIT_LIB!$SEM_INIT_LIB$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016621UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16622LINUX_CMT!$LINUX_CMT$ac_delim
16623CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16624UNIX_CMT!$UNIX_CMT$ac_delim
16625root_prefix!$root_prefix$ac_delim
16626root_bindir!$root_bindir$ac_delim
16627root_sbindir!$root_sbindir$ac_delim
16628root_libdir!$root_libdir$ac_delim
16629root_sysconfdir!$root_sysconfdir$ac_delim
16630LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16631SS_DIR!$SS_DIR$ac_delim
16632ET_DIR!$ET_DIR$ac_delim
16633DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16634INTL_FLAGS!$INTL_FLAGS$ac_delim
16635BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16636BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16637LIBOBJS!$LIBOBJS$ac_delim
16638LTLIBOBJS!$LTLIBOBJS$ac_delim
16639_ACEOF
16640
Theodore Ts'o14b596d2009-04-22 09:18:30 -040016641 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016642 break
16643 elif $ac_last_try; then
16644 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16645echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16646 { (exit 1); exit 1; }; }
16647 else
16648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16649 fi
16650done
16651
16652ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16653if test -n "$ac_eof"; then
16654 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16655 ac_eof=`expr $ac_eof + 1`
16656fi
16657
16658cat >>$CONFIG_STATUS <<_ACEOF
16659cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16660/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16661_ACEOF
16662sed '
16663s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16664s/^/s,@/; s/!/@,|#_!!_#|/
16665:n
16666t n
16667s/'"$ac_delim"'$/,g/; t
16668s/$/\\/; p
16669N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16670' >>$CONFIG_STATUS <conf$$subs.sed
16671rm -f conf$$subs.sed
16672cat >>$CONFIG_STATUS <<_ACEOF
16673:end
16674s/|#_!!_#|//g
16675CEOF$ac_eof
16676_ACEOF
16677
16678
16679# VPATH may cause trouble with some makes, so we remove $(srcdir),
16680# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16681# trailing colons and then remove the whole line if VPATH becomes empty
16682# (actually we leave an empty line to preserve line numbers).
16683if test "x$srcdir" = x.; then
16684 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16685s/:*\$(srcdir):*/:/
16686s/:*\${srcdir}:*/:/
16687s/:*@srcdir@:*/:/
16688s/^\([^=]*=[ ]*\):*/\1/
16689s/:*$//
16690s/^[^=]*=[ ]*$//
16691}'
16692fi
16693
16694cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016695fi # test -n "$CONFIG_FILES"
16696
Theodore Ts'oe1052142006-10-21 21:46:47 -040016697
16698for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16699do
16700 case $ac_tag in
16701 :[FHLC]) ac_mode=$ac_tag; continue;;
16702 esac
16703 case $ac_mode$ac_tag in
16704 :[FHL]*:*);;
16705 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16706echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16707 { (exit 1); exit 1; }; };;
16708 :[FH]-) ac_tag=-:-;;
16709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16710 esac
16711 ac_save_IFS=$IFS
16712 IFS=:
16713 set x $ac_tag
16714 IFS=$ac_save_IFS
16715 shift
16716 ac_file=$1
16717 shift
16718
16719 case $ac_mode in
16720 :L) ac_source=$1;;
16721 :[FH])
16722 ac_file_inputs=
16723 for ac_f
16724 do
16725 case $ac_f in
16726 -) ac_f="$tmp/stdin";;
16727 *) # Look for the file first in the build tree, then in the source tree
16728 # (if the path is not absolute). The absolute path cannot be DOS-style,
16729 # because $ac_f cannot contain `:'.
16730 test -f "$ac_f" ||
16731 case $ac_f in
16732 [\\/$]*) false;;
16733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16734 esac ||
16735 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16736echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16737 { (exit 1); exit 1; }; };;
16738 esac
16739 ac_file_inputs="$ac_file_inputs $ac_f"
16740 done
16741
16742 # Let's still pretend it is `configure' which instantiates (i.e., don't
16743 # use $as_me), people would be surprised to read:
16744 # /* config.h. Generated by config.status. */
16745 configure_input="Generated from "`IFS=:
16746 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16747 if test x"$ac_file" != x-; then
16748 configure_input="$ac_file. $configure_input"
16749 { echo "$as_me:$LINENO: creating $ac_file" >&5
16750echo "$as_me: creating $ac_file" >&6;}
16751 fi
16752
16753 case $ac_tag in
16754 *:-:* | *:-) cat >"$tmp/stdin";;
16755 esac
16756 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016757 esac
16758
Theodore Ts'oe1052142006-10-21 21:46:47 -040016759 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016760$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16761 X"$ac_file" : 'X\(//\)[^/]' \| \
16762 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016763 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016764echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16766 s//\1/
16767 q
16768 }
16769 /^X\(\/\/\)[^/].*/{
16770 s//\1/
16771 q
16772 }
16773 /^X\(\/\/\)$/{
16774 s//\1/
16775 q
16776 }
16777 /^X\(\/\).*/{
16778 s//\1/
16779 q
16780 }
16781 s/.*/./; q'`
16782 { as_dir="$ac_dir"
16783 case $as_dir in #(
16784 -*) as_dir=./$as_dir;;
16785 esac
16786 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016787 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016788 while :; do
16789 case $as_dir in #(
16790 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16791 *) as_qdir=$as_dir;;
16792 esac
16793 as_dirs="'$as_qdir' $as_dirs"
16794 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16796 X"$as_dir" : 'X\(//\)[^/]' \| \
16797 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016799echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16801 s//\1/
16802 q
16803 }
16804 /^X\(\/\/\)[^/].*/{
16805 s//\1/
16806 q
16807 }
16808 /^X\(\/\/\)$/{
16809 s//\1/
16810 q
16811 }
16812 /^X\(\/\).*/{
16813 s//\1/
16814 q
16815 }
16816 s/.*/./; q'`
16817 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016818 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016819 test -z "$as_dirs" || eval "mkdir $as_dirs"
16820 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16821echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016822 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016823 ac_builddir=.
16824
Theodore Ts'oe1052142006-10-21 21:46:47 -040016825case "$ac_dir" in
16826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16827*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016829 # A ".." for each directory in $ac_dir_suffix.
16830 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16831 case $ac_top_builddir_sub in
16832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16834 esac ;;
16835esac
16836ac_abs_top_builddir=$ac_pwd
16837ac_abs_builddir=$ac_pwd$ac_dir_suffix
16838# for backward compatibility:
16839ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016840
16841case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016842 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016843 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016844 ac_top_srcdir=$ac_top_builddir_sub
16845 ac_abs_top_srcdir=$ac_pwd ;;
16846 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016847 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016848 ac_top_srcdir=$srcdir
16849 ac_abs_top_srcdir=$srcdir ;;
16850 *) # Relative name.
16851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16852 ac_top_srcdir=$ac_top_build_prefix$srcdir
16853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016854esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016857
Theodore Ts'oe1052142006-10-21 21:46:47 -040016858 case $ac_mode in
16859 :F)
16860 #
16861 # CONFIG_FILE
16862 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016863
16864 case $INSTALL in
16865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016867 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016868_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016869
16870cat >>$CONFIG_STATUS <<\_ACEOF
16871# If the template does not know about datarootdir, expand it.
16872# FIXME: This hack should be removed a few years after 2.60.
16873ac_datarootdir_hack=; ac_datarootdir_seen=
16874
16875case `sed -n '/datarootdir/ {
16876 p
16877 q
16878}
16879/@datadir@/p
16880/@docdir@/p
16881/@infodir@/p
16882/@localedir@/p
16883/@mandir@/p
16884' $ac_file_inputs` in
16885*datarootdir*) ac_datarootdir_seen=yes;;
16886*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16887 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16888echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16889_ACEOF
16890cat >>$CONFIG_STATUS <<_ACEOF
16891 ac_datarootdir_hack='
16892 s&@datadir@&$datadir&g
16893 s&@docdir@&$docdir&g
16894 s&@infodir@&$infodir&g
16895 s&@localedir@&$localedir&g
16896 s&@mandir@&$mandir&g
16897 s&\\\${datarootdir}&$datarootdir&g' ;;
16898esac
16899_ACEOF
16900
16901# Neutralize VPATH when `$srcdir' = `.'.
16902# Shell code in configure.ac might set extrasub.
16903# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016904cat >>$CONFIG_STATUS <<_ACEOF
16905 sed "$ac_vpsub
16906$extrasub
16907_ACEOF
16908cat >>$CONFIG_STATUS <<\_ACEOF
16909:t
16910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016911s&@configure_input@&$configure_input&;t t
16912s&@top_builddir@&$ac_top_builddir_sub&;t t
16913s&@srcdir@&$ac_srcdir&;t t
16914s&@abs_srcdir@&$ac_abs_srcdir&;t t
16915s&@top_srcdir@&$ac_top_srcdir&;t t
16916s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16917s&@builddir@&$ac_builddir&;t t
16918s&@abs_builddir@&$ac_abs_builddir&;t t
16919s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16920s&@INSTALL@&$ac_INSTALL&;t t
16921$ac_datarootdir_hack
16922" $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 -050016923
Theodore Ts'oe1052142006-10-21 21:46:47 -040016924test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16925 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16927 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16928which seems to be undefined. Please make sure it is defined." >&5
16929echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16930which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016931
Theodore Ts'oe1052142006-10-21 21:46:47 -040016932 rm -f "$tmp/stdin"
16933 case $ac_file in
16934 -) cat "$tmp/out"; rm -f "$tmp/out";;
16935 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16936 esac
16937 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016938
16939
Theodore Ts'oe1052142006-10-21 21:46:47 -040016940 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16941echo "$as_me: executing $ac_file commands" >&6;}
16942 ;;
16943 esac
16944
16945
16946 case $ac_file$ac_mode in
16947 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016948 for ac_file in $CONFIG_FILES; do
16949 # Support "outfile[:infile[:infile...]]"
16950 case "$ac_file" in
16951 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016952 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016953 # PO directories have a Makefile.in generated from Makefile.in.in.
16954 case "$ac_file" in */Makefile.in)
16955 # Adjust a relative srcdir.
16956 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16957 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16958 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16959 # In autoconf-2.13 it is called $ac_given_srcdir.
16960 # In autoconf-2.50 it is called $srcdir.
16961 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16962 case "$ac_given_srcdir" in
16963 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16964 /*) top_srcdir="$ac_given_srcdir" ;;
16965 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16966 esac
16967 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16968 rm -f "$ac_dir/POTFILES"
16969 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16970 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 -050016971 POMAKEFILEDEPS="POTFILES.in"
16972 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016973 # on $ac_dir but don't depend on user-specified configuration
16974 # parameters.
16975 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16976 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016977 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016978 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16979 fi
16980 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16981 # Hide the ALL_LINGUAS assigment from automake.
16982 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016983 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16984 else
16985 # The set of available languages was given in configure.in.
16986 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016987 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016988 # Compute POFILES
16989 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16990 # Compute UPDATEPOFILES
16991 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16992 # Compute DUMMYPOFILES
16993 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16994 # Compute GMOFILES
16995 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016996 case "$ac_given_srcdir" in
16997 .) srcdirpre= ;;
16998 *) srcdirpre='$(srcdir)/' ;;
16999 esac
17000 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017001 UPDATEPOFILES=
17002 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017003 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017004 for lang in $ALL_LINGUAS; do
17005 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017006 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17007 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017008 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017009 done
17010 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17011 # environment variable.
17012 INST_LINGUAS=
17013 if test -n "$ALL_LINGUAS"; then
17014 for presentlang in $ALL_LINGUAS; do
17015 useit=no
17016 if test "%UNSET%" != "$LINGUAS"; then
17017 desiredlanguages="$LINGUAS"
17018 else
17019 desiredlanguages="$ALL_LINGUAS"
17020 fi
17021 for desiredlang in $desiredlanguages; do
17022 # Use the presentlang catalog if desiredlang is
17023 # a. equal to presentlang, or
17024 # b. a variant of presentlang (because in this case,
17025 # presentlang can be used as a fallback for messages
17026 # which are not translated in the desiredlang catalog).
17027 case "$desiredlang" in
17028 "$presentlang"*) useit=yes;;
17029 esac
17030 done
17031 if test $useit = yes; then
17032 INST_LINGUAS="$INST_LINGUAS $presentlang"
17033 fi
17034 done
17035 fi
17036 CATALOGS=
17037 if test -n "$INST_LINGUAS"; then
17038 for lang in $INST_LINGUAS; do
17039 CATALOGS="$CATALOGS $lang.gmo"
17040 done
17041 fi
17042 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017043 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 -040017044 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17045 if test -f "$f"; then
17046 case "$f" in
17047 *.orig | *.bak | *~) ;;
17048 *) cat "$f" >> "$ac_dir/Makefile" ;;
17049 esac
17050 fi
17051 done
17052 fi
17053 ;;
17054 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017055 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017056
Theodore Ts'oe1052142006-10-21 21:46:47 -040017057 esac
17058done # for ac_tag
17059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017060
17061{ (exit 0); exit 0; }
17062_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017063chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017064ac_clean_files=$ac_clean_files_save
17065
17066
17067# configure is writing to config.log, and then calls config.status.
17068# config.status does its own redirection, appending to config.log.
17069# Unfortunately, on DOS this fails, as config.log is still kept open
17070# by configure, so config.status won't be able to write to it; its
17071# output is simply discarded. So we exec the FD to /dev/null,
17072# effectively closing config.log, so it can be properly (re)opened and
17073# appended to by config.status. When coming back to configure, we
17074# need to make the FD available again.
17075if test "$no_create" != yes; then
17076 ac_cs_success=:
17077 ac_config_status_args=
17078 test "$silent" = yes &&
17079 ac_config_status_args="$ac_config_status_args --quiet"
17080 exec 5>/dev/null
17081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17082 exec 5>>config.log
17083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17084 # would make configure fail if this is the last instruction.
17085 $ac_cs_success || { (exit 1); exit 1; }
17086fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017087
Theodore Ts'oee683a12005-02-05 15:53:56 -050017088if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi