blob: 89e16115aa253b03c2f94e376c376af57c7af94e [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400687DEBUGFS_CMT
688IMAGER_CMT
689RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400690FSCK_PROG
691FSCK_MAN
692E2INITRD_PROG
693E2INITRD_MAN
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500694PKG_CONFIG
Theodore Ts'oe1052142006-10-21 21:46:47 -0400695DEVMAPPER_REQ
696DEVMAPPER_PC_LIBS
697DEVMAPPER_LIBS
698STATIC_DEVMAPPER_LIBS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500699STATIC_BLKID_DEVMAPPER_LIBS
Theodore Ts'o5610f992007-12-31 11:16:56 -0500700UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400701GETTEXT_PACKAGE
702PACKAGE
703VERSION
704SET_MAKE
705INSTALL_PROGRAM
706INSTALL_SCRIPT
707INSTALL_DATA
708MKINSTALLDIRS
709USE_NLS
710MSGFMT
711GMSGFMT
712XGETTEXT
713MSGMERGE
714RANLIB
715ALLOCA
716GLIBC21
717HAVE_POSIX_PRINTF
718HAVE_ASPRINTF
719HAVE_SNPRINTF
720HAVE_WPRINTF
721LIBICONV
722LTLIBICONV
723INTLBISON
724BUILD_INCLUDED_LIBINTL
725USE_INCLUDED_LIBINTL
726CATOBJEXT
727DATADIRNAME
728INSTOBJEXT
729GENCAT
730INTLOBJS
731INTL_LIBTOOL_SUFFIX_PREFIX
732INTLLIBS
733LIBINTL
734LTLIBINTL
735POSUB
736BINARY_TYPE
737LN
738LN_S
739MV
740CP
741RM
742CHMOD
743AWK
744SED
745PERL
746LDCONFIG
747AR
748STRIP
749BUILD_CC
750SIZEOF_SHORT
751SIZEOF_INT
752SIZEOF_LONG
753SIZEOF_LONG_LONG
754SOCKET_LIB
755DLOPEN_LIB
756UNI_DIFF_OPTS
757LINUX_CMT
758CYGWIN_CMT
759UNIX_CMT
760root_prefix
761root_bindir
762root_sbindir
763root_libdir
764root_sysconfdir
765LDFLAG_STATIC
766SS_DIR
767ET_DIR
768DO_TEST_SUITE
769INTL_FLAGS
770BUILD_CFLAGS
771BUILD_LDFLAGS
772LIBOBJS
773LTLIBOBJS'
774ac_subst_files='MCONFIG
775MAKEFILE_ELF
776MAKEFILE_BSDLIB
777MAKEFILE_PROFILE
778MAKEFILE_CHECKER
779MAKEFILE_LIBRARY
780ASM_TYPES_HEADER'
781 ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400787LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400788CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500789CPP
790PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400791
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000792
793# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500794ac_init_help=
795ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000796# The variables have the same names as the options, with
797# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500798cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000799exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000800no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000809verbose=
810x_includes=NONE
811x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400818# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000827includedir='${prefix}/include'
828oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400829docdir='${datarootdir}/doc/${PACKAGE}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000838
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400840ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841for ac_option
842do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400845 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000846 ac_prev=
847 continue
848 fi
849
Theodore Ts'oe1052142006-10-21 21:46:47 -0400850 case $ac_option in
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *) ac_optarg=yes ;;
853 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
Theodore Ts'oe1052142006-10-21 21:46:47 -0400857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000860
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500864 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000865
866 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500867 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500869 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000880
Theodore Ts'oe1052142006-10-21 21:46:47 -0400881 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000882 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500884 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000885
Theodore Ts'oe1052142006-10-21 21:46:47 -0400886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000893 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500894 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400896 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500897 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
898 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400899 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400900 eval enable_$ac_feature=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911
912 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500913 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400915 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
917 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400918 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400919 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500928 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000929
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000940
941 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500942 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000943 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500944 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945
Theodore Ts'oe1052142006-10-21 21:46:47 -0400946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
951
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500957 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000958
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500962 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000963
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500967 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000968
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500974 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000975
Theodore Ts'oe1052142006-10-21 21:46:47 -0400976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
980
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000981 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400982 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500991 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000992
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
996
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500998 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000999 no_create=yes ;;
1000
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1004
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001012 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001013
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001017 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001018
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001024 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001025
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001031 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001032
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
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=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001048 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001049
Theodore Ts'oe1052142006-10-21 21:46:47 -04001050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1054
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1059
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1063
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 ac_prev=sbindir ;;
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001068 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001069
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1073 | --sha | --sh)
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001079 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001080
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001081 -site | --site | --sit)
1082 ac_prev=site ;;
1083 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001084 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001085
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 ac_prev=srcdir ;;
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001089 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001090
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001097
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001099 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 verbose=yes ;;
1105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001108
1109 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001111 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001115 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001116 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117
1118 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001119 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001120 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001121 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 { echo "$as_me: error: invalid package name: $ac_package" >&2
1123 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001124 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001125 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001136 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001143 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 -*) { echo "$as_me: error: unrecognized option: $ac_option
1146Try \`$0 --help' for more information." >&2
1147 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148 ;;
1149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001150 *=*)
1151 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1155 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001156 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001157 export $ac_envvar ;;
1158
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001159 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 # FIXME: should be removed in autoconf 3.0.
1161 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 { echo "$as_me: error: missing argument to $ac_option" >&2
1173 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001174fi
1175
Theodore Ts'oe1052142006-10-21 21:46:47 -04001176# Be sure to have absolute directory names.
1177for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001182 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001183 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001186 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001187 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1188 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001189done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001190
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1206 fi
1207fi
1208
1209ac_tool_prefix=
1210test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212test "$silent" = yes && exec 6>/dev/null
1213
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001214
Theodore Ts'oe1052142006-10-21 21:46:47 -04001215ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216ac_ls_di=`ls -di .` &&
1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 { echo "$as_me: error: Working directory cannot be determined" >&2
1219 { (exit 1); exit 1; }; }
1220test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 { echo "$as_me: error: pwd does not report name of working directory" >&2
1222 { (exit 1); exit 1; }; }
1223
1224
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225# Find the source files, if location was not specified.
1226if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001230$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$0" : 'X\(//\)[^/]' \| \
1232 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001233 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001234echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)[^/].*/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\/\)$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\).*/{
1248 s//\1/
1249 q
1250 }
1251 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001253 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254 srcdir=..
1255 fi
1256else
1257 ac_srcdir_defaulted=no
1258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001259if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001262 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001267 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001268 pwd)`
1269# When building in place, set srcdir=.
1270if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1272fi
1273# Remove unnecessary trailing slashes from srcdir.
1274# Double slashes in file names in object file debugging info
1275# mess up M-x gdb in Emacs.
1276case $srcdir in
1277*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278esac
1279for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001286#
1287# Report the --help message.
1288#
1289if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
1293\`configure' configures this package to adapt to many kinds of systems.
1294
1295Usage: $0 [OPTION]... [VAR=VALUE]...
1296
1297To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298VAR=VALUE. See below for descriptions of some of the useful variables.
1299
1300Defaults for the options are specified in brackets.
1301
1302Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001313Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 [PREFIX]
1318
1319By default, \`make install' will install all the files in
1320\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322for instance \`--prefix=\$HOME'.
1323
1324For better control, use the options below.
1325
1326Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001346_ACEOF
1347
1348 cat <<\_ACEOF
1349
1350System types:
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353_ACEOF
1354fi
1355
1356if test -n "$ac_init_help"; then
1357
1358 cat <<\_ACEOF
1359
1360Optional Features:
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001363 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001364 --enable-compression enable EXPERIMENTAL compression support
1365 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001366 --enable-elf-shlibs select ELF shared libraries
1367 --enable-bsd-shlibs select BSD shared libraries
1368 --enable-profile build profiling libraries
1369 --enable-checker build checker libraries
1370 --enable-jbd-debug enable journal debugging
1371 --enable-blkid-debug enable blkid debugging
1372 --enable-testio-debug enable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001373 --disable-debugfs disable support of debugfs program
1374 --disable-imager disable support of e2image program
1375 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001376 --enable-fsck build fsck wrapper program
1377 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001378 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001379 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001380 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001381 --disable-nls do not use Native Language Support
1382 --disable-rpath do not hardcode runtime library paths
1383
1384Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001387 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001388 --with-cc=COMPILER select compiler to use
1389 --with-linker=LINKER select linker to use
1390 --with-ccopts=CCOPTS select compiler command line options
1391 --with-ldopts=LDOPTS select linker command line options
1392 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1393 --with-gnu-ld assume the C compiler uses GNU ld default=no
1394 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1395 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1396 --with-included-gettext use the GNU gettext library included here
1397 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1398 --without-libintl-prefix don't search for libintl in includedir and libdir
1399
1400Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001405 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001408 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001409 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001410
1411Use these variables to override the choices made by `configure' or to help
1412it to find libraries and programs with nonstandard names/locations.
1413
1414_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001415ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001416fi
1417
1418if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422 ac_builddir=.
1423
Theodore Ts'oe1052142006-10-21 21:46:47 -04001424case "$ac_dir" in
1425.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001427 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433 esac ;;
1434esac
1435ac_abs_top_builddir=$ac_pwd
1436ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437# for backward compatibility:
1438ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439
1440case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001441 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001442 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001446 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1449 *) # Relative name.
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001453esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001454ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001455
Theodore Ts'oe1052142006-10-21 21:46:47 -04001456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464 else
1465 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001466 fi || ac_status=$?
1467 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001468 done
1469fi
1470
Theodore Ts'oe1052142006-10-21 21:46:47 -04001471test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472if $ac_init_version; then
1473 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001474configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001475generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001476
Theodore Ts'oe1052142006-10-21 21:46:47 -04001477Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14782002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479This configure script is free software; the Free Software Foundation
1480gives unlimited permission to copy, distribute and modify it.
1481_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001482 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001484cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001485This file contains any messages produced by compilers while
1486running configure, to aid debugging if configure makes a mistake.
1487
1488It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001489generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490
1491 $ $0 $@
1492
1493_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001494exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001495{
1496cat <<_ASUNAME
1497## --------- ##
1498## Platform. ##
1499## --------- ##
1500
1501hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505uname -v = `(uname -v) 2>/dev/null || echo unknown`
1506
1507/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1509
1510/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1511/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1512/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001513/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001514/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1515/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1516/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1517
1518_ASUNAME
1519
1520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521for as_dir in $PATH
1522do
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 echo "PATH: $as_dir"
1526done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001527IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528
1529} >&5
1530
1531cat >&5 <<_ACEOF
1532
1533
1534## ----------- ##
1535## Core tests. ##
1536## ----------- ##
1537
1538_ACEOF
1539
1540
1541# Keep a trace of the command line.
1542# Strip out --no-create and --no-recursion so they do not pile up.
1543# Strip out --silent because we don't want to record it for future runs.
1544# Also quote any args containing shell meta-characters.
1545# Make two passes to allow for proper duplicate-argument suppression.
1546ac_configure_args=
1547ac_configure_args0=
1548ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549ac_must_keep_next=false
1550for ac_pass in 1 2
1551do
1552 for ac_arg
1553 do
1554 case $ac_arg in
1555 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557 | -silent | --silent | --silen | --sile | --sil)
1558 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001559 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001560 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1561 esac
1562 case $ac_pass in
1563 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564 2)
1565 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566 if test $ac_must_keep_next = true; then
1567 ac_must_keep_next=false # Got value, back to normal.
1568 else
1569 case $ac_arg in
1570 *=* | --config-cache | -C | -disable-* | --disable-* \
1571 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573 | -with-* | --with-* | -without-* | --without-* | --x)
1574 case "$ac_configure_args0 " in
1575 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1576 esac
1577 ;;
1578 -* ) ac_must_keep_next=true ;;
1579 esac
1580 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001581 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001582 ;;
1583 esac
1584 done
1585done
1586$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1588
1589# When interrupted or exit'd, cleanup temporary files, and complete
1590# config.log. We remove comments because anyway the quotes in there
1591# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001592# WARNING: Use '\'' to represent an apostrophe within the trap.
1593# 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 -05001594trap 'exit_status=$?
1595 # Save into config.log some information that might help in debugging.
1596 {
1597 echo
1598
1599 cat <<\_ASBOX
1600## ---------------- ##
1601## Cache variables. ##
1602## ---------------- ##
1603_ASBOX
1604 echo
1605 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606(
1607 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608 eval ac_val=\$$ac_var
1609 case $ac_val in #(
1610 *${as_nl}*)
1611 case $ac_var in #(
1612 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1613echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1614 esac
1615 case $ac_var in #(
1616 _ | IFS | as_nl) ;; #(
1617 *) $as_unset $ac_var ;;
1618 esac ;;
1619 esac
1620 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1623 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 "s/'\''/'\''\\\\'\'''\''/g;
1626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1627 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001631 esac |
1632 sort
1633)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001634 echo
1635
1636 cat <<\_ASBOX
1637## ----------------- ##
1638## Output variables. ##
1639## ----------------- ##
1640_ASBOX
1641 echo
1642 for ac_var in $ac_subst_vars
1643 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001644 eval ac_val=\$$ac_var
1645 case $ac_val in
1646 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 esac
1648 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001649 done | sort
1650 echo
1651
1652 if test -n "$ac_subst_files"; then
1653 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001654## ------------------- ##
1655## File substitutions. ##
1656## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657_ASBOX
1658 echo
1659 for ac_var in $ac_subst_files
1660 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001661 eval ac_val=\$$ac_var
1662 case $ac_val in
1663 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1664 esac
1665 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001666 done | sort
1667 echo
1668 fi
1669
1670 if test -s confdefs.h; then
1671 cat <<\_ASBOX
1672## ----------- ##
1673## confdefs.h. ##
1674## ----------- ##
1675_ASBOX
1676 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001677 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001678 echo
1679 fi
1680 test "$ac_signal" != 0 &&
1681 echo "$as_me: caught signal $ac_signal"
1682 echo "$as_me: exit $exit_status"
1683 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001684 rm -f core *.core core.conftest.* &&
1685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001686 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001687' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001688for ac_signal in 1 2 13 15; do
1689 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1690done
1691ac_signal=0
1692
1693# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001694rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001695
1696# Predefined preprocessor variables.
1697
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_NAME "$PACKAGE_NAME"
1700_ACEOF
1701
1702
1703cat >>confdefs.h <<_ACEOF
1704#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1705_ACEOF
1706
1707
1708cat >>confdefs.h <<_ACEOF
1709#define PACKAGE_VERSION "$PACKAGE_VERSION"
1710_ACEOF
1711
1712
1713cat >>confdefs.h <<_ACEOF
1714#define PACKAGE_STRING "$PACKAGE_STRING"
1715_ACEOF
1716
1717
1718cat >>confdefs.h <<_ACEOF
1719#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1720_ACEOF
1721
1722
1723# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001724# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001725if test -n "$CONFIG_SITE"; then
1726 set x "$CONFIG_SITE"
1727elif test "x$prefix" != xNONE; then
1728 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1729else
1730 set x "$ac_default_prefix/share/config.site" \
1731 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001733shift
1734for ac_site_file
1735do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001736 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001737 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1738echo "$as_me: loading site script $ac_site_file" >&6;}
1739 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001740 . "$ac_site_file"
1741 fi
1742done
1743
1744if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001745 # Some versions of bash will fail to source /dev/null (special
1746 # files actually), so we avoid doing that.
1747 if test -f "$cache_file"; then
1748 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1749echo "$as_me: loading cache $cache_file" >&6;}
1750 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001751 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1752 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001753 esac
1754 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001755else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001756 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1757echo "$as_me: creating cache $cache_file" >&6;}
1758 >$cache_file
1759fi
1760
1761# Check that the precious variables saved in the cache have kept the same
1762# value.
1763ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001764for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1766 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1768 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001769 case $ac_old_set,$ac_new_set in
1770 set,)
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1772echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1774 ,set)
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1776echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1778 ,);;
1779 *)
1780 if test "x$ac_old_val" != "x$ac_new_val"; then
1781 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1782echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1783 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1784echo "$as_me: former value: $ac_old_val" >&2;}
1785 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1786echo "$as_me: current value: $ac_new_val" >&2;}
1787 ac_cache_corrupted=:
1788 fi;;
1789 esac
1790 # Pass precious variables to config.status.
1791 if test "$ac_new_set" = set; then
1792 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001793 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001794 *) ac_arg=$ac_var=$ac_new_val ;;
1795 esac
1796 case " $ac_configure_args " in
1797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1798 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1799 esac
1800 fi
1801done
1802if $ac_cache_corrupted; then
1803 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1804echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1805 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1806echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1807 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001808fi
1809
Theodore Ts'oe1052142006-10-21 21:46:47 -04001810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001826ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001827ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001832
1833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001835for ac_dir in config "$srcdir"/config; do
1836 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001837 ac_aux_dir=$ac_dir
1838 ac_install_sh="$ac_aux_dir/install-sh -c"
1839 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001840 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001841 ac_aux_dir=$ac_dir
1842 ac_install_sh="$ac_aux_dir/install.sh -c"
1843 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001844 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001845 ac_aux_dir=$ac_dir
1846 ac_install_sh="$ac_aux_dir/shtool install -c"
1847 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001848 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001849done
1850if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001851 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1852echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001853 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001854fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001855
1856# These three variables are undocumented and unsupported,
1857# and are intended to be withdrawn in a future Autoconf release.
1858# They can cause serious problems if a builder's source tree is in a directory
1859# whose full name contains unusual characters.
1860ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1861ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1862ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1863
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001864
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001865MCONFIG=./MCONFIG
1866
Theodore Ts'o74becf31997-04-26 14:37:06 +00001867BINARY_TYPE=bin
1868E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1869 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1870DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1871 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001872E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001873MONTH=`echo $DATE | awk -F- '{print $2}'`
1874YEAR=`echo $DATE | awk -F- '{print $3}'`
1875
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001876if expr $YEAR ">" 1900 > /dev/null ; then
1877 E2FSPROGS_YEAR=$YEAR
1878elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001879 E2FSPROGS_YEAR=19$YEAR
1880else
1881 E2FSPROGS_YEAR=20$YEAR
1882fi
1883
1884case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001885Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1886Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1887Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1888Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1889May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1890Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1891Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1892Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1893Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1894Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1895Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1896Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001897*) echo "Unknown month $MONTH??" ;;
1898esac
1899
Andreas Dilger927566a2006-11-12 19:41:25 -05001900base_ver=`echo $E2FSPROGS_VERSION | \
1901 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001902
1903date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1904
1905case $E2FSPROGS_VERSION in
1906*-WIP|pre-*)
Theodore Ts'od69e7e22008-02-15 21:28:48 -05001907 pre_vers=`echo $base_ver 0.01 - p | dc`
Andreas Dilger927566a2006-11-12 19:41:25 -05001908 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1909 ;;
1910*)
1911 E2FSPROGS_PKGVER="$base_ver"
1912 ;;
1913esac
1914
1915unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001916echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1917echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1918
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001919
1920
1921
Andreas Dilger927566a2006-11-12 19:41:25 -05001922
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001923# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001924$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001927 { (exit 1); exit 1; }; }
1928
Theodore Ts'oe1052142006-10-21 21:46:47 -04001929{ echo "$as_me:$LINENO: checking build system type" >&5
1930echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001931if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001934 ac_build_alias=$build_alias
1935test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001941ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001944 { (exit 1); exit 1; }; }
1945
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001946fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001947{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948echo "${ECHO_T}$ac_cv_build" >&6; }
1949case $ac_cv_build in
1950*-*-*) ;;
1951*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1954esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001955build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001956ac_save_IFS=$IFS; IFS='-'
1957set x $ac_cv_build
1958shift
1959build_cpu=$1
1960build_vendor=$2
1961shift; shift
1962# Remember, the first character of IFS is used to create $*,
1963# except with old shells:
1964build_os=$*
1965IFS=$ac_save_IFS
1966case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001967
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001968
Theodore Ts'oe1052142006-10-21 21:46:47 -04001969{ echo "$as_me:$LINENO: checking host system type" >&5
1970echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001971if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1976else
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001980 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001981fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001983fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001984{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985echo "${ECHO_T}$ac_cv_host" >&6; }
1986case $ac_cv_host in
1987*-*-*) ;;
1988*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1991esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001992host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001993ac_save_IFS=$IFS; IFS='-'
1994set x $ac_cv_host
1995shift
1996host_cpu=$1
1997host_vendor=$2
1998shift; shift
1999# Remember, the first character of IFS is used to create $*,
2000# except with old shells:
2001host_os=$*
2002IFS=$ac_save_IFS
2003case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002004
2005
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002006
Theodore Ts'oe1052142006-10-21 21:46:47 -04002007# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002008if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002009 withval=$with_diet_libc; CC="diet cc -nostdinc"
2010{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2011echo "${ECHO_T}CC=$CC" >&6; }
2012fi
2013
2014# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002015if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002016 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2017echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002018CC=$withval
2019else
2020 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002021{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2022echo "${ECHO_T}CC defaults to $CC" >&6; }
2023fi
2024export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002025
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002026ac_ext=c
2027ac_cpp='$CPP $CPPFLAGS'
2028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2033set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002036if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002038else
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002048 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 -05002049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2052 fi
2053done
2054done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002055IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002056
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002057fi
2058fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002060if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002061 { echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002063else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002064 { echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002066fi
2067
Theodore Ts'oe1052142006-10-21 21:46:47 -04002068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069fi
2070if test -z "$ac_cv_prog_CC"; then
2071 ac_ct_CC=$CC
2072 # Extract the first word of "gcc", so it can be a program name with args.
2073set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002076if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2081else
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002088 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 -05002089 ac_cv_prog_ac_ct_CC="gcc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093done
2094done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002095IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002096
2097fi
2098fi
2099ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002103else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002104 { echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002106fi
2107
Theodore Ts'oe1052142006-10-21 21:46:47 -04002108 if test "x$ac_ct_CC" = x; then
2109 CC=""
2110 else
2111 case $cross_compiling:$ac_tool_warned in
2112yes:)
2113{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2114whose name does not start with the host triplet. If you think this
2115configuration is useful to you, please write to autoconf@gnu.org." >&5
2116echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2117whose name does not start with the host triplet. If you think this
2118configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2119ac_tool_warned=yes ;;
2120esac
2121 CC=$ac_ct_CC
2122 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002123else
2124 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002125fi
2126
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002127if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002128 if test -n "$ac_tool_prefix"; then
2129 # 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 -05002130set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002133if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002135else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002145 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 -05002146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2149 fi
2150done
2151done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002152IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002153
2154fi
2155fi
2156CC=$ac_cv_prog_CC
2157if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002158 { echo "$as_me:$LINENO: result: $CC" >&5
2159echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002160else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002161 { echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002163fi
2164
Theodore Ts'oe1052142006-10-21 21:46:47 -04002165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002166 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002167fi
2168if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002173if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002179 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002186 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 -05002187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2190 fi
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195done
2196done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002197IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002198
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002199if test $ac_prog_rejected = yes; then
2200 # We found a bogon in the path, so make sure we never use it.
2201 set dummy $ac_cv_prog_CC
2202 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002203 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002204 # We chose a different compiler from the bogus one.
2205 # However, it has the same basename, so the bogon will be chosen
2206 # first if we set CC to just the basename; use the full file name.
2207 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002209 fi
2210fi
2211fi
2212fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002213CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002214if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002215 { echo "$as_me:$LINENO: result: $CC" >&5
2216echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002217else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002218 { echo "$as_me:$LINENO: result: no" >&5
2219echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002220fi
2221
Theodore Ts'oe1052142006-10-21 21:46:47 -04002222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002223fi
2224if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002226 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002227 do
2228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002232if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002234else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002244 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 -05002245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2248 fi
2249done
2250done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002251IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002252
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002253fi
2254fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002255CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002257 { echo "$as_me:$LINENO: result: $CC" >&5
2258echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002260 { echo "$as_me:$LINENO: result: no" >&5
2261echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002262fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002263
Theodore Ts'oe1052142006-10-21 21:46:47 -04002264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002265 test -n "$CC" && break
2266 done
2267fi
2268if test -z "$CC"; then
2269 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002270 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002271do
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002288 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 -05002289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002292 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293done
2294done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002295IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002296
2297fi
2298fi
2299ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002301 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002303else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002304 { echo "$as_me:$LINENO: result: no" >&5
2305echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002306fi
2307
Theodore Ts'oe1052142006-10-21 21:46:47 -04002308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002309 test -n "$ac_ct_CC" && break
2310done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002311
Theodore Ts'oe1052142006-10-21 21:46:47 -04002312 if test "x$ac_ct_CC" = x; then
2313 CC=""
2314 else
2315 case $cross_compiling:$ac_tool_warned in
2316yes:)
2317{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318whose name does not start with the host triplet. If you think this
2319configuration is useful to you, please write to autoconf@gnu.org." >&5
2320echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321whose name does not start with the host triplet. If you think this
2322configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323ac_tool_warned=yes ;;
2324esac
2325 CC=$ac_ct_CC
2326 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002330
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002332test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: no acceptable C compiler found in \$PATH
2335See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2337
2338# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002339echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002340ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002341{ (ac_try="$ac_compiler --version >&5"
2342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002351{ (ac_try="$ac_compiler -v >&5"
2352case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2355esac
2356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002361{ (ac_try="$ac_compiler -V >&5"
2362case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365esac
2366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2371
2372cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
2378
2379int
2380main ()
2381{
2382
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387ac_clean_files_save=$ac_clean_files
2388ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389# Try to create an executable without -o first, disregard a.out.
2390# It will help us diagnose broken compilers, and finding out an intuition
2391# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002392{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002394ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395#
2396# List of possible output files, starting from the most likely.
2397# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2398# only as a last resort. b.out is created by i960 compilers.
2399ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2400#
2401# The IRIX 6 linker writes into existing files which may not be
2402# executable, retaining their permissions. Remove them first so a
2403# subsequent execution test works.
2404ac_rmfiles=
2405for ac_file in $ac_files
2406do
2407 case $ac_file in
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2410 esac
2411done
2412rm -f $ac_rmfiles
2413
2414if { (ac_try="$ac_link_default"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426# in a Makefile. We should not override ac_cv_exeext if it was cached,
2427# so that the user can short-circuit this test for compilers unknown to
2428# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002429for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430do
2431 test -f "$ac_file" || continue
2432 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002434 ;;
2435 [ab].out )
2436 # We found the default executable, but exeext='' is most
2437 # certainly right.
2438 break;;
2439 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2441 then :; else
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2443 fi
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2448 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 break;;
2450 * )
2451 break;;
2452 esac
2453done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002454test "$ac_cv_exeext" = no && ac_cv_exeext=
2455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002456else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002457 ac_file=''
2458fi
2459
2460{ echo "$as_me:$LINENO: result: $ac_file" >&5
2461echo "${ECHO_T}$ac_file" >&6; }
2462if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463 echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2467See \`config.log' for more details." >&5
2468echo "$as_me: error: C compiler cannot create executables
2469See \`config.log' for more details." >&2;}
2470 { (exit 77); exit 77; }; }
2471fi
2472
2473ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480# If not cross compiling, check that we can run a simple program.
2481if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486esac
2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002493 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002494 if test "$cross_compiling" = maybe; then
2495 cross_compiling=yes
2496 else
2497 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498If you meant to cross compile, use \`--host'.
2499See \`config.log' for more details." >&5
2500echo "$as_me: error: cannot run C compiled programs.
2501If you meant to cross compile, use \`--host'.
2502See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2504 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002505 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507{ echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2516{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002518
Theodore Ts'oe1052142006-10-21 21:46:47 -04002519{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2521if { (ac_try="$ac_link"
2522case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
2526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2532# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2533# work properly (i.e., refer to `conftest.exe'), while it won't with
2534# `rm'.
2535for ac_file in conftest.exe conftest conftest.*; do
2536 test -f "$ac_file" || continue
2537 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 break;;
2541 * ) break;;
2542 esac
2543done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002544else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546See \`config.log' for more details." >&5
2547echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2550fi
2551
2552rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002553{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002555
2556rm -f conftest.$ac_ext
2557EXEEXT=$ac_cv_exeext
2558ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002559{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561if test "${ac_cv_objext+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 cat >conftest.$ac_ext <<_ACEOF
2565/* confdefs.h. */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h. */
2570
2571int
2572main ()
2573{
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002580if { (ac_try="$ac_compile"
2581case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584esac
2585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002590 for ac_file in conftest.o conftest.obj conftest.*; do
2591 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002592 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595 break;;
2596 esac
2597done
2598else
2599 echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2603See \`config.log' for more details." >&5
2604echo "$as_me: error: cannot compute suffix of object files: cannot compile
2605See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2607fi
2608
2609rm -f conftest.$ac_cv_objext conftest.$ac_ext
2610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002611{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2612echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002613OBJEXT=$ac_cv_objext
2614ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2616echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002617if test "${ac_cv_c_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 cat >conftest.$ac_ext <<_ACEOF
2621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
2626
2627int
2628main ()
2629{
2630#ifndef __GNUC__
2631 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002632#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002634 ;
2635 return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002639if { (ac_try="$ac_compile"
2640case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643esac
2644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002656else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002657 echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
Theodore Ts'oe1052142006-10-21 21:46:47 -04002660 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002662
2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002667{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669GCC=`test $ac_compiler_gnu = yes && echo yes`
2670ac_test_CFLAGS=${CFLAGS+set}
2671ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002672{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002674if test "${ac_cv_prog_cc_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002676else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002677 ac_save_c_werror_flag=$ac_c_werror_flag
2678 ac_c_werror_flag=yes
2679 ac_cv_prog_cc_g=no
2680 CFLAGS="-g"
2681 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002682/* confdefs.h. */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h. */
2687
2688int
2689main ()
2690{
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002713 ac_cv_prog_cc_g=yes
2714else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002715 echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002717
Theodore Ts'oe1052142006-10-21 21:46:47 -04002718 CFLAGS=""
2719 cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h. */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h. */
2725
2726int
2727main ()
2728{
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (ac_try="$ac_compile"
2736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002751 :
2752else
2753 echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2757 CFLAGS="-g"
2758 cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h. */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h. */
2764
2765int
2766main ()
2767{
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (ac_try="$ac_compile"
2775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
2779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002790 ac_cv_prog_cc_g=yes
2791else
2792 echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002797
2798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2806fi
2807{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002809if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002810 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002811elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2813 CFLAGS="-g -O2"
2814 else
2815 CFLAGS="-g"
2816 fi
2817else
2818 if test "$GCC" = yes; then
2819 CFLAGS="-O2"
2820 else
2821 CFLAGS=
2822 fi
2823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2825echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2826if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002829 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830ac_save_CC=$CC
2831cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837#include <stdarg.h>
2838#include <stdio.h>
2839#include <sys/types.h>
2840#include <sys/stat.h>
2841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842struct buf { int x; };
2843FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844static char *e (p, i)
2845 char **p;
2846 int i;
2847{
2848 return p[i];
2849}
2850static char *f (char * (*g) (char **, int), char **p, ...)
2851{
2852 char *s;
2853 va_list v;
2854 va_start (v,p);
2855 s = g (p, va_arg (v,int));
2856 va_end (v);
2857 return s;
2858}
2859
2860/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002863 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2868
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2871#define FOO(x) 'x'
2872int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002874int test (int i, double x);
2875struct s1 {int (*f) (int a);};
2876struct s2 {int (*f) (double a);};
2877int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878int argc;
2879char **argv;
2880int
2881main ()
2882{
2883return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2884 ;
2885 return 0;
2886}
2887_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002888for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890do
2891 CC="$ac_save_CC $ac_arg"
2892 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002893if { (ac_try="$ac_compile"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002909 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002910else
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002916
2917rm -f core conftest.err conftest.$ac_objext
2918 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002920rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921CC=$ac_save_CC
2922
2923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002924# AC_CACHE_VAL
2925case "x$ac_cv_prog_cc_c89" in
2926 x)
2927 { echo "$as_me:$LINENO: result: none needed" >&5
2928echo "${ECHO_T}none needed" >&6; } ;;
2929 xno)
2930 { echo "$as_me:$LINENO: result: unsupported" >&5
2931echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002932 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002933 CC="$CC $ac_cv_prog_cc_c89"
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2935echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936esac
2937
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939ac_ext=c
2940ac_cpp='$CPP $CPPFLAGS'
2941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2951echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002952# On Suns, sometimes $CPP names a directory.
2953if test -n "$CPP" && test -d "$CPP"; then
2954 CPP=
2955fi
2956if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957 if test "${ac_cv_prog_CPP+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002959else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960 # Double quotes because CPP needs to be expanded
2961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 do
2963 ac_preproc_ok=false
2964for ac_c_preproc_warn_flag in '' yes
2965do
2966 # Use a header file that comes with gcc, so configuring glibc
2967 # with a fresh cross-compiler works.
2968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002970 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002971 # not just through cpp. "Syntax error" is here to catch this case.
2972 cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h. */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
2977/* end confdefs.h. */
2978#ifdef __STDC__
2979# include <limits.h>
2980#else
2981# include <assert.h>
2982#endif
2983 Syntax error
2984_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002985if { (ac_try="$ac_cpp conftest.$ac_ext"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002992 ac_status=$?
2993 grep -v '^ *+' conftest.er1 >conftest.err
2994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002997 (exit $ac_status); } >/dev/null && {
2998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003001 :
3002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 # Broken: fails on valid input.
3007continue
3008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010rm -f conftest.err conftest.$ac_ext
3011
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013 # can be detected and how.
3014 cat >conftest.$ac_ext <<_ACEOF
3015/* confdefs.h. */
3016_ACEOF
3017cat confdefs.h >>conftest.$ac_ext
3018cat >>conftest.$ac_ext <<_ACEOF
3019/* end confdefs.h. */
3020#include <ac_nonexistent.h>
3021_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003022if { (ac_try="$ac_cpp conftest.$ac_ext"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038 # Broken: success on invalid input.
3039continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003040else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 # Passes both tests.
3045ac_preproc_ok=:
3046break
3047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049rm -f conftest.err conftest.$ac_ext
3050
3051done
3052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053rm -f conftest.err conftest.$ac_ext
3054if $ac_preproc_ok; then
3055 break
3056fi
3057
3058 done
3059 ac_cv_prog_CPP=$CPP
3060
3061fi
3062 CPP=$ac_cv_prog_CPP
3063else
3064 ac_cv_prog_CPP=$CPP
3065fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003066{ echo "$as_me:$LINENO: result: $CPP" >&5
3067echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068ac_preproc_ok=false
3069for ac_c_preproc_warn_flag in '' yes
3070do
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
3083#ifdef __STDC__
3084# include <limits.h>
3085#else
3086# include <assert.h>
3087#endif
3088 Syntax error
3089_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003090if { (ac_try="$ac_cpp conftest.$ac_ext"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003102 (exit $ac_status); } >/dev/null && {
3103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106 :
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 # Broken: fails on valid input.
3112continue
3113fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115rm -f conftest.err conftest.$ac_ext
3116
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118 # can be detected and how.
3119 cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125#include <ac_nonexistent.h>
3126_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127if { (ac_try="$ac_cpp conftest.$ac_ext"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143 # Broken: success on invalid input.
3144continue
3145else
3146 echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 # Passes both tests.
3150ac_preproc_ok=:
3151break
3152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154rm -f conftest.err conftest.$ac_ext
3155
3156done
3157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158rm -f conftest.err conftest.$ac_ext
3159if $ac_preproc_ok; then
3160 :
3161else
3162 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3163See \`config.log' for more details." >&5
3164echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3165See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3167fi
3168
3169ac_ext=c
3170ac_cpp='$CPP $CPPFLAGS'
3171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003176# Check whether --with-linker was given.
3177if test "${with_linker+set}" = set; then
3178 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3179echo "${ECHO_T}LD=$withval" >&6; }
3180LD=$withval
3181else
3182 if test -z "$LD" ; then LD=$CC; fi
3183{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3184echo "${ECHO_T}LD defaults to $LD" >&6; }
3185fi
3186export LD
3187
3188
3189# Check whether --with-ccopts was given.
3190if test "${with_ccopts+set}" = set; then
3191 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3192echo "${ECHO_T}CCOPTS is $withval" >&6; }
3193CFLAGS=$withval
3194fi
3195
3196
Theodore Ts'oe1052142006-10-21 21:46:47 -04003197{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3199if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003202 # Extract the first word of "grep ggrep" to use in msg output
3203if test -z "$GREP"; then
3204set dummy grep ggrep; ac_prog_name=$2
3205if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 ac_path_GREP_found=false
3209# Loop through the user's path and test for each of PROGNAME-LIST
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in grep ggrep; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003218 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003219 # Check for GNU ac_path_GREP and select it if it is found.
3220 # Check for GNU $ac_path_GREP
3221case `"$ac_path_GREP" --version 2>&1` in
3222*GNU*)
3223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3224*)
3225 ac_count=0
3226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3227 while :
3228 do
3229 cat "conftest.in" "conftest.in" >"conftest.tmp"
3230 mv "conftest.tmp" "conftest.in"
3231 cp "conftest.in" "conftest.nl"
3232 echo 'GREP' >> "conftest.nl"
3233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235 ac_count=`expr $ac_count + 1`
3236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3237 # Best one so far, save it but keep looking for a better one
3238 ac_cv_path_GREP="$ac_path_GREP"
3239 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003240 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003241 # 10*(2^10) chars as input seems more than enough
3242 test $ac_count -gt 10 && break
3243 done
3244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3245esac
3246
3247
3248 $ac_path_GREP_found && break 3
3249 done
3250done
3251
3252done
3253IFS=$as_save_IFS
3254
3255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003257
3258GREP="$ac_cv_path_GREP"
3259if test -z "$GREP"; then
3260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262 { (exit 1); exit 1; }; }
3263fi
3264
3265else
3266 ac_cv_path_GREP=$GREP
3267fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003268
3269
Theodore Ts'oe1052142006-10-21 21:46:47 -04003270fi
3271{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3272echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3273 GREP="$ac_cv_path_GREP"
3274
3275
3276{ echo "$as_me:$LINENO: checking for egrep" >&5
3277echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3278if test "${ac_cv_path_EGREP+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3282 then ac_cv_path_EGREP="$GREP -E"
3283 else
3284 # Extract the first word of "egrep" to use in msg output
3285if test -z "$EGREP"; then
3286set dummy egrep; ac_prog_name=$2
3287if test "${ac_cv_path_EGREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290 ac_path_EGREP_found=false
3291# Loop through the user's path and test for each of PROGNAME-LIST
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_prog in egrep; do
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003301 # Check for GNU ac_path_EGREP and select it if it is found.
3302 # Check for GNU $ac_path_EGREP
3303case `"$ac_path_EGREP" --version 2>&1` in
3304*GNU*)
3305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3306*)
3307 ac_count=0
3308 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3309 while :
3310 do
3311 cat "conftest.in" "conftest.in" >"conftest.tmp"
3312 mv "conftest.tmp" "conftest.in"
3313 cp "conftest.in" "conftest.nl"
3314 echo 'EGREP' >> "conftest.nl"
3315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317 ac_count=`expr $ac_count + 1`
3318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3319 # Best one so far, save it but keep looking for a better one
3320 ac_cv_path_EGREP="$ac_path_EGREP"
3321 ac_path_EGREP_max=$ac_count
3322 fi
3323 # 10*(2^10) chars as input seems more than enough
3324 test $ac_count -gt 10 && break
3325 done
3326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3327esac
3328
3329
3330 $ac_path_EGREP_found && break 3
3331 done
3332done
3333
3334done
3335IFS=$as_save_IFS
3336
3337
3338fi
3339
3340EGREP="$ac_cv_path_EGREP"
3341if test -z "$EGREP"; then
3342 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344 { (exit 1); exit 1; }; }
3345fi
3346
3347else
3348 ac_cv_path_EGREP=$EGREP
3349fi
3350
3351
3352 fi
3353fi
3354{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3356 EGREP="$ac_cv_path_EGREP"
3357
3358
3359{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3360echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003361if test "${ac_cv_header_stdc+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364 cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370#include <stdlib.h>
3371#include <stdarg.h>
3372#include <string.h>
3373#include <float.h>
3374
3375int
3376main ()
3377{
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003384if { (ac_try="$ac_compile"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003400 ac_cv_header_stdc=yes
3401else
3402 echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
Theodore Ts'oe1052142006-10-21 21:46:47 -04003405 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003407
3408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003409
3410if test $ac_cv_header_stdc = yes; then
3411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3412 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418#include <string.h>
3419
3420_ACEOF
3421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 $EGREP "memchr" >/dev/null 2>&1; then
3423 :
3424else
3425 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003426fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003427rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003428
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003429fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430
3431if test $ac_cv_header_stdc = yes; then
3432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#include <stdlib.h>
3440
3441_ACEOF
3442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 $EGREP "free" >/dev/null 2>&1; then
3444 :
3445else
3446 ac_cv_header_stdc=no
3447fi
3448rm -f conftest*
3449
3450fi
3451
3452if test $ac_cv_header_stdc = yes; then
3453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3454 if test "$cross_compiling" = yes; then
3455 :
3456else
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003464#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003465#if ((' ' & 0x0FF) == 0x020)
3466# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3467# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3468#else
3469# define ISLOWER(c) \
3470 (('a' <= (c) && (c) <= 'i') \
3471 || ('j' <= (c) && (c) <= 'r') \
3472 || ('s' <= (c) && (c) <= 'z'))
3473# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3474#endif
3475
3476#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3477int
3478main ()
3479{
3480 int i;
3481 for (i = 0; i < 256; i++)
3482 if (XOR (islower (i), ISLOWER (i))
3483 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484 return 2;
3485 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486}
3487_ACEOF
3488rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003489if { (ac_try="$ac_link"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003499 { (case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502esac
3503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 :
3509else
3510 echo "$as_me: program exited with status $ac_status" >&5
3511echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514( exit $ac_status )
3515ac_cv_header_stdc=no
3516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3518fi
3519
3520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003521fi
3522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3524echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003525if test $ac_cv_header_stdc = yes; then
3526
3527cat >>confdefs.h <<\_ACEOF
3528#define STDC_HEADERS 1
3529_ACEOF
3530
3531fi
3532
3533# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3544 inttypes.h stdint.h unistd.h
3545do
3546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003547{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
3558$ac_includes_default
3559
3560#include <$ac_header>
3561_ACEOF
3562rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003563if { (ac_try="$ac_compile"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003579 eval "$as_ac_Header=yes"
3580else
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
Theodore Ts'oe1052142006-10-21 21:46:47 -04003584 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003589ac_res=`eval echo '${'$as_ac_Header'}'`
3590 { echo "$as_me:$LINENO: result: $ac_res" >&5
3591echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003592if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593 cat >>confdefs.h <<_ACEOF
3594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3595_ACEOF
3596
3597fi
3598
3599done
3600
3601
3602if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003603 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3604echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003605if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003608{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3609echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003610else
3611 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003612{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3613echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003614cat >conftest.$ac_ext <<_ACEOF
3615/* confdefs.h. */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
3619/* end confdefs.h. */
3620$ac_includes_default
3621#include <linux/fs.h>
3622_ACEOF
3623rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003624if { (ac_try="$ac_compile"
3625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003640 ac_header_compiler=yes
3641else
3642 echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
Theodore Ts'oe1052142006-10-21 21:46:47 -04003645 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3650echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003651
3652# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003653{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3654echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h. */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h. */
3661#include <linux/fs.h>
3662_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003663if { (ac_try="$ac_cpp conftest.$ac_ext"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003679 ac_header_preproc=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_header_preproc=no
3685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003686
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003687rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003688{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003690
3691# So? What about this header?
3692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3693 yes:no: )
3694 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3695echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3697echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3698 ac_header_preproc=yes
3699 ;;
3700 no:yes:* )
3701 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3702echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3704echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3706echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3708echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3710echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3712echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003713
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003714 ;;
3715esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003716{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3717echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003718if test "${ac_cv_header_linux_fs_h+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721 ac_cv_header_linux_fs_h=$ac_header_preproc
3722fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003723{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3724echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003725
3726fi
3727if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003728 linux_headers=yes
3729else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003730 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003731fi
3732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003734if test "$linux_headers" != yes; then
3735 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003736fi
3737
Theodore Ts'oe1052142006-10-21 21:46:47 -04003738{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3739echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003740if test "$GCC" = yes
3741then
3742 case "$host_cpu" in
3743 alpha) addcflags="-mieee" ;;
3744 esac
3745fi
3746if test "x$addcflags" != x
3747then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003748 { echo "$as_me:$LINENO: result: $addcflags" >&5
3749echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003750 CFLAGS="$addcflags $CFLAGS"
3751else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003752 { echo "$as_me:$LINENO: result: (none)" >&5
3753echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003754fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003755LIB_EXT=.a
3756STATIC_LIB_EXT=.a
3757PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003758
Theodore Ts'oe1052142006-10-21 21:46:47 -04003759# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003760if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003761 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3762echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003763LDFLAGS=$withval
3764else
3765 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003766fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003767
Theodore Ts'oe1052142006-10-21 21:46:47 -04003768
3769# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003770if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003771 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003772else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003773 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003774fi
3775# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003776if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003777 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003778then
3779 MAINTAINER_CMT=#
3780 echo "Disabling maintainer mode"
3781else
3782 MAINTAINER_CMT=
3783 echo "Enabling maintainer mode"
3784fi
3785
3786else
3787 MAINTAINER_CMT=#
3788echo "Disabling maintainer mode by default"
3789
Theodore Ts'oe1052142006-10-21 21:46:47 -04003790fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003791
Theodore Ts'oe1052142006-10-21 21:46:47 -04003792
3793# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003794if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003795 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003796then
3797 echo "Disabling compression support"
3798else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003799 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003800#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003801_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003802
3803 echo "Enabling compression support"
3804 echo "WARNING: Compression support is experimental"
3805fi
3806
3807else
3808 echo "Disabling compression support by default"
3809
Theodore Ts'oe1052142006-10-21 21:46:47 -04003810fi
3811
3812# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003813if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003814 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003815then
3816 HTREE_CMT=#
3817 echo "Disabling htree directory support"
3818else
3819 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003820 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003821#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003822_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003823
3824 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003825fi
3826
3827else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003828 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003829cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003830#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003831_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003832
3833echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003834
Theodore Ts'oe1052142006-10-21 21:46:47 -04003835fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003836
Theodore Ts'oe1052142006-10-21 21:46:47 -04003837
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003838E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003839# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003840if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003841 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003842then
3843 ELF_CMT=#
3844 MAKEFILE_ELF=/dev/null
3845 echo "Disabling ELF shared libraries"
3846else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003847 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003848 ELF_CMT=
3849 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003850 case "$host_os" in
3851 solaris2.*)
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3853 ;;
3854 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003855 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003856 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003857 echo "Enabling ELF shared libraries"
3858fi
3859
3860else
3861 MAKEFILE_ELF=/dev/null
3862ELF_CMT=#
3863echo "Disabling ELF shared libraries by default"
3864
Theodore Ts'oe1052142006-10-21 21:46:47 -04003865fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003866
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003867
Theodore Ts'oe1052142006-10-21 21:46:47 -04003868
3869# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003870if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003871 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003872then
3873 BSDLIB_CMT=#
3874 MAKEFILE_BSDLIB=/dev/null
3875 echo "Disabling BSD shared libraries"
3876else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003877 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003878 BSDLIB_CMT=
3879 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003880 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003881 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003882 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003883 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3884 LIB_EXT=.dylib
3885 ;;
3886 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003887 echo "Enabling BSD shared libraries"
3888fi
3889
3890else
3891 MAKEFILE_BSDLIB=/dev/null
3892BSDLIB_CMT=#
3893echo "Disabling BSD shared libraries by default"
3894
Theodore Ts'oe1052142006-10-21 21:46:47 -04003895fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003896
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003897
Theodore Ts'oe1052142006-10-21 21:46:47 -04003898
3899# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003900if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003901 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003902then
3903 PROFILE_CMT=#
3904 MAKEFILE_PROFILE=/dev/null
3905 echo "Disabling profiling libraries"
3906else
3907 PROFILE_CMT=
3908 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3909 PROFILED_LIB_EXT=_p.a
3910 echo "Building profiling libraries"
3911fi
3912
3913else
3914 PROFILE_CMT=#
3915MAKEFILE_PROFILE=/dev/null
3916echo "Disabling profiling libraries by default"
3917
Theodore Ts'oe1052142006-10-21 21:46:47 -04003918fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003919
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003920
Theodore Ts'oe1052142006-10-21 21:46:47 -04003921
3922# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003923if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003924 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003925then
3926 CHECKER_CMT=#
3927 MAKEFILE_CHECKER=/dev/null
3928 echo "Disabling checker libraries"
3929else
3930 CHECKER_CMT=
3931 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3932 echo "Building checker libraries"
3933fi
3934
3935else
3936 CHECKER_CMT=#
3937MAKEFILE_CHECKER=/dev/null
3938echo "Disabling checker libraries by default"
3939
Theodore Ts'oe1052142006-10-21 21:46:47 -04003940fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003941
3942
3943
3944
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003945
Theodore Ts'oe1052142006-10-21 21:46:47 -04003946
3947# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003948if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003949 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003950then
3951 echo "Disabling journal debugging"
3952else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003953 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003954#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003955_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003956
3957 echo "Enabling journal debugging"
3958fi
3959
3960else
3961 echo "Disabling journal debugging by default"
3962
Theodore Ts'oe1052142006-10-21 21:46:47 -04003963fi
3964
3965# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003966if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003967 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003968then
3969 echo "Disabling blkid debugging"
3970else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003971 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003972#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003973_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003974
3975 echo "Enabling blkid debugging"
3976fi
3977
3978else
3979 echo "Disabling blkid debugging by default"
3980
Theodore Ts'oe1052142006-10-21 21:46:47 -04003981fi
3982
3983# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003984if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003985 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003986then
3987 echo "Disabling testio debugging"
3988else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003989 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003990#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003991_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003992
3993 echo "Enabling testio debugging"
3994fi
3995
3996else
3997 echo "Disabling testio debugging by default"
3998
Theodore Ts'oe1052142006-10-21 21:46:47 -04003999fi
4000
Theodore Ts'oe1052142006-10-21 21:46:47 -04004001# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004002if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004003 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004004then
4005 echo "Disabling debugfs support"
4006 DEBUGFS_CMT="#"
4007else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004008 DEBUGFS_CMT=
4009 echo "Enabling debugfs support"
4010fi
4011
4012else
4013 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004014DEBUGFS_CMT=
4015
Theodore Ts'oe1052142006-10-21 21:46:47 -04004016fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004017
Theodore Ts'oe1052142006-10-21 21:46:47 -04004018
4019# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004020if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004021 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004022then
4023 echo "Disabling e2image support"
4024 IMAGER_CMT="#"
4025else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004026 IMAGER_CMT=
4027 echo "Enabling e2image support"
4028fi
4029
4030else
4031 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004032IMAGER_CMT=
4033
Theodore Ts'oe1052142006-10-21 21:46:47 -04004034fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004035
Theodore Ts'oe1052142006-10-21 21:46:47 -04004036
4037# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004038if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004039 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004040then
4041 echo "Disabling e2resize support"
4042 RESIZER_CMT="#"
4043else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004044 RESIZER_CMT=
4045 echo "Enabling e2resize support"
4046fi
4047
4048else
4049 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004050RESIZER_CMT=
4051
Theodore Ts'oe1052142006-10-21 21:46:47 -04004052fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004053
Theodore Ts'oe1052142006-10-21 21:46:47 -04004054
Theodore Ts'oe1052142006-10-21 21:46:47 -04004055# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004056if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004057 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004058then
4059 FSCK_PROG='' FSCK_MAN=''
4060 echo "Not building fsck wrapper"
4061else
4062 FSCK_PROG=fsck FSCK_MAN=fsck.8
4063 echo "Building fsck wrapper"
4064fi
4065
4066else
4067 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004068 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004069 FSCK_PROG='' FSCK_MAN=''
4070 echo "Not building fsck wrapper by default"
4071 ;;
4072 *)
4073 FSCK_PROG=fsck FSCK_MAN=fsck.8
4074 echo "Building fsck wrapper by default"
4075esac
4076
Theodore Ts'oe1052142006-10-21 21:46:47 -04004077fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004078
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004079
Theodore Ts'oe1052142006-10-21 21:46:47 -04004080
4081# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004082if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004083 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004084then
4085 E2INITRD_PROG='' E2INITRD_MAN=''
4086 echo "Not building e2initrd helper"
4087else
4088 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4089 echo "Building e2initrd helper"
4090fi
4091
4092else
4093 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4094echo "Building e2initrd helper by default"
4095
Theodore Ts'oe1052142006-10-21 21:46:47 -04004096fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004097
4098
Theodore Ts'oe1052142006-10-21 21:46:47 -04004099
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004100STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004101# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004102if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004103 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004104then
4105 echo "Disabling device-mapper support"
4106 DEVMAPPER_REQ=''
4107 DEVMAPPER_LIBS=''
4108 STATIC_DEVMAPPER_LIBS=''
4109else
4110 cat >>confdefs.h <<\_ACEOF
4111#define HAVE_DEVMAPPER 1
4112_ACEOF
4113
4114 echo "Enabling device-mapper support"
4115
Karel Zak4db2f592006-03-08 14:17:28 -05004116
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004117
4118if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4121set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127 case $PKG_CONFIG in
4128 [\\/]* | ?:[\\/]*)
4129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4130 ;;
4131 *)
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4142 fi
4143done
4144done
4145IFS=$as_save_IFS
4146
4147 ;;
4148esac
4149fi
4150PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4151if test -n "$PKG_CONFIG"; then
4152 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4153echo "${ECHO_T}$PKG_CONFIG" >&6; }
4154else
4155 { echo "$as_me:$LINENO: result: no" >&5
4156echo "${ECHO_T}no" >&6; }
4157fi
4158
4159
4160fi
4161if test -z "$ac_cv_path_PKG_CONFIG"; then
4162 ac_pt_PKG_CONFIG=$PKG_CONFIG
4163 # Extract the first word of "pkg-config", so it can be a program name with args.
4164set dummy pkg-config; ac_word=$2
4165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4167if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170 case $ac_pt_PKG_CONFIG in
4171 [\\/]* | ?:[\\/]*)
4172 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4173 ;;
4174 *)
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186done
4187done
4188IFS=$as_save_IFS
4189
4190 ;;
4191esac
4192fi
4193ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4194if test -n "$ac_pt_PKG_CONFIG"; then
4195 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4196echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4197else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6; }
4200fi
4201
4202 if test "x$ac_pt_PKG_CONFIG" = x; then
4203 PKG_CONFIG=""
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206yes:)
4207{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4208whose name does not start with the host triplet. If you think this
4209configuration is useful to you, please write to autoconf@gnu.org." >&5
4210echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4211whose name does not start with the host triplet. If you think this
4212configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4213ac_tool_warned=yes ;;
4214esac
4215 PKG_CONFIG=$ac_pt_PKG_CONFIG
4216 fi
4217else
4218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4219fi
4220
4221fi
4222if test -n "$PKG_CONFIG"; then
4223 _pkg_min_version=0.9.0
4224 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4225echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4227 { echo "$as_me:$LINENO: result: yes" >&5
4228echo "${ECHO_T}yes" >&6; }
4229 else
4230 { echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6; }
4232 PKG_CONFIG=""
4233 fi
4234
4235fi
4236
4237 if test -z "$PKG_CONFIG"; then
4238 echo "pkg-config not installed; please install it."
4239 exit 1;
4240 fi
4241
4242 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4243echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4244if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 ac_check_lib_save_LIBS=$LIBS
4248LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4249cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
4254/* end confdefs.h. */
4255
4256/* Override any GCC internal prototype to avoid an error.
4257 Use char because int might match the return type of a GCC
4258 builtin and then its argument prototype would still apply. */
4259#ifdef __cplusplus
4260extern "C"
4261#endif
4262char dm_tree_create ();
4263int
4264main ()
4265{
4266return dm_tree_create ();
4267 ;
4268 return 0;
4269}
4270_ACEOF
4271rm -f conftest.$ac_objext conftest$ac_exeext
4272if { (ac_try="$ac_link"
4273case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_link") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest$ac_exeext &&
4288 $as_test_x conftest$ac_exeext; then
4289 ac_cv_lib_devmapper_dm_tree_create=yes
4290else
4291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ac_cv_lib_devmapper_dm_tree_create=no
4295fi
4296
4297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4298 conftest$ac_exeext conftest.$ac_ext
4299LIBS=$ac_check_lib_save_LIBS
4300fi
4301{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4302echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4303if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4304 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4305 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4306 DEVMAPPER_REQ="devmapper";
4307 DEVMAPPER_PC_LIBS="-ldevmapper"
4308else
4309 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4310echo "$as_me: error: device-mapper library not found" >&2;}
4311 { (exit 1); exit 1; }; }
4312fi
4313
4314 # work around stupid devmapper.pc bug in Debian
4315 case "$STATIC_DEVMAPPER_LIBS" in
4316 *pthread*)
4317 ;;
4318 *)
4319 echo "Working around Debian bug #390243..."
4320 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4321 ;;
4322 esac
4323 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4324 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4325 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004327fi
4328
4329else
4330 echo "Disabling device-mapper support by default"
4331
Theodore Ts'oe1052142006-10-21 21:46:47 -04004332fi
4333
Karel Zak4db2f592006-03-08 14:17:28 -05004334
4335
4336
4337
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004338
Theodore Ts'o32493942007-12-31 10:45:01 -05004339# Check whether --enable-tls was given.
4340if test "${enable_tls+set}" = set; then
4341 enableval=$enable_tls; if test "$enableval" = "no"
4342then
4343 try_tls=""
4344 echo "Disabling thread local support"
4345else
4346 try_tls="yes"
4347 echo "Enabling thread local support"
4348fi
4349
4350else
4351 try_tls="yes"
4352echo "Try using thread local support by default"
4353
4354fi
4355
4356if test "$try_tls" = "yes"
4357then
4358
4359 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4360echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4361 if test "${ac_cv_tls+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364
4365 ax_tls_keywords="__thread __declspec(thread) none"
4366 for ax_tls_keyword in $ax_tls_keywords; do
4367 case $ax_tls_keyword in
4368 none) ac_cv_tls=none ; break ;;
4369 *)
4370 cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h. */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h. */
4376#include <stdlib.h>
4377 static void
4378 foo(void) {
4379 static $ax_tls_keyword int bar;
4380 exit(1);
4381 }
4382int
4383main ()
4384{
4385
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (ac_try="$ac_compile"
4392case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_compile") 2>conftest.er1
4398 ac_status=$?
4399 grep -v '^ *+' conftest.er1 >conftest.err
4400 rm -f conftest.er1
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } && {
4404 test -z "$ac_c_werror_flag" ||
4405 test ! -s conftest.err
4406 } && test -s conftest.$ac_objext; then
4407 ac_cv_tls=$ax_tls_keyword ; break
4408else
4409 echo "$as_me: failed program was:" >&5
4410sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 ac_cv_tls=none
4413
4414fi
4415
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 esac
4418 done
4419
4420fi
4421
4422
4423 if test "$ac_cv_tls" != "none"; then
4424
4425cat >>confdefs.h <<_ACEOF
4426#define TLS $ac_cv_tls
4427_ACEOF
4428
4429 fi
4430 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4431echo "${ECHO_T}$ac_cv_tls" >&6; }
4432
4433fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004434# Check whether --enable-uuidd was given.
4435if test "${enable_uuidd+set}" = set; then
4436 enableval=$enable_uuidd; if test "$enableval" = "no"
4437then
4438 echo "Not building uuidd"
4439 UUIDD_CMT="#"
4440else
4441 cat >>confdefs.h <<\_ACEOF
4442#define USE_UUIDD 1
4443_ACEOF
4444
4445 UUIDD_CMT=""
4446 echo "Building uuidd"
4447fi
4448
4449else
4450 cat >>confdefs.h <<\_ACEOF
4451#define USE_UUIDD 1
4452_ACEOF
4453
4454UUIDD_CMT=""
4455echo "Building uuidd by default"
4456
4457fi
4458
4459
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004460MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004462GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004463PACKAGE=e2fsprogs
4464VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004465VERSION=0.14.1
4466cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004467#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004468_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004470cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004471#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004472_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004473
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004474
4475
4476
4477
Theodore Ts'oe1052142006-10-21 21:46:47 -04004478{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4479echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4480set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4481if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004482 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004483else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004484 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004485SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004486all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004487 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004488_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004489# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004490case `${MAKE-make} -f conftest.make 2>/dev/null` in
4491 *@@@%%%=?*=@@@%%%*)
4492 eval ac_cv_prog_make_${ac_make}_set=yes;;
4493 *)
4494 eval ac_cv_prog_make_${ac_make}_set=no;;
4495esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004496rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004497fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004498if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4499 { echo "$as_me:$LINENO: result: yes" >&5
4500echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004501 SET_MAKE=
4502else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004503 { echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004505 SET_MAKE="MAKE=${MAKE-make}"
4506fi
4507
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004508# Find a good install program. We prefer a C program (faster),
4509# so one script is as good as another. But avoid the broken or
4510# incompatible versions:
4511# SysV /etc/install, /usr/sbin/install
4512# SunOS /usr/etc/install
4513# IRIX /sbin/install
4514# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004515# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004516# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4517# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4518# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004519# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004520# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004521{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4522echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004523if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004524if test "${ac_cv_path_install+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004526else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 # Account for people who put trailing slashes in PATH elements.
4533case $as_dir/ in
4534 ./ | .// | /cC/* | \
4535 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4536 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4537 /usr/ucb/* ) ;;
4538 *)
4539 # OSF1 and SCO ODT 3.0 have their own names for install.
4540 # Don't use installbsd from OSF since it installs stuff as root
4541 # by default.
4542 for ac_prog in ginstall scoinst install; do
4543 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004544 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 -04004545 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004546 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004547 # AIX install. It has an incompatible calling convention.
4548 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004549 elif test $ac_prog = install &&
4550 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4551 # program-specific install script used by HP pwplus--don't use.
4552 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004553 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004554 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4555 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004556 fi
4557 fi
4558 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004559 done
4560 ;;
4561esac
4562done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004563IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004564
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004565
4566fi
4567 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004568 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004569 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004570 # As a last resort, use the slow shell script. Don't cache a
4571 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004572 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004573 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004574 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004575 fi
4576fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004577{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4578echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004579
4580# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4581# It thinks the first close brace ends the variable substitution.
4582test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004584test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004585
4586test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4587
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004588
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004589 MKINSTALLDIRS=
4590 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004591 case "$ac_aux_dir" in
4592 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4593 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4594 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004595 fi
4596 if test -z "$MKINSTALLDIRS"; then
4597 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4598 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004600
4601
Theodore Ts'oe1052142006-10-21 21:46:47 -04004602 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4603echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4604 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004605if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004606 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004607else
4608 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004609fi
4610
4611 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4612echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004613
4614
4615
4616
4617
4618
4619# Prepare PATH_SEPARATOR.
4620# The user is always right.
4621if test "${PATH_SEPARATOR+set}" != set; then
4622 echo "#! /bin/sh" >conf$$.sh
4623 echo "exit 0" >>conf$$.sh
4624 chmod +x conf$$.sh
4625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4626 PATH_SEPARATOR=';'
4627 else
4628 PATH_SEPARATOR=:
4629 fi
4630 rm -f conf$$.sh
4631fi
4632
4633# Find out how to test for executable files. Don't use a zero-byte file,
4634# as systems may use methods other than mode bits to determine executability.
4635cat >conf$$.file <<_ASEOF
4636#! /bin/sh
4637exit 0
4638_ASEOF
4639chmod +x conf$$.file
4640if test -x conf$$.file >/dev/null 2>&1; then
4641 ac_executable_p="test -x"
4642else
4643 ac_executable_p="test -f"
4644fi
4645rm -f conf$$.file
4646
4647# Extract the first word of "msgfmt", so it can be a program name with args.
4648set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004651if test "${ac_cv_path_MSGFMT+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 case "$MSGFMT" in
4655 [\\/]* | ?:[\\/]*)
4656 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4657 ;;
4658 *)
4659 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4660 for ac_dir in $PATH; do
4661 IFS="$ac_save_IFS"
4662 test -z "$ac_dir" && ac_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4665 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4666 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4667 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4668 break 2
4669 fi
4670 fi
4671 done
4672 done
4673 IFS="$ac_save_IFS"
4674 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4675 ;;
4676esac
4677fi
4678MSGFMT="$ac_cv_path_MSGFMT"
4679if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004680 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4681echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004682else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004683 { echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004685fi
4686
4687 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4688set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004691if test "${ac_cv_path_GMSGFMT+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694 case $GMSGFMT in
4695 [\\/]* | ?:[\\/]*)
4696 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4697 ;;
4698 *)
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004705 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 -05004706 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
4711done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004712IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004713
4714 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4715 ;;
4716esac
4717fi
4718GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004719if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004720 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4721echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004722else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004725fi
4726
4727
4728
Theodore Ts'oe1052142006-10-21 21:46:47 -04004729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004730# Prepare PATH_SEPARATOR.
4731# The user is always right.
4732if test "${PATH_SEPARATOR+set}" != set; then
4733 echo "#! /bin/sh" >conf$$.sh
4734 echo "exit 0" >>conf$$.sh
4735 chmod +x conf$$.sh
4736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4737 PATH_SEPARATOR=';'
4738 else
4739 PATH_SEPARATOR=:
4740 fi
4741 rm -f conf$$.sh
4742fi
4743
4744# Find out how to test for executable files. Don't use a zero-byte file,
4745# as systems may use methods other than mode bits to determine executability.
4746cat >conf$$.file <<_ASEOF
4747#! /bin/sh
4748exit 0
4749_ASEOF
4750chmod +x conf$$.file
4751if test -x conf$$.file >/dev/null 2>&1; then
4752 ac_executable_p="test -x"
4753else
4754 ac_executable_p="test -f"
4755fi
4756rm -f conf$$.file
4757
4758# Extract the first word of "xgettext", so it can be a program name with args.
4759set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004762if test "${ac_cv_path_XGETTEXT+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764else
4765 case "$XGETTEXT" in
4766 [\\/]* | ?:[\\/]*)
4767 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4768 ;;
4769 *)
4770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4771 for ac_dir in $PATH; do
4772 IFS="$ac_save_IFS"
4773 test -z "$ac_dir" && ac_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4776 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4777 (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
4778 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4779 break 2
4780 fi
4781 fi
4782 done
4783 done
4784 IFS="$ac_save_IFS"
4785 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4786 ;;
4787esac
4788fi
4789XGETTEXT="$ac_cv_path_XGETTEXT"
4790if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004791 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4792echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004793else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004794 { echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004796fi
4797
4798 rm -f messages.po
4799
4800
4801# Prepare PATH_SEPARATOR.
4802# The user is always right.
4803if test "${PATH_SEPARATOR+set}" != set; then
4804 echo "#! /bin/sh" >conf$$.sh
4805 echo "exit 0" >>conf$$.sh
4806 chmod +x conf$$.sh
4807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4808 PATH_SEPARATOR=';'
4809 else
4810 PATH_SEPARATOR=:
4811 fi
4812 rm -f conf$$.sh
4813fi
4814
4815# Find out how to test for executable files. Don't use a zero-byte file,
4816# as systems may use methods other than mode bits to determine executability.
4817cat >conf$$.file <<_ASEOF
4818#! /bin/sh
4819exit 0
4820_ASEOF
4821chmod +x conf$$.file
4822if test -x conf$$.file >/dev/null 2>&1; then
4823 ac_executable_p="test -x"
4824else
4825 ac_executable_p="test -f"
4826fi
4827rm -f conf$$.file
4828
4829# Extract the first word of "msgmerge", so it can be a program name with args.
4830set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004833if test "${ac_cv_path_MSGMERGE+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836 case "$MSGMERGE" in
4837 [\\/]* | ?:[\\/]*)
4838 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4839 ;;
4840 *)
4841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH; do
4843 IFS="$ac_save_IFS"
4844 test -z "$ac_dir" && ac_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4847 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4848 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4849 break 2
4850 fi
4851 fi
4852 done
4853 done
4854 IFS="$ac_save_IFS"
4855 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4856 ;;
4857esac
4858fi
4859MSGMERGE="$ac_cv_path_MSGMERGE"
4860if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004861 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4862echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004863else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004864 { echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004866fi
4867
4868
4869 if test "$GMSGFMT" != ":"; then
4870 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4871 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4872 : ;
4873 else
4874 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004875 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4876echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004877 GMSGFMT=":"
4878 fi
4879 fi
4880
4881 if test "$XGETTEXT" != ":"; then
4882 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4883 (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
4884 : ;
4885 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004886 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4887echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004888 XGETTEXT=":"
4889 fi
4890 rm -f messages.po
4891 fi
4892
Theodore Ts'oe1052142006-10-21 21:46:47 -04004893 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004894
4895
4896if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4898set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004901if test "${ac_cv_prog_RANLIB+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004903else
4904 if test -n "$RANLIB"; then
4905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004913 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 -05004914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4917 fi
4918done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004919done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004920IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004921
4922fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004923fi
4924RANLIB=$ac_cv_prog_RANLIB
4925if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004926 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4927echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004928else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004929 { echo "$as_me:$LINENO: result: no" >&5
4930echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004931fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004932
Theodore Ts'oe1052142006-10-21 21:46:47 -04004933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004934fi
4935if test -z "$ac_cv_prog_RANLIB"; then
4936 ac_ct_RANLIB=$RANLIB
4937 # Extract the first word of "ranlib", so it can be a program name with args.
4938set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004941if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944 if test -n "$ac_ct_RANLIB"; then
4945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4946else
4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004953 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 -05004954 ac_cv_prog_ac_ct_RANLIB="ranlib"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4957 fi
4958done
4959done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004960IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004961
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004962fi
4963fi
4964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4965if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004966 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4967echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004968else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004969 { echo "$as_me:$LINENO: result: no" >&5
4970echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971fi
4972
Theodore Ts'oe1052142006-10-21 21:46:47 -04004973 if test "x$ac_ct_RANLIB" = x; then
4974 RANLIB=":"
4975 else
4976 case $cross_compiling:$ac_tool_warned in
4977yes:)
4978{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4979whose name does not start with the host triplet. If you think this
4980configuration is useful to you, please write to autoconf@gnu.org." >&5
4981echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4982whose name does not start with the host triplet. If you think this
4983configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4984ac_tool_warned=yes ;;
4985esac
4986 RANLIB=$ac_ct_RANLIB
4987 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004988else
4989 RANLIB="$ac_cv_prog_RANLIB"
4990fi
4991
4992
Theodore Ts'oe1052142006-10-21 21:46:47 -04004993 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4994echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004995if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998 ac_check_lib_save_LIBS=$LIBS
4999LIBS="-lcposix $LIBS"
5000cat >conftest.$ac_ext <<_ACEOF
5001/* confdefs.h. */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h. */
5006
Theodore Ts'oe1052142006-10-21 21:46:47 -04005007/* Override any GCC internal prototype to avoid an error.
5008 Use char because int might match the return type of a GCC
5009 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005010#ifdef __cplusplus
5011extern "C"
5012#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005013char strerror ();
5014int
5015main ()
5016{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005017return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005018 ;
5019 return 0;
5020}
5021_ACEOF
5022rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005023if { (ac_try="$ac_link"
5024case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027esac
5028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005035 (exit $ac_status); } && {
5036 test -z "$ac_c_werror_flag" ||
5037 test ! -s conftest.err
5038 } && test -s conftest$ac_exeext &&
5039 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005040 ac_cv_lib_cposix_strerror=yes
5041else
5042 echo "$as_me: failed program was:" >&5
5043sed 's/^/| /' conftest.$ac_ext >&5
5044
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005046fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005047
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005049 conftest$ac_exeext conftest.$ac_ext
5050LIBS=$ac_check_lib_save_LIBS
5051fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005052{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5053echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005054if test $ac_cv_lib_cposix_strerror = yes; then
5055 LIBS="$LIBS -lcposix"
5056fi
5057
5058
5059
Theodore Ts'oe1052142006-10-21 21:46:47 -04005060{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5061echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005062if test "${ac_cv_c_const+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065 cat >conftest.$ac_ext <<_ACEOF
5066/* confdefs.h. */
5067_ACEOF
5068cat confdefs.h >>conftest.$ac_ext
5069cat >>conftest.$ac_ext <<_ACEOF
5070/* end confdefs.h. */
5071
5072int
5073main ()
5074{
5075/* FIXME: Include the comments suggested by Paul. */
5076#ifndef __cplusplus
5077 /* Ultrix mips cc rejects this. */
5078 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005079 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005080 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005081 char const *const *pcpcc;
5082 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005083 /* NEC SVR4.0.2 mips cc rejects this. */
5084 struct point {int x, y;};
5085 static struct point const zero = {0,0};
5086 /* AIX XL C 1.02.0.0 rejects this.
5087 It does not let you subtract one const X* pointer from another in
5088 an arm of an if-expression whose if-part is not a constant
5089 expression */
5090 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005091 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005092 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005093 ++pcpcc;
5094 ppc = (char**) pcpcc;
5095 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005096 { /* SCO 3.2v4 cc rejects this. */
5097 char *t;
5098 char const *s = 0 ? (char *) 0 : (char const *) 0;
5099
5100 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005101 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005102 }
5103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5104 int x[] = {25, 17};
5105 const int *foo = &x[0];
5106 ++foo;
5107 }
5108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5109 typedef const int *iptr;
5110 iptr p = 0;
5111 ++p;
5112 }
5113 { /* AIX XL C 1.02.0.0 rejects this saying
5114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5115 struct s { int j; const int *ap[3]; };
5116 struct s *b; b->j = 5;
5117 }
5118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5119 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005120 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005121 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005122 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005123#endif
5124
5125 ;
5126 return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005130if { (ac_try="$ac_compile"
5131case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134esac
5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005146 ac_cv_c_const=yes
5147else
5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
Theodore Ts'oe1052142006-10-21 21:46:47 -04005151 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005153
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005155fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005156{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5157echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005158if test $ac_cv_c_const = no; then
5159
5160cat >>confdefs.h <<\_ACEOF
5161#define const
5162_ACEOF
5163
5164fi
5165
5166
Theodore Ts'oe1052142006-10-21 21:46:47 -04005167 { echo "$as_me:$LINENO: checking for signed" >&5
5168echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005169if test "${bh_cv_c_signed+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172 cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h. */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h. */
5178
5179int
5180main ()
5181{
5182signed char x;
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005188if { (ac_try="$ac_compile"
5189case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192esac
5193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204 bh_cv_c_signed=yes
5205else
5206 echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
Theodore Ts'oe1052142006-10-21 21:46:47 -04005209 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005210fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005211
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005213fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005214{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5215echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005216 if test $bh_cv_c_signed = no; then
5217
5218cat >>confdefs.h <<\_ACEOF
5219#define signed
5220_ACEOF
5221
5222 fi
5223
Theodore Ts'oe1052142006-10-21 21:46:47 -04005224{ echo "$as_me:$LINENO: checking for inline" >&5
5225echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005226if test "${ac_cv_c_inline+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229 ac_cv_c_inline=no
5230for ac_kw in inline __inline__ __inline; do
5231 cat >conftest.$ac_ext <<_ACEOF
5232/* confdefs.h. */
5233_ACEOF
5234cat confdefs.h >>conftest.$ac_ext
5235cat >>conftest.$ac_ext <<_ACEOF
5236/* end confdefs.h. */
5237#ifndef __cplusplus
5238typedef int foo_t;
5239static $ac_kw foo_t static_foo () {return 0; }
5240$ac_kw foo_t foo () {return 0; }
5241#endif
5242
5243_ACEOF
5244rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005245if { (ac_try="$ac_compile"
5246case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249esac
5250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005257 (exit $ac_status); } && {
5258 test -z "$ac_c_werror_flag" ||
5259 test ! -s conftest.err
5260 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005261 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005262else
5263 echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
Theodore Ts'oe1052142006-10-21 21:46:47 -04005266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005268
5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005271done
5272
5273fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005274{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5275echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005276
5277
5278case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005279 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005280 *)
5281 case $ac_cv_c_inline in
5282 no) ac_val=;;
5283 *) ac_val=$ac_cv_c_inline;;
5284 esac
5285 cat >>confdefs.h <<_ACEOF
5286#ifndef __cplusplus
5287#define inline $ac_val
5288#endif
5289_ACEOF
5290 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005291esac
5292
Theodore Ts'oe1052142006-10-21 21:46:47 -04005293{ echo "$as_me:$LINENO: checking for off_t" >&5
5294echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005295if test "${ac_cv_type_off_t+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005297else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005298 cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h. */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h. */
5304$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005305typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005306int
5307main ()
5308{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005309if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005310 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005311if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005312 return 0;
5313 ;
5314 return 0;
5315}
5316_ACEOF
5317rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005318if { (ac_try="$ac_compile"
5319case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322esac
5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005334 ac_cv_type_off_t=yes
5335else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005336 echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005338
Theodore Ts'oe1052142006-10-21 21:46:47 -04005339 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005340fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005341
5342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005343fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005344{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5345echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005346if test $ac_cv_type_off_t = yes; then
5347 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005348else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005349
5350cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005351#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005352_ACEOF
5353
5354fi
5355
Theodore Ts'oe1052142006-10-21 21:46:47 -04005356{ echo "$as_me:$LINENO: checking for size_t" >&5
5357echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005358if test "${ac_cv_type_size_t+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005368typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005369int
5370main ()
5371{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005372if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005373 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005374if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005375 return 0;
5376 ;
5377 return 0;
5378}
5379_ACEOF
5380rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005381if { (ac_try="$ac_compile"
5382case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385esac
5386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005393 (exit $ac_status); } && {
5394 test -z "$ac_c_werror_flag" ||
5395 test ! -s conftest.err
5396 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005397 ac_cv_type_size_t=yes
5398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005399 echo "$as_me: failed program was:" >&5
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
Theodore Ts'oe1052142006-10-21 21:46:47 -04005402 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005403fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005407{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5408echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005409if test $ac_cv_type_size_t = yes; then
5410 :
5411else
5412
5413cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005414#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005415_ACEOF
5416
5417fi
5418
5419
Theodore Ts'oe1052142006-10-21 21:46:47 -04005420 { echo "$as_me:$LINENO: checking for long long" >&5
5421echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005422if test "${ac_cv_type_long_long+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h. */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h. */
5431long long ll = 1LL; int i = 63;
5432int
5433main ()
5434{
5435long long llmax = (long long) -1;
5436 return ll << i | ll >> i | llmax / ll | llmax % ll;
5437 ;
5438 return 0;
5439}
5440_ACEOF
5441rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005442if { (ac_try="$ac_link"
5443case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446esac
5447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest$ac_exeext &&
5458 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005459 ac_cv_type_long_long=yes
5460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
Theodore Ts'oe1052142006-10-21 21:46:47 -04005464 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005465fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005466
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005468 conftest$ac_exeext conftest.$ac_ext
5469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005470{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5471echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005472 if test $ac_cv_type_long_long = yes; then
5473
5474cat >>confdefs.h <<\_ACEOF
5475#define HAVE_LONG_LONG 1
5476_ACEOF
5477
5478 fi
5479
5480
Theodore Ts'oe1052142006-10-21 21:46:47 -04005481 { echo "$as_me:$LINENO: checking for long double" >&5
5482echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005483if test "${gt_cv_c_long_double+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486 if test "$GCC" = yes; then
5487 gt_cv_c_long_double=yes
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h. */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h. */
5495
5496 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5497 long double foo = 0.0;
5498 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5499 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5500
5501int
5502main ()
5503{
5504
5505 ;
5506 return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005510if { (ac_try="$ac_compile"
5511case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514esac
5515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005522 (exit $ac_status); } && {
5523 test -z "$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005526 gt_cv_c_long_double=yes
5527else
5528 echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
Theodore Ts'oe1052142006-10-21 21:46:47 -04005531 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005533
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005535 fi
5536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005537{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5538echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005539 if test $gt_cv_c_long_double = yes; then
5540
5541cat >>confdefs.h <<\_ACEOF
5542#define HAVE_LONG_DOUBLE 1
5543_ACEOF
5544
5545 fi
5546
5547
Theodore Ts'oe1052142006-10-21 21:46:47 -04005548 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5549echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005550if test "${gt_cv_c_wchar_t+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553 cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
5559#include <stddef.h>
5560 wchar_t foo = (wchar_t)'\0';
5561int
5562main ()
5563{
5564
5565 ;
5566 return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005570if { (ac_try="$ac_compile"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005586 gt_cv_c_wchar_t=yes
5587else
5588 echo "$as_me: failed program was:" >&5
5589sed 's/^/| /' conftest.$ac_ext >&5
5590
Theodore Ts'oe1052142006-10-21 21:46:47 -04005591 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005593
5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005596{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5597echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005598 if test $gt_cv_c_wchar_t = yes; then
5599
5600cat >>confdefs.h <<\_ACEOF
5601#define HAVE_WCHAR_T 1
5602_ACEOF
5603
5604 fi
5605
5606
Theodore Ts'oe1052142006-10-21 21:46:47 -04005607 { echo "$as_me:$LINENO: checking for wint_t" >&5
5608echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005609if test "${gt_cv_c_wint_t+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618#include <wchar.h>
5619 wint_t foo = (wchar_t)'\0';
5620int
5621main ()
5622{
5623
5624 ;
5625 return 0;
5626}
5627_ACEOF
5628rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005629if { (ac_try="$ac_compile"
5630case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633esac
5634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645 gt_cv_c_wint_t=yes
5646else
5647 echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
Theodore Ts'oe1052142006-10-21 21:46:47 -04005650 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005652
5653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005654fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005655{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5656echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005657 if test $gt_cv_c_wint_t = yes; then
5658
5659cat >>confdefs.h <<\_ACEOF
5660#define HAVE_WINT_T 1
5661_ACEOF
5662
5663 fi
5664
5665
Theodore Ts'oe1052142006-10-21 21:46:47 -04005666 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5667echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005668if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671 cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */
5677#include <sys/types.h>
5678#include <inttypes.h>
5679int
5680main ()
5681{
5682uintmax_t i = (uintmax_t) -1;
5683 ;
5684 return 0;
5685}
5686_ACEOF
5687rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005688if { (ac_try="$ac_compile"
5689case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692esac
5693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005704 jm_ac_cv_header_inttypes_h=yes
5705else
5706 echo "$as_me: failed program was:" >&5
5707sed 's/^/| /' conftest.$ac_ext >&5
5708
Theodore Ts'oe1052142006-10-21 21:46:47 -04005709 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005710fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005711
5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005713fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005714{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5715echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005716 if test $jm_ac_cv_header_inttypes_h = yes; then
5717
5718cat >>confdefs.h <<_ACEOF
5719#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5720_ACEOF
5721
5722 fi
5723
5724
Theodore Ts'oe1052142006-10-21 21:46:47 -04005725 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5726echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005727if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736#include <sys/types.h>
5737#include <stdint.h>
5738int
5739main ()
5740{
5741uintmax_t i = (uintmax_t) -1;
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005747if { (ac_try="$ac_compile"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005763 jm_ac_cv_header_stdint_h=yes
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
Theodore Ts'oe1052142006-10-21 21:46:47 -04005768 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005769fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005770
5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005772fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005773{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5774echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005775 if test $jm_ac_cv_header_stdint_h = yes; then
5776
5777cat >>confdefs.h <<_ACEOF
5778#define HAVE_STDINT_H_WITH_UINTMAX 1
5779_ACEOF
5780
5781 fi
5782
5783
5784
5785
Theodore Ts'oe1052142006-10-21 21:46:47 -04005786 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5787echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005788if test "${gt_cv_c_intmax_t+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h. */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h. */
5797
5798#include <stddef.h>
5799#include <stdlib.h>
5800#if HAVE_STDINT_H_WITH_UINTMAX
5801#include <stdint.h>
5802#endif
5803#if HAVE_INTTYPES_H_WITH_UINTMAX
5804#include <inttypes.h>
5805#endif
5806
5807int
5808main ()
5809{
5810intmax_t x = -1;
5811 ;
5812 return 0;
5813}
5814_ACEOF
5815rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005816if { (ac_try="$ac_compile"
5817case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005832 gt_cv_c_intmax_t=yes
5833else
5834 echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
Theodore Ts'oe1052142006-10-21 21:46:47 -04005837 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005839
5840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005841fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005842{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5843echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005844 if test $gt_cv_c_intmax_t = yes; then
5845
5846cat >>confdefs.h <<\_ACEOF
5847#define HAVE_INTMAX_T 1
5848_ACEOF
5849
5850 fi
5851
5852
5853
Theodore Ts'oe1052142006-10-21 21:46:47 -04005854 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5855echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005856if test "${gt_cv_func_printf_posix+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859
5860 if test "$cross_compiling" = yes; then
5861
5862 cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h. */
5868
5869#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5870 notposix
5871#endif
5872
5873_ACEOF
5874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 $EGREP "notposix" >/dev/null 2>&1; then
5876 gt_cv_func_printf_posix="guessing no"
5877else
5878 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005879fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005880rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005881
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005882
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 <stdio.h>
5892#include <string.h>
5893/* The string "%2$d %1$d", with dollar characters protected from the shell's
5894 dollar expansion (possibly an autoconf bug). */
5895static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5896static char buf[100];
5897int main ()
5898{
5899 sprintf (buf, format, 33, 55);
5900 return (strcmp (buf, "55 33") != 0);
5901}
5902_ACEOF
5903rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005904if { (ac_try="$ac_link"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 gt_cv_func_printf_posix=yes
5924else
5925 echo "$as_me: program exited with status $ac_status" >&5
5926echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929( exit $ac_status )
5930gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005931fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005932rm -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 -05005933fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005934
Theodore Ts'oe1052142006-10-21 21:46:47 -04005935
5936
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005937fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005938{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5939echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005940 case $gt_cv_func_printf_posix in
5941 *yes)
5942
5943cat >>confdefs.h <<\_ACEOF
5944#define HAVE_POSIX_PRINTF 1
5945_ACEOF
5946
5947 ;;
5948 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005949
5950# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5951# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005952{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5953echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005954if test "${ac_cv_working_alloca_h+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005956else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005963#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005964int
5965main ()
5966{
5967char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005968 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005969 ;
5970 return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005974if { (ac_try="$ac_link"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest$ac_exeext &&
5990 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005992else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993 echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005995
Theodore Ts'oe1052142006-10-21 21:46:47 -04005996 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005997fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005998
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000 conftest$ac_exeext conftest.$ac_ext
6001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006002{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6003echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006004if test $ac_cv_working_alloca_h = yes; then
6005
6006cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006007#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006008_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006009
6010fi
6011
Theodore Ts'oe1052142006-10-21 21:46:47 -04006012{ echo "$as_me:$LINENO: checking for alloca" >&5
6013echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006014if test "${ac_cv_func_alloca_works+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017 cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h. */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006023#ifdef __GNUC__
6024# define alloca __builtin_alloca
6025#else
6026# ifdef _MSC_VER
6027# include <malloc.h>
6028# define alloca _alloca
6029# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006030# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006031# include <alloca.h>
6032# else
6033# ifdef _AIX
6034 #pragma alloca
6035# else
6036# ifndef alloca /* predefined by HP cc +Olibcalls */
6037char *alloca ();
6038# endif
6039# endif
6040# endif
6041# endif
6042#endif
6043
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006044int
6045main ()
6046{
6047char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006048 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049 ;
6050 return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006054if { (ac_try="$ac_link"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest$ac_exeext &&
6070 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006071 ac_cv_func_alloca_works=yes
6072else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073 echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006075
Theodore Ts'oe1052142006-10-21 21:46:47 -04006076 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006078
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080 conftest$ac_exeext conftest.$ac_ext
6081fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006082{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6083echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006085if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086
6087cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006088#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006090
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6093# that cause trouble. Some versions do not even contain alloca or
6094# contain a buggy version. If you still want to use their alloca,
6095# use ar to extract alloca.o from them instead of compiling alloca.c.
6096
Theodore Ts'oe1052142006-10-21 21:46:47 -04006097ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098
6099cat >>confdefs.h <<\_ACEOF
6100#define C_ALLOCA 1
6101_ACEOF
6102
6103
Theodore Ts'oe1052142006-10-21 21:46:47 -04006104{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6105echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106if test "${ac_cv_os_cray+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109 cat >conftest.$ac_ext <<_ACEOF
6110/* confdefs.h. */
6111_ACEOF
6112cat confdefs.h >>conftest.$ac_ext
6113cat >>conftest.$ac_ext <<_ACEOF
6114/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006115#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006116webecray
6117#else
6118wenotbecray
6119#endif
6120
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006124 ac_cv_os_cray=yes
6125else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006126 ac_cv_os_cray=no
6127fi
6128rm -f conftest*
6129
6130fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006131{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6132echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006133if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134 for ac_func in _getb67 GETB67 getb67; do
6135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006136{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006139 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006140else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006141 cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6149#define $ac_func innocuous_$ac_func
6150
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006151/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152 which can conflict with char $ac_func (); below.
6153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6154 <limits.h> exists even on freestanding compilers. */
6155
6156#ifdef __STDC__
6157# include <limits.h>
6158#else
6159# include <assert.h>
6160#endif
6161
6162#undef $ac_func
6163
Theodore Ts'oe1052142006-10-21 21:46:47 -04006164/* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006167#ifdef __cplusplus
6168extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006171/* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006174#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006175choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006176#endif
6177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006178int
6179main ()
6180{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006181return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182 ;
6183 return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006187if { (ac_try="$ac_link"
6188case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191esac
6192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006194 ac_status=$?
6195 grep -v '^ *+' conftest.er1 >conftest.err
6196 rm -f conftest.er1
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest$ac_exeext &&
6203 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006204 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006205else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006206 echo "$as_me: failed program was:" >&5
6207sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006208
Theodore Ts'oe1052142006-10-21 21:46:47 -04006209 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006210fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006211
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006213 conftest$ac_exeext conftest.$ac_ext
6214fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006215ac_res=`eval echo '${'$as_ac_var'}'`
6216 { echo "$as_me:$LINENO: result: $ac_res" >&5
6217echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006218if test `eval echo '${'$as_ac_var'}'` = yes; then
6219
6220cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006221#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006222_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006224 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006225fi
6226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006227 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006228fi
6229
Theodore Ts'oe1052142006-10-21 21:46:47 -04006230{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6231echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006232if test "${ac_cv_c_stack_direction+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006234else
6235 if test "$cross_compiling" = yes; then
6236 ac_cv_c_stack_direction=0
6237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006238 cat >conftest.$ac_ext <<_ACEOF
6239/* confdefs.h. */
6240_ACEOF
6241cat confdefs.h >>conftest.$ac_ext
6242cat >>conftest.$ac_ext <<_ACEOF
6243/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006244$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006245int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006246find_stack_direction ()
6247{
6248 static char *addr = 0;
6249 auto char dummy;
6250 if (addr == 0)
6251 {
6252 addr = &dummy;
6253 return find_stack_direction ();
6254 }
6255 else
6256 return (&dummy > addr) ? 1 : -1;
6257}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006258
6259int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006260main ()
6261{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006262 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006263}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006264_ACEOF
6265rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006266if { (ac_try="$ac_link"
6267case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006276 { (case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
6280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006285 ac_cv_c_stack_direction=1
6286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287 echo "$as_me: program exited with status $ac_status" >&5
6288echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006291( exit $ac_status )
6292ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006293fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006294rm -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 -05006295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006296
6297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006298fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006299{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6300echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006303#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304_ACEOF
6305
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006306
6307fi
6308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006309
6310
6311for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006312do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006318 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006319fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006320ac_res=`eval echo '${'$as_ac_Header'}'`
6321 { echo "$as_me:$LINENO: result: $ac_res" >&5
6322echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006323else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006324 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006325{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327cat >conftest.$ac_ext <<_ACEOF
6328/* confdefs.h. */
6329_ACEOF
6330cat confdefs.h >>conftest.$ac_ext
6331cat >>conftest.$ac_ext <<_ACEOF
6332/* end confdefs.h. */
6333$ac_includes_default
6334#include <$ac_header>
6335_ACEOF
6336rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 ac_header_compiler=yes
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
Theodore Ts'oe1052142006-10-21 21:46:47 -04006358 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006360
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006364
6365# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006366{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006368cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
6374#include <$ac_header>
6375_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006376if { (ac_try="$ac_cpp conftest.$ac_ext"
6377case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380esac
6381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006388 (exit $ac_status); } >/dev/null && {
6389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6391 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006392 ac_header_preproc=yes
6393else
6394 echo "$as_me: failed program was:" >&5
6395sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 ac_header_preproc=no
6398fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006400rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006401{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6402echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006403
6404# So? What about this header?
6405case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6406 yes:no: )
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6408echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6410echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6411 ac_header_preproc=yes
6412 ;;
6413 no:yes:* )
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6415echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6417echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6419echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6421echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6423echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6425echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006427 ;;
6428esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006429{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434 eval "$as_ac_Header=\$ac_header_preproc"
6435fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006436ac_res=`eval echo '${'$as_ac_Header'}'`
6437 { echo "$as_me:$LINENO: result: $ac_res" >&5
6438echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006439
6440fi
6441if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444_ACEOF
6445
6446fi
6447
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006448done
6449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006451for ac_func in getpagesize
6452do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006458else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006459 cat >conftest.$ac_ext <<_ACEOF
6460/* confdefs.h. */
6461_ACEOF
6462cat confdefs.h >>conftest.$ac_ext
6463cat >>conftest.$ac_ext <<_ACEOF
6464/* end confdefs.h. */
6465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6467#define $ac_func innocuous_$ac_func
6468
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006469/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470 which can conflict with char $ac_func (); below.
6471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6472 <limits.h> exists even on freestanding compilers. */
6473
6474#ifdef __STDC__
6475# include <limits.h>
6476#else
6477# include <assert.h>
6478#endif
6479
6480#undef $ac_func
6481
Theodore Ts'oe1052142006-10-21 21:46:47 -04006482/* Override any GCC internal prototype to avoid an error.
6483 Use char because int might match the return type of a GCC
6484 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485#ifdef __cplusplus
6486extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006489/* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006492#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006493choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006494#endif
6495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496int
6497main ()
6498{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006499return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006500 ;
6501 return 0;
6502}
6503_ACEOF
6504rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006505if { (ac_try="$ac_link"
6506case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest$ac_exeext &&
6521 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006522 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006523else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006526
Theodore Ts'oe1052142006-10-21 21:46:47 -04006527 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006529
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006531 conftest$ac_exeext conftest.$ac_ext
6532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006533ac_res=`eval echo '${'$as_ac_var'}'`
6534 { echo "$as_me:$LINENO: result: $ac_res" >&5
6535echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536if test `eval echo '${'$as_ac_var'}'` = yes; then
6537 cat >>confdefs.h <<_ACEOF
6538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6539_ACEOF
6540
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006541fi
6542done
6543
Theodore Ts'oe1052142006-10-21 21:46:47 -04006544{ echo "$as_me:$LINENO: checking for working mmap" >&5
6545echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006546if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006548else
6549 if test "$cross_compiling" = yes; then
6550 ac_cv_func_mmap_fixed_mapped=no
6551else
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$ac_includes_default
6559/* malloc might have been renamed as rpl_malloc. */
6560#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006561
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006562/* Thanks to Mike Haertel and Jim Avera for this test.
6563 Here is a matrix of mmap possibilities:
6564 mmap private not fixed
6565 mmap private fixed at somewhere currently unmapped
6566 mmap private fixed at somewhere already mapped
6567 mmap shared not fixed
6568 mmap shared fixed at somewhere currently unmapped
6569 mmap shared fixed at somewhere already mapped
6570 For private mappings, we should verify that changes cannot be read()
6571 back from the file, nor mmap's back from the file at a different
6572 address. (There have been systems where private was not correctly
6573 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006574 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006575 like early versions of FreeBSD and possibly contemporary NetBSD.)
6576 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006578
6579 Grep wants private fixed already mapped.
6580 The main things grep needs to know about mmap are:
6581 * does it exist and is it safe to write into the mmap'd area
6582 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006584#include <fcntl.h>
6585#include <sys/mman.h>
6586
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006587#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588char *malloc ();
6589#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006592#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006593/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006594# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006595# define HAVE_SYS_PARAM_H 1
6596# endif
6597
6598# ifdef _SC_PAGESIZE
6599# define getpagesize() sysconf(_SC_PAGESIZE)
6600# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006601# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006602# include <sys/param.h>
6603# ifdef EXEC_PAGESIZE
6604# define getpagesize() EXEC_PAGESIZE
6605# else /* no EXEC_PAGESIZE */
6606# ifdef NBPG
6607# define getpagesize() NBPG * CLSIZE
6608# ifndef CLSIZE
6609# define CLSIZE 1
6610# endif /* no CLSIZE */
6611# else /* no NBPG */
6612# ifdef NBPC
6613# define getpagesize() NBPC
6614# else /* no NBPC */
6615# ifdef PAGESIZE
6616# define getpagesize() PAGESIZE
6617# endif /* PAGESIZE */
6618# endif /* no NBPC */
6619# endif /* no NBPG */
6620# endif /* no EXEC_PAGESIZE */
6621# else /* no HAVE_SYS_PARAM_H */
6622# define getpagesize() 8192 /* punt totally */
6623# endif /* no HAVE_SYS_PARAM_H */
6624# endif /* no _SC_PAGESIZE */
6625
6626#endif /* no HAVE_GETPAGESIZE */
6627
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006628int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006630{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006631 char *data, *data2, *data3;
6632 int i, pagesize;
6633 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006637 /* First, make a file with some known garbage in it. */
6638 data = (char *) malloc (pagesize);
6639 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006640 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641 for (i = 0; i < pagesize; ++i)
6642 *(data + i) = rand ();
6643 umask (0);
6644 fd = creat ("conftest.mmap", 0600);
6645 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006646 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006647 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006648 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006649 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651 /* Next, try to mmap the file at a fixed address which already has
6652 something else allocated at it. If we can, also make sure that
6653 we see the same garbage. */
6654 fd = open ("conftest.mmap", O_RDWR);
6655 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006656 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006657 data2 = (char *) malloc (2 * pagesize);
6658 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006659 return 1;
6660 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6662 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006663 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664 for (i = 0; i < pagesize; ++i)
6665 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006666 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668 /* Finally, make sure that changes to the mapped area do not
6669 percolate back to the file as seen by read(). (This is a bug on
6670 some variants of i386 svr4.0.) */
6671 for (i = 0; i < pagesize; ++i)
6672 *(data2 + i) = *(data2 + i) + 1;
6673 data3 = (char *) malloc (pagesize);
6674 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006677 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678 for (i = 0; i < pagesize; ++i)
6679 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006680 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006682 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006683}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684_ACEOF
6685rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006686if { (ac_try="$ac_link"
6687case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690esac
6691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006696 { (case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699esac
6700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006705 ac_cv_func_mmap_fixed_mapped=yes
6706else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006707 echo "$as_me: program exited with status $ac_status" >&5
6708echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711( exit $ac_status )
6712ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006713fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006714rm -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 -05006715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006716
6717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006719{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6720echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006721if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722
6723cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006724#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006725_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006726
6727fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006729
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006730
Theodore Ts'oe1052142006-10-21 21:46:47 -04006731 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6732echo $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 -05006733if test "${ac_cv_gnu_library_2_1+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736 cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h. */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006742
6743#include <features.h>
6744#ifdef __GNU_LIBRARY__
6745 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6746 Lucky GNU user
6747 #endif
6748#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749
6750_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006753 ac_cv_gnu_library_2_1=yes
6754else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006755 ac_cv_gnu_library_2_1=no
6756fi
6757rm -f conftest*
6758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759
6760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006761fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006762{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6763echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006764
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006765 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006766
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006768
6769
Theodore Ts'oe1052142006-10-21 21:46:47 -04006770 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6771echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006772if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006774else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006776 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006778 # Guess based on the CPU.
6779 case "$host_cpu" in
6780 alpha* | i3456786 | m68k | s390*)
6781 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6782 *)
6783 gt_cv_int_divbyzero_sigfpe="guessing no";;
6784 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006785
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006786else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787 cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006793
6794#include <stdlib.h>
6795#include <signal.h>
6796
6797static void
6798#ifdef __cplusplus
6799sigfpe_handler (int sig)
6800#else
6801sigfpe_handler (sig) int sig;
6802#endif
6803{
6804 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6805 exit (sig != SIGFPE);
6806}
6807
6808int x = 1;
6809int y = 0;
6810int z;
6811int nan;
6812
6813int main ()
6814{
6815 signal (SIGFPE, sigfpe_handler);
6816/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6817#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6818 signal (SIGTRAP, sigfpe_handler);
6819#endif
6820/* Linux/SPARC yields signal SIGILL. */
6821#if defined (__sparc__) && defined (__linux__)
6822 signal (SIGILL, sigfpe_handler);
6823#endif
6824
6825 z = x / y;
6826 nan = y / y;
6827 exit (1);
6828}
6829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830_ACEOF
6831rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006832if { (ac_try="$ac_link"
6833case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836esac
6837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006842 { (case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845esac
6846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006851 gt_cv_int_divbyzero_sigfpe=yes
6852else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853 echo "$as_me: program exited with status $ac_status" >&5
6854echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857( exit $ac_status )
6858gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006859fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006860rm -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 -04006861fi
6862
Theodore Ts'oe1052142006-10-21 21:46:47 -04006863
6864
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006865fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006866{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6867echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006868 case "$gt_cv_int_divbyzero_sigfpe" in
6869 *yes) value=1;;
6870 *) value=0;;
6871 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006872
6873cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006874#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006875_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006876
6877
6878
Theodore Ts'oe1052142006-10-21 21:46:47 -04006879 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6880echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884 cat >conftest.$ac_ext <<_ACEOF
6885/* confdefs.h. */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h. */
6890unsigned long long ull = 1ULL; int i = 63;
6891int
6892main ()
6893{
6894unsigned long long ullmax = (unsigned long long) -1;
6895 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6896 ;
6897 return 0;
6898}
6899_ACEOF
6900rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006901if { (ac_try="$ac_link"
6902case "(($ac_try" in
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6905esac
6906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908 ac_status=$?
6909 grep -v '^ *+' conftest.er1 >conftest.err
6910 rm -f conftest.er1
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest$ac_exeext &&
6917 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918 ac_cv_type_unsigned_long_long=yes
6919else
6920 echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
Theodore Ts'oe1052142006-10-21 21:46:47 -04006923 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006925
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927 conftest$ac_exeext conftest.$ac_ext
6928fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006929{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6930echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931 if test $ac_cv_type_unsigned_long_long = yes; then
6932
6933cat >>confdefs.h <<\_ACEOF
6934#define HAVE_UNSIGNED_LONG_LONG 1
6935_ACEOF
6936
6937 fi
6938
6939
6940
6941
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006942 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 -05006943
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006944 test $ac_cv_type_unsigned_long_long = yes \
6945 && ac_type='unsigned long long' \
6946 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947
6948cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006949#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006950_ACEOF
6951
6952 else
6953
6954cat >>confdefs.h <<\_ACEOF
6955#define HAVE_UINTMAX_T 1
6956_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006957
6958 fi
6959
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006960
Theodore Ts'oe1052142006-10-21 21:46:47 -04006961 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6962echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963if test "${gt_cv_header_inttypes_h+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966
6967 cat >conftest.$ac_ext <<_ACEOF
6968/* confdefs.h. */
6969_ACEOF
6970cat confdefs.h >>conftest.$ac_ext
6971cat >>conftest.$ac_ext <<_ACEOF
6972/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006973#include <sys/types.h>
6974#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975int
6976main ()
6977{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979 ;
6980 return 0;
6981}
6982_ACEOF
6983rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006984if { (ac_try="$ac_compile"
6985case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988esac
6989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007000 gt_cv_header_inttypes_h=yes
7001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002 echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007004
Theodore Ts'oe1052142006-10-21 21:46:47 -04007005 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007007
7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007009
7010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007011{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7012echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007013 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014
7015cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007016#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007017_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007018
7019 fi
7020
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007021
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007023 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007024 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7025echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007026if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007029
7030 cat >conftest.$ac_ext <<_ACEOF
7031/* confdefs.h. */
7032_ACEOF
7033cat confdefs.h >>conftest.$ac_ext
7034cat >>conftest.$ac_ext <<_ACEOF
7035/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007036#include <inttypes.h>
7037#ifdef PRId32
7038char *p = PRId32;
7039#endif
7040
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041int
7042main ()
7043{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007045 ;
7046 return 0;
7047}
7048_ACEOF
7049rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007050if { (ac_try="$ac_compile"
7051case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054esac
7055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007066 gt_cv_inttypes_pri_broken=no
7067else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068 echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007070
Theodore Ts'oe1052142006-10-21 21:46:47 -04007071 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007073
7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075
7076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007077{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7078echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007079 fi
7080 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007081
7082cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007083#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007084_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007085
7086 fi
7087
7088
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090for ac_header in stdint.h
7091do
7092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007099ac_res=`eval echo '${'$as_ac_Header'}'`
7100 { echo "$as_me:$LINENO: result: $ac_res" >&5
7101echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102else
7103 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007104{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106cat >conftest.$ac_ext <<_ACEOF
7107/* confdefs.h. */
7108_ACEOF
7109cat confdefs.h >>conftest.$ac_ext
7110cat >>conftest.$ac_ext <<_ACEOF
7111/* end confdefs.h. */
7112$ac_includes_default
7113#include <$ac_header>
7114_ACEOF
7115rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007116if { (ac_try="$ac_compile"
7117case "(($ac_try" in
7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7120esac
7121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132 ac_header_compiler=yes
7133else
7134 echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
Theodore Ts'oe1052142006-10-21 21:46:47 -04007137 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007139
7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143
7144# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007145{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007147cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153#include <$ac_header>
7154_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007155if { (ac_try="$ac_cpp conftest.$ac_ext"
7156case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159esac
7160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007162 ac_status=$?
7163 grep -v '^ *+' conftest.er1 >conftest.err
7164 rm -f conftest.er1
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007167 (exit $ac_status); } >/dev/null && {
7168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7169 test ! -s conftest.err
7170 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171 ac_header_preproc=yes
7172else
7173 echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176 ac_header_preproc=no
7177fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007180{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7181echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007182
7183# So? What about this header?
7184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7185 yes:no: )
7186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7190 ac_header_preproc=yes
7191 ;;
7192 no:yes:* )
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007206 ;;
7207esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007208{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 eval "$as_ac_Header=\$ac_header_preproc"
7214fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007215ac_res=`eval echo '${'$as_ac_Header'}'`
7216 { echo "$as_me:$LINENO: result: $ac_res" >&5
7217echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218
7219fi
7220if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221 cat >>confdefs.h <<_ACEOF
7222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7223_ACEOF
7224
7225fi
7226
7227done
7228
Theodore Ts'oe1052142006-10-21 21:46:47 -04007229 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7230echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231 result=
7232 cat >conftest.$ac_ext <<_ACEOF
7233/* confdefs.h. */
7234_ACEOF
7235cat confdefs.h >>conftest.$ac_ext
7236cat >>conftest.$ac_ext <<_ACEOF
7237/* end confdefs.h. */
7238
7239#include <limits.h>
7240#if HAVE_STDINT_H
7241#include <stdint.h>
7242#endif
7243#ifdef SIZE_MAX
7244Found it
7245#endif
7246
7247_ACEOF
7248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7249 $EGREP "Found it" >/dev/null 2>&1; then
7250 result=yes
7251fi
7252rm -f conftest*
7253
7254 if test -z "$result"; then
7255 if test "$cross_compiling" = yes; then
7256 # Depending upon the size, compute the lo and hi bounds.
7257cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h. */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h. */
7263#include <stddef.h>
7264int
7265main ()
7266{
7267static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7268test_array [0] = 0
7269
7270 ;
7271 return 0;
7272}
7273_ACEOF
7274rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007275if { (ac_try="$ac_compile"
7276case "(($ac_try" in
7277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 *) ac_try_echo=$ac_try;;
7279esac
7280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007287 (exit $ac_status); } && {
7288 test -z "$ac_c_werror_flag" ||
7289 test ! -s conftest.err
7290 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291 ac_lo=0 ac_mid=0
7292 while :; do
7293 cat >conftest.$ac_ext <<_ACEOF
7294/* confdefs.h. */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h. */
7299#include <stddef.h>
7300int
7301main ()
7302{
7303static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7304test_array [0] = 0
7305
7306 ;
7307 return 0;
7308}
7309_ACEOF
7310rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007311if { (ac_try="$ac_compile"
7312case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315esac
7316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007327 ac_hi=$ac_mid; break
7328else
7329 echo "$as_me: failed program was:" >&5
7330sed 's/^/| /' conftest.$ac_ext >&5
7331
Theodore Ts'oe1052142006-10-21 21:46:47 -04007332 ac_lo=`expr $ac_mid + 1`
7333 if test $ac_lo -le $ac_mid; then
7334 ac_lo= ac_hi=
7335 break
7336 fi
7337 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339
7340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007341 done
7342else
7343 echo "$as_me: failed program was:" >&5
7344sed 's/^/| /' conftest.$ac_ext >&5
7345
Theodore Ts'oe1052142006-10-21 21:46:47 -04007346 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347/* confdefs.h. */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h. */
7352#include <stddef.h>
7353int
7354main ()
7355{
7356static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7357test_array [0] = 0
7358
7359 ;
7360 return 0;
7361}
7362_ACEOF
7363rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007364if { (ac_try="$ac_compile"
7365case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368esac
7369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380 ac_hi=-1 ac_mid=-1
7381 while :; do
7382 cat >conftest.$ac_ext <<_ACEOF
7383/* confdefs.h. */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h. */
7388#include <stddef.h>
7389int
7390main ()
7391{
7392static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7393test_array [0] = 0
7394
7395 ;
7396 return 0;
7397}
7398_ACEOF
7399rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007400if { (ac_try="$ac_compile"
7401case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404esac
7405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007416 ac_lo=$ac_mid; break
7417else
7418 echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
Theodore Ts'oe1052142006-10-21 21:46:47 -04007421 ac_hi=`expr '(' $ac_mid ')' - 1`
7422 if test $ac_mid -le $ac_hi; then
7423 ac_lo= ac_hi=
7424 break
7425 fi
7426 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007428
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430 done
7431else
7432 echo "$as_me: failed program was:" >&5
7433sed 's/^/| /' conftest.$ac_ext >&5
7434
Theodore Ts'oe1052142006-10-21 21:46:47 -04007435 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007437
7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007439fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007440
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007442# Binary search between lo and hi bounds.
7443while test "x$ac_lo" != "x$ac_hi"; do
7444 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7445 cat >conftest.$ac_ext <<_ACEOF
7446/* confdefs.h. */
7447_ACEOF
7448cat confdefs.h >>conftest.$ac_ext
7449cat >>conftest.$ac_ext <<_ACEOF
7450/* end confdefs.h. */
7451#include <stddef.h>
7452int
7453main ()
7454{
7455static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7456test_array [0] = 0
7457
7458 ;
7459 return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007463if { (ac_try="$ac_compile"
7464case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467esac
7468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479 ac_hi=$ac_mid
7480else
7481 echo "$as_me: failed program was:" >&5
7482sed 's/^/| /' conftest.$ac_ext >&5
7483
Theodore Ts'oe1052142006-10-21 21:46:47 -04007484 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007486
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488done
7489case $ac_lo in
7490?*) res_hi=$ac_lo;;
7491'') result=? ;;
7492esac
7493else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007494 cat >conftest.$ac_ext <<_ACEOF
7495/* confdefs.h. */
7496_ACEOF
7497cat confdefs.h >>conftest.$ac_ext
7498cat >>conftest.$ac_ext <<_ACEOF
7499/* end confdefs.h. */
7500#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007501static long int longval () { return ~(size_t)0 / 10; }
7502static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007503#include <stdio.h>
7504#include <stdlib.h>
7505int
7506main ()
7507{
7508
7509 FILE *f = fopen ("conftest.val", "w");
7510 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007511 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007512 if ((~(size_t)0 / 10) < 0)
7513 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007514 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007516 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007517 fprintf (f, "%ld\n", i);
7518 }
7519 else
7520 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007521 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007523 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524 fprintf (f, "%lu\n", i);
7525 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007526 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007527
7528 ;
7529 return 0;
7530}
7531_ACEOF
7532rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007533if { (ac_try="$ac_link"
7534case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
7538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007543 { (case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546esac
7547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 res_hi=`cat conftest.val`
7553else
7554 echo "$as_me: program exited with status $ac_status" >&5
7555echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558( exit $ac_status )
7559result=?
7560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007561rm -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 -05007562fi
7563rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565 if test "$cross_compiling" = yes; then
7566 # Depending upon the size, compute the lo and hi bounds.
7567cat >conftest.$ac_ext <<_ACEOF
7568/* confdefs.h. */
7569_ACEOF
7570cat confdefs.h >>conftest.$ac_ext
7571cat >>conftest.$ac_ext <<_ACEOF
7572/* end confdefs.h. */
7573#include <stddef.h>
7574int
7575main ()
7576{
7577static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7578test_array [0] = 0
7579
7580 ;
7581 return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007585if { (ac_try="$ac_compile"
7586case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589esac
7590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007601 ac_lo=0 ac_mid=0
7602 while :; do
7603 cat >conftest.$ac_ext <<_ACEOF
7604/* confdefs.h. */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h. */
7609#include <stddef.h>
7610int
7611main ()
7612{
7613static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7614test_array [0] = 0
7615
7616 ;
7617 return 0;
7618}
7619_ACEOF
7620rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007621if { (ac_try="$ac_compile"
7622case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625esac
7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007633 (exit $ac_status); } && {
7634 test -z "$ac_c_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007637 ac_hi=$ac_mid; break
7638else
7639 echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
Theodore Ts'oe1052142006-10-21 21:46:47 -04007642 ac_lo=`expr $ac_mid + 1`
7643 if test $ac_lo -le $ac_mid; then
7644 ac_lo= ac_hi=
7645 break
7646 fi
7647 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007649
7650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651 done
7652else
7653 echo "$as_me: failed program was:" >&5
7654sed 's/^/| /' conftest.$ac_ext >&5
7655
Theodore Ts'oe1052142006-10-21 21:46:47 -04007656 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657/* confdefs.h. */
7658_ACEOF
7659cat confdefs.h >>conftest.$ac_ext
7660cat >>conftest.$ac_ext <<_ACEOF
7661/* end confdefs.h. */
7662#include <stddef.h>
7663int
7664main ()
7665{
7666static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7667test_array [0] = 0
7668
7669 ;
7670 return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007674if { (ac_try="$ac_compile"
7675case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678esac
7679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007690 ac_hi=-1 ac_mid=-1
7691 while :; do
7692 cat >conftest.$ac_ext <<_ACEOF
7693/* confdefs.h. */
7694_ACEOF
7695cat confdefs.h >>conftest.$ac_ext
7696cat >>conftest.$ac_ext <<_ACEOF
7697/* end confdefs.h. */
7698#include <stddef.h>
7699int
7700main ()
7701{
7702static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7703test_array [0] = 0
7704
7705 ;
7706 return 0;
7707}
7708_ACEOF
7709rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007710if { (ac_try="$ac_compile"
7711case "(($ac_try" in
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7714esac
7715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007726 ac_lo=$ac_mid; break
7727else
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
Theodore Ts'oe1052142006-10-21 21:46:47 -04007731 ac_hi=`expr '(' $ac_mid ')' - 1`
7732 if test $ac_mid -le $ac_hi; then
7733 ac_lo= ac_hi=
7734 break
7735 fi
7736 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007737fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007738
7739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007740 done
7741else
7742 echo "$as_me: failed program was:" >&5
7743sed 's/^/| /' conftest.$ac_ext >&5
7744
Theodore Ts'oe1052142006-10-21 21:46:47 -04007745 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007747
7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007749fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007750
7751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007752# Binary search between lo and hi bounds.
7753while test "x$ac_lo" != "x$ac_hi"; do
7754 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7755 cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h. */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h. */
7761#include <stddef.h>
7762int
7763main ()
7764{
7765static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7766test_array [0] = 0
7767
7768 ;
7769 return 0;
7770}
7771_ACEOF
7772rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007773if { (ac_try="$ac_compile"
7774case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777esac
7778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007789 ac_hi=$ac_mid
7790else
7791 echo "$as_me: failed program was:" >&5
7792sed 's/^/| /' conftest.$ac_ext >&5
7793
Theodore Ts'oe1052142006-10-21 21:46:47 -04007794 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007795fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007796
7797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007798done
7799case $ac_lo in
7800?*) res_lo=$ac_lo;;
7801'') result=? ;;
7802esac
7803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007804 cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h. */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h. */
7810#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007811static long int longval () { return ~(size_t)0 % 10; }
7812static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007813#include <stdio.h>
7814#include <stdlib.h>
7815int
7816main ()
7817{
7818
7819 FILE *f = fopen ("conftest.val", "w");
7820 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007821 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007822 if ((~(size_t)0 % 10) < 0)
7823 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007825 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007826 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007827 fprintf (f, "%ld\n", i);
7828 }
7829 else
7830 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007831 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007833 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834 fprintf (f, "%lu\n", i);
7835 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007836 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007837
7838 ;
7839 return 0;
7840}
7841_ACEOF
7842rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007843if { (ac_try="$ac_link"
7844case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007853 { (case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 res_lo=`cat conftest.val`
7863else
7864 echo "$as_me: program exited with status $ac_status" >&5
7865echo "$as_me: failed program was:" >&5
7866sed 's/^/| /' conftest.$ac_ext >&5
7867
7868( exit $ac_status )
7869result=?
7870fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007871rm -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 -05007872fi
7873rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007875 if test "$cross_compiling" = yes; then
7876 # Depending upon the size, compute the lo and hi bounds.
7877cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883#include <stddef.h>
7884int
7885main ()
7886{
7887static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7888test_array [0] = 0
7889
7890 ;
7891 return 0;
7892}
7893_ACEOF
7894rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007895if { (ac_try="$ac_compile"
7896case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007911 ac_lo=0 ac_mid=0
7912 while :; do
7913 cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h. */
7919#include <stddef.h>
7920int
7921main ()
7922{
7923static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7924test_array [0] = 0
7925
7926 ;
7927 return 0;
7928}
7929_ACEOF
7930rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007931if { (ac_try="$ac_compile"
7932case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935esac
7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007947 ac_hi=$ac_mid; break
7948else
7949 echo "$as_me: failed program was:" >&5
7950sed 's/^/| /' conftest.$ac_ext >&5
7951
Theodore Ts'oe1052142006-10-21 21:46:47 -04007952 ac_lo=`expr $ac_mid + 1`
7953 if test $ac_lo -le $ac_mid; then
7954 ac_lo= ac_hi=
7955 break
7956 fi
7957 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007959
7960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007961 done
7962else
7963 echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
Theodore Ts'oe1052142006-10-21 21:46:47 -04007966 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007967/* confdefs.h. */
7968_ACEOF
7969cat confdefs.h >>conftest.$ac_ext
7970cat >>conftest.$ac_ext <<_ACEOF
7971/* end confdefs.h. */
7972#include <stddef.h>
7973int
7974main ()
7975{
7976static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7977test_array [0] = 0
7978
7979 ;
7980 return 0;
7981}
7982_ACEOF
7983rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007984if { (ac_try="$ac_compile"
7985case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988esac
7989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008000 ac_hi=-1 ac_mid=-1
8001 while :; do
8002 cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h. */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h. */
8008#include <stddef.h>
8009int
8010main ()
8011{
8012static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8013test_array [0] = 0
8014
8015 ;
8016 return 0;
8017}
8018_ACEOF
8019rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008020if { (ac_try="$ac_compile"
8021case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024esac
8025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008036 ac_lo=$ac_mid; break
8037else
8038 echo "$as_me: failed program was:" >&5
8039sed 's/^/| /' conftest.$ac_ext >&5
8040
Theodore Ts'oe1052142006-10-21 21:46:47 -04008041 ac_hi=`expr '(' $ac_mid ')' - 1`
8042 if test $ac_mid -le $ac_hi; then
8043 ac_lo= ac_hi=
8044 break
8045 fi
8046 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008048
8049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008050 done
8051else
8052 echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
8054
Theodore Ts'oe1052142006-10-21 21:46:47 -04008055 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008056fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008057
8058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008059fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008060
8061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008062# Binary search between lo and hi bounds.
8063while test "x$ac_lo" != "x$ac_hi"; do
8064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8065 cat >conftest.$ac_ext <<_ACEOF
8066/* confdefs.h. */
8067_ACEOF
8068cat confdefs.h >>conftest.$ac_ext
8069cat >>conftest.$ac_ext <<_ACEOF
8070/* end confdefs.h. */
8071#include <stddef.h>
8072int
8073main ()
8074{
8075static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8076test_array [0] = 0
8077
8078 ;
8079 return 0;
8080}
8081_ACEOF
8082rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008083if { (ac_try="$ac_compile"
8084case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008099 ac_hi=$ac_mid
8100else
8101 echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
Theodore Ts'oe1052142006-10-21 21:46:47 -04008104 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008105fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008106
8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008108done
8109case $ac_lo in
8110?*) fits_in_uint=$ac_lo;;
8111'') result=? ;;
8112esac
8113else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008114 cat >conftest.$ac_ext <<_ACEOF
8115/* confdefs.h. */
8116_ACEOF
8117cat confdefs.h >>conftest.$ac_ext
8118cat >>conftest.$ac_ext <<_ACEOF
8119/* end confdefs.h. */
8120#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008121static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8122static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008123#include <stdio.h>
8124#include <stdlib.h>
8125int
8126main ()
8127{
8128
8129 FILE *f = fopen ("conftest.val", "w");
8130 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008131 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008132 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8133 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008134 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008135 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008136 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008137 fprintf (f, "%ld\n", i);
8138 }
8139 else
8140 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008141 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008142 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008143 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008144 fprintf (f, "%lu\n", i);
8145 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008146 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008147
8148 ;
8149 return 0;
8150}
8151_ACEOF
8152rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008153if { (ac_try="$ac_link"
8154case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 fits_in_uint=`cat conftest.val`
8173else
8174 echo "$as_me: program exited with status $ac_status" >&5
8175echo "$as_me: failed program was:" >&5
8176sed 's/^/| /' conftest.$ac_ext >&5
8177
8178( exit $ac_status )
8179result=?
8180fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008181rm -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 -05008182fi
8183rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008184
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008185 if test "$fits_in_uint" = 1; then
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192#include <stddef.h>
8193 extern size_t foo;
8194 extern unsigned long foo;
8195
8196int
8197main ()
8198{
8199
8200 ;
8201 return 0;
8202}
8203_ACEOF
8204rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008205if { (ac_try="$ac_compile"
8206case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209esac
8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008221 fits_in_uint=0
8222else
8223 echo "$as_me: failed program was:" >&5
8224sed 's/^/| /' conftest.$ac_ext >&5
8225
Theodore Ts'oe1052142006-10-21 21:46:47 -04008226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008227fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008228
8229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008230 fi
8231 if test -z "$result"; then
8232 if test "$fits_in_uint" = 1; then
8233 result="$res_hi$res_lo"U
8234 else
8235 result="$res_hi$res_lo"UL
8236 fi
8237 else
8238 result='~(size_t)0'
8239 fi
8240 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008241 { echo "$as_me:$LINENO: result: $result" >&5
8242echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008243 if test "$result" != yes; then
8244
8245cat >>confdefs.h <<_ACEOF
8246#define SIZE_MAX $result
8247_ACEOF
8248
8249 fi
8250
8251
8252
8253
8254for ac_header in stdint.h
8255do
8256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008263ac_res=`eval echo '${'$as_ac_Header'}'`
8264 { echo "$as_me:$LINENO: result: $ac_res" >&5
8265echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008266else
8267 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008270cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
8276$ac_includes_default
8277#include <$ac_header>
8278_ACEOF
8279rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008280if { (ac_try="$ac_compile"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008296 ac_header_compiler=yes
8297else
8298 echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
Theodore Ts'oe1052142006-10-21 21:46:47 -04008301 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008303
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8306echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008307
8308# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008309{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008311cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
8317#include <$ac_header>
8318_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008319if { (ac_try="$ac_cpp conftest.$ac_ext"
8320case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323esac
8324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008331 (exit $ac_status); } >/dev/null && {
8332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008335 ac_header_preproc=yes
8336else
8337 echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 ac_header_preproc=no
8341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008342
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008343rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346
8347# So? What about this header?
8348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8349 yes:no: )
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8355 ;;
8356 no:yes:* )
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008370 ;;
8371esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377 eval "$as_ac_Header=\$ac_header_preproc"
8378fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008379ac_res=`eval echo '${'$as_ac_Header'}'`
8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
8381echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382
8383fi
8384if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
8393
8394
8395 if test "X$prefix" = "XNONE"; then
8396 acl_final_prefix="$ac_default_prefix"
8397 else
8398 acl_final_prefix="$prefix"
8399 fi
8400 if test "X$exec_prefix" = "XNONE"; then
8401 acl_final_exec_prefix='${prefix}'
8402 else
8403 acl_final_exec_prefix="$exec_prefix"
8404 fi
8405 acl_save_prefix="$prefix"
8406 prefix="$acl_final_prefix"
8407 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8408 prefix="$acl_save_prefix"
8409
8410
Theodore Ts'oe1052142006-10-21 21:46:47 -04008411# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008412if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008413 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008414else
8415 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008416fi
8417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418# Prepare PATH_SEPARATOR.
8419# The user is always right.
8420if test "${PATH_SEPARATOR+set}" != set; then
8421 echo "#! /bin/sh" >conf$$.sh
8422 echo "exit 0" >>conf$$.sh
8423 chmod +x conf$$.sh
8424 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8425 PATH_SEPARATOR=';'
8426 else
8427 PATH_SEPARATOR=:
8428 fi
8429 rm -f conf$$.sh
8430fi
8431ac_prog=ld
8432if test "$GCC" = yes; then
8433 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008434 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8435echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008436 case $host in
8437 *-*-mingw*)
8438 # gcc leaves a trailing carriage return which upsets mingw
8439 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8440 *)
8441 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8442 esac
8443 case $ac_prog in
8444 # Accept absolute paths.
8445 [\\/]* | [A-Za-z]:[\\/]*)
8446 re_direlt='/[^/][^/]*/\.\./'
8447 # Canonicalize the path of ld
8448 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8449 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8450 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8451 done
8452 test -z "$LD" && LD="$ac_prog"
8453 ;;
8454 "")
8455 # If it fails, then pretend we aren't using GCC.
8456 ac_prog=ld
8457 ;;
8458 *)
8459 # If it is relative, then search for the first ld in PATH.
8460 with_gnu_ld=unknown
8461 ;;
8462 esac
8463elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008464 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8465echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008466else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008467 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8468echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008469fi
8470if test "${acl_cv_path_LD+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473 if test -z "$LD"; then
8474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8475 for ac_dir in $PATH; do
8476 test -z "$ac_dir" && ac_dir=.
8477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8478 acl_cv_path_LD="$ac_dir/$ac_prog"
8479 # Check to see if the program is GNU ld. I'd rather use --version,
8480 # but apparently some GNU ld's only accept -v.
8481 # Break only if it was the GNU/non-GNU ld that we prefer.
8482 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8483 *GNU* | *'with BFD'*)
8484 test "$with_gnu_ld" != no && break ;;
8485 *)
8486 test "$with_gnu_ld" != yes && break ;;
8487 esac
8488 fi
8489 done
8490 IFS="$ac_save_ifs"
8491else
8492 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8493fi
8494fi
8495
8496LD="$acl_cv_path_LD"
8497if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008498 { echo "$as_me:$LINENO: result: $LD" >&5
8499echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008500else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008501 { echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008503fi
8504test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8505echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8506 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008507{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8508echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008509if test "${acl_cv_prog_gnu_ld+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8513case `$LD -v 2>&1 </dev/null` in
8514*GNU* | *'with BFD'*)
8515 acl_cv_prog_gnu_ld=yes ;;
8516*)
8517 acl_cv_prog_gnu_ld=no ;;
8518esac
8519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008520{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8521echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008522with_gnu_ld=$acl_cv_prog_gnu_ld
8523
8524
8525
Theodore Ts'oe1052142006-10-21 21:46:47 -04008526 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8527echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528if test "${acl_cv_rpath+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530else
8531
8532 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8533 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8534 . ./conftest.sh
8535 rm -f ./conftest.sh
8536 acl_cv_rpath=done
8537
8538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008539{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8540echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008541 wl="$acl_cv_wl"
8542 libext="$acl_cv_libext"
8543 shlibext="$acl_cv_shlibext"
8544 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8545 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8546 hardcode_direct="$acl_cv_hardcode_direct"
8547 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008548 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008549if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008550 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551else
8552 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008553fi
8554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008555
8556
8557
8558
8559
8560
8561
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008562 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008563
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008564 acl_save_prefix="$prefix"
8565 prefix="$acl_final_prefix"
8566 acl_save_exec_prefix="$exec_prefix"
8567 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008568
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008569 eval additional_includedir=\"$includedir\"
8570 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008571
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008572 exec_prefix="$acl_save_exec_prefix"
8573 prefix="$acl_save_prefix"
8574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008575
Theodore Ts'oe1052142006-10-21 21:46:47 -04008576# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008577if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008578 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008579 if test "X$withval" = "Xno"; then
8580 use_additional=no
8581 else
8582 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008583
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008584 acl_save_prefix="$prefix"
8585 prefix="$acl_final_prefix"
8586 acl_save_exec_prefix="$exec_prefix"
8587 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008588
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008589 eval additional_includedir=\"$includedir\"
8590 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008591
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008592 exec_prefix="$acl_save_exec_prefix"
8593 prefix="$acl_save_prefix"
8594
8595 else
8596 additional_includedir="$withval/include"
8597 additional_libdir="$withval/lib"
8598 fi
8599 fi
8600
Theodore Ts'oe1052142006-10-21 21:46:47 -04008601fi
8602
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008603 LIBICONV=
8604 LTLIBICONV=
8605 INCICONV=
8606 rpathdirs=
8607 ltrpathdirs=
8608 names_already_handled=
8609 names_next_round='iconv '
8610 while test -n "$names_next_round"; do
8611 names_this_round="$names_next_round"
8612 names_next_round=
8613 for name in $names_this_round; do
8614 already_handled=
8615 for n in $names_already_handled; do
8616 if test "$n" = "$name"; then
8617 already_handled=yes
8618 break
8619 fi
8620 done
8621 if test -z "$already_handled"; then
8622 names_already_handled="$names_already_handled $name"
8623 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8624 eval value=\"\$HAVE_LIB$uppername\"
8625 if test -n "$value"; then
8626 if test "$value" = yes; then
8627 eval value=\"\$LIB$uppername\"
8628 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8629 eval value=\"\$LTLIB$uppername\"
8630 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8631 else
8632 :
8633 fi
8634 else
8635 found_dir=
8636 found_la=
8637 found_so=
8638 found_a=
8639 if test $use_additional = yes; then
8640 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8641 found_dir="$additional_libdir"
8642 found_so="$additional_libdir/lib$name.$shlibext"
8643 if test -f "$additional_libdir/lib$name.la"; then
8644 found_la="$additional_libdir/lib$name.la"
8645 fi
8646 else
8647 if test -f "$additional_libdir/lib$name.$libext"; then
8648 found_dir="$additional_libdir"
8649 found_a="$additional_libdir/lib$name.$libext"
8650 if test -f "$additional_libdir/lib$name.la"; then
8651 found_la="$additional_libdir/lib$name.la"
8652 fi
8653 fi
8654 fi
8655 fi
8656 if test "X$found_dir" = "X"; then
8657 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008658
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008659 acl_save_prefix="$prefix"
8660 prefix="$acl_final_prefix"
8661 acl_save_exec_prefix="$exec_prefix"
8662 exec_prefix="$acl_final_exec_prefix"
8663 eval x=\"$x\"
8664 exec_prefix="$acl_save_exec_prefix"
8665 prefix="$acl_save_prefix"
8666
8667 case "$x" in
8668 -L*)
8669 dir=`echo "X$x" | sed -e 's/^X-L//'`
8670 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8671 found_dir="$dir"
8672 found_so="$dir/lib$name.$shlibext"
8673 if test -f "$dir/lib$name.la"; then
8674 found_la="$dir/lib$name.la"
8675 fi
8676 else
8677 if test -f "$dir/lib$name.$libext"; then
8678 found_dir="$dir"
8679 found_a="$dir/lib$name.$libext"
8680 if test -f "$dir/lib$name.la"; then
8681 found_la="$dir/lib$name.la"
8682 fi
8683 fi
8684 fi
8685 ;;
8686 esac
8687 if test "X$found_dir" != "X"; then
8688 break
8689 fi
8690 done
8691 fi
8692 if test "X$found_dir" != "X"; then
8693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8694 if test "X$found_so" != "X"; then
8695 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8697 else
8698 haveit=
8699 for x in $ltrpathdirs; do
8700 if test "X$x" = "X$found_dir"; then
8701 haveit=yes
8702 break
8703 fi
8704 done
8705 if test -z "$haveit"; then
8706 ltrpathdirs="$ltrpathdirs $found_dir"
8707 fi
8708 if test "$hardcode_direct" = yes; then
8709 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8710 else
8711 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8712 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8713 haveit=
8714 for x in $rpathdirs; do
8715 if test "X$x" = "X$found_dir"; then
8716 haveit=yes
8717 break
8718 fi
8719 done
8720 if test -z "$haveit"; then
8721 rpathdirs="$rpathdirs $found_dir"
8722 fi
8723 else
8724 haveit=
8725 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008726
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008727 acl_save_prefix="$prefix"
8728 prefix="$acl_final_prefix"
8729 acl_save_exec_prefix="$exec_prefix"
8730 exec_prefix="$acl_final_exec_prefix"
8731 eval x=\"$x\"
8732 exec_prefix="$acl_save_exec_prefix"
8733 prefix="$acl_save_prefix"
8734
8735 if test "X$x" = "X-L$found_dir"; then
8736 haveit=yes
8737 break
8738 fi
8739 done
8740 if test -z "$haveit"; then
8741 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8742 fi
8743 if test "$hardcode_minus_L" != no; then
8744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8745 else
8746 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8747 fi
8748 fi
8749 fi
8750 fi
8751 else
8752 if test "X$found_a" != "X"; then
8753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8754 else
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8756 fi
8757 fi
8758 additional_includedir=
8759 case "$found_dir" in
8760 */lib | */lib/)
8761 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8762 additional_includedir="$basedir/include"
8763 ;;
8764 esac
8765 if test "X$additional_includedir" != "X"; then
8766 if test "X$additional_includedir" != "X/usr/include"; then
8767 haveit=
8768 if test "X$additional_includedir" = "X/usr/local/include"; then
8769 if test -n "$GCC"; then
8770 case $host_os in
8771 linux*) haveit=yes;;
8772 esac
8773 fi
8774 fi
8775 if test -z "$haveit"; then
8776 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008777
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008778 acl_save_prefix="$prefix"
8779 prefix="$acl_final_prefix"
8780 acl_save_exec_prefix="$exec_prefix"
8781 exec_prefix="$acl_final_exec_prefix"
8782 eval x=\"$x\"
8783 exec_prefix="$acl_save_exec_prefix"
8784 prefix="$acl_save_prefix"
8785
8786 if test "X$x" = "X-I$additional_includedir"; then
8787 haveit=yes
8788 break
8789 fi
8790 done
8791 if test -z "$haveit"; then
8792 if test -d "$additional_includedir"; then
8793 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8794 fi
8795 fi
8796 fi
8797 fi
8798 fi
8799 if test -n "$found_la"; then
8800 save_libdir="$libdir"
8801 case "$found_la" in
8802 */* | *\\*) . "$found_la" ;;
8803 *) . "./$found_la" ;;
8804 esac
8805 libdir="$save_libdir"
8806 for dep in $dependency_libs; do
8807 case "$dep" in
8808 -L*)
8809 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8810 if test "X$additional_libdir" != "X/usr/lib"; then
8811 haveit=
8812 if test "X$additional_libdir" = "X/usr/local/lib"; then
8813 if test -n "$GCC"; then
8814 case $host_os in
8815 linux*) haveit=yes;;
8816 esac
8817 fi
8818 fi
8819 if test -z "$haveit"; then
8820 haveit=
8821 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008822
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008823 acl_save_prefix="$prefix"
8824 prefix="$acl_final_prefix"
8825 acl_save_exec_prefix="$exec_prefix"
8826 exec_prefix="$acl_final_exec_prefix"
8827 eval x=\"$x\"
8828 exec_prefix="$acl_save_exec_prefix"
8829 prefix="$acl_save_prefix"
8830
8831 if test "X$x" = "X-L$additional_libdir"; then
8832 haveit=yes
8833 break
8834 fi
8835 done
8836 if test -z "$haveit"; then
8837 if test -d "$additional_libdir"; then
8838 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8839 fi
8840 fi
8841 haveit=
8842 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008843
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008844 acl_save_prefix="$prefix"
8845 prefix="$acl_final_prefix"
8846 acl_save_exec_prefix="$exec_prefix"
8847 exec_prefix="$acl_final_exec_prefix"
8848 eval x=\"$x\"
8849 exec_prefix="$acl_save_exec_prefix"
8850 prefix="$acl_save_prefix"
8851
8852 if test "X$x" = "X-L$additional_libdir"; then
8853 haveit=yes
8854 break
8855 fi
8856 done
8857 if test -z "$haveit"; then
8858 if test -d "$additional_libdir"; then
8859 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8860 fi
8861 fi
8862 fi
8863 fi
8864 ;;
8865 -R*)
8866 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8867 if test "$enable_rpath" != no; then
8868 haveit=
8869 for x in $rpathdirs; do
8870 if test "X$x" = "X$dir"; then
8871 haveit=yes
8872 break
8873 fi
8874 done
8875 if test -z "$haveit"; then
8876 rpathdirs="$rpathdirs $dir"
8877 fi
8878 haveit=
8879 for x in $ltrpathdirs; do
8880 if test "X$x" = "X$dir"; then
8881 haveit=yes
8882 break
8883 fi
8884 done
8885 if test -z "$haveit"; then
8886 ltrpathdirs="$ltrpathdirs $dir"
8887 fi
8888 fi
8889 ;;
8890 -l*)
8891 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8892 ;;
8893 *.la)
8894 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8895 ;;
8896 *)
8897 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8899 ;;
8900 esac
8901 done
8902 fi
8903 else
8904 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8905 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8906 fi
8907 fi
8908 fi
8909 done
8910 done
8911 if test "X$rpathdirs" != "X"; then
8912 if test -n "$hardcode_libdir_separator"; then
8913 alldirs=
8914 for found_dir in $rpathdirs; do
8915 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8916 done
8917 acl_save_libdir="$libdir"
8918 libdir="$alldirs"
8919 eval flag=\"$hardcode_libdir_flag_spec\"
8920 libdir="$acl_save_libdir"
8921 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8922 else
8923 for found_dir in $rpathdirs; do
8924 acl_save_libdir="$libdir"
8925 libdir="$found_dir"
8926 eval flag=\"$hardcode_libdir_flag_spec\"
8927 libdir="$acl_save_libdir"
8928 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8929 done
8930 fi
8931 fi
8932 if test "X$ltrpathdirs" != "X"; then
8933 for found_dir in $ltrpathdirs; do
8934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8935 done
8936 fi
8937
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008938
8939
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008941
8942
8943
8944
Theodore Ts'oe1052142006-10-21 21:46:47 -04008945 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8946echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008947if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008949else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008950 cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008957typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008958int
8959main ()
8960{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008961if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008962 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008963if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008964 return 0;
8965 ;
8966 return 0;
8967}
8968_ACEOF
8969rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008970if { (ac_try="$ac_compile"
8971case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
8975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008986 ac_cv_type_ptrdiff_t=yes
8987else
8988 echo "$as_me: failed program was:" >&5
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
Theodore Ts'oe1052142006-10-21 21:46:47 -04008991 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008992fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008993
8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008996{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8997echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008998if test $ac_cv_type_ptrdiff_t = yes; then
8999 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009000else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009001
9002cat >>confdefs.h <<\_ACEOF
9003#define ptrdiff_t long
9004_ACEOF
9005
9006
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009007fi
9008
9009
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009010
9011
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009012
9013
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009014
9015
9016
9017
9018
9019for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009020stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009021do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009027 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009028fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009029ac_res=`eval echo '${'$as_ac_Header'}'`
9030 { echo "$as_me:$LINENO: result: $ac_res" >&5
9031echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009032else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009033 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009034{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009036cat >conftest.$ac_ext <<_ACEOF
9037/* confdefs.h. */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
9041/* end confdefs.h. */
9042$ac_includes_default
9043#include <$ac_header>
9044_ACEOF
9045rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009046if { (ac_try="$ac_compile"
9047case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050esac
9051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009058 (exit $ac_status); } && {
9059 test -z "$ac_c_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062 ac_header_compiler=yes
9063else
9064 echo "$as_me: failed program was:" >&5
9065sed 's/^/| /' conftest.$ac_ext >&5
9066
Theodore Ts'oe1052142006-10-21 21:46:47 -04009067 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009069
9070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9072echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009073
9074# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009077cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h. */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h. */
9083#include <$ac_header>
9084_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009085if { (ac_try="$ac_cpp conftest.$ac_ext"
9086case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9089esac
9090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009092 ac_status=$?
9093 grep -v '^ *+' conftest.er1 >conftest.err
9094 rm -f conftest.er1
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009097 (exit $ac_status); } >/dev/null && {
9098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9100 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009101 ac_header_preproc=yes
9102else
9103 echo "$as_me: failed program was:" >&5
9104sed 's/^/| /' conftest.$ac_ext >&5
9105
9106 ac_header_preproc=no
9107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009108
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009109rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009110{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9111echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009112
9113# So? What about this header?
9114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9115 yes:no: )
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9120 ac_header_preproc=yes
9121 ;;
9122 no:yes:* )
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009136 ;;
9137esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009138{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009141 echo $ECHO_N "(cached) $ECHO_C" >&6
9142else
9143 eval "$as_ac_Header=\$ac_header_preproc"
9144fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009145ac_res=`eval echo '${'$as_ac_Header'}'`
9146 { echo "$as_me:$LINENO: result: $ac_res" >&5
9147echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009148
9149fi
9150if test `eval echo '${'$as_ac_Header'}'` = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9153_ACEOF
9154
9155fi
9156
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009157done
9158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9183mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9184strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9185__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009186do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009188{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009191 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009192else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009193 cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
9199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9201#define $ac_func innocuous_$ac_func
9202
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009203/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009204 which can conflict with char $ac_func (); below.
9205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206 <limits.h> exists even on freestanding compilers. */
9207
9208#ifdef __STDC__
9209# include <limits.h>
9210#else
9211# include <assert.h>
9212#endif
9213
9214#undef $ac_func
9215
Theodore Ts'oe1052142006-10-21 21:46:47 -04009216/* Override any GCC internal prototype to avoid an error.
9217 Use char because int might match the return type of a GCC
9218 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009219#ifdef __cplusplus
9220extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009221#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009223/* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009226#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009227choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009228#endif
9229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009230int
9231main ()
9232{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009233return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009234 ;
9235 return 0;
9236}
9237_ACEOF
9238rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009239if { (ac_try="$ac_link"
9240case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243esac
9244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009251 (exit $ac_status); } && {
9252 test -z "$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9254 } && test -s conftest$ac_exeext &&
9255 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009256 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009257else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258 echo "$as_me: failed program was:" >&5
9259sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009260
Theodore Ts'oe1052142006-10-21 21:46:47 -04009261 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009263
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009265 conftest$ac_exeext conftest.$ac_ext
9266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009267ac_res=`eval echo '${'$as_ac_var'}'`
9268 { echo "$as_me:$LINENO: result: $ac_res" >&5
9269echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270if test `eval echo '${'$as_ac_var'}'` = yes; then
9271 cat >>confdefs.h <<_ACEOF
9272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9273_ACEOF
9274
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009275fi
9276done
9277
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279
Theodore Ts'oe1052142006-10-21 21:46:47 -04009280 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9281echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009282if test "${ac_cv_have_decl__snprintf+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284else
9285 cat >conftest.$ac_ext <<_ACEOF
9286/* confdefs.h. */
9287_ACEOF
9288cat confdefs.h >>conftest.$ac_ext
9289cat >>conftest.$ac_ext <<_ACEOF
9290/* end confdefs.h. */
9291#include <stdio.h>
9292int
9293main ()
9294{
9295
9296#ifndef _snprintf
9297 char *p = (char *) _snprintf;
9298#endif
9299
9300 ;
9301 return 0;
9302}
9303_ACEOF
9304rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009305if { (ac_try="$ac_compile"
9306case "(($ac_try" in
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9309esac
9310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009321 ac_cv_have_decl__snprintf=yes
9322else
9323 echo "$as_me: failed program was:" >&5
9324sed 's/^/| /' conftest.$ac_ext >&5
9325
Theodore Ts'oe1052142006-10-21 21:46:47 -04009326 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009327fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009328
9329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009330fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009331{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9332echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009333 if test $ac_cv_have_decl__snprintf = yes; then
9334 gt_value=1
9335 else
9336 gt_value=0
9337 fi
9338
9339cat >>confdefs.h <<_ACEOF
9340#define HAVE_DECL__SNPRINTF $gt_value
9341_ACEOF
9342
9343
9344
Theodore Ts'oe1052142006-10-21 21:46:47 -04009345 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9346echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350 cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356#include <stdio.h>
9357int
9358main ()
9359{
9360
9361#ifndef _snwprintf
9362 char *p = (char *) _snwprintf;
9363#endif
9364
9365 ;
9366 return 0;
9367}
9368_ACEOF
9369rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009370if { (ac_try="$ac_compile"
9371case "(($ac_try" in
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9374esac
9375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009386 ac_cv_have_decl__snwprintf=yes
9387else
9388 echo "$as_me: failed program was:" >&5
9389sed 's/^/| /' conftest.$ac_ext >&5
9390
Theodore Ts'oe1052142006-10-21 21:46:47 -04009391 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009392fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009393
9394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009395fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009396{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9397echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009398 if test $ac_cv_have_decl__snwprintf = yes; then
9399 gt_value=1
9400 else
9401 gt_value=0
9402 fi
9403
9404cat >>confdefs.h <<_ACEOF
9405#define HAVE_DECL__SNWPRINTF $gt_value
9406_ACEOF
9407
9408
9409
9410
Theodore Ts'oe1052142006-10-21 21:46:47 -04009411 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9412echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009413if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415else
9416 cat >conftest.$ac_ext <<_ACEOF
9417/* confdefs.h. */
9418_ACEOF
9419cat confdefs.h >>conftest.$ac_ext
9420cat >>conftest.$ac_ext <<_ACEOF
9421/* end confdefs.h. */
9422#include <stdio.h>
9423int
9424main ()
9425{
9426
9427#ifndef feof_unlocked
9428 char *p = (char *) feof_unlocked;
9429#endif
9430
9431 ;
9432 return 0;
9433}
9434_ACEOF
9435rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009436if { (ac_try="$ac_compile"
9437case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440esac
9441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009448 (exit $ac_status); } && {
9449 test -z "$ac_c_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009452 ac_cv_have_decl_feof_unlocked=yes
9453else
9454 echo "$as_me: failed program was:" >&5
9455sed 's/^/| /' conftest.$ac_ext >&5
9456
Theodore Ts'oe1052142006-10-21 21:46:47 -04009457 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009458fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009459
9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009461fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009462{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9463echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009464 if test $ac_cv_have_decl_feof_unlocked = yes; then
9465 gt_value=1
9466 else
9467 gt_value=0
9468 fi
9469
9470cat >>confdefs.h <<_ACEOF
9471#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9472_ACEOF
9473
9474
9475
Theodore Ts'oe1052142006-10-21 21:46:47 -04009476 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9477echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009478if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480else
9481 cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h. */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */
9487#include <stdio.h>
9488int
9489main ()
9490{
9491
9492#ifndef fgets_unlocked
9493 char *p = (char *) fgets_unlocked;
9494#endif
9495
9496 ;
9497 return 0;
9498}
9499_ACEOF
9500rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009501if { (ac_try="$ac_compile"
9502case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505esac
9506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009513 (exit $ac_status); } && {
9514 test -z "$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517 ac_cv_have_decl_fgets_unlocked=yes
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
Theodore Ts'oe1052142006-10-21 21:46:47 -04009522 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009524
9525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009527{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9528echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9530 gt_value=1
9531 else
9532 gt_value=0
9533 fi
9534
9535cat >>confdefs.h <<_ACEOF
9536#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9537_ACEOF
9538
9539
9540
Theodore Ts'oe1052142006-10-21 21:46:47 -04009541 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9542echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009543if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545else
9546 cat >conftest.$ac_ext <<_ACEOF
9547/* confdefs.h. */
9548_ACEOF
9549cat confdefs.h >>conftest.$ac_ext
9550cat >>conftest.$ac_ext <<_ACEOF
9551/* end confdefs.h. */
9552#include <stdio.h>
9553int
9554main ()
9555{
9556
9557#ifndef getc_unlocked
9558 char *p = (char *) getc_unlocked;
9559#endif
9560
9561 ;
9562 return 0;
9563}
9564_ACEOF
9565rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009566if { (ac_try="$ac_compile"
9567case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570esac
9571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582 ac_cv_have_decl_getc_unlocked=yes
9583else
9584 echo "$as_me: failed program was:" >&5
9585sed 's/^/| /' conftest.$ac_ext >&5
9586
Theodore Ts'oe1052142006-10-21 21:46:47 -04009587 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009589
9590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009592{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9593echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594 if test $ac_cv_have_decl_getc_unlocked = yes; then
9595 gt_value=1
9596 else
9597 gt_value=0
9598 fi
9599
9600cat >>confdefs.h <<_ACEOF
9601#define HAVE_DECL_GETC_UNLOCKED $gt_value
9602_ACEOF
9603
9604
9605
9606 case $gt_cv_func_printf_posix in
9607 *yes) HAVE_POSIX_PRINTF=1 ;;
9608 *) HAVE_POSIX_PRINTF=0 ;;
9609 esac
9610
9611 if test "$ac_cv_func_asprintf" = yes; then
9612 HAVE_ASPRINTF=1
9613 else
9614 HAVE_ASPRINTF=0
9615 fi
9616
9617 if test "$ac_cv_func_snprintf" = yes; then
9618 HAVE_SNPRINTF=1
9619 else
9620 HAVE_SNPRINTF=0
9621 fi
9622
9623 if test "$ac_cv_func_wprintf" = yes; then
9624 HAVE_WPRINTF=1
9625 else
9626 HAVE_WPRINTF=0
9627 fi
9628
9629
9630
9631
9632
9633
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009634
9635 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009637 for element in $INCICONV; do
9638 haveit=
9639 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009641 acl_save_prefix="$prefix"
9642 prefix="$acl_final_prefix"
9643 acl_save_exec_prefix="$exec_prefix"
9644 exec_prefix="$acl_final_exec_prefix"
9645 eval x=\"$x\"
9646 exec_prefix="$acl_save_exec_prefix"
9647 prefix="$acl_save_prefix"
9648
9649 if test "X$x" = "X$element"; then
9650 haveit=yes
9651 break
9652 fi
9653 done
9654 if test -z "$haveit"; then
9655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9656 fi
9657 done
9658
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009659
Theodore Ts'oe1052142006-10-21 21:46:47 -04009660 { echo "$as_me:$LINENO: checking for iconv" >&5
9661echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009662if test "${am_cv_func_iconv+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009664else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009665
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009666 am_cv_func_iconv="no, consider installing GNU libiconv"
9667 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009668 cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h. */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009674#include <stdlib.h>
9675#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009676int
9677main ()
9678{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009679iconv_t cd = iconv_open("","");
9680 iconv(cd,NULL,NULL,NULL,NULL);
9681 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009682 ;
9683 return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009687if { (ac_try="$ac_link"
9688case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691esac
9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009699 (exit $ac_status); } && {
9700 test -z "$ac_c_werror_flag" ||
9701 test ! -s conftest.err
9702 } && test -s conftest$ac_exeext &&
9703 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009704 am_cv_func_iconv=yes
9705else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009706 echo "$as_me: failed program was:" >&5
9707sed 's/^/| /' conftest.$ac_ext >&5
9708
Theodore Ts'oe1052142006-10-21 21:46:47 -04009709
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009710fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009711
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009713 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009714 if test "$am_cv_func_iconv" != yes; then
9715 am_save_LIBS="$LIBS"
9716 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717 cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h. */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009723#include <stdlib.h>
9724#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009725int
9726main ()
9727{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009728iconv_t cd = iconv_open("","");
9729 iconv(cd,NULL,NULL,NULL,NULL);
9730 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009731 ;
9732 return 0;
9733}
9734_ACEOF
9735rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009736if { (ac_try="$ac_link"
9737case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740esac
9741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009748 (exit $ac_status); } && {
9749 test -z "$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest$ac_exeext &&
9752 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009753 am_cv_lib_iconv=yes
9754 am_cv_func_iconv=yes
9755else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
Theodore Ts'oe1052142006-10-21 21:46:47 -04009759
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009760fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009763 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009764 LIBS="$am_save_LIBS"
9765 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009767fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009768{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9769echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009770 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009771
9772cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009773#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009774_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009775
9776 fi
9777 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009778 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9779echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9780 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9781echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009782 else
9783 CPPFLAGS="$am_save_CPPFLAGS"
9784 LIBICONV=
9785 LTLIBICONV=
9786 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009787
9788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009789
9790 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009791 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9792echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793 if test "${am_cv_proto_iconv+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009795else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796
9797 cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h. */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009803
9804#include <stdlib.h>
9805#include <iconv.h>
9806extern
9807#ifdef __cplusplus
9808"C"
9809#endif
9810#if defined(__STDC__) || defined(__cplusplus)
9811size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9812#else
9813size_t iconv();
9814#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009816int
9817main ()
9818{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009819
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820 ;
9821 return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009825if { (ac_try="$ac_compile"
9826case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
9830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009841 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009842else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
Theodore Ts'oe1052142006-10-21 21:46:47 -04009846 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009847fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009848
9849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009850 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 +00009851fi
9852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009853 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009854 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009855 }$am_cv_proto_iconv" >&5
9856echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009858
9859cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009860#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009861_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009862
9863 fi
9864
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009865
Theodore Ts'oe1052142006-10-21 21:46:47 -04009866 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9867echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009868if test "${am_cv_langinfo_codeset+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009871 cat >conftest.$ac_ext <<_ACEOF
9872/* confdefs.h. */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
9876/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009877#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009878int
9879main ()
9880{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009881char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009882 ;
9883 return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009887if { (ac_try="$ac_link"
9888case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009899 (exit $ac_status); } && {
9900 test -z "$ac_c_werror_flag" ||
9901 test ! -s conftest.err
9902 } && test -s conftest$ac_exeext &&
9903 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009904 am_cv_langinfo_codeset=yes
9905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906 echo "$as_me: failed program was:" >&5
9907sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009908
Theodore Ts'oe1052142006-10-21 21:46:47 -04009909 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009911
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009913 conftest$ac_exeext conftest.$ac_ext
9914
9915fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009916{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9917echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009918 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009919
9920cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009921#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009923
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009924 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009925
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009926 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009927
Theodore Ts'oe1052142006-10-21 21:46:47 -04009928 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9929echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009930if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009932else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009933 cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009939#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009940int
9941main ()
9942{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009943return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009944 ;
9945 return 0;
9946}
9947_ACEOF
9948rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009949if { (ac_try="$ac_link"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext &&
9965 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009966 am_cv_val_LC_MESSAGES=yes
9967else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009970
Theodore Ts'oe1052142006-10-21 21:46:47 -04009971 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009973
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975 conftest$ac_exeext conftest.$ac_ext
9976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009977{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9978echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009979 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009980
9981cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009982#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009983_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009984
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009985 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009986
9987 fi
9988
9989 for ac_prog in bison
9990do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009991 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009992set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009995if test "${ac_cv_prog_INTLBISON+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009997else
9998 if test -n "$INTLBISON"; then
9999 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10000else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002for as_dir in $PATH
10003do
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010007 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 -050010008 ac_cv_prog_INTLBISON="$ac_prog"
10009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10011 fi
10012done
10013done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010014IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010016fi
10017fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010018INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010019if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010020 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10021echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010022else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010023 { echo "$as_me:$LINENO: result: no" >&5
10024echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010025fi
10026
Theodore Ts'oe1052142006-10-21 21:46:47 -040010027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010028 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010029done
10030
10031 if test -z "$INTLBISON"; then
10032 ac_verc_fail=yes
10033 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010034 { echo "$as_me:$LINENO: checking version of bison" >&5
10035echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010036 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10037 case $ac_prog_version in
10038 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10039 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10040 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10041 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10042 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10044echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010045 fi
10046 if test $ac_verc_fail = yes; then
10047 INTLBISON=:
10048 fi
10049
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010050
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010051
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010052
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010053
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010054
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010055
10056
10057
10058
10059
10060
10061
10062
10063
10064
Theodore Ts'oe1052142006-10-21 21:46:47 -040010065 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10066echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10067 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010068if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010069 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010070else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010071 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010072fi
10073
10074 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10075echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010076
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010078
10079
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010080 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010081 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010083 LIBINTL=
10084 LTLIBINTL=
10085 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010086
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010087 if test "$USE_NLS" = "yes"; then
10088 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010089
Theodore Ts'oe1052142006-10-21 21:46:47 -040010090 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10091echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010092
Theodore Ts'oe1052142006-10-21 21:46:47 -040010093# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010094if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010095 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010096else
10097 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010098fi
10099
10100 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10101echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010102
10103 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10104 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010106
10107
10108
10109
10110
Theodore Ts'oe1052142006-10-21 21:46:47 -040010111 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10112echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010113if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010115else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010116 cat >conftest.$ac_ext <<_ACEOF
10117/* confdefs.h. */
10118_ACEOF
10119cat confdefs.h >>conftest.$ac_ext
10120cat >>conftest.$ac_ext <<_ACEOF
10121/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010122#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010123extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010124extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010125int
10126main ()
10127{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010128bindtextdomain ("", "");
10129return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010130 ;
10131 return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010135if { (ac_try="$ac_link"
10136case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest$ac_exeext &&
10151 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010152 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010153else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010154 echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010156
Theodore Ts'oe1052142006-10-21 21:46:47 -040010157 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010158fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010159
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010161 conftest$ac_exeext conftest.$ac_ext
10162fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010163{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10164echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010165
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010166 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010167
10168
10169
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010170 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010171
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010172 acl_save_prefix="$prefix"
10173 prefix="$acl_final_prefix"
10174 acl_save_exec_prefix="$exec_prefix"
10175 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010176
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010177 eval additional_includedir=\"$includedir\"
10178 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010179
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010180 exec_prefix="$acl_save_exec_prefix"
10181 prefix="$acl_save_prefix"
10182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010183
Theodore Ts'oe1052142006-10-21 21:46:47 -040010184# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010185if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010186 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010187 if test "X$withval" = "Xno"; then
10188 use_additional=no
10189 else
10190 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010191
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010192 acl_save_prefix="$prefix"
10193 prefix="$acl_final_prefix"
10194 acl_save_exec_prefix="$exec_prefix"
10195 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010197 eval additional_includedir=\"$includedir\"
10198 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010199
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010200 exec_prefix="$acl_save_exec_prefix"
10201 prefix="$acl_save_prefix"
10202
10203 else
10204 additional_includedir="$withval/include"
10205 additional_libdir="$withval/lib"
10206 fi
10207 fi
10208
Theodore Ts'oe1052142006-10-21 21:46:47 -040010209fi
10210
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010211 LIBINTL=
10212 LTLIBINTL=
10213 INCINTL=
10214 rpathdirs=
10215 ltrpathdirs=
10216 names_already_handled=
10217 names_next_round='intl '
10218 while test -n "$names_next_round"; do
10219 names_this_round="$names_next_round"
10220 names_next_round=
10221 for name in $names_this_round; do
10222 already_handled=
10223 for n in $names_already_handled; do
10224 if test "$n" = "$name"; then
10225 already_handled=yes
10226 break
10227 fi
10228 done
10229 if test -z "$already_handled"; then
10230 names_already_handled="$names_already_handled $name"
10231 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10232 eval value=\"\$HAVE_LIB$uppername\"
10233 if test -n "$value"; then
10234 if test "$value" = yes; then
10235 eval value=\"\$LIB$uppername\"
10236 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10237 eval value=\"\$LTLIB$uppername\"
10238 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10239 else
10240 :
10241 fi
10242 else
10243 found_dir=
10244 found_la=
10245 found_so=
10246 found_a=
10247 if test $use_additional = yes; then
10248 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10249 found_dir="$additional_libdir"
10250 found_so="$additional_libdir/lib$name.$shlibext"
10251 if test -f "$additional_libdir/lib$name.la"; then
10252 found_la="$additional_libdir/lib$name.la"
10253 fi
10254 else
10255 if test -f "$additional_libdir/lib$name.$libext"; then
10256 found_dir="$additional_libdir"
10257 found_a="$additional_libdir/lib$name.$libext"
10258 if test -f "$additional_libdir/lib$name.la"; then
10259 found_la="$additional_libdir/lib$name.la"
10260 fi
10261 fi
10262 fi
10263 fi
10264 if test "X$found_dir" = "X"; then
10265 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010266
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010267 acl_save_prefix="$prefix"
10268 prefix="$acl_final_prefix"
10269 acl_save_exec_prefix="$exec_prefix"
10270 exec_prefix="$acl_final_exec_prefix"
10271 eval x=\"$x\"
10272 exec_prefix="$acl_save_exec_prefix"
10273 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010274
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010275 case "$x" in
10276 -L*)
10277 dir=`echo "X$x" | sed -e 's/^X-L//'`
10278 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10279 found_dir="$dir"
10280 found_so="$dir/lib$name.$shlibext"
10281 if test -f "$dir/lib$name.la"; then
10282 found_la="$dir/lib$name.la"
10283 fi
10284 else
10285 if test -f "$dir/lib$name.$libext"; then
10286 found_dir="$dir"
10287 found_a="$dir/lib$name.$libext"
10288 if test -f "$dir/lib$name.la"; then
10289 found_la="$dir/lib$name.la"
10290 fi
10291 fi
10292 fi
10293 ;;
10294 esac
10295 if test "X$found_dir" != "X"; then
10296 break
10297 fi
10298 done
10299 fi
10300 if test "X$found_dir" != "X"; then
10301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10302 if test "X$found_so" != "X"; then
10303 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10304 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10305 else
10306 haveit=
10307 for x in $ltrpathdirs; do
10308 if test "X$x" = "X$found_dir"; then
10309 haveit=yes
10310 break
10311 fi
10312 done
10313 if test -z "$haveit"; then
10314 ltrpathdirs="$ltrpathdirs $found_dir"
10315 fi
10316 if test "$hardcode_direct" = yes; then
10317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10318 else
10319 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10321 haveit=
10322 for x in $rpathdirs; do
10323 if test "X$x" = "X$found_dir"; then
10324 haveit=yes
10325 break
10326 fi
10327 done
10328 if test -z "$haveit"; then
10329 rpathdirs="$rpathdirs $found_dir"
10330 fi
10331 else
10332 haveit=
10333 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010334
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010335 acl_save_prefix="$prefix"
10336 prefix="$acl_final_prefix"
10337 acl_save_exec_prefix="$exec_prefix"
10338 exec_prefix="$acl_final_exec_prefix"
10339 eval x=\"$x\"
10340 exec_prefix="$acl_save_exec_prefix"
10341 prefix="$acl_save_prefix"
10342
10343 if test "X$x" = "X-L$found_dir"; then
10344 haveit=yes
10345 break
10346 fi
10347 done
10348 if test -z "$haveit"; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10350 fi
10351 if test "$hardcode_minus_L" != no; then
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10353 else
10354 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10355 fi
10356 fi
10357 fi
10358 fi
10359 else
10360 if test "X$found_a" != "X"; then
10361 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10362 else
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10364 fi
10365 fi
10366 additional_includedir=
10367 case "$found_dir" in
10368 */lib | */lib/)
10369 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10370 additional_includedir="$basedir/include"
10371 ;;
10372 esac
10373 if test "X$additional_includedir" != "X"; then
10374 if test "X$additional_includedir" != "X/usr/include"; then
10375 haveit=
10376 if test "X$additional_includedir" = "X/usr/local/include"; then
10377 if test -n "$GCC"; then
10378 case $host_os in
10379 linux*) haveit=yes;;
10380 esac
10381 fi
10382 fi
10383 if test -z "$haveit"; then
10384 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010385
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10390 eval x=\"$x\"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10393
10394 if test "X$x" = "X-I$additional_includedir"; then
10395 haveit=yes
10396 break
10397 fi
10398 done
10399 if test -z "$haveit"; then
10400 if test -d "$additional_includedir"; then
10401 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10402 fi
10403 fi
10404 fi
10405 fi
10406 fi
10407 if test -n "$found_la"; then
10408 save_libdir="$libdir"
10409 case "$found_la" in
10410 */* | *\\*) . "$found_la" ;;
10411 *) . "./$found_la" ;;
10412 esac
10413 libdir="$save_libdir"
10414 for dep in $dependency_libs; do
10415 case "$dep" in
10416 -L*)
10417 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10418 if test "X$additional_libdir" != "X/usr/lib"; then
10419 haveit=
10420 if test "X$additional_libdir" = "X/usr/local/lib"; then
10421 if test -n "$GCC"; then
10422 case $host_os in
10423 linux*) haveit=yes;;
10424 esac
10425 fi
10426 fi
10427 if test -z "$haveit"; then
10428 haveit=
10429 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010431 acl_save_prefix="$prefix"
10432 prefix="$acl_final_prefix"
10433 acl_save_exec_prefix="$exec_prefix"
10434 exec_prefix="$acl_final_exec_prefix"
10435 eval x=\"$x\"
10436 exec_prefix="$acl_save_exec_prefix"
10437 prefix="$acl_save_prefix"
10438
10439 if test "X$x" = "X-L$additional_libdir"; then
10440 haveit=yes
10441 break
10442 fi
10443 done
10444 if test -z "$haveit"; then
10445 if test -d "$additional_libdir"; then
10446 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10447 fi
10448 fi
10449 haveit=
10450 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010451
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010452 acl_save_prefix="$prefix"
10453 prefix="$acl_final_prefix"
10454 acl_save_exec_prefix="$exec_prefix"
10455 exec_prefix="$acl_final_exec_prefix"
10456 eval x=\"$x\"
10457 exec_prefix="$acl_save_exec_prefix"
10458 prefix="$acl_save_prefix"
10459
10460 if test "X$x" = "X-L$additional_libdir"; then
10461 haveit=yes
10462 break
10463 fi
10464 done
10465 if test -z "$haveit"; then
10466 if test -d "$additional_libdir"; then
10467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10468 fi
10469 fi
10470 fi
10471 fi
10472 ;;
10473 -R*)
10474 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10475 if test "$enable_rpath" != no; then
10476 haveit=
10477 for x in $rpathdirs; do
10478 if test "X$x" = "X$dir"; then
10479 haveit=yes
10480 break
10481 fi
10482 done
10483 if test -z "$haveit"; then
10484 rpathdirs="$rpathdirs $dir"
10485 fi
10486 haveit=
10487 for x in $ltrpathdirs; do
10488 if test "X$x" = "X$dir"; then
10489 haveit=yes
10490 break
10491 fi
10492 done
10493 if test -z "$haveit"; then
10494 ltrpathdirs="$ltrpathdirs $dir"
10495 fi
10496 fi
10497 ;;
10498 -l*)
10499 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10500 ;;
10501 *.la)
10502 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10503 ;;
10504 *)
10505 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10506 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10507 ;;
10508 esac
10509 done
10510 fi
10511 else
10512 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10513 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10514 fi
10515 fi
10516 fi
10517 done
10518 done
10519 if test "X$rpathdirs" != "X"; then
10520 if test -n "$hardcode_libdir_separator"; then
10521 alldirs=
10522 for found_dir in $rpathdirs; do
10523 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10524 done
10525 acl_save_libdir="$libdir"
10526 libdir="$alldirs"
10527 eval flag=\"$hardcode_libdir_flag_spec\"
10528 libdir="$acl_save_libdir"
10529 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10530 else
10531 for found_dir in $rpathdirs; do
10532 acl_save_libdir="$libdir"
10533 libdir="$found_dir"
10534 eval flag=\"$hardcode_libdir_flag_spec\"
10535 libdir="$acl_save_libdir"
10536 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10537 done
10538 fi
10539 fi
10540 if test "X$ltrpathdirs" != "X"; then
10541 for found_dir in $ltrpathdirs; do
10542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10543 done
10544 fi
10545
Theodore Ts'oe1052142006-10-21 21:46:47 -040010546 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10547echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010548if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010550else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010551 gt_save_CPPFLAGS="$CPPFLAGS"
10552 CPPFLAGS="$CPPFLAGS $INCINTL"
10553 gt_save_LIBS="$LIBS"
10554 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555 cat >conftest.$ac_ext <<_ACEOF
10556/* confdefs.h. */
10557_ACEOF
10558cat confdefs.h >>conftest.$ac_ext
10559cat >>conftest.$ac_ext <<_ACEOF
10560/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010561#include <libintl.h>
10562extern int _nl_msg_cat_cntr;
10563extern
10564#ifdef __cplusplus
10565"C"
10566#endif
10567const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010568int
10569main ()
10570{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010571bindtextdomain ("", "");
10572return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010573 ;
10574 return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010578if { (ac_try="$ac_link"
10579case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582esac
10583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010585 ac_status=$?
10586 grep -v '^ *+' conftest.er1 >conftest.err
10587 rm -f conftest.er1
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest$ac_exeext &&
10594 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010595 gt_cv_func_gnugettext1_libintl=yes
10596else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597 echo "$as_me: failed program was:" >&5
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
Theodore Ts'oe1052142006-10-21 21:46:47 -040010600 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010601fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010602
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010604 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010605 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10606 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607 cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010613#include <libintl.h>
10614extern int _nl_msg_cat_cntr;
10615extern
10616#ifdef __cplusplus
10617"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010618#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010619const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010620int
10621main ()
10622{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010623bindtextdomain ("", "");
10624return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010625 ;
10626 return 0;
10627}
10628_ACEOF
10629rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010630if { (ac_try="$ac_link"
10631case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634esac
10635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest$ac_exeext &&
10646 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010647 LIBINTL="$LIBINTL $LIBICONV"
10648 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10649 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010650
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010651else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010652 echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
Theodore Ts'oe1052142006-10-21 21:46:47 -040010655
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010657
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010659 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010660 fi
10661 CPPFLAGS="$gt_save_CPPFLAGS"
10662 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010664{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10665echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010666 fi
10667
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010668 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10669 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010670 && test "$PACKAGE" != gettext-runtime \
10671 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010672 gt_use_preinstalled_gnugettext=yes
10673 else
10674 LIBINTL=
10675 LTLIBINTL=
10676 INCINTL=
10677 fi
10678
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010680 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10681 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010682 fi
10683 fi
10684
10685 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010686 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010687 USE_INCLUDED_LIBINTL=yes
10688 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10689 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10690 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010691 fi
10692
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010693 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10694 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10695 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010696 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010697
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010698
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010699 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10700 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010701
10702cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010703#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010704_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010705
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010706 else
10707 USE_NLS=no
10708 fi
10709 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010710
Theodore Ts'oe1052142006-10-21 21:46:47 -040010711 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10712echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10713 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10714echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010715 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010716 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10717echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010718 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10719 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10720 gt_source="external libintl"
10721 else
10722 gt_source="libc"
10723 fi
10724 else
10725 gt_source="included intl directory"
10726 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010727 { echo "$as_me:$LINENO: result: $gt_source" >&5
10728echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010729 fi
10730
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010731 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010732
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010733 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10734 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010735 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10736echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10737 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10738echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010739
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010740 for element in $INCINTL; do
10741 haveit=
10742 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010744 acl_save_prefix="$prefix"
10745 prefix="$acl_final_prefix"
10746 acl_save_exec_prefix="$exec_prefix"
10747 exec_prefix="$acl_final_exec_prefix"
10748 eval x=\"$x\"
10749 exec_prefix="$acl_save_exec_prefix"
10750 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010751
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010752 if test "X$x" = "X$element"; then
10753 haveit=yes
10754 break
10755 fi
10756 done
10757 if test -z "$haveit"; then
10758 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10759 fi
10760 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010761
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010762 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010763
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010765cat >>confdefs.h <<\_ACEOF
10766#define HAVE_GETTEXT 1
10767_ACEOF
10768
10769
10770cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010771#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773
10774 fi
10775
10776 POSUB=po
10777 fi
10778
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779
10780 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010781 BUILD_INCLUDED_LIBINTL=yes
10782 fi
10783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010784
10785
10786
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010787
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010788 nls_cv_header_intl=
10789 nls_cv_header_libgt=
10790
10791 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010792
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010793
10794 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010795
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010796
10797 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010798
10799
10800 if test "$USE_INCLUDED_LIBINTL" = yes; then
10801 INTLOBJS="\$(GETTOBJS)"
10802 fi
10803
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010804
10805 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010806
10807
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010808
10809 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010810
10811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010812
10813
10814
10815
10816
Theodore Ts'oe1052142006-10-21 21:46:47 -040010817{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10818echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10819set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10820if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010822else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010823 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010824SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010825all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010826 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010828# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010829case `${MAKE-make} -f conftest.make 2>/dev/null` in
10830 *@@@%%%=?*=@@@%%%*)
10831 eval ac_cv_prog_make_${ac_make}_set=yes;;
10832 *)
10833 eval ac_cv_prog_make_${ac_make}_set=no;;
10834esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010835rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010836fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010837if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10838 { echo "$as_me:$LINENO: result: yes" >&5
10839echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010840 SET_MAKE=
10841else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010842 { echo "$as_me:$LINENO: result: no" >&5
10843echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010844 SET_MAKE="MAKE=${MAKE-make}"
10845fi
10846
10847# Extract the first word of "ln", so it can be a program name with args.
10848set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010851if test "${ac_cv_path_LN+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010853else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010854 case $LN in
10855 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010856 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10857 ;;
10858 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860for as_dir in $PATH
10861do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010865 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 -050010866 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870done
10871done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010872IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010873
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010874 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10875 ;;
10876esac
10877fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010878LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010879if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010880 { echo "$as_me:$LINENO: result: $LN" >&5
10881echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010882else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010883 { echo "$as_me:$LINENO: result: no" >&5
10884echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010885fi
10886
Theodore Ts'oe1052142006-10-21 21:46:47 -040010887
10888{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10889echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010890LN_S=$as_ln_s
10891if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010892 { echo "$as_me:$LINENO: result: yes" >&5
10893echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010894else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010895 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10896echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010897fi
10898
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010899# Extract the first word of "mv", so it can be a program name with args.
10900set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010903if test "${ac_cv_path_MV+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010906 case $MV in
10907 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010908 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10909 ;;
10910 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010917 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 -050010918 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922done
10923done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010924IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010925
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010926 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10927 ;;
10928esac
10929fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010930MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010931if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010932 { echo "$as_me:$LINENO: result: $MV" >&5
10933echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010934else
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 +000010937fi
10938
Theodore Ts'oe1052142006-10-21 21:46:47 -040010939
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010940# Extract the first word of "cp", so it can be a program name with args.
10941set dummy cp; 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_CP+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 $CP in
10948 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010949 ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
10968 ;;
10969esac
10970fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010971CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010972if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010973 { echo "$as_me:$LINENO: result: $CP" >&5
10974echo "${ECHO_T}$CP" >&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
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010981# Extract the first word of "rm", so it can be a program name with args.
10982set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010985if test "${ac_cv_path_RM+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010987else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010988 case $RM in
10989 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010990 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10991 ;;
10992 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010999 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 -050011000 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004done
11005done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011006IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011007
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011008 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11009 ;;
11010esac
11011fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011012RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011013if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011014 { echo "$as_me:$LINENO: result: $RM" >&5
11015echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011016else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011017 { echo "$as_me:$LINENO: result: no" >&5
11018echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011019fi
11020
Theodore Ts'oe1052142006-10-21 21:46:47 -040011021
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011022# Extract the first word of "chmod", so it can be a program name with args.
11023set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011026if test "${ac_cv_path_CHMOD+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011029 case $CHMOD in
11030 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011031 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11032 ;;
11033 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035for as_dir in $PATH
11036do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011040 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 -050011041 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045done
11046done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011047IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011048
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011049 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11050 ;;
11051esac
11052fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011053CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011054if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011055 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11056echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011057else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011058 { echo "$as_me:$LINENO: result: no" >&5
11059echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011060fi
11061
Theodore Ts'oe1052142006-10-21 21:46:47 -040011062
Theodore Ts'o32237012005-01-17 19:13:39 -050011063for ac_prog in gawk mawk nawk awk
11064do
11065 # Extract the first word of "$ac_prog", so it can be a program name with args.
11066set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011069if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011070 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011071else
Theodore Ts'o32237012005-01-17 19:13:39 -050011072 if test -n "$AWK"; then
11073 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011081 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 -050011082 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011088IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011089
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011090fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011091fi
11092AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011093if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011094 { echo "$as_me:$LINENO: result: $AWK" >&5
11095echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011096else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011097 { echo "$as_me:$LINENO: result: no" >&5
11098echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011099fi
11100
Theodore Ts'oe1052142006-10-21 21:46:47 -040011101
Theodore Ts'o32237012005-01-17 19:13:39 -050011102 test -n "$AWK" && break
11103done
11104
Theodore Ts'oe1052142006-10-21 21:46:47 -040011105{ echo "$as_me:$LINENO: checking for egrep" >&5
11106echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11107if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011110 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11111 then ac_cv_path_EGREP="$GREP -E"
11112 else
11113 # Extract the first word of "egrep" to use in msg output
11114if test -z "$EGREP"; then
11115set dummy egrep; ac_prog_name=$2
11116if test "${ac_cv_path_EGREP+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
11119 ac_path_EGREP_found=false
11120# Loop through the user's path and test for each of PROGNAME-LIST
11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11123do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_prog in egrep; do
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011129 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011130 # Check for GNU ac_path_EGREP and select it if it is found.
11131 # Check for GNU $ac_path_EGREP
11132case `"$ac_path_EGREP" --version 2>&1` in
11133*GNU*)
11134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11135*)
11136 ac_count=0
11137 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11138 while :
11139 do
11140 cat "conftest.in" "conftest.in" >"conftest.tmp"
11141 mv "conftest.tmp" "conftest.in"
11142 cp "conftest.in" "conftest.nl"
11143 echo 'EGREP' >> "conftest.nl"
11144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11146 ac_count=`expr $ac_count + 1`
11147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11148 # Best one so far, save it but keep looking for a better one
11149 ac_cv_path_EGREP="$ac_path_EGREP"
11150 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011151 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011152 # 10*(2^10) chars as input seems more than enough
11153 test $ac_count -gt 10 && break
11154 done
11155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11156esac
11157
11158
11159 $ac_path_EGREP_found && break 3
11160 done
11161done
11162
11163done
11164IFS=$as_save_IFS
11165
11166
Theodore Ts'o32237012005-01-17 19:13:39 -050011167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011168
11169EGREP="$ac_cv_path_EGREP"
11170if test -z "$EGREP"; then
11171 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11172echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11173 { (exit 1); exit 1; }; }
11174fi
11175
11176else
11177 ac_cv_path_EGREP=$EGREP
11178fi
11179
11180
11181 fi
11182fi
11183{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11184echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11185 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011186
11187
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011188# Extract the first word of "sed", so it can be a program name with args.
11189set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011192if test "${ac_cv_path_SED+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011194else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011195 case $SED in
11196 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011197 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11198 ;;
11199 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201for as_dir in $PATH
11202do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011206 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 -050011207 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11210 fi
11211done
11212done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011213IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011214
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011215 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11216 ;;
11217esac
11218fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011219SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011220if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011221 { echo "$as_me:$LINENO: result: $SED" >&5
11222echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011223else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011224 { echo "$as_me:$LINENO: result: no" >&5
11225echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011226fi
11227
Theodore Ts'oe1052142006-10-21 21:46:47 -040011228
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011229# Extract the first word of "perl", so it can be a program name with args.
11230set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011233if test "${ac_cv_path_PERL+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011236 case $PERL in
11237 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011238 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11239 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011240 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242for as_dir in $PATH
11243do
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011247 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 -050011248 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11251 fi
11252done
11253done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011254IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011255
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011256 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11257 ;;
11258esac
11259fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011260PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011261if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011262 { echo "$as_me:$LINENO: result: $PERL" >&5
11263echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011264else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011265 { echo "$as_me:$LINENO: result: no" >&5
11266echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011267fi
11268
Theodore Ts'oe1052142006-10-21 21:46:47 -040011269
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011270# Extract the first word of "ldconfig", so it can be a program name with args.
11271set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011274if test "${ac_cv_path_LDCONFIG+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011276else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277 case $LDCONFIG in
11278 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011279 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11280 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011281 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011288 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 -050011289 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293done
11294done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011295IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011296
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011297 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11298 ;;
11299esac
11300fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011301LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011302if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011303 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11304echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011305else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011306 { echo "$as_me:$LINENO: result: no" >&5
11307echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011308fi
11309
Theodore Ts'oe1052142006-10-21 21:46:47 -040011310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011311if test -n "$ac_tool_prefix"; then
11312 # 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 +000011313set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011316if test "${ac_cv_prog_AR+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011318else
11319 if test -n "$AR"; then
11320 ac_cv_prog_AR="$AR" # Let the user override the test.
11321else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $PATH
11324do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011328 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 -050011329 ac_cv_prog_AR="${ac_tool_prefix}ar"
11330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 break 2
11332 fi
11333done
11334done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011335IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011336
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011337fi
11338fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011340if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011341 { echo "$as_me:$LINENO: result: $AR" >&5
11342echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011343else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011344 { echo "$as_me:$LINENO: result: no" >&5
11345echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011346fi
11347
Theodore Ts'oe1052142006-10-21 21:46:47 -040011348
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011350if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011352 # Extract the first word of "ar", so it can be a program name with args.
11353set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011356if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011358else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359 if test -n "$ac_ct_AR"; then
11360 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011361else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363for as_dir in $PATH
11364do
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011368 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 -050011369 ac_cv_prog_ac_ct_AR="ar"
11370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 break 2
11372 fi
11373done
11374done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011375IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011377fi
11378fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379ac_ct_AR=$ac_cv_prog_ac_ct_AR
11380if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011381 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11382echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011383else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011384 { echo "$as_me:$LINENO: result: no" >&5
11385echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011386fi
11387
Theodore Ts'oe1052142006-10-21 21:46:47 -040011388 if test "x$ac_ct_AR" = x; then
11389 AR="ar"
11390 else
11391 case $cross_compiling:$ac_tool_warned in
11392yes:)
11393{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11394whose name does not start with the host triplet. If you think this
11395configuration is useful to you, please write to autoconf@gnu.org." >&5
11396echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11397whose name does not start with the host triplet. If you think this
11398configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11399ac_tool_warned=yes ;;
11400esac
11401 AR=$ac_ct_AR
11402 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011403else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011405fi
11406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011407if test -n "$ac_tool_prefix"; then
11408 # 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 +000011409set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412if test "${ac_cv_prog_RANLIB+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011414else
11415 if test -n "$RANLIB"; then
11416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11417else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419for as_dir in $PATH
11420do
11421 IFS=$as_save_IFS
11422 test -z "$as_dir" && as_dir=.
11423 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011424 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 -050011425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 break 2
11428 fi
11429done
11430done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011431IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011433fi
11434fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011436if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011437 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11438echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011439else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011440 { echo "$as_me:$LINENO: result: no" >&5
11441echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011442fi
11443
Theodore Ts'oe1052142006-10-21 21:46:47 -040011444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011445fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011446if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011448 # Extract the first word of "ranlib", so it can be a program name with args.
11449set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011452if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011454else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455 if test -n "$ac_ct_RANLIB"; then
11456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459for as_dir in $PATH
11460do
11461 IFS=$as_save_IFS
11462 test -z "$as_dir" && as_dir=.
11463 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011464 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 -050011465 ac_cv_prog_ac_ct_RANLIB="ranlib"
11466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11467 break 2
11468 fi
11469done
11470done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011471IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011472
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011473fi
11474fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011475ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11476if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011477 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11478echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011479else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011480 { echo "$as_me:$LINENO: result: no" >&5
11481echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011482fi
11483
Theodore Ts'oe1052142006-10-21 21:46:47 -040011484 if test "x$ac_ct_RANLIB" = x; then
11485 RANLIB=":"
11486 else
11487 case $cross_compiling:$ac_tool_warned in
11488yes:)
11489{ echo "$as_me:$LINENO: 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." >&5
11492echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11493whose name does not start with the host triplet. If you think this
11494configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11495ac_tool_warned=yes ;;
11496esac
11497 RANLIB=$ac_ct_RANLIB
11498 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011499else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011501fi
11502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503if test -n "$ac_tool_prefix"; then
11504 # 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 +000011505set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011508if test "${ac_cv_prog_STRIP+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510else
11511 if test -n "$STRIP"; then
11512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11513else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $PATH
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011520 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 -050011521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525done
11526done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011527IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011529fi
11530fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011531STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011532if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011533 { echo "$as_me:$LINENO: result: $STRIP" >&5
11534echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011535else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011536 { echo "$as_me:$LINENO: result: no" >&5
11537echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538fi
11539
Theodore Ts'oe1052142006-10-21 21:46:47 -040011540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011541fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011542if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011544 # Extract the first word of "strip", so it can be a program name with args.
11545set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011548if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551 if test -n "$ac_ct_STRIP"; then
11552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011553else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011560 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 -050011561 ac_cv_prog_ac_ct_STRIP="strip"
11562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11564 fi
11565done
11566done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011567IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011569fi
11570fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11572if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011573 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11574echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011575else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011576 { echo "$as_me:$LINENO: result: no" >&5
11577echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578fi
11579
Theodore Ts'oe1052142006-10-21 21:46:47 -040011580 if test "x$ac_ct_STRIP" = x; then
11581 STRIP=":"
11582 else
11583 case $cross_compiling:$ac_tool_warned in
11584yes:)
11585{ echo "$as_me:$LINENO: 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." >&5
11588echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11589whose name does not start with the host triplet. If you think this
11590configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11591ac_tool_warned=yes ;;
11592esac
11593 STRIP=$ac_ct_STRIP
11594 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011595else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597fi
11598
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011599# Find a good install program. We prefer a C program (faster),
11600# so one script is as good as another. But avoid the broken or
11601# incompatible versions:
11602# SysV /etc/install, /usr/sbin/install
11603# SunOS /usr/etc/install
11604# IRIX /sbin/install
11605# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011606# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011611# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011612{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11613echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011614if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011615if test "${ac_cv_path_install+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011617else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 # Account for people who put trailing slashes in PATH elements.
11624case $as_dir/ in
11625 ./ | .// | /cC/* | \
11626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11627 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11628 /usr/ucb/* ) ;;
11629 *)
11630 # OSF1 and SCO ODT 3.0 have their own names for install.
11631 # Don't use installbsd from OSF since it installs stuff as root
11632 # by default.
11633 for ac_prog in ginstall scoinst install; do
11634 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011635 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 +000011636 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011638 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011639 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011640 elif test $ac_prog = install &&
11641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11642 # program-specific install script used by HP pwplus--don't use.
11643 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011644 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11646 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647 fi
11648 fi
11649 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011650 done
11651 ;;
11652esac
11653done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011654IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011655
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011656
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011657fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011658 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011660 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011661 # As a last resort, use the slow shell script. Don't cache a
11662 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011663 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011664 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011666 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011668{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11669echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670
11671# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11672# It thinks the first close brace ends the variable substitution.
11673test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11674
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011675test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011676
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011677test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11678
Theodore Ts'o6c133521999-07-03 20:37:03 +000011679# See if we need a separate native compiler.
11680if test $cross_compiling = no; then
11681 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011682
Theodore Ts'o6c133521999-07-03 20:37:03 +000011683else
11684 for ac_prog in gcc cc
11685do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011686 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011687set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011692else
11693 if test -n "$BUILD_CC"; then
11694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11695else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011698do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011702 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 -050011703 ac_cv_prog_BUILD_CC="$ac_prog"
11704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011708done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011709IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011711fi
11712fi
11713BUILD_CC=$ac_cv_prog_BUILD_CC
11714if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11716echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011717else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011718 { echo "$as_me:$LINENO: result: no" >&5
11719echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011720fi
11721
Theodore Ts'oe1052142006-10-21 21:46:47 -040011722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011723 test -n "$BUILD_CC" && break
11724done
11725
11726fi
11727
Theodore Ts'o740837d2007-12-16 17:21:38 -050011728
11729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011758
Theodore Ts'o106ad962007-04-04 21:26:37 -040011759
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011760
11761
11762for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.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 -050011763do
11764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011771ac_res=`eval echo '${'$as_ac_Header'}'`
11772 { echo "$as_me:$LINENO: result: $ac_res" >&5
11773echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011774else
11775 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011776{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011778cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784$ac_includes_default
11785#include <$ac_header>
11786_ACEOF
11787rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011788if { (ac_try="$ac_compile"
11789case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11792esac
11793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011795 ac_status=$?
11796 grep -v '^ *+' conftest.er1 >conftest.err
11797 rm -f conftest.er1
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011800 (exit $ac_status); } && {
11801 test -z "$ac_c_werror_flag" ||
11802 test ! -s conftest.err
11803 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804 ac_header_compiler=yes
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
Theodore Ts'oe1052142006-10-21 21:46:47 -040011809 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011810fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011811
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011815
11816# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011817{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011819cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825#include <$ac_header>
11826_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011827if { (ac_try="$ac_cpp conftest.$ac_ext"
11828case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
11832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011839 (exit $ac_status); } >/dev/null && {
11840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011843 ac_header_preproc=yes
11844else
11845 echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_header_preproc=no
11849fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011850
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011851rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011854
11855# So? What about this header?
11856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11857 yes:no: )
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862 ac_header_preproc=yes
11863 ;;
11864 no:yes:* )
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011878 ;;
11879esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011880{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884else
11885 eval "$as_ac_Header=\$ac_header_preproc"
11886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011887ac_res=`eval echo '${'$as_ac_Header'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011890
11891fi
11892if test `eval echo '${'$as_ac_Header'}'` = yes; then
11893 cat >>confdefs.h <<_ACEOF
11894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11895_ACEOF
11896
11897fi
11898
11899done
11900
11901
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011902
11903for ac_header in sys/disk.h sys/mount.h
11904do
11905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011906{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910else
11911 cat >conftest.$ac_ext <<_ACEOF
11912/* confdefs.h. */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h. */
11917
11918#if HAVE_SYS_QUEUE_H
11919#include <sys/queue.h>
11920#endif
11921
11922
11923#include <$ac_header>
11924_ACEOF
11925rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011926if { (ac_try="$ac_compile"
11927case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011938 (exit $ac_status); } && {
11939 test -z "$ac_c_werror_flag" ||
11940 test ! -s conftest.err
11941 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011942 eval "$as_ac_Header=yes"
11943else
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
Theodore Ts'oe1052142006-10-21 21:46:47 -040011947 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011948fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011949
11950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011951fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011952ac_res=`eval echo '${'$as_ac_Header'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011955if test `eval echo '${'$as_ac_Header'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11958_ACEOF
11959
11960fi
11961
11962done
11963
11964
11965for ac_header in net/if.h
11966do
11967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011968{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972else
11973 cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979
11980#if HAVE_SYS_TYPES_H
11981#include <sys/types.h>
11982#endif
11983#if HAVE_SYS_SOCKET
11984#include <sys/socket.h>
11985#endif
11986
11987
11988#include <$ac_header>
11989_ACEOF
11990rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011991if { (ac_try="$ac_compile"
11992case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995esac
11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012007 eval "$as_ac_Header=yes"
12008else
12009 echo "$as_me: failed program was:" >&5
12010sed 's/^/| /' conftest.$ac_ext >&5
12011
Theodore Ts'oe1052142006-10-21 21:46:47 -040012012 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012013fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012014
12015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012016fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012017ac_res=`eval echo '${'$as_ac_Header'}'`
12018 { echo "$as_me:$LINENO: result: $ac_res" >&5
12019echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012020if test `eval echo '${'$as_ac_Header'}'` = yes; then
12021 cat >>confdefs.h <<_ACEOF
12022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12023_ACEOF
12024
12025fi
12026
12027done
12028
12029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012030for ac_func in vprintf
12031do
12032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038 cat >conftest.$ac_ext <<_ACEOF
12039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
12044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12046#define $ac_func innocuous_$ac_func
12047
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012048/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012049 which can conflict with char $ac_func (); below.
12050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12051 <limits.h> exists even on freestanding compilers. */
12052
12053#ifdef __STDC__
12054# include <limits.h>
12055#else
12056# include <assert.h>
12057#endif
12058
12059#undef $ac_func
12060
Theodore Ts'oe1052142006-10-21 21:46:47 -040012061/* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064#ifdef __cplusplus
12065extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012066#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012068/* The GNU C library defines this for functions which it implements
12069 to always fail with ENOSYS. Some functions are actually named
12070 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012071#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012072choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012073#endif
12074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075int
12076main ()
12077{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012078return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012079 ;
12080 return 0;
12081}
12082_ACEOF
12083rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012084if { (ac_try="$ac_link"
12085case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088esac
12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012096 (exit $ac_status); } && {
12097 test -z "$ac_c_werror_flag" ||
12098 test ! -s conftest.err
12099 } && test -s conftest$ac_exeext &&
12100 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012101 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012105
Theodore Ts'oe1052142006-10-21 21:46:47 -040012106 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012108
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110 conftest$ac_exeext conftest.$ac_ext
12111fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012112ac_res=`eval echo '${'$as_ac_var'}'`
12113 { echo "$as_me:$LINENO: result: $ac_res" >&5
12114echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115if test `eval echo '${'$as_ac_var'}'` = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012119
Theodore Ts'oe1052142006-10-21 21:46:47 -040012120{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12121echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012122if test "${ac_cv_func__doprnt+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012124else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012125 cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h. */
12131/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012134
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012135/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136 which can conflict with char _doprnt (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12139
12140#ifdef __STDC__
12141# include <limits.h>
12142#else
12143# include <assert.h>
12144#endif
12145
12146#undef _doprnt
12147
Theodore Ts'oe1052142006-10-21 21:46:47 -040012148/* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012151#ifdef __cplusplus
12152extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155/* The GNU C library defines this for functions which it implements
12156 to always fail with ENOSYS. Some functions are actually named
12157 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012159choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012160#endif
12161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012162int
12163main ()
12164{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012166 ;
12167 return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012171if { (ac_try="$ac_link"
12172case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest$ac_exeext &&
12187 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012189else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012192
Theodore Ts'oe1052142006-10-21 21:46:47 -040012193 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197 conftest$ac_exeext conftest.$ac_ext
12198fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012199{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12200echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201if test $ac_cv_func__doprnt = yes; then
12202
12203cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012204#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012206
12207fi
12208
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209fi
12210done
12211
12212
Theodore Ts'oe1052142006-10-21 21:46:47 -040012213{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12214echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012215if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012217else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218 cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012224#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226int
12227main ()
12228{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012229static struct dirent ac_aggr;
12230if (ac_aggr.d_reclen)
12231return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232 ;
12233 return 0;
12234}
12235_ACEOF
12236rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237if { (ac_try="$ac_compile"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012253 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255 echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
Theodore Ts'oe1052142006-10-21 21:46:47 -040012258 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264#include <dirent.h>
12265
12266int
12267main ()
12268{
12269static struct dirent ac_aggr;
12270if (sizeof ac_aggr.d_reclen)
12271return 0;
12272 ;
12273 return 0;
12274}
12275_ACEOF
12276rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012277if { (ac_try="$ac_compile"
12278case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012293 ac_cv_member_struct_dirent_d_reclen=yes
12294else
12295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
Theodore Ts'oe1052142006-10-21 21:46:47 -040012298 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012300
12301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012303
12304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012305fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012306{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12307echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012308if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12309 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012310#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012311_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012312
12313fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012314
Theodore Ts'oe1052142006-10-21 21:46:47 -040012315{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12316echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012317if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012318 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012319else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012320 cat >conftest.$ac_ext <<_ACEOF
12321/* confdefs.h. */
12322_ACEOF
12323cat confdefs.h >>conftest.$ac_ext
12324cat >>conftest.$ac_ext <<_ACEOF
12325/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012326#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012327
Theodore Ts'oe1052142006-10-21 21:46:47 -040012328typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012329int
12330main ()
12331{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012332if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012333 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012334if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012335 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336 ;
12337 return 0;
12338}
12339_ACEOF
12340rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012341if { (ac_try="$ac_compile"
12342case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12345esac
12346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348 ac_status=$?
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012357 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012358else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012359 echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
Theodore Ts'oe1052142006-10-21 21:46:47 -040012362 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012363fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012364
12365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012367{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12368echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012369if test $ac_cv_type_ssize_t = yes; then
12370 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012371#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012372_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012373
12374fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012375
Theodore Ts'oe1052142006-10-21 21:46:47 -040012376{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12377echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012378if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012379 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012380else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012381 cat >conftest.$ac_ext <<_ACEOF
12382/* confdefs.h. */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012387#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389int
12390main ()
12391{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012392#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012393 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012394#endif
12395
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012396 ;
12397 return 0;
12398}
12399_ACEOF
12400rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012401if { (ac_try="$ac_compile"
12402case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405esac
12406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012417 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012418else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419 echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012424
12425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012427{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12428echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012429if test $ac_cv_have_decl_llseek = yes; then
12430 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012431#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012433
12434fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012435
Theodore Ts'oe1052142006-10-21 21:46:47 -040012436{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12437echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012438if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012439 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012440else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441 cat >conftest.$ac_ext <<_ACEOF
12442/* confdefs.h. */
12443_ACEOF
12444cat confdefs.h >>conftest.$ac_ext
12445cat >>conftest.$ac_ext <<_ACEOF
12446/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012447#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012448 #define _LARGEFILE64_SOURCE
12449 #include <unistd.h>
12450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012451int
12452main ()
12453{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012454#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012455 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012456#endif
12457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012458 ;
12459 return 0;
12460}
12461_ACEOF
12462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012463if { (ac_try="$ac_compile"
12464case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012479 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012480else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
Theodore Ts'oe1052142006-10-21 21:46:47 -040012484 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012486
12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12490echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012491if test $ac_cv_have_decl_lseek64 = yes; then
12492 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012493#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012495
12496fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012497
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012498if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012500 ac_cv_sizeof_short=2
12501 ac_cv_sizeof_int=4
12502 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012503 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012504 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12505echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012507{ echo "$as_me:$LINENO: checking for short" >&5
12508echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012509if test "${ac_cv_type_short+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
12512 cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012519typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520int
12521main ()
12522{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012523if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012525if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012526 return 0;
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012532if { (ac_try="$ac_compile"
12533case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12536esac
12537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012544 (exit $ac_status); } && {
12545 test -z "$ac_c_werror_flag" ||
12546 test ! -s conftest.err
12547 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548 ac_cv_type_short=yes
12549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
Theodore Ts'oe1052142006-10-21 21:46:47 -040012553 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012555
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557fi
12558{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12559echo "${ECHO_T}$ac_cv_type_short" >&6; }
12560
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012561# The cast to long int works around a bug in the HP C Compiler
12562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12564# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565{ echo "$as_me:$LINENO: checking size of short" >&5
12566echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567if test "${ac_cv_sizeof_short+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12569else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012570 if test "$cross_compiling" = yes; then
12571 # Depending upon the size, compute the lo and hi bounds.
12572cat >conftest.$ac_ext <<_ACEOF
12573/* confdefs.h. */
12574_ACEOF
12575cat confdefs.h >>conftest.$ac_ext
12576cat >>conftest.$ac_ext <<_ACEOF
12577/* end confdefs.h. */
12578$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012579 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012580int
12581main ()
12582{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012583static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012584test_array [0] = 0
12585
12586 ;
12587 return 0;
12588}
12589_ACEOF
12590rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012591if { (ac_try="$ac_compile"
12592case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595esac
12596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607 ac_lo=0 ac_mid=0
12608 while :; do
12609 cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h. */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h. */
12615$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012616 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012617int
12618main ()
12619{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012620static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012621test_array [0] = 0
12622
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012628if { (ac_try="$ac_compile"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012640 (exit $ac_status); } && {
12641 test -z "$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012644 ac_hi=$ac_mid; break
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
Theodore Ts'oe1052142006-10-21 21:46:47 -040012649 ac_lo=`expr $ac_mid + 1`
12650 if test $ac_lo -le $ac_mid; then
12651 ac_lo= ac_hi=
12652 break
12653 fi
12654 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012655fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012656
12657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658 done
12659else
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
Theodore Ts'oe1052142006-10-21 21:46:47 -040012663 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012664/* confdefs.h. */
12665_ACEOF
12666cat confdefs.h >>conftest.$ac_ext
12667cat >>conftest.$ac_ext <<_ACEOF
12668/* end confdefs.h. */
12669$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012670 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012671int
12672main ()
12673{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012674static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012675test_array [0] = 0
12676
12677 ;
12678 return 0;
12679}
12680_ACEOF
12681rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012682if { (ac_try="$ac_compile"
12683case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686esac
12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012694 (exit $ac_status); } && {
12695 test -z "$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012698 ac_hi=-1 ac_mid=-1
12699 while :; do
12700 cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
12706$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012707 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012708int
12709main ()
12710{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012711static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012712test_array [0] = 0
12713
12714 ;
12715 return 0;
12716}
12717_ACEOF
12718rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012719if { (ac_try="$ac_compile"
12720case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12723esac
12724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012731 (exit $ac_status); } && {
12732 test -z "$ac_c_werror_flag" ||
12733 test ! -s conftest.err
12734 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012735 ac_lo=$ac_mid; break
12736else
12737 echo "$as_me: failed program was:" >&5
12738sed 's/^/| /' conftest.$ac_ext >&5
12739
Theodore Ts'oe1052142006-10-21 21:46:47 -040012740 ac_hi=`expr '(' $ac_mid ')' - 1`
12741 if test $ac_mid -le $ac_hi; then
12742 ac_lo= ac_hi=
12743 break
12744 fi
12745 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012747
12748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012749 done
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
Theodore Ts'oe1052142006-10-21 21:46:47 -040012754 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012755fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012756
12757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012759
12760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012761# Binary search between lo and hi bounds.
12762while test "x$ac_lo" != "x$ac_hi"; do
12763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12764 cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012771 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012772int
12773main ()
12774{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012775static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012776test_array [0] = 0
12777
12778 ;
12779 return 0;
12780}
12781_ACEOF
12782rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012783if { (ac_try="$ac_compile"
12784case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012799 ac_hi=$ac_mid
12800else
12801 echo "$as_me: failed program was:" >&5
12802sed 's/^/| /' conftest.$ac_ext >&5
12803
Theodore Ts'oe1052142006-10-21 21:46:47 -040012804 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012806
12807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012808done
12809case $ac_lo in
12810?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012811'') if test "$ac_cv_type_short" = yes; then
12812 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012813See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012814echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012815See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012816 { (exit 77); exit 77; }; }
12817 else
12818 ac_cv_sizeof_short=0
12819 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012821else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012822 cat >conftest.$ac_ext <<_ACEOF
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
12828$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012829 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012830static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12831static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012832#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012833#include <stdlib.h>
12834int
12835main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012836{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012837
12838 FILE *f = fopen ("conftest.val", "w");
12839 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012840 return 1;
12841 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012843 long int i = longval ();
12844 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12845 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846 fprintf (f, "%ld\n", i);
12847 }
12848 else
12849 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012850 unsigned long int i = ulongval ();
12851 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12852 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012853 fprintf (f, "%lu\n", i);
12854 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012855 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012856
12857 ;
12858 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012859}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860_ACEOF
12861rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012862if { (ac_try="$ac_link"
12863case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866esac
12867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012872 { (case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012882else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012883 echo "$as_me: program exited with status $ac_status" >&5
12884echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012888if test "$ac_cv_type_short" = yes; then
12889 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012890See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012891echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012893 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012894 else
12895 ac_cv_sizeof_short=0
12896 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012897fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012898rm -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 -050012899fi
12900rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012901fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012902{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12903echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012904
12905
12906
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012907cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012908#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012909_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012910
12911
Theodore Ts'oe1052142006-10-21 21:46:47 -040012912{ echo "$as_me:$LINENO: checking for int" >&5
12913echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914if test "${ac_cv_type_int+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916else
12917 cat >conftest.$ac_ext <<_ACEOF
12918/* confdefs.h. */
12919_ACEOF
12920cat confdefs.h >>conftest.$ac_ext
12921cat >>conftest.$ac_ext <<_ACEOF
12922/* end confdefs.h. */
12923$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012924typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012925int
12926main ()
12927{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012928if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012930if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931 return 0;
12932 ;
12933 return 0;
12934}
12935_ACEOF
12936rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012937if { (ac_try="$ac_compile"
12938case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12941esac
12942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953 ac_cv_type_int=yes
12954else
12955 echo "$as_me: failed program was:" >&5
12956sed 's/^/| /' conftest.$ac_ext >&5
12957
Theodore Ts'oe1052142006-10-21 21:46:47 -040012958 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012959fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012960
Theodore Ts'oe1052142006-10-21 21:46:47 -040012961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12962fi
12963{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12964echo "${ECHO_T}$ac_cv_type_int" >&6; }
12965
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012966# The cast to long int works around a bug in the HP C Compiler
12967# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12968# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12969# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012970{ echo "$as_me:$LINENO: checking size of int" >&5
12971echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972if test "${ac_cv_sizeof_int+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975 if test "$cross_compiling" = yes; then
12976 # Depending upon the size, compute the lo and hi bounds.
12977cat >conftest.$ac_ext <<_ACEOF
12978/* confdefs.h. */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
12982/* end confdefs.h. */
12983$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012984 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012985int
12986main ()
12987{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012988static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012989test_array [0] = 0
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012996if { (ac_try="$ac_compile"
12997case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003 ac_status=$?
13004 grep -v '^ *+' conftest.er1 >conftest.err
13005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013008 (exit $ac_status); } && {
13009 test -z "$ac_c_werror_flag" ||
13010 test ! -s conftest.err
13011 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012 ac_lo=0 ac_mid=0
13013 while :; do
13014 cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h. */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h. */
13020$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013021 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013022int
13023main ()
13024{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013025static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013026test_array [0] = 0
13027
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013033if { (ac_try="$ac_compile"
13034case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037esac
13038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013049 ac_hi=$ac_mid; break
13050else
13051 echo "$as_me: failed program was:" >&5
13052sed 's/^/| /' conftest.$ac_ext >&5
13053
Theodore Ts'oe1052142006-10-21 21:46:47 -040013054 ac_lo=`expr $ac_mid + 1`
13055 if test $ac_lo -le $ac_mid; then
13056 ac_lo= ac_hi=
13057 break
13058 fi
13059 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013060fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013061
13062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013063 done
13064else
13065 echo "$as_me: failed program was:" >&5
13066sed 's/^/| /' conftest.$ac_ext >&5
13067
Theodore Ts'oe1052142006-10-21 21:46:47 -040013068 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013069/* confdefs.h. */
13070_ACEOF
13071cat confdefs.h >>conftest.$ac_ext
13072cat >>conftest.$ac_ext <<_ACEOF
13073/* end confdefs.h. */
13074$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013075 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013076int
13077main ()
13078{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013079static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013080test_array [0] = 0
13081
13082 ;
13083 return 0;
13084}
13085_ACEOF
13086rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013087if { (ac_try="$ac_compile"
13088case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091esac
13092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013103 ac_hi=-1 ac_mid=-1
13104 while :; do
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013112 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013113int
13114main ()
13115{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013116static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013117test_array [0] = 0
13118
13119 ;
13120 return 0;
13121}
13122_ACEOF
13123rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013124if { (ac_try="$ac_compile"
13125case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128esac
13129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013140 ac_lo=$ac_mid; break
13141else
13142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
Theodore Ts'oe1052142006-10-21 21:46:47 -040013145 ac_hi=`expr '(' $ac_mid ')' - 1`
13146 if test $ac_mid -le $ac_hi; then
13147 ac_lo= ac_hi=
13148 break
13149 fi
13150 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013151fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013152
13153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013154 done
13155else
13156 echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
13158
Theodore Ts'oe1052142006-10-21 21:46:47 -040013159 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013161
13162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013164
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013166# Binary search between lo and hi bounds.
13167while test "x$ac_lo" != "x$ac_hi"; do
13168 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13169 cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
13174/* end confdefs.h. */
13175$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013176 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013177int
13178main ()
13179{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013180static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013181test_array [0] = 0
13182
13183 ;
13184 return 0;
13185}
13186_ACEOF
13187rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013188if { (ac_try="$ac_compile"
13189case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192esac
13193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013200 (exit $ac_status); } && {
13201 test -z "$ac_c_werror_flag" ||
13202 test ! -s conftest.err
13203 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013204 ac_hi=$ac_mid
13205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
Theodore Ts'oe1052142006-10-21 21:46:47 -040013209 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013210fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013211
13212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013213done
13214case $ac_lo in
13215?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013216'') if test "$ac_cv_type_int" = yes; then
13217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013218See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013219echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013220See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013221 { (exit 77); exit 77; }; }
13222 else
13223 ac_cv_sizeof_int=0
13224 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013225esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013226else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013227 cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h. */
13233$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013234 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013235static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13236static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013237#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013238#include <stdlib.h>
13239int
13240main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013241{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013242
13243 FILE *f = fopen ("conftest.val", "w");
13244 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013245 return 1;
13246 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013247 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013248 long int i = longval ();
13249 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13250 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013251 fprintf (f, "%ld\n", i);
13252 }
13253 else
13254 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013255 unsigned long int i = ulongval ();
13256 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13257 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013258 fprintf (f, "%lu\n", i);
13259 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013260 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013261
13262 ;
13263 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013264}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013265_ACEOF
13266rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013267if { (ac_try="$ac_link"
13268case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13271esac
13272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013288 echo "$as_me: program exited with status $ac_status" >&5
13289echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013293if test "$ac_cv_type_int" = yes; then
13294 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013295See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013296echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013297See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013298 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013299 else
13300 ac_cv_sizeof_int=0
13301 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013303rm -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 -050013304fi
13305rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013306fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013307{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13308echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013309
13310
13311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013312cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013313#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013314_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013315
13316
Theodore Ts'oe1052142006-10-21 21:46:47 -040013317{ echo "$as_me:$LINENO: checking for long" >&5
13318echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013319if test "${ac_cv_type_long+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
13322 cat >conftest.$ac_ext <<_ACEOF
13323/* confdefs.h. */
13324_ACEOF
13325cat confdefs.h >>conftest.$ac_ext
13326cat >>conftest.$ac_ext <<_ACEOF
13327/* end confdefs.h. */
13328$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013329typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013330int
13331main ()
13332{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013333if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013334 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013335if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013336 return 0;
13337 ;
13338 return 0;
13339}
13340_ACEOF
13341rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013342if { (ac_try="$ac_compile"
13343case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013354 (exit $ac_status); } && {
13355 test -z "$ac_c_werror_flag" ||
13356 test ! -s conftest.err
13357 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358 ac_cv_type_long=yes
13359else
13360 echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
Theodore Ts'oe1052142006-10-21 21:46:47 -040013363 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013364fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013365
Theodore Ts'oe1052142006-10-21 21:46:47 -040013366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367fi
13368{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13369echo "${ECHO_T}$ac_cv_type_long" >&6; }
13370
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013371# The cast to long int works around a bug in the HP C Compiler
13372# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13373# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13374# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013375{ echo "$as_me:$LINENO: checking size of long" >&5
13376echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013377if test "${ac_cv_sizeof_long+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13379else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013380 if test "$cross_compiling" = yes; then
13381 # Depending upon the size, compute the lo and hi bounds.
13382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013389 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013390int
13391main ()
13392{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013393static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013394test_array [0] = 0
13395
13396 ;
13397 return 0;
13398}
13399_ACEOF
13400rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013401if { (ac_try="$ac_compile"
13402case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405esac
13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417 ac_lo=0 ac_mid=0
13418 while :; do
13419 cat >conftest.$ac_ext <<_ACEOF
13420/* confdefs.h. */
13421_ACEOF
13422cat confdefs.h >>conftest.$ac_ext
13423cat >>conftest.$ac_ext <<_ACEOF
13424/* end confdefs.h. */
13425$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013426 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013427int
13428main ()
13429{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013430static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013431test_array [0] = 0
13432
13433 ;
13434 return 0;
13435}
13436_ACEOF
13437rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013438if { (ac_try="$ac_compile"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013454 ac_hi=$ac_mid; break
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
Theodore Ts'oe1052142006-10-21 21:46:47 -040013459 ac_lo=`expr $ac_mid + 1`
13460 if test $ac_lo -le $ac_mid; then
13461 ac_lo= ac_hi=
13462 break
13463 fi
13464 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013465fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013466
13467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013468 done
13469else
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
Theodore Ts'oe1052142006-10-21 21:46:47 -040013473 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013474/* confdefs.h. */
13475_ACEOF
13476cat confdefs.h >>conftest.$ac_ext
13477cat >>conftest.$ac_ext <<_ACEOF
13478/* end confdefs.h. */
13479$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013480 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013481int
13482main ()
13483{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013485test_array [0] = 0
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013492if { (ac_try="$ac_compile"
13493case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013508 ac_hi=-1 ac_mid=-1
13509 while :; do
13510 cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013517 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013518int
13519main ()
13520{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013521static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013522test_array [0] = 0
13523
13524 ;
13525 return 0;
13526}
13527_ACEOF
13528rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013529if { (ac_try="$ac_compile"
13530case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13533esac
13534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013541 (exit $ac_status); } && {
13542 test -z "$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013545 ac_lo=$ac_mid; break
13546else
13547 echo "$as_me: failed program was:" >&5
13548sed 's/^/| /' conftest.$ac_ext >&5
13549
Theodore Ts'oe1052142006-10-21 21:46:47 -040013550 ac_hi=`expr '(' $ac_mid ')' - 1`
13551 if test $ac_mid -le $ac_hi; then
13552 ac_lo= ac_hi=
13553 break
13554 fi
13555 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013557
13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013559 done
13560else
13561 echo "$as_me: failed program was:" >&5
13562sed 's/^/| /' conftest.$ac_ext >&5
13563
Theodore Ts'oe1052142006-10-21 21:46:47 -040013564 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013565fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013566
13567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013569
13570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571# Binary search between lo and hi bounds.
13572while test "x$ac_lo" != "x$ac_hi"; do
13573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13574 cat >conftest.$ac_ext <<_ACEOF
13575/* confdefs.h. */
13576_ACEOF
13577cat confdefs.h >>conftest.$ac_ext
13578cat >>conftest.$ac_ext <<_ACEOF
13579/* end confdefs.h. */
13580$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013581 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013582int
13583main ()
13584{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013585static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013586test_array [0] = 0
13587
13588 ;
13589 return 0;
13590}
13591_ACEOF
13592rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013593if { (ac_try="$ac_compile"
13594case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609 ac_hi=$ac_mid
13610else
13611 echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
Theodore Ts'oe1052142006-10-21 21:46:47 -040013614 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013616
13617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013618done
13619case $ac_lo in
13620?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013621'') if test "$ac_cv_type_long" = yes; then
13622 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013623See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013624echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013625See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013626 { (exit 77); exit 77; }; }
13627 else
13628 ac_cv_sizeof_long=0
13629 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013630esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013631else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013632 cat >conftest.$ac_ext <<_ACEOF
13633/* confdefs.h. */
13634_ACEOF
13635cat confdefs.h >>conftest.$ac_ext
13636cat >>conftest.$ac_ext <<_ACEOF
13637/* end confdefs.h. */
13638$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013639 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013640static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13641static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013642#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013643#include <stdlib.h>
13644int
13645main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013646{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013647
13648 FILE *f = fopen ("conftest.val", "w");
13649 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013650 return 1;
13651 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013652 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013653 long int i = longval ();
13654 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13655 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013656 fprintf (f, "%ld\n", i);
13657 }
13658 else
13659 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013660 unsigned long int i = ulongval ();
13661 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13662 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013663 fprintf (f, "%lu\n", i);
13664 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013665 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013666
13667 ;
13668 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013669}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013670_ACEOF
13671rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013672if { (ac_try="$ac_link"
13673case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676esac
13677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685esac
13686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013692else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693 echo "$as_me: program exited with status $ac_status" >&5
13694echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
13697( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013698if test "$ac_cv_type_long" = yes; then
13699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013700See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013701echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013702See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013703 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013704 else
13705 ac_cv_sizeof_long=0
13706 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013707fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013708rm -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 -050013709fi
13710rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013712{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13713echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013714
13715
13716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013717cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013718#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013719_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013720
13721
Theodore Ts'oe1052142006-10-21 21:46:47 -040013722{ echo "$as_me:$LINENO: checking for long long" >&5
13723echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724if test "${ac_cv_type_long_long+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13726else
13727 cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
13733$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013734typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013735int
13736main ()
13737{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013738if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013740if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013741 return 0;
13742 ;
13743 return 0;
13744}
13745_ACEOF
13746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013747if { (ac_try="$ac_compile"
13748case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763 ac_cv_type_long_long=yes
13764else
13765 echo "$as_me: failed program was:" >&5
13766sed 's/^/| /' conftest.$ac_ext >&5
13767
Theodore Ts'oe1052142006-10-21 21:46:47 -040013768 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013769fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013770
Theodore Ts'oe1052142006-10-21 21:46:47 -040013771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772fi
13773{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13774echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13775
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013776# The cast to long int works around a bug in the HP C Compiler
13777# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13778# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13779# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013780{ echo "$as_me:$LINENO: checking size of long long" >&5
13781echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013782if test "${ac_cv_sizeof_long_long+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013785 if test "$cross_compiling" = yes; then
13786 # Depending upon the size, compute the lo and hi bounds.
13787cat >conftest.$ac_ext <<_ACEOF
13788/* confdefs.h. */
13789_ACEOF
13790cat confdefs.h >>conftest.$ac_ext
13791cat >>conftest.$ac_ext <<_ACEOF
13792/* end confdefs.h. */
13793$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013794 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013795int
13796main ()
13797{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013798static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013799test_array [0] = 0
13800
13801 ;
13802 return 0;
13803}
13804_ACEOF
13805rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013806if { (ac_try="$ac_compile"
13807case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810esac
13811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013818 (exit $ac_status); } && {
13819 test -z "$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822 ac_lo=0 ac_mid=0
13823 while :; do
13824 cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
13830$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013831 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013832int
13833main ()
13834{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013835static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013836test_array [0] = 0
13837
13838 ;
13839 return 0;
13840}
13841_ACEOF
13842rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013843if { (ac_try="$ac_compile"
13844case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13847esac
13848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850 ac_status=$?
13851 grep -v '^ *+' conftest.er1 >conftest.err
13852 rm -f conftest.er1
13853 cat conftest.err >&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013855 (exit $ac_status); } && {
13856 test -z "$ac_c_werror_flag" ||
13857 test ! -s conftest.err
13858 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013859 ac_hi=$ac_mid; break
13860else
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
Theodore Ts'oe1052142006-10-21 21:46:47 -040013864 ac_lo=`expr $ac_mid + 1`
13865 if test $ac_lo -le $ac_mid; then
13866 ac_lo= ac_hi=
13867 break
13868 fi
13869 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013870fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013871
13872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013873 done
13874else
13875 echo "$as_me: failed program was:" >&5
13876sed 's/^/| /' conftest.$ac_ext >&5
13877
Theodore Ts'oe1052142006-10-21 21:46:47 -040013878 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013885 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886int
13887main ()
13888{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013889static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013890test_array [0] = 0
13891
13892 ;
13893 return 0;
13894}
13895_ACEOF
13896rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013897if { (ac_try="$ac_compile"
13898case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13901esac
13902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913 ac_hi=-1 ac_mid=-1
13914 while :; do
13915 cat >conftest.$ac_ext <<_ACEOF
13916/* confdefs.h. */
13917_ACEOF
13918cat confdefs.h >>conftest.$ac_ext
13919cat >>conftest.$ac_ext <<_ACEOF
13920/* end confdefs.h. */
13921$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013922 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013923int
13924main ()
13925{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013926static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013927test_array [0] = 0
13928
13929 ;
13930 return 0;
13931}
13932_ACEOF
13933rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013934if { (ac_try="$ac_compile"
13935case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938esac
13939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013950 ac_lo=$ac_mid; break
13951else
13952 echo "$as_me: failed program was:" >&5
13953sed 's/^/| /' conftest.$ac_ext >&5
13954
Theodore Ts'oe1052142006-10-21 21:46:47 -040013955 ac_hi=`expr '(' $ac_mid ')' - 1`
13956 if test $ac_mid -le $ac_hi; then
13957 ac_lo= ac_hi=
13958 break
13959 fi
13960 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013961fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013962
13963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013964 done
13965else
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
Theodore Ts'oe1052142006-10-21 21:46:47 -040013969 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013971
13972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013974
13975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976# Binary search between lo and hi bounds.
13977while test "x$ac_lo" != "x$ac_hi"; do
13978 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13979 cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
13985$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013986 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013987int
13988main ()
13989{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013990static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013991test_array [0] = 0
13992
13993 ;
13994 return 0;
13995}
13996_ACEOF
13997rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013998if { (ac_try="$ac_compile"
13999case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002esac
14003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014005 ac_status=$?
14006 grep -v '^ *+' conftest.er1 >conftest.err
14007 rm -f conftest.er1
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014010 (exit $ac_status); } && {
14011 test -z "$ac_c_werror_flag" ||
14012 test ! -s conftest.err
14013 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014014 ac_hi=$ac_mid
14015else
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
Theodore Ts'oe1052142006-10-21 21:46:47 -040014019 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014021
14022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014023done
14024case $ac_lo in
14025?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014026'') if test "$ac_cv_type_long_long" = yes; then
14027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014029echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014030See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014031 { (exit 77); exit 77; }; }
14032 else
14033 ac_cv_sizeof_long_long=0
14034 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014035esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014036else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037 cat >conftest.$ac_ext <<_ACEOF
14038/* confdefs.h. */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h. */
14043$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014044 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014045static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14046static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014047#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048#include <stdlib.h>
14049int
14050main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014051{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014052
14053 FILE *f = fopen ("conftest.val", "w");
14054 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014055 return 1;
14056 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014057 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014058 long int i = longval ();
14059 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14060 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014061 fprintf (f, "%ld\n", i);
14062 }
14063 else
14064 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014065 unsigned long int i = ulongval ();
14066 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14067 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068 fprintf (f, "%lu\n", i);
14069 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014070 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014071
14072 ;
14073 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014074}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014075_ACEOF
14076rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014077if { (ac_try="$ac_link"
14078case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14081esac
14082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014087 { (case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090esac
14091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014098 echo "$as_me: program exited with status $ac_status" >&5
14099echo "$as_me: failed program was:" >&5
14100sed 's/^/| /' conftest.$ac_ext >&5
14101
14102( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014103if test "$ac_cv_type_long_long" = yes; then
14104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014105See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014106echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014108 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014109 else
14110 ac_cv_sizeof_long_long=0
14111 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014112fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014113rm -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 -050014114fi
14115rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014117{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14118echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014119
14120
14121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014122cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014123#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014124_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014125
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014126
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014127SIZEOF_SHORT=$ac_cv_sizeof_short
14128SIZEOF_INT=$ac_cv_sizeof_int
14129SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014130SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14131
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014132
14133
14134
Theodore Ts'oe1052142006-10-21 21:46:47 -040014135{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14136echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014137if test "${ac_cv_c_bigendian+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014140 # See if sys/param.h defines the BYTE_ORDER macro.
14141cat >conftest.$ac_ext <<_ACEOF
14142/* confdefs.h. */
14143_ACEOF
14144cat confdefs.h >>conftest.$ac_ext
14145cat >>conftest.$ac_ext <<_ACEOF
14146/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014147#include <sys/types.h>
14148#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014150int
14151main ()
14152{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014153#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14154 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014155 bogus endian macros
14156#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014157
14158 ;
14159 return 0;
14160}
14161_ACEOF
14162rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014163if { (ac_try="$ac_compile"
14164case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167esac
14168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014175 (exit $ac_status); } && {
14176 test -z "$ac_c_werror_flag" ||
14177 test ! -s conftest.err
14178 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014179 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014180cat >conftest.$ac_ext <<_ACEOF
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014186#include <sys/types.h>
14187#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014188
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014189int
14190main ()
14191{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014192#if BYTE_ORDER != BIG_ENDIAN
14193 not big endian
14194#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014195
14196 ;
14197 return 0;
14198}
14199_ACEOF
14200rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014201if { (ac_try="$ac_compile"
14202case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205esac
14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014217 ac_cv_c_bigendian=yes
14218else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014219 echo "$as_me: failed program was:" >&5
14220sed 's/^/| /' conftest.$ac_ext >&5
14221
Theodore Ts'oe1052142006-10-21 21:46:47 -040014222 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014224
14225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014226else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014227 echo "$as_me: failed program was:" >&5
14228sed 's/^/| /' conftest.$ac_ext >&5
14229
Theodore Ts'oe1052142006-10-21 21:46:47 -040014230 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014231if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014232 # try to guess the endianness by grepping values into an object file
14233 ac_cv_c_bigendian=unknown
14234 cat >conftest.$ac_ext <<_ACEOF
14235/* confdefs.h. */
14236_ACEOF
14237cat confdefs.h >>conftest.$ac_ext
14238cat >>conftest.$ac_ext <<_ACEOF
14239/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014240short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14241short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014242void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014243short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14244short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014245void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14246int
14247main ()
14248{
14249 _ascii (); _ebcdic ();
14250 ;
14251 return 0;
14252}
14253_ACEOF
14254rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014255if { (ac_try="$ac_compile"
14256case "(($ac_try" in
14257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14259esac
14260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014262 ac_status=$?
14263 grep -v '^ *+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14272 ac_cv_c_bigendian=yes
14273fi
14274if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14275 if test "$ac_cv_c_bigendian" = unknown; then
14276 ac_cv_c_bigendian=no
14277 else
14278 # finding both strings is unlikely to happen, but who knows?
14279 ac_cv_c_bigendian=unknown
14280 fi
14281fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014283 echo "$as_me: failed program was:" >&5
14284sed 's/^/| /' conftest.$ac_ext >&5
14285
Theodore Ts'oe1052142006-10-21 21:46:47 -040014286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014287fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014288
14289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014290else
14291 cat >conftest.$ac_ext <<_ACEOF
14292/* confdefs.h. */
14293_ACEOF
14294cat confdefs.h >>conftest.$ac_ext
14295cat >>conftest.$ac_ext <<_ACEOF
14296/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014297$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298int
14299main ()
14300{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014301
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014302 /* Are we little or big endian? From Harbison&Steele. */
14303 union
14304 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014305 long int l;
14306 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014307 } u;
14308 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014309 return u.c[sizeof (long int) - 1] == 1;
14310
14311 ;
14312 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014313}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014314_ACEOF
14315rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316if { (ac_try="$ac_link"
14317case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014326 { (case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329esac
14330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014335 ac_cv_c_bigendian=no
14336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014337 echo "$as_me: program exited with status $ac_status" >&5
14338echo "$as_me: failed program was:" >&5
14339sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014341( exit $ac_status )
14342ac_cv_c_bigendian=yes
14343fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014344rm -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 -040014345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014346
14347
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014349
14350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014352{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14353echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014354case $ac_cv_c_bigendian in
14355 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014357cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014358#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014359_ACEOF
14360 ;;
14361 no)
14362 ;;
14363 *)
14364 { { echo "$as_me:$LINENO: error: unknown endianness
14365presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14366echo "$as_me: error: unknown endianness
14367presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14368 { (exit 1); exit 1; }; } ;;
14369esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014370
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014371BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014372ASM_TYPES_HEADER=./asm_types.h
14373
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014374
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014375for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014376do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014384ac_res=`eval echo '${'$as_ac_Header'}'`
14385 { echo "$as_me:$LINENO: result: $ac_res" >&5
14386echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014387else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014388 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397$ac_includes_default
14398#include <$ac_header>
14399_ACEOF
14400rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014401if { (ac_try="$ac_compile"
14402case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405esac
14406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014417 ac_header_compiler=yes
14418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
Theodore Ts'oe1052142006-10-21 21:46:47 -040014422 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424
14425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14427echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428
14429# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014430{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014432cat >conftest.$ac_ext <<_ACEOF
14433/* confdefs.h. */
14434_ACEOF
14435cat confdefs.h >>conftest.$ac_ext
14436cat >>conftest.$ac_ext <<_ACEOF
14437/* end confdefs.h. */
14438#include <$ac_header>
14439_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014440if { (ac_try="$ac_cpp conftest.$ac_ext"
14441case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447 ac_status=$?
14448 grep -v '^ *+' conftest.er1 >conftest.err
14449 rm -f conftest.er1
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014452 (exit $ac_status); } >/dev/null && {
14453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14454 test ! -s conftest.err
14455 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456 ac_header_preproc=yes
14457else
14458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ac_header_preproc=no
14462fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014464rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14466echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014467
14468# So? What about this header?
14469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14470 yes:no: )
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14475 ac_header_preproc=yes
14476 ;;
14477 no:yes:* )
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014491 ;;
14492esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 eval "$as_ac_Header=\$ac_header_preproc"
14499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014500ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014503
14504fi
14505if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14508_ACEOF
14509
14510fi
14511
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014512done
14513
Theodore Ts'oe1052142006-10-21 21:46:47 -040014514{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14515echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014516if test "${ac_cv_type_intptr_t+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014518else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014519 cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h. */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h. */
14525$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014526typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014527int
14528main ()
14529{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014530if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014532if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014533 return 0;
14534 ;
14535 return 0;
14536}
14537_ACEOF
14538rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014539if { (ac_try="$ac_compile"
14540case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543esac
14544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014555 ac_cv_type_intptr_t=yes
14556else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014557 echo "$as_me: failed program was:" >&5
14558sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014559
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014562
14563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014564fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014565{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14566echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014567if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014568
14569cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014570#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014571_ACEOF
14572
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014574fi
14575
Theodore Ts'oe1052142006-10-21 21:46:47 -040014576{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14577echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014578if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580else
14581 cat >conftest.$ac_ext <<_ACEOF
14582/* confdefs.h. */
14583_ACEOF
14584cat confdefs.h >>conftest.$ac_ext
14585cat >>conftest.$ac_ext <<_ACEOF
14586/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014587#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014588int
14589main ()
14590{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014591struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014592 ;
14593 return 0;
14594}
14595_ACEOF
14596rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014597if { (ac_try="$ac_compile"
14598case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14601esac
14602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014604 ac_status=$?
14605 grep -v '^ *+' conftest.er1 >conftest.err
14606 rm -f conftest.er1
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014609 (exit $ac_status); } && {
14610 test -z "$ac_c_werror_flag" ||
14611 test ! -s conftest.err
14612 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014613 e2fsprogs_cv_struct_st_flags=yes
14614else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014615 echo "$as_me: failed program was:" >&5
14616sed 's/^/| /' conftest.$ac_ext >&5
14617
Theodore Ts'oe1052142006-10-21 21:46:47 -040014618 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014619fi
14620
Theodore Ts'oe1052142006-10-21 21:46:47 -040014621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622fi
14623
14624{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14625echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014626if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014627 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14628echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014629 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014631else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014632 cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014638#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014639int
14640main ()
14641{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014642struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014643 ;
14644 return 0;
14645}
14646_ACEOF
14647rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014648if { (ac_try="$ac_compile"
14649case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652esac
14653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014664 e2fsprogs_cv_struct_st_flags_immut=yes
14665else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014666 echo "$as_me: failed program was:" >&5
14667sed 's/^/| /' conftest.$ac_ext >&5
14668
Theodore Ts'oe1052142006-10-21 21:46:47 -040014669 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014670fi
14671
Theodore Ts'oe1052142006-10-21 21:46:47 -040014672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673fi
14674
14675 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14676echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014677 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014678 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014679#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014680_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014681
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014682 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014684{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14685echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014686if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014687 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014688else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014689 cat >conftest.$ac_ext <<_ACEOF
14690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014695#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014696 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014698int
14699main ()
14700{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014701static struct sockaddr ac_aggr;
14702if (ac_aggr.sa_len)
14703return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014704 ;
14705 return 0;
14706}
14707_ACEOF
14708rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014709if { (ac_try="$ac_compile"
14710case "(($ac_try" in
14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712 *) ac_try_echo=$ac_try;;
14713esac
14714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014716 ac_status=$?
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014721 (exit $ac_status); } && {
14722 test -z "$ac_c_werror_flag" ||
14723 test ! -s conftest.err
14724 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014725 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014726else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014727 echo "$as_me: failed program was:" >&5
14728sed 's/^/| /' conftest.$ac_ext >&5
14729
Theodore Ts'oe1052142006-10-21 21:46:47 -040014730 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014731/* confdefs.h. */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h. */
14736#include <sys/types.h>
14737 #include <sys/socket.h>
14738
14739int
14740main ()
14741{
14742static struct sockaddr ac_aggr;
14743if (sizeof ac_aggr.sa_len)
14744return 0;
14745 ;
14746 return 0;
14747}
14748_ACEOF
14749rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014750if { (ac_try="$ac_compile"
14751case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014766 ac_cv_member_struct_sockaddr_sa_len=yes
14767else
14768 echo "$as_me: failed program was:" >&5
14769sed 's/^/| /' conftest.$ac_ext >&5
14770
Theodore Ts'oe1052142006-10-21 21:46:47 -040014771 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014772fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014773
14774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014775fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014776
14777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014778fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014779{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14780echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014781if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014782
14783cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014784#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014785_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014786
14787fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014807
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014808
14809
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014810
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014811
Theodore Ts'o106ad962007-04-04 21:26:37 -040014812
14813
14814
Theodore Ts'o740837d2007-12-16 17:21:38 -050014815
14816
Theodore Ts'o261cd392008-01-21 13:45:00 -050014817
14818for 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014819do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014824 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014825else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014826 cat >conftest.$ac_ext <<_ACEOF
14827/* confdefs.h. */
14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h. */
14832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14834#define $ac_func innocuous_$ac_func
14835
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014836/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014837 which can conflict with char $ac_func (); below.
14838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 <limits.h> exists even on freestanding compilers. */
14840
14841#ifdef __STDC__
14842# include <limits.h>
14843#else
14844# include <assert.h>
14845#endif
14846
14847#undef $ac_func
14848
Theodore Ts'oe1052142006-10-21 21:46:47 -040014849/* Override any GCC internal prototype to avoid an error.
14850 Use char because int might match the return type of a GCC
14851 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014852#ifdef __cplusplus
14853extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014854#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014855char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014856/* The GNU C library defines this for functions which it implements
14857 to always fail with ENOSYS. Some functions are actually named
14858 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014859#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014860choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014861#endif
14862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014863int
14864main ()
14865{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014866return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014867 ;
14868 return 0;
14869}
14870_ACEOF
14871rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014872if { (ac_try="$ac_link"
14873case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876esac
14877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest$ac_exeext &&
14888 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014889 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014890else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014891 echo "$as_me: failed program was:" >&5
14892sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014893
Theodore Ts'oe1052142006-10-21 21:46:47 -040014894 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014896
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014898 conftest$ac_exeext conftest.$ac_ext
14899fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014900ac_res=`eval echo '${'$as_ac_var'}'`
14901 { echo "$as_me:$LINENO: result: $ac_res" >&5
14902echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014903if test `eval echo '${'$as_ac_var'}'` = yes; then
14904 cat >>confdefs.h <<_ACEOF
14905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14906_ACEOF
14907
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014908fi
14909done
14910
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014911SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014912{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14913echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014914if test "${ac_cv_lib_socket_socket+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014917 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014918LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014919cat >conftest.$ac_ext <<_ACEOF
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925
Theodore Ts'oe1052142006-10-21 21:46:47 -040014926/* Override any GCC internal prototype to avoid an error.
14927 Use char because int might match the return type of a GCC
14928 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014929#ifdef __cplusplus
14930extern "C"
14931#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014932char socket ();
14933int
14934main ()
14935{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014936return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014937 ;
14938 return 0;
14939}
14940_ACEOF
14941rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014942if { (ac_try="$ac_link"
14943case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946esac
14947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest$ac_exeext &&
14958 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014959 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014961 echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014963
Theodore Ts'oe1052142006-10-21 21:46:47 -040014964 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014965fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014966
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014968 conftest$ac_exeext conftest.$ac_ext
14969LIBS=$ac_check_lib_save_LIBS
14970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014971{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14972echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014973if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014974 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014975fi
14976
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014977
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014978DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014979{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14980echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014981if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014983else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014985LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014986cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992
Theodore Ts'oe1052142006-10-21 21:46:47 -040014993/* Override any GCC internal prototype to avoid an error.
14994 Use char because int might match the return type of a GCC
14995 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014996#ifdef __cplusplus
14997extern "C"
14998#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014999char dlopen ();
15000int
15001main ()
15002{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015003return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015004 ;
15005 return 0;
15006}
15007_ACEOF
15008rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015009if { (ac_try="$ac_link"
15010case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest$ac_exeext &&
15025 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015026 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015027else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015028 echo "$as_me: failed program was:" >&5
15029sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015030
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015032fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015033
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015035 conftest$ac_exeext conftest.$ac_ext
15036LIBS=$ac_check_lib_save_LIBS
15037fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015038{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15039echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015040if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015041 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015042cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015043#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015044_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015045
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015046fi
15047
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015048
Theodore Ts'oe1052142006-10-21 21:46:47 -040015049{ echo "$as_me:$LINENO: checking for optreset" >&5
15050echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015051if test "${ac_cv_have_optreset+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015054 cat >conftest.$ac_ext <<_ACEOF
15055/* confdefs.h. */
15056_ACEOF
15057cat confdefs.h >>conftest.$ac_ext
15058cat >>conftest.$ac_ext <<_ACEOF
15059/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015060#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061
15062_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015064 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015065 ac_cv_have_optreset=yes
15066else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015067 ac_cv_have_optreset=no
15068fi
15069rm -f conftest*
15070
15071fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015072{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15073echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015074if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015075 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015076#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015077_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015078
15079fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015080{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15081echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015082if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015083 UNI_DIFF_OPTS=-u
15084else
15085 UNI_DIFF_OPTS=-c
15086fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015087{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15088echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015089
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015090case "$host_os" in
15091linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015092 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015093#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015094_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015095
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015096 ;;
15097esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015098LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015099CYGWIN_CMT="#"
15100UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015101case "$host_os" in
15102linux*)
15103 LINUX_CMT=
15104 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015105cygwin)
15106 CYGWIN_CMT=
15107 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015108 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015109esac
15110
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015111
15112
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015113case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015114linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015115 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15116 root_prefix="";
15117 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015118 fi
15119 ;;
15120esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015121case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015122linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015123 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015124 prefix="/usr";
15125 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015126 if test "$mandir" = '${prefix}/man' ; then
15127 echo "...and mandir defaults to /usr/share/man"
15128 mandir=/usr/share/man
15129 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015130 fi
15131;;
15132esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015133if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015134 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015135 root_prefix="$ac_default_prefix"
15136 else
15137 root_prefix="$prefix"
15138 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015139 root_bindir=$bindir
15140 root_sbindir=$sbindir
15141 root_libdir=$libdir
15142 root_sysconfdir=$sysconfdir
15143else
15144 root_bindir='${root_prefix}/bin'
15145 root_sbindir='${root_prefix}/sbin'
15146 root_libdir='${root_prefix}/lib'
15147 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015148fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015149if test "$bindir" != '${exec_prefix}/bin'; then
15150 root_bindir=$bindir
15151 echo "Setting root_bindir to $root_bindir"
15152fi
15153if test "$sbindir" != '${exec_prefix}/sbin'; then
15154 root_sbindir=$sbindir
15155 echo "Setting root_sbindir to $root_sbindir"
15156fi
15157if test "$libdir" != '${exec_prefix}/lib'; then
15158 root_libdir=$libdir
15159 echo "Setting root_libdir to $root_libdir"
15160fi
15161if test "$sysconfdir" != '${prefix}/etc'; then
15162 root_sysconfdir=$sysconfdir
15163 echo "Setting root_sysconfdir to $root_sysconfdir"
15164fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015165
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015166
15167
15168
15169
Theodore Ts'oe1052142006-10-21 21:46:47 -040015170{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15171echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015172if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015174else
15175 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015176cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
15181/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015182#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015183int
15184main ()
15185{
Theodore Ts'oae851481997-04-29 18:13:24 +000015186fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015187 ;
15188 return 0;
15189}
15190_ACEOF
15191rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015192if { (ac_try="$ac_link"
15193case "(($ac_try" in
15194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15195 *) ac_try_echo=$ac_try;;
15196esac
15197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15198 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015199 ac_status=$?
15200 grep -v '^ *+' conftest.er1 >conftest.err
15201 rm -f conftest.er1
15202 cat conftest.err >&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015204 (exit $ac_status); } && {
15205 test -z "$ac_c_werror_flag" ||
15206 test ! -s conftest.err
15207 } && test -s conftest$ac_exeext &&
15208 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015209 ac_cv_e2fsprogs_use_static=yes
15210else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015211 echo "$as_me: failed program was:" >&5
15212sed 's/^/| /' conftest.$ac_ext >&5
15213
Theodore Ts'oe1052142006-10-21 21:46:47 -040015214 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015216
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015218 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015219LDFLAGS=$SAVE_LDFLAGS
15220fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015221
Theodore Ts'odefde781999-01-04 07:39:19 +000015222case "$host_os" in
15223solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015224 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015225;;
15226esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015227{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15228echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015229LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015230if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015231 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015232fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015233
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015234case "$host_os" in
15235darwin*)
15236 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015237 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015238#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015239_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015240
15241 ;;
15242esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015243SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15244ET_DIR=`cd ${srcdir}/lib/et; pwd`
15245
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015246
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015247if test "$cross_compiling" = yes ; then
15248 DO_TEST_SUITE=
15249else
15250 DO_TEST_SUITE=check
15251fi
15252
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015253INTL_FLAGS=
15254if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15255 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15256fi
15257
Theodore Ts'odd947da2005-11-09 18:37:07 -040015258if test $cross_compiling = no; then
15259 BUILD_CFLAGS="$CFLAGS"
15260 BUILD_LDFLAGS="$LDFLAGS"
15261else
15262 BUILD_CFLAGS=
15263 BUILD_LDFLAGS=
15264fi
15265
15266
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015267test -d lib || mkdir lib
15268test -d include || mkdir include
15269test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015270test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015271for i in MCONFIG Makefile e2fsprogs.spec \
15272 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015273 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15274 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015275 lib/uuid/Makefile lib/uuid/uuid_types.h \
15276 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015277 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15278 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015279 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015280 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15281 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15282 if test -d `dirname ${srcdir}/$i` ; then
15283 outlist="$outlist $i"
15284 fi
15285done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015286ac_config_files="$ac_config_files $outlist"
15287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015288cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015289# This file is a shell script that caches the results of configure
15290# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015291# scripts and configure runs, see configure's option --config-cache.
15292# It is not useful on other systems. If it contains results you don't
15293# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015294#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015295# config.status only pays attention to the cache file if you give it
15296# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015297#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015298# `ac_cv_env_foo' variables (set or unset) will be overridden when
15299# loading this file, other *unset* `ac_cv_foo' will be assigned the
15300# following values.
15301
15302_ACEOF
15303
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015304# The following way of writing the cache mishandles newlines in values,
15305# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015306# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015307# Ultrix sh set writes to stderr and can't be redirected directly,
15308# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015309(
15310 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15311 eval ac_val=\$$ac_var
15312 case $ac_val in #(
15313 *${as_nl}*)
15314 case $ac_var in #(
15315 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15316echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15317 esac
15318 case $ac_var in #(
15319 _ | IFS | as_nl) ;; #(
15320 *) $as_unset $ac_var ;;
15321 esac ;;
15322 esac
15323 done
15324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015325 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15327 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015328 # `set' does not quote correctly, so add quotes (double-quote
15329 # substitution turns \\\\ into \\, and sed turns \\ into \).
15330 sed -n \
15331 "s/'/'\\\\''/g;
15332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015333 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015334 *)
15335 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015337 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015338 esac |
15339 sort
15340) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015341 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015342 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015343 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015344 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15346 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15348 :end' >>confcache
15349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15350 if test -w "$cache_file"; then
15351 test "x$cache_file" != "x/dev/null" &&
15352 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15353echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015354 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015355 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015356 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15357echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015358 fi
15359fi
15360rm -f confcache
15361
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015362test "x$prefix" = xNONE && prefix=$ac_default_prefix
15363# Let make expand exec_prefix.
15364test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15365
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015366# Transform confdefs.h into DEFS.
15367# Protect against shell expansion while executing Makefile rules.
15368# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015369#
15370# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015371# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015372# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015373ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015374t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015375:clear
15376s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015377t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015378s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015379t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015380b any
15381:quote
15382s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15383s/\[/\\&/g
15384s/\]/\\&/g
15385s/\$/$$/g
15386H
15387:any
15388${
15389 g
15390 s/^\n//
15391 s/\n/ /g
15392 p
15393}
15394'
15395DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015396
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015397
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015398ac_libobjs=
15399ac_ltlibobjs=
15400for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15401 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15403 ac_i=`echo "$ac_i" | sed "$ac_script"`
15404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15405 # will be set to the directory where LIBOBJS objects are built.
15406 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15407 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015408done
15409LIBOBJS=$ac_libobjs
15410
15411LTLIBOBJS=$ac_ltlibobjs
15412
15413
15414
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015415: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015416ac_clean_files_save=$ac_clean_files
15417ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15418{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15419echo "$as_me: creating $CONFIG_STATUS" >&6;}
15420cat >$CONFIG_STATUS <<_ACEOF
15421#! $SHELL
15422# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015423# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015424# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015425# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427debug=false
15428ac_cs_recheck=false
15429ac_cs_silent=false
15430SHELL=\${CONFIG_SHELL-$SHELL}
15431_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015433cat >>$CONFIG_STATUS <<\_ACEOF
15434## --------------------- ##
15435## M4sh Initialization. ##
15436## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015437
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015438# Be more Bourne compatible
15439DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015440if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15441 emulate sh
15442 NULLCMD=:
15443 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15444 # is contrary to our usage. Disable this feature.
15445 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015446 setopt NO_GLOB_SUBST
15447else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015448 case `(set -o) 2>/dev/null` in
15449 *posix*) set -o posix ;;
15450esac
15451
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015452fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015453
15454
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015455
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015456
Theodore Ts'oe1052142006-10-21 21:46:47 -040015457# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015458# Avoid depending upon Character Ranges.
15459as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15460as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15461as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15462as_cr_digits='0123456789'
15463as_cr_alnum=$as_cr_Letters$as_cr_digits
15464
15465# The user is always right.
15466if test "${PATH_SEPARATOR+set}" != set; then
15467 echo "#! /bin/sh" >conf$$.sh
15468 echo "exit 0" >>conf$$.sh
15469 chmod +x conf$$.sh
15470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15471 PATH_SEPARATOR=';'
15472 else
15473 PATH_SEPARATOR=:
15474 fi
15475 rm -f conf$$.sh
15476fi
15477
Theodore Ts'oe1052142006-10-21 21:46:47 -040015478# Support unset when possible.
15479if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15480 as_unset=unset
15481else
15482 as_unset=false
15483fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015484
Theodore Ts'oe1052142006-10-21 21:46:47 -040015485
15486# IFS
15487# We need space, tab and new line, in precisely that order. Quoting is
15488# there to prevent editors from complaining about space-tab.
15489# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15490# splitting by setting IFS to empty value.)
15491as_nl='
15492'
15493IFS=" "" $as_nl"
15494
15495# Find who we are. Look in the path if we contain no directory separator.
15496case $0 in
15497 *[\\/]* ) as_myself=$0 ;;
15498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015499for as_dir in $PATH
15500do
15501 IFS=$as_save_IFS
15502 test -z "$as_dir" && as_dir=.
15503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15504done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015505IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015506
Theodore Ts'oe1052142006-10-21 21:46:47 -040015507 ;;
15508esac
15509# We did not find ourselves, most probably we were run as `sh COMMAND'
15510# in which case we are not to be found in the path.
15511if test "x$as_myself" = x; then
15512 as_myself=$0
15513fi
15514if test ! -f "$as_myself"; then
15515 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15516 { (exit 1); exit 1; }
15517fi
15518
15519# Work around bugs in pre-3.0 UWIN ksh.
15520for as_var in ENV MAIL MAILPATH
15521do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15522done
15523PS1='$ '
15524PS2='> '
15525PS4='+ '
15526
15527# NLS nuisances.
15528for as_var in \
15529 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15530 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15531 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015532do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015533 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15534 eval $as_var=C; export $as_var
15535 else
15536 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15537 fi
15538done
15539
15540# Required to use basename.
15541if expr a : '\(a\)' >/dev/null 2>&1 &&
15542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15543 as_expr=expr
15544else
15545 as_expr=false
15546fi
15547
15548if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15549 as_basename=basename
15550else
15551 as_basename=false
15552fi
15553
15554
15555# Name of the executable.
15556as_me=`$as_basename -- "$0" ||
15557$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15558 X"$0" : 'X\(//\)$' \| \
15559 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15560echo X/"$0" |
15561 sed '/^.*\/\([^/][^/]*\)\/*$/{
15562 s//\1/
15563 q
15564 }
15565 /^X\/\(\/\/\)$/{
15566 s//\1/
15567 q
15568 }
15569 /^X\/\(\/\).*/{
15570 s//\1/
15571 q
15572 }
15573 s/.*/./; q'`
15574
15575# CDPATH.
15576$as_unset CDPATH
15577
15578
15579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580 as_lineno_1=$LINENO
15581 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015582 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015583 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15586 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015587 # line-number line after each line using $LINENO; the second 'sed'
15588 # does the real work. The second script uses 'N' to pair each
15589 # line-number line with the line containing $LINENO, and appends
15590 # trailing '-' during substitution so that $LINENO is not a special
15591 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015592 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015593 # scripts with optimization help from Paolo Bonzini. Blame Lee
15594 # E. McMahon (1931-1989) for sed's syntax. :-)
15595 sed -n '
15596 p
15597 /[$]LINENO/=
15598 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015599 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015600 s/[$]LINENO.*/&-/
15601 t lineno
15602 b
15603 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015604 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015605 :loop
15606 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015607 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015608 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015609 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015610 chmod +x "$as_me.lineno" ||
15611 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015612 { (exit 1); exit 1; }; }
15613
15614 # Don't try to exec as it changes $[0], causing all sort of problems
15615 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015616 # original and so on. Autoconf is especially sensitive to this).
15617 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015618 # Exit status is that of the last command.
15619 exit
15620}
15621
15622
Theodore Ts'oe1052142006-10-21 21:46:47 -040015623if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15624 as_dirname=dirname
15625else
15626 as_dirname=false
15627fi
15628
15629ECHO_C= ECHO_N= ECHO_T=
15630case `echo -n x` in
15631-n*)
15632 case `echo 'x\c'` in
15633 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15634 *) ECHO_C='\c';;
15635 esac;;
15636*)
15637 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015638esac
15639
Theodore Ts'oe1052142006-10-21 21:46:47 -040015640if expr a : '\(a\)' >/dev/null 2>&1 &&
15641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015642 as_expr=expr
15643else
15644 as_expr=false
15645fi
15646
15647rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015648if test -d conf$$.dir; then
15649 rm -f conf$$.dir/conf$$.file
15650else
15651 rm -f conf$$.dir
15652 mkdir conf$$.dir
15653fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015654echo >conf$$.file
15655if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015656 as_ln_s='ln -s'
15657 # ... but there are two gotchas:
15658 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15659 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15660 # In both cases, we have to default to `cp -p'.
15661 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015662 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015663elif ln conf$$.file conf$$ 2>/dev/null; then
15664 as_ln_s=ln
15665else
15666 as_ln_s='cp -p'
15667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015668rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15669rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015670
15671if mkdir -p . 2>/dev/null; then
15672 as_mkdir_p=:
15673else
15674 test -d ./-p && rmdir ./-p
15675 as_mkdir_p=false
15676fi
15677
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015678if test -x / >/dev/null 2>&1; then
15679 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015680else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015681 if ls -dL / >/dev/null 2>&1; then
15682 as_ls_L_option=L
15683 else
15684 as_ls_L_option=
15685 fi
15686 as_test_x='
15687 eval sh -c '\''
15688 if test -d "$1"; then
15689 test -d "$1/.";
15690 else
15691 case $1 in
15692 -*)set "./$1";;
15693 esac;
15694 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15695 ???[sx]*):;;*)false;;esac;fi
15696 '\'' sh
15697 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015698fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015699as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015700
15701# Sed expression to map a string onto a valid CPP name.
15702as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15703
15704# Sed expression to map a string onto a valid variable name.
15705as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15706
15707
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015708exec 6>&1
15709
Theodore Ts'oe1052142006-10-21 21:46:47 -040015710# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015711# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015712# values after options handling.
15713ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015714This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015715generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015716
15717 CONFIG_FILES = $CONFIG_FILES
15718 CONFIG_HEADERS = $CONFIG_HEADERS
15719 CONFIG_LINKS = $CONFIG_LINKS
15720 CONFIG_COMMANDS = $CONFIG_COMMANDS
15721 $ $0 $@
15722
Theodore Ts'oe1052142006-10-21 21:46:47 -040015723on `(hostname || uname -n) 2>/dev/null | sed 1q`
15724"
15725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015726_ACEOF
15727
Theodore Ts'oe1052142006-10-21 21:46:47 -040015728cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015729# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015730config_files="$ac_config_files"
15731config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015732
Theodore Ts'oe1052142006-10-21 21:46:47 -040015733_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015734
15735cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015736ac_cs_usage="\
15737\`$as_me' instantiates files from templates according to the
15738current configuration.
15739
15740Usage: $0 [OPTIONS] [FILE]...
15741
15742 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015743 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015744 -q, --quiet do not print progress messages
15745 -d, --debug don't remove temporary files
15746 --recheck update $as_me by reconfiguring in the same conditions
15747 --file=FILE[:TEMPLATE]
15748 instantiate the configuration file FILE
15749
15750Configuration files:
15751$config_files
15752
15753Configuration commands:
15754$config_commands
15755
15756Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015757
Theodore Ts'oe1052142006-10-21 21:46:47 -040015758_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015759cat >>$CONFIG_STATUS <<_ACEOF
15760ac_cs_version="\\
15761config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015762configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015763 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015764
Theodore Ts'oe1052142006-10-21 21:46:47 -040015765Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015766This config.status script is free software; the Free Software Foundation
15767gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015768
15769ac_pwd='$ac_pwd'
15770srcdir='$srcdir'
15771INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015772_ACEOF
15773
15774cat >>$CONFIG_STATUS <<\_ACEOF
15775# If no file are specified by the user, then we need to provide default
15776# value. By we need to know if files were specified by the user.
15777ac_need_defaults=:
15778while test $# != 0
15779do
15780 case $1 in
15781 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015784 ac_shift=:
15785 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015786 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015787 ac_option=$1
15788 ac_optarg=$2
15789 ac_shift=shift
15790 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015791 esac
15792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015793 case $ac_option in
15794 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15796 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15798 echo "$ac_cs_version"; exit ;;
15799 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015800 debug=: ;;
15801 --file | --fil | --fi | --f )
15802 $ac_shift
15803 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15804 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015805 --he | --h | --help | --hel | -h )
15806 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15808 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15809 ac_cs_silent=: ;;
15810
15811 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015812 -*) { echo "$as_me: error: unrecognized option: $1
15813Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015814 { (exit 1); exit 1; }; } ;;
15815
Theodore Ts'oe1052142006-10-21 21:46:47 -040015816 *) ac_config_targets="$ac_config_targets $1"
15817 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015818
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015819 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015820 shift
15821done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015822
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015823ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015824
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015825if $ac_cs_silent; then
15826 exec 6>/dev/null
15827 ac_configure_extra_args="$ac_configure_extra_args --silent"
15828fi
15829
15830_ACEOF
15831cat >>$CONFIG_STATUS <<_ACEOF
15832if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015833 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15834 CONFIG_SHELL=$SHELL
15835 export CONFIG_SHELL
15836 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015837fi
15838
15839_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015840cat >>$CONFIG_STATUS <<\_ACEOF
15841exec 5>>config.log
15842{
15843 echo
15844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15845## Running $as_me. ##
15846_ASBOX
15847 echo "$ac_log"
15848} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015849
Theodore Ts'oe1052142006-10-21 21:46:47 -040015850_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015851cat >>$CONFIG_STATUS <<_ACEOF
15852#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015853# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015854#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015855# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015856 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015857 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015858 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015859 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15860 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015861
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015863_ACEOF
15864
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015865cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015866
15867# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015868for ac_config_target in $ac_config_targets
15869do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015870 case $ac_config_target in
15871 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15872 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015874 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15875echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15876 { (exit 1); exit 1; }; };;
15877 esac
15878done
15879
Theodore Ts'oe1052142006-10-21 21:46:47 -040015880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015881# If the user did not use the arguments to specify the items to instantiate,
15882# then the envvar interface is used. Set only those that are not.
15883# We use the long form for the default assignment because of an extremely
15884# bizarre bug on SunOS 4.1.3.
15885if $ac_need_defaults; then
15886 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15888fi
15889
15890# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015891# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015892# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015893# Hook for its removal unless debugging.
15894# Note that there is a small window in which the directory will not be cleaned:
15895# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015896$debug ||
15897{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015898 tmp=
15899 trap 'exit_status=$?
15900 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15901' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015902 trap '{ (exit 1); exit 1; }' 1 2 13 15
15903}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015904# Create a (secure) tmp directory for tmp files.
15905
15906{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015907 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015908 test -n "$tmp" && test -d "$tmp"
15909} ||
15910{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015911 tmp=./conf$$-$RANDOM
15912 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015913} ||
15914{
15915 echo "$me: cannot create a temporary directory in ." >&2
15916 { (exit 1); exit 1; }
15917}
15918
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015919#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015920# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015921#
15922
15923# No need to generate the scripts if there are no CONFIG_FILES.
15924# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015925if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015926
15927_ACEOF
15928
Theodore Ts'oe1052142006-10-21 21:46:47 -040015929# Create sed commands to just substitute file output variables.
15930
15931# Remaining file output variables are in a fragment that also has non-file
15932# output varibles.
15933
15934
15935
15936ac_delim='%!_!# '
15937for ac_last_try in false false false false false :; do
15938 cat >conf$$subs.sed <<_ACEOF
15939SHELL!$SHELL$ac_delim
15940PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15941PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15942PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15943PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15944PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15945PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15946exec_prefix!$exec_prefix$ac_delim
15947prefix!$prefix$ac_delim
15948program_transform_name!$program_transform_name$ac_delim
15949bindir!$bindir$ac_delim
15950sbindir!$sbindir$ac_delim
15951libexecdir!$libexecdir$ac_delim
15952datarootdir!$datarootdir$ac_delim
15953datadir!$datadir$ac_delim
15954sysconfdir!$sysconfdir$ac_delim
15955sharedstatedir!$sharedstatedir$ac_delim
15956localstatedir!$localstatedir$ac_delim
15957includedir!$includedir$ac_delim
15958oldincludedir!$oldincludedir$ac_delim
15959docdir!$docdir$ac_delim
15960infodir!$infodir$ac_delim
15961htmldir!$htmldir$ac_delim
15962dvidir!$dvidir$ac_delim
15963pdfdir!$pdfdir$ac_delim
15964psdir!$psdir$ac_delim
15965libdir!$libdir$ac_delim
15966localedir!$localedir$ac_delim
15967mandir!$mandir$ac_delim
15968DEFS!$DEFS$ac_delim
15969ECHO_C!$ECHO_C$ac_delim
15970ECHO_N!$ECHO_N$ac_delim
15971ECHO_T!$ECHO_T$ac_delim
15972LIBS!$LIBS$ac_delim
15973build_alias!$build_alias$ac_delim
15974host_alias!$host_alias$ac_delim
15975target_alias!$target_alias$ac_delim
15976E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15977E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15978E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15979E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015980E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015981build!$build$ac_delim
15982build_cpu!$build_cpu$ac_delim
15983build_vendor!$build_vendor$ac_delim
15984build_os!$build_os$ac_delim
15985host!$host$ac_delim
15986host_cpu!$host_cpu$ac_delim
15987host_vendor!$host_vendor$ac_delim
15988host_os!$host_os$ac_delim
15989CC!$CC$ac_delim
15990CFLAGS!$CFLAGS$ac_delim
15991LDFLAGS!$LDFLAGS$ac_delim
15992CPPFLAGS!$CPPFLAGS$ac_delim
15993ac_ct_CC!$ac_ct_CC$ac_delim
15994EXEEXT!$EXEEXT$ac_delim
15995OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015996CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015997LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015998GREP!$GREP$ac_delim
15999EGREP!$EGREP$ac_delim
16000LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16001MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16002HTREE_CMT!$HTREE_CMT$ac_delim
16003ELF_CMT!$ELF_CMT$ac_delim
16004BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16005PROFILE_CMT!$PROFILE_CMT$ac_delim
16006CHECKER_CMT!$CHECKER_CMT$ac_delim
16007LIB_EXT!$LIB_EXT$ac_delim
16008STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16009PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016010DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16011IMAGER_CMT!$IMAGER_CMT$ac_delim
16012RESIZER_CMT!$RESIZER_CMT$ac_delim
Theodore Ts'oa5dda052007-08-11 03:11:12 -040016013FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'o428f6b32008-01-27 20:09:05 -050016014FSCK_MAN!$FSCK_MAN$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016015_ACEOF
16016
16017 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16018 break
16019 elif $ac_last_try; then
16020 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16021echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16022 { (exit 1); exit 1; }; }
16023 else
16024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016025 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016026done
16027
16028ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16029if test -n "$ac_eof"; then
16030 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16031 ac_eof=`expr $ac_eof + 1`
16032fi
16033
16034cat >>$CONFIG_STATUS <<_ACEOF
16035cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16036/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16037/^[ ]*@MCONFIG@[ ]*$/{
16038r $MCONFIG
16039d
16040}
16041/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16042r $MAKEFILE_ELF
16043d
16044}
16045/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16046r $MAKEFILE_BSDLIB
16047d
16048}
16049/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16050r $MAKEFILE_PROFILE
16051d
16052}
16053/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16054r $MAKEFILE_CHECKER
16055d
16056}
16057/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16058r $MAKEFILE_LIBRARY
16059d
16060}
16061/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16062r $ASM_TYPES_HEADER
16063d
16064}
16065_ACEOF
16066sed '
16067s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16068s/^/s,@/; s/!/@,|#_!!_#|/
16069:n
16070t n
16071s/'"$ac_delim"'$/,g/; t
16072s/$/\\/; p
16073N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16074' >>$CONFIG_STATUS <conf$$subs.sed
16075rm -f conf$$subs.sed
16076cat >>$CONFIG_STATUS <<_ACEOF
16077CEOF$ac_eof
16078_ACEOF
16079
16080
16081ac_delim='%!_!# '
16082for ac_last_try in false false false false false :; do
16083 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016084E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16085E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016086PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016087DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16088DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16089DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16090STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016091STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016092UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016093GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16094PACKAGE!$PACKAGE$ac_delim
16095VERSION!$VERSION$ac_delim
16096SET_MAKE!$SET_MAKE$ac_delim
16097INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16098INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16099INSTALL_DATA!$INSTALL_DATA$ac_delim
16100MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16101USE_NLS!$USE_NLS$ac_delim
16102MSGFMT!$MSGFMT$ac_delim
16103GMSGFMT!$GMSGFMT$ac_delim
16104XGETTEXT!$XGETTEXT$ac_delim
16105MSGMERGE!$MSGMERGE$ac_delim
16106RANLIB!$RANLIB$ac_delim
16107ALLOCA!$ALLOCA$ac_delim
16108GLIBC21!$GLIBC21$ac_delim
16109HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16110HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16111HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16112HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16113LIBICONV!$LIBICONV$ac_delim
16114LTLIBICONV!$LTLIBICONV$ac_delim
16115INTLBISON!$INTLBISON$ac_delim
16116BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16117USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16118CATOBJEXT!$CATOBJEXT$ac_delim
16119DATADIRNAME!$DATADIRNAME$ac_delim
16120INSTOBJEXT!$INSTOBJEXT$ac_delim
16121GENCAT!$GENCAT$ac_delim
16122INTLOBJS!$INTLOBJS$ac_delim
16123INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16124INTLLIBS!$INTLLIBS$ac_delim
16125LIBINTL!$LIBINTL$ac_delim
16126LTLIBINTL!$LTLIBINTL$ac_delim
16127POSUB!$POSUB$ac_delim
16128BINARY_TYPE!$BINARY_TYPE$ac_delim
16129LN!$LN$ac_delim
16130LN_S!$LN_S$ac_delim
16131MV!$MV$ac_delim
16132CP!$CP$ac_delim
16133RM!$RM$ac_delim
16134CHMOD!$CHMOD$ac_delim
16135AWK!$AWK$ac_delim
16136SED!$SED$ac_delim
16137PERL!$PERL$ac_delim
16138LDCONFIG!$LDCONFIG$ac_delim
16139AR!$AR$ac_delim
16140STRIP!$STRIP$ac_delim
16141BUILD_CC!$BUILD_CC$ac_delim
16142SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16143SIZEOF_INT!$SIZEOF_INT$ac_delim
16144SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16145SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16146SOCKET_LIB!$SOCKET_LIB$ac_delim
16147DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16148UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16149LINUX_CMT!$LINUX_CMT$ac_delim
16150CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16151UNIX_CMT!$UNIX_CMT$ac_delim
16152root_prefix!$root_prefix$ac_delim
16153root_bindir!$root_bindir$ac_delim
16154root_sbindir!$root_sbindir$ac_delim
16155root_libdir!$root_libdir$ac_delim
16156root_sysconfdir!$root_sysconfdir$ac_delim
16157LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16158SS_DIR!$SS_DIR$ac_delim
16159ET_DIR!$ET_DIR$ac_delim
16160DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16161INTL_FLAGS!$INTL_FLAGS$ac_delim
16162BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16163BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16164LIBOBJS!$LIBOBJS$ac_delim
16165LTLIBOBJS!$LTLIBOBJS$ac_delim
16166_ACEOF
16167
Theodore Ts'o428f6b32008-01-27 20:09:05 -050016168 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016169 break
16170 elif $ac_last_try; then
16171 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16172echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16173 { (exit 1); exit 1; }; }
16174 else
16175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16176 fi
16177done
16178
16179ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16180if test -n "$ac_eof"; then
16181 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16182 ac_eof=`expr $ac_eof + 1`
16183fi
16184
16185cat >>$CONFIG_STATUS <<_ACEOF
16186cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16188_ACEOF
16189sed '
16190s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16191s/^/s,@/; s/!/@,|#_!!_#|/
16192:n
16193t n
16194s/'"$ac_delim"'$/,g/; t
16195s/$/\\/; p
16196N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16197' >>$CONFIG_STATUS <conf$$subs.sed
16198rm -f conf$$subs.sed
16199cat >>$CONFIG_STATUS <<_ACEOF
16200:end
16201s/|#_!!_#|//g
16202CEOF$ac_eof
16203_ACEOF
16204
16205
16206# VPATH may cause trouble with some makes, so we remove $(srcdir),
16207# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16208# trailing colons and then remove the whole line if VPATH becomes empty
16209# (actually we leave an empty line to preserve line numbers).
16210if test "x$srcdir" = x.; then
16211 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16212s/:*\$(srcdir):*/:/
16213s/:*\${srcdir}:*/:/
16214s/:*@srcdir@:*/:/
16215s/^\([^=]*=[ ]*\):*/\1/
16216s/:*$//
16217s/^[^=]*=[ ]*$//
16218}'
16219fi
16220
16221cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016222fi # test -n "$CONFIG_FILES"
16223
Theodore Ts'oe1052142006-10-21 21:46:47 -040016224
16225for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16226do
16227 case $ac_tag in
16228 :[FHLC]) ac_mode=$ac_tag; continue;;
16229 esac
16230 case $ac_mode$ac_tag in
16231 :[FHL]*:*);;
16232 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16233echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16234 { (exit 1); exit 1; }; };;
16235 :[FH]-) ac_tag=-:-;;
16236 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16237 esac
16238 ac_save_IFS=$IFS
16239 IFS=:
16240 set x $ac_tag
16241 IFS=$ac_save_IFS
16242 shift
16243 ac_file=$1
16244 shift
16245
16246 case $ac_mode in
16247 :L) ac_source=$1;;
16248 :[FH])
16249 ac_file_inputs=
16250 for ac_f
16251 do
16252 case $ac_f in
16253 -) ac_f="$tmp/stdin";;
16254 *) # Look for the file first in the build tree, then in the source tree
16255 # (if the path is not absolute). The absolute path cannot be DOS-style,
16256 # because $ac_f cannot contain `:'.
16257 test -f "$ac_f" ||
16258 case $ac_f in
16259 [\\/$]*) false;;
16260 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16261 esac ||
16262 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16263echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16264 { (exit 1); exit 1; }; };;
16265 esac
16266 ac_file_inputs="$ac_file_inputs $ac_f"
16267 done
16268
16269 # Let's still pretend it is `configure' which instantiates (i.e., don't
16270 # use $as_me), people would be surprised to read:
16271 # /* config.h. Generated by config.status. */
16272 configure_input="Generated from "`IFS=:
16273 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16274 if test x"$ac_file" != x-; then
16275 configure_input="$ac_file. $configure_input"
16276 { echo "$as_me:$LINENO: creating $ac_file" >&5
16277echo "$as_me: creating $ac_file" >&6;}
16278 fi
16279
16280 case $ac_tag in
16281 *:-:* | *:-) cat >"$tmp/stdin";;
16282 esac
16283 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016284 esac
16285
Theodore Ts'oe1052142006-10-21 21:46:47 -040016286 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016287$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288 X"$ac_file" : 'X\(//\)[^/]' \| \
16289 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016290 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016291echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16293 s//\1/
16294 q
16295 }
16296 /^X\(\/\/\)[^/].*/{
16297 s//\1/
16298 q
16299 }
16300 /^X\(\/\/\)$/{
16301 s//\1/
16302 q
16303 }
16304 /^X\(\/\).*/{
16305 s//\1/
16306 q
16307 }
16308 s/.*/./; q'`
16309 { as_dir="$ac_dir"
16310 case $as_dir in #(
16311 -*) as_dir=./$as_dir;;
16312 esac
16313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016314 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016315 while :; do
16316 case $as_dir in #(
16317 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16318 *) as_qdir=$as_dir;;
16319 esac
16320 as_dirs="'$as_qdir' $as_dirs"
16321 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16323 X"$as_dir" : 'X\(//\)[^/]' \| \
16324 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016326echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16328 s//\1/
16329 q
16330 }
16331 /^X\(\/\/\)[^/].*/{
16332 s//\1/
16333 q
16334 }
16335 /^X\(\/\/\)$/{
16336 s//\1/
16337 q
16338 }
16339 /^X\(\/\).*/{
16340 s//\1/
16341 q
16342 }
16343 s/.*/./; q'`
16344 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016345 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016346 test -z "$as_dirs" || eval "mkdir $as_dirs"
16347 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16348echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016349 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016350 ac_builddir=.
16351
Theodore Ts'oe1052142006-10-21 21:46:47 -040016352case "$ac_dir" in
16353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16354*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016356 # A ".." for each directory in $ac_dir_suffix.
16357 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16358 case $ac_top_builddir_sub in
16359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16361 esac ;;
16362esac
16363ac_abs_top_builddir=$ac_pwd
16364ac_abs_builddir=$ac_pwd$ac_dir_suffix
16365# for backward compatibility:
16366ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016367
16368case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016369 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016370 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016371 ac_top_srcdir=$ac_top_builddir_sub
16372 ac_abs_top_srcdir=$ac_pwd ;;
16373 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016374 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016375 ac_top_srcdir=$srcdir
16376 ac_abs_top_srcdir=$srcdir ;;
16377 *) # Relative name.
16378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16379 ac_top_srcdir=$ac_top_build_prefix$srcdir
16380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016381esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016384
Theodore Ts'oe1052142006-10-21 21:46:47 -040016385 case $ac_mode in
16386 :F)
16387 #
16388 # CONFIG_FILE
16389 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016390
16391 case $INSTALL in
16392 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016393 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016394 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016395_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016396
16397cat >>$CONFIG_STATUS <<\_ACEOF
16398# If the template does not know about datarootdir, expand it.
16399# FIXME: This hack should be removed a few years after 2.60.
16400ac_datarootdir_hack=; ac_datarootdir_seen=
16401
16402case `sed -n '/datarootdir/ {
16403 p
16404 q
16405}
16406/@datadir@/p
16407/@docdir@/p
16408/@infodir@/p
16409/@localedir@/p
16410/@mandir@/p
16411' $ac_file_inputs` in
16412*datarootdir*) ac_datarootdir_seen=yes;;
16413*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16414 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16415echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16416_ACEOF
16417cat >>$CONFIG_STATUS <<_ACEOF
16418 ac_datarootdir_hack='
16419 s&@datadir@&$datadir&g
16420 s&@docdir@&$docdir&g
16421 s&@infodir@&$infodir&g
16422 s&@localedir@&$localedir&g
16423 s&@mandir@&$mandir&g
16424 s&\\\${datarootdir}&$datarootdir&g' ;;
16425esac
16426_ACEOF
16427
16428# Neutralize VPATH when `$srcdir' = `.'.
16429# Shell code in configure.ac might set extrasub.
16430# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016431cat >>$CONFIG_STATUS <<_ACEOF
16432 sed "$ac_vpsub
16433$extrasub
16434_ACEOF
16435cat >>$CONFIG_STATUS <<\_ACEOF
16436:t
16437/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016438s&@configure_input@&$configure_input&;t t
16439s&@top_builddir@&$ac_top_builddir_sub&;t t
16440s&@srcdir@&$ac_srcdir&;t t
16441s&@abs_srcdir@&$ac_abs_srcdir&;t t
16442s&@top_srcdir@&$ac_top_srcdir&;t t
16443s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16444s&@builddir@&$ac_builddir&;t t
16445s&@abs_builddir@&$ac_abs_builddir&;t t
16446s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16447s&@INSTALL@&$ac_INSTALL&;t t
16448$ac_datarootdir_hack
16449" $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 -050016450
Theodore Ts'oe1052142006-10-21 21:46:47 -040016451test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16452 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16453 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16454 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16455which seems to be undefined. Please make sure it is defined." >&5
16456echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16457which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016458
Theodore Ts'oe1052142006-10-21 21:46:47 -040016459 rm -f "$tmp/stdin"
16460 case $ac_file in
16461 -) cat "$tmp/out"; rm -f "$tmp/out";;
16462 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16463 esac
16464 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016465
16466
Theodore Ts'oe1052142006-10-21 21:46:47 -040016467 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16468echo "$as_me: executing $ac_file commands" >&6;}
16469 ;;
16470 esac
16471
16472
16473 case $ac_file$ac_mode in
16474 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016475 for ac_file in $CONFIG_FILES; do
16476 # Support "outfile[:infile[:infile...]]"
16477 case "$ac_file" in
16478 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016479 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016480 # PO directories have a Makefile.in generated from Makefile.in.in.
16481 case "$ac_file" in */Makefile.in)
16482 # Adjust a relative srcdir.
16483 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16484 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16485 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16486 # In autoconf-2.13 it is called $ac_given_srcdir.
16487 # In autoconf-2.50 it is called $srcdir.
16488 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16489 case "$ac_given_srcdir" in
16490 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16491 /*) top_srcdir="$ac_given_srcdir" ;;
16492 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16493 esac
16494 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16495 rm -f "$ac_dir/POTFILES"
16496 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16497 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 -050016498 POMAKEFILEDEPS="POTFILES.in"
16499 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016500 # on $ac_dir but don't depend on user-specified configuration
16501 # parameters.
16502 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16503 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016504 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016505 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16506 fi
16507 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16508 # Hide the ALL_LINGUAS assigment from automake.
16509 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016510 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16511 else
16512 # The set of available languages was given in configure.in.
16513 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016514 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016515 # Compute POFILES
16516 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16517 # Compute UPDATEPOFILES
16518 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16519 # Compute DUMMYPOFILES
16520 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16521 # Compute GMOFILES
16522 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016523 case "$ac_given_srcdir" in
16524 .) srcdirpre= ;;
16525 *) srcdirpre='$(srcdir)/' ;;
16526 esac
16527 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016528 UPDATEPOFILES=
16529 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016530 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016531 for lang in $ALL_LINGUAS; do
16532 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016533 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16534 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016535 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016536 done
16537 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16538 # environment variable.
16539 INST_LINGUAS=
16540 if test -n "$ALL_LINGUAS"; then
16541 for presentlang in $ALL_LINGUAS; do
16542 useit=no
16543 if test "%UNSET%" != "$LINGUAS"; then
16544 desiredlanguages="$LINGUAS"
16545 else
16546 desiredlanguages="$ALL_LINGUAS"
16547 fi
16548 for desiredlang in $desiredlanguages; do
16549 # Use the presentlang catalog if desiredlang is
16550 # a. equal to presentlang, or
16551 # b. a variant of presentlang (because in this case,
16552 # presentlang can be used as a fallback for messages
16553 # which are not translated in the desiredlang catalog).
16554 case "$desiredlang" in
16555 "$presentlang"*) useit=yes;;
16556 esac
16557 done
16558 if test $useit = yes; then
16559 INST_LINGUAS="$INST_LINGUAS $presentlang"
16560 fi
16561 done
16562 fi
16563 CATALOGS=
16564 if test -n "$INST_LINGUAS"; then
16565 for lang in $INST_LINGUAS; do
16566 CATALOGS="$CATALOGS $lang.gmo"
16567 done
16568 fi
16569 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016570 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 -040016571 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16572 if test -f "$f"; then
16573 case "$f" in
16574 *.orig | *.bak | *~) ;;
16575 *) cat "$f" >> "$ac_dir/Makefile" ;;
16576 esac
16577 fi
16578 done
16579 fi
16580 ;;
16581 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016582 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016583
Theodore Ts'oe1052142006-10-21 21:46:47 -040016584 esac
16585done # for ac_tag
16586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016587
16588{ (exit 0); exit 0; }
16589_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016590chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016591ac_clean_files=$ac_clean_files_save
16592
16593
16594# configure is writing to config.log, and then calls config.status.
16595# config.status does its own redirection, appending to config.log.
16596# Unfortunately, on DOS this fails, as config.log is still kept open
16597# by configure, so config.status won't be able to write to it; its
16598# output is simply discarded. So we exec the FD to /dev/null,
16599# effectively closing config.log, so it can be properly (re)opened and
16600# appended to by config.status. When coming back to configure, we
16601# need to make the FD available again.
16602if test "$no_create" != yes; then
16603 ac_cs_success=:
16604 ac_config_status_args=
16605 test "$silent" = yes &&
16606 ac_config_status_args="$ac_config_status_args --quiet"
16607 exec 5>/dev/null
16608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16609 exec 5>>config.log
16610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16611 # would make configure fail if this is the last instruction.
16612 $ac_cs_success || { (exit 1); exit 1; }
16613fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016614
Theodore Ts'oee683a12005-02-05 15:53:56 -050016615if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16616