blob: 5cf203e6049d56370b79f62f7272c63610ebd674 [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'oaf773652008-09-01 11:27:27 -0400687TEST_IO_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400688DEBUGFS_CMT
689IMAGER_CMT
690RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400691FSCK_PROG
692FSCK_MAN
693E2INITRD_PROG
694E2INITRD_MAN
Theodore Ts'o5610f992007-12-31 11:16:56 -0500695UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400696GETTEXT_PACKAGE
697PACKAGE
698VERSION
699SET_MAKE
700INSTALL_PROGRAM
701INSTALL_SCRIPT
702INSTALL_DATA
703MKINSTALLDIRS
704USE_NLS
705MSGFMT
706GMSGFMT
707XGETTEXT
708MSGMERGE
709RANLIB
710ALLOCA
711GLIBC21
712HAVE_POSIX_PRINTF
713HAVE_ASPRINTF
714HAVE_SNPRINTF
715HAVE_WPRINTF
716LIBICONV
717LTLIBICONV
718INTLBISON
719BUILD_INCLUDED_LIBINTL
720USE_INCLUDED_LIBINTL
721CATOBJEXT
722DATADIRNAME
723INSTOBJEXT
724GENCAT
725INTLOBJS
726INTL_LIBTOOL_SUFFIX_PREFIX
727INTLLIBS
728LIBINTL
729LTLIBINTL
730POSUB
731BINARY_TYPE
732LN
733LN_S
734MV
735CP
736RM
737CHMOD
738AWK
739SED
740PERL
741LDCONFIG
742AR
743STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530744MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400745BUILD_CC
746SIZEOF_SHORT
747SIZEOF_INT
748SIZEOF_LONG
749SIZEOF_LONG_LONG
750SOCKET_LIB
751DLOPEN_LIB
752UNI_DIFF_OPTS
753LINUX_CMT
754CYGWIN_CMT
755UNIX_CMT
756root_prefix
757root_bindir
758root_sbindir
759root_libdir
760root_sysconfdir
761LDFLAG_STATIC
762SS_DIR
763ET_DIR
764DO_TEST_SUITE
765INTL_FLAGS
766BUILD_CFLAGS
767BUILD_LDFLAGS
768LIBOBJS
769LTLIBOBJS'
770ac_subst_files='MCONFIG
771MAKEFILE_ELF
772MAKEFILE_BSDLIB
773MAKEFILE_PROFILE
774MAKEFILE_CHECKER
775MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400776ASM_TYPES_HEADER
777PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400784LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400785CPPFLAGS
Theodore Ts'o7515a742008-08-26 23:56:00 -0400786CPP'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400787
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000788
789# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500790ac_init_help=
791ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000792# The variables have the same names as the options, with
793# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500794cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000795exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000796no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000805verbose=
806x_includes=NONE
807x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400814# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000823includedir='${prefix}/include'
824oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400825docdir='${datarootdir}/doc/${PACKAGE}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000834
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000835ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400836ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000837for ac_option
838do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400841 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842 ac_prev=
843 continue
844 fi
845
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
Theodore Ts'oe1052142006-10-21 21:46:47 -0400853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000856
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500860 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000861
862 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500863 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500865 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000876
Theodore Ts'oe1052142006-10-21 21:46:47 -0400877 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000878 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500880 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000881
Theodore Ts'oe1052142006-10-21 21:46:47 -0400882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000889 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500890 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000891 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400892 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500893 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
894 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400895 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400896 eval enable_$ac_feature=no ;;
897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000907
908 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500909 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400911 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500912 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
913 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400914 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400915 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500924 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000936
937 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500938 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000939 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500940 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000941
Theodore Ts'oe1052142006-10-21 21:46:47 -0400942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500953 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500958 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500963 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500970 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000971
Theodore Ts'oe1052142006-10-21 21:46:47 -0400972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000977 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400978 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500982 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000988
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001008 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001009
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001013 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001020 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001027 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001044 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001045
Theodore Ts'oe1052142006-10-21 21:46:47 -04001046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001075 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001076
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001085 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001086
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001094 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001095 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104
1105 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001106 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001107 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001112 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113
1114 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001116 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001117 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 { echo "$as_me: error: invalid package name: $ac_package" >&2
1119 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001120 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001121 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122
1123 --x)
1124 # Obsolete; use --with-x.
1125 with_x=yes ;;
1126
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001132 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001133
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001139 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001140
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001141 -*) { echo "$as_me: error: unrecognized option: $ac_option
1142Try \`$0 --help' for more information." >&2
1143 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001144 ;;
1145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1151 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001152 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 export $ac_envvar ;;
1154
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001155 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001156 # FIXME: should be removed in autoconf 3.0.
1157 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161 ;;
1162
1163 esac
1164done
1165
1166if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 { echo "$as_me: error: missing argument to $ac_option" >&2
1169 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001170fi
1171
Theodore Ts'oe1052142006-10-21 21:46:47 -04001172# Be sure to have absolute directory names.
1173for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001177do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001178 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001179 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001183 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1184 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001185done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001187# There might be people who depend on the old broken behavior: `$host'
1188# used to hold the argument of --host etc.
1189# FIXME: To remove some day.
1190build=$build_alias
1191host=$host_alias
1192target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001194# FIXME: To remove some day.
1195if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used." >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1201 cross_compiling=yes
1202 fi
1203fi
1204
1205ac_tool_prefix=
1206test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208test "$silent" = yes && exec 6>/dev/null
1209
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001210
Theodore Ts'oe1052142006-10-21 21:46:47 -04001211ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212ac_ls_di=`ls -di .` &&
1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 { echo "$as_me: error: Working directory cannot be determined" >&2
1215 { (exit 1); exit 1; }; }
1216test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 { echo "$as_me: error: pwd does not report name of working directory" >&2
1218 { (exit 1); exit 1; }; }
1219
1220
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221# Find the source files, if location was not specified.
1222if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001226$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$0" : 'X\(//\)[^/]' \| \
1228 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001230echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)[^/].*/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\).*/{
1244 s//\1/
1245 q
1246 }
1247 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001248 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001249 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001250 srcdir=..
1251 fi
1252else
1253 ac_srcdir_defaulted=no
1254fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001255if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001258 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001260ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261ac_abs_confdir=`(
1262 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001263 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001264 pwd)`
1265# When building in place, set srcdir=.
1266if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1268fi
1269# Remove unnecessary trailing slashes from srcdir.
1270# Double slashes in file names in object file debugging info
1271# mess up M-x gdb in Emacs.
1272case $srcdir in
1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274esac
1275for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001281
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001282#
1283# Report the --help message.
1284#
1285if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
1289\`configure' configures this package to adapt to many kinds of systems.
1290
1291Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294VAR=VALUE. See below for descriptions of some of the useful variables.
1295
1296Defaults for the options are specified in brackets.
1297
1298Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001309Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 [PREFIX]
1314
1315By default, \`make install' will install all the files in
1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318for instance \`--prefix=\$HOME'.
1319
1320For better control, use the options below.
1321
1322Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001342_ACEOF
1343
1344 cat <<\_ACEOF
1345
1346System types:
1347 --build=BUILD configure for building on BUILD [guessed]
1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1349_ACEOF
1350fi
1351
1352if test -n "$ac_init_help"; then
1353
1354 cat <<\_ACEOF
1355
1356Optional Features:
1357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001359 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001360 --enable-compression enable EXPERIMENTAL compression support
1361 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001362 --enable-elf-shlibs select ELF shared libraries
1363 --enable-bsd-shlibs select BSD shared libraries
1364 --enable-profile build profiling libraries
1365 --enable-checker build checker libraries
1366 --enable-jbd-debug enable journal debugging
1367 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001368 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001369 --disable-debugfs disable support of debugfs program
1370 --disable-imager disable support of e2image program
1371 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001372 --enable-fsck build fsck wrapper program
1373 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001374 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001375 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001376 --disable-nls do not use Native Language Support
1377 --disable-rpath do not hardcode runtime library paths
1378
1379Optional Packages:
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001382 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001383 --with-cc=COMPILER select compiler to use
1384 --with-linker=LINKER select linker to use
1385 --with-ccopts=CCOPTS select compiler command line options
1386 --with-ldopts=LDOPTS select linker command line options
1387 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1388 --with-gnu-ld assume the C compiler uses GNU ld default=no
1389 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1390 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1391 --with-included-gettext use the GNU gettext library included here
1392 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1393 --without-libintl-prefix don't search for libintl in includedir and libdir
1394
1395Some influential environment variables:
1396 CC C compiler command
1397 CFLAGS C compiler flags
1398 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1399 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001400 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001401 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1402 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001403 CPP C preprocessor
1404
1405Use these variables to override the choices made by `configure' or to help
1406it to find libraries and programs with nonstandard names/locations.
1407
1408_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001409ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001410fi
1411
1412if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001415 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001416 ac_builddir=.
1417
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418case "$ac_dir" in
1419.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428esac
1429ac_abs_top_builddir=$ac_pwd
1430ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431# for backward compatibility:
1432ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001433
1434case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001435 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001440 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001448ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001449
Theodore Ts'oe1052142006-10-21 21:46:47 -04001450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001458 else
1459 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001462 done
1463fi
1464
Theodore Ts'oe1052142006-10-21 21:46:47 -04001465test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466if $ac_init_version; then
1467 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001469generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470
Theodore Ts'oe1052142006-10-21 21:46:47 -04001471Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473This configure script is free software; the Free Software Foundation
1474gives unlimited permission to copy, distribute and modify it.
1475_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001476 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001478cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479This file contains any messages produced by compilers while
1480running configure, to aid debugging if configure makes a mistake.
1481
1482It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001483generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001484
1485 $ $0 $@
1486
1487_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001488exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001489{
1490cat <<_ASUNAME
1491## --------- ##
1492## Platform. ##
1493## --------- ##
1494
1495hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1496uname -m = `(uname -m) 2>/dev/null || echo unknown`
1497uname -r = `(uname -r) 2>/dev/null || echo unknown`
1498uname -s = `(uname -s) 2>/dev/null || echo unknown`
1499uname -v = `(uname -v) 2>/dev/null || echo unknown`
1500
1501/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1502/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1503
1504/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1505/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1506/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001507/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1509/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1510/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1511
1512_ASUNAME
1513
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 echo "PATH: $as_dir"
1520done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001521IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001522
1523} >&5
1524
1525cat >&5 <<_ACEOF
1526
1527
1528## ----------- ##
1529## Core tests. ##
1530## ----------- ##
1531
1532_ACEOF
1533
1534
1535# Keep a trace of the command line.
1536# Strip out --no-create and --no-recursion so they do not pile up.
1537# Strip out --silent because we don't want to record it for future runs.
1538# Also quote any args containing shell meta-characters.
1539# Make two passes to allow for proper duplicate-argument suppression.
1540ac_configure_args=
1541ac_configure_args0=
1542ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001543ac_must_keep_next=false
1544for ac_pass in 1 2
1545do
1546 for ac_arg
1547 do
1548 case $ac_arg in
1549 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1551 | -silent | --silent | --silen | --sile | --sil)
1552 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001553 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1555 esac
1556 case $ac_pass in
1557 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1558 2)
1559 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1560 if test $ac_must_keep_next = true; then
1561 ac_must_keep_next=false # Got value, back to normal.
1562 else
1563 case $ac_arg in
1564 *=* | --config-cache | -C | -disable-* | --disable-* \
1565 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1566 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1567 | -with-* | --with-* | -without-* | --without-* | --x)
1568 case "$ac_configure_args0 " in
1569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1570 esac
1571 ;;
1572 -* ) ac_must_keep_next=true ;;
1573 esac
1574 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001575 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001576 ;;
1577 esac
1578 done
1579done
1580$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1581$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1582
1583# When interrupted or exit'd, cleanup temporary files, and complete
1584# config.log. We remove comments because anyway the quotes in there
1585# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001586# WARNING: Use '\'' to represent an apostrophe within the trap.
1587# 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 -05001588trap 'exit_status=$?
1589 # Save into config.log some information that might help in debugging.
1590 {
1591 echo
1592
1593 cat <<\_ASBOX
1594## ---------------- ##
1595## Cache variables. ##
1596## ---------------- ##
1597_ASBOX
1598 echo
1599 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001600(
1601 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in #(
1604 *${as_nl}*)
1605 case $ac_var in #(
1606 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1607echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1608 esac
1609 case $ac_var in #(
1610 _ | IFS | as_nl) ;; #(
1611 *) $as_unset $ac_var ;;
1612 esac ;;
1613 esac
1614 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1617 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001618 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 "s/'\''/'\''\\\\'\'''\''/g;
1620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1621 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001622 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 esac |
1626 sort
1627)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628 echo
1629
1630 cat <<\_ASBOX
1631## ----------------- ##
1632## Output variables. ##
1633## ----------------- ##
1634_ASBOX
1635 echo
1636 for ac_var in $ac_subst_vars
1637 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001638 eval ac_val=\$$ac_var
1639 case $ac_val in
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 esac
1642 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001643 done | sort
1644 echo
1645
1646 if test -n "$ac_subst_files"; then
1647 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001648## ------------------- ##
1649## File substitutions. ##
1650## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651_ASBOX
1652 echo
1653 for ac_var in $ac_subst_files
1654 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001655 eval ac_val=\$$ac_var
1656 case $ac_val in
1657 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658 esac
1659 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001660 done | sort
1661 echo
1662 fi
1663
1664 if test -s confdefs.h; then
1665 cat <<\_ASBOX
1666## ----------- ##
1667## confdefs.h. ##
1668## ----------- ##
1669_ASBOX
1670 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001671 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001672 echo
1673 fi
1674 test "$ac_signal" != 0 &&
1675 echo "$as_me: caught signal $ac_signal"
1676 echo "$as_me: exit $exit_status"
1677 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001678 rm -f core *.core core.conftest.* &&
1679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001680 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001681' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001682for ac_signal in 1 2 13 15; do
1683 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1684done
1685ac_signal=0
1686
1687# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001688rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001689
1690# Predefined preprocessor variables.
1691
1692cat >>confdefs.h <<_ACEOF
1693#define PACKAGE_NAME "$PACKAGE_NAME"
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1699_ACEOF
1700
1701
1702cat >>confdefs.h <<_ACEOF
1703#define PACKAGE_VERSION "$PACKAGE_VERSION"
1704_ACEOF
1705
1706
1707cat >>confdefs.h <<_ACEOF
1708#define PACKAGE_STRING "$PACKAGE_STRING"
1709_ACEOF
1710
1711
1712cat >>confdefs.h <<_ACEOF
1713#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1714_ACEOF
1715
1716
1717# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001718# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001719if test -n "$CONFIG_SITE"; then
1720 set x "$CONFIG_SITE"
1721elif test "x$prefix" != xNONE; then
1722 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1723else
1724 set x "$ac_default_prefix/share/config.site" \
1725 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001727shift
1728for ac_site_file
1729do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001730 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001731 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732echo "$as_me: loading site script $ac_site_file" >&6;}
1733 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001734 . "$ac_site_file"
1735 fi
1736done
1737
1738if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001739 # Some versions of bash will fail to source /dev/null (special
1740 # files actually), so we avoid doing that.
1741 if test -f "$cache_file"; then
1742 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743echo "$as_me: loading cache $cache_file" >&6;}
1744 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001745 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001747 esac
1748 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001749else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001750 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751echo "$as_me: creating cache $cache_file" >&6;}
1752 >$cache_file
1753fi
1754
1755# Check that the precious variables saved in the cache have kept the same
1756# value.
1757ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001758for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001763 case $ac_old_set,$ac_new_set in
1764 set,)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,set)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,);;
1773 *)
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1778echo "$as_me: former value: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1780echo "$as_me: current value: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1782 fi;;
1783 esac
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1786 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001788 *) ac_arg=$ac_var=$ac_new_val ;;
1789 esac
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 esac
1794 fi
1795done
1796if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001802fi
1803
Theodore Ts'oe1052142006-10-21 21:46:47 -04001804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001820ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001821ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001825
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001826
1827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001828ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001829for ac_dir in config "$srcdir"/config; do
1830 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001831 ac_aux_dir=$ac_dir
1832 ac_install_sh="$ac_aux_dir/install-sh -c"
1833 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001834 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001835 ac_aux_dir=$ac_dir
1836 ac_install_sh="$ac_aux_dir/install.sh -c"
1837 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001838 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001839 ac_aux_dir=$ac_dir
1840 ac_install_sh="$ac_aux_dir/shtool install -c"
1841 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001842 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001843done
1844if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001845 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1846echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001847 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001849
1850# These three variables are undocumented and unsupported,
1851# and are intended to be withdrawn in a future Autoconf release.
1852# They can cause serious problems if a builder's source tree is in a directory
1853# whose full name contains unusual characters.
1854ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1855ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1856ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1857
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001858
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001859MCONFIG=./MCONFIG
1860
Theodore Ts'o74becf31997-04-26 14:37:06 +00001861BINARY_TYPE=bin
1862E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1863 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1864DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1865 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001866E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001867MONTH=`echo $DATE | awk -F- '{print $2}'`
1868YEAR=`echo $DATE | awk -F- '{print $3}'`
1869
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001870if expr $YEAR ">" 1900 > /dev/null ; then
1871 E2FSPROGS_YEAR=$YEAR
1872elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001873 E2FSPROGS_YEAR=19$YEAR
1874else
1875 E2FSPROGS_YEAR=20$YEAR
1876fi
1877
1878case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001879Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1880Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1881Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1882Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1883May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1884Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1885Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1886Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1887Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1888Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1889Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1890Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001891*) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1892echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001893esac
1894
Andreas Dilger927566a2006-11-12 19:41:25 -05001895base_ver=`echo $E2FSPROGS_VERSION | \
1896 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001897
1898date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1899
1900case $E2FSPROGS_VERSION in
1901*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001902 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001903 ;;
1904*)
1905 E2FSPROGS_PKGVER="$base_ver"
1906 ;;
1907esac
1908
1909unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001910{ echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1911echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1912{ echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1913echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001914
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001915
1916
1917
Andreas Dilger927566a2006-11-12 19:41:25 -05001918
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001919# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001920$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1921 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1922echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001923 { (exit 1); exit 1; }; }
1924
Theodore Ts'oe1052142006-10-21 21:46:47 -04001925{ echo "$as_me:$LINENO: checking build system type" >&5
1926echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001927if test "${ac_cv_build+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001930 ac_build_alias=$build_alias
1931test "x$ac_build_alias" = x &&
1932 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1933test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001934 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1935echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1936 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001937ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1938 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1939echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001940 { (exit 1); exit 1; }; }
1941
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001942fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001943{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1944echo "${ECHO_T}$ac_cv_build" >&6; }
1945case $ac_cv_build in
1946*-*-*) ;;
1947*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1948echo "$as_me: error: invalid value of canonical build" >&2;}
1949 { (exit 1); exit 1; }; };;
1950esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001951build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001952ac_save_IFS=$IFS; IFS='-'
1953set x $ac_cv_build
1954shift
1955build_cpu=$1
1956build_vendor=$2
1957shift; shift
1958# Remember, the first character of IFS is used to create $*,
1959# except with old shells:
1960build_os=$*
1961IFS=$ac_save_IFS
1962case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001963
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001964
Theodore Ts'oe1052142006-10-21 21:46:47 -04001965{ echo "$as_me:$LINENO: checking host system type" >&5
1966echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001967if test "${ac_cv_host+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001970 if test "x$host_alias" = x; then
1971 ac_cv_host=$ac_cv_build
1972else
1973 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1974 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1975echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001976 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001977fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001980{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1981echo "${ECHO_T}$ac_cv_host" >&6; }
1982case $ac_cv_host in
1983*-*-*) ;;
1984*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1985echo "$as_me: error: invalid value of canonical host" >&2;}
1986 { (exit 1); exit 1; }; };;
1987esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001988host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001989ac_save_IFS=$IFS; IFS='-'
1990set x $ac_cv_host
1991shift
1992host_cpu=$1
1993host_vendor=$2
1994shift; shift
1995# Remember, the first character of IFS is used to create $*,
1996# except with old shells:
1997host_os=$*
1998IFS=$ac_save_IFS
1999case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002000
2001
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002002WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002003
Theodore Ts'oe1052142006-10-21 21:46:47 -04002004# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002005if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002006 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002007WITH_DIET_LIBC=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04002008{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2009echo "${ECHO_T}CC=$CC" >&6; }
2010fi
2011
2012# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002013if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002014 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2015echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002016CC=$withval
2017else
2018 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002019{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2020echo "${ECHO_T}CC defaults to $CC" >&6; }
2021fi
2022export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002034if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002036else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002046 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 -05002047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
2052done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002053IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002054
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002055fi
2056fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002057CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002058if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002059 { echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002061else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002062 { echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002064fi
2065
Theodore Ts'oe1052142006-10-21 21:46:47 -04002066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002067fi
2068if test -z "$ac_cv_prog_CC"; then
2069 ac_ct_CC=$CC
2070 # Extract the first word of "gcc", so it can be a program name with args.
2071set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077 if test -n "$ac_ct_CC"; then
2078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079else
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002086 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 -05002087 ac_cv_prog_ac_ct_CC="gcc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2090 fi
2091done
2092done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002093IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002094
2095fi
2096fi
2097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002099 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002101else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002102 { echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002104fi
2105
Theodore Ts'oe1052142006-10-21 21:46:47 -04002106 if test "x$ac_ct_CC" = x; then
2107 CC=""
2108 else
2109 case $cross_compiling:$ac_tool_warned in
2110yes:)
2111{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2112whose name does not start with the host triplet. If you think this
2113configuration is useful to you, please write to autoconf@gnu.org." >&5
2114echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2115whose name does not start with the host triplet. If you think this
2116configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2117ac_tool_warned=yes ;;
2118esac
2119 CC=$ac_ct_CC
2120 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002121else
2122 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002123fi
2124
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002125if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002126 if test -n "$ac_tool_prefix"; then
2127 # 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 -05002128set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002131if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002133else
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002143 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 -05002144 ac_cv_prog_CC="${ac_tool_prefix}cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2147 fi
2148done
2149done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002150IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002151
2152fi
2153fi
2154CC=$ac_cv_prog_CC
2155if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002156 { echo "$as_me:$LINENO: result: $CC" >&5
2157echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002158else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002159 { echo "$as_me:$LINENO: result: no" >&5
2160echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002161fi
2162
Theodore Ts'oe1052142006-10-21 21:46:47 -04002163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002164 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002165fi
2166if test -z "$CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002171if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002177 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002184 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 -05002185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2186 ac_prog_rejected=yes
2187 continue
2188 fi
2189 ac_cv_prog_CC="cc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2192 fi
2193done
2194done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002195IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002196
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002197if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2200 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002201 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2205 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002207 fi
2208fi
2209fi
2210fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002211CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002212if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002213 { echo "$as_me:$LINENO: result: $CC" >&5
2214echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002215else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002216 { echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002218fi
2219
Theodore Ts'oe1052142006-10-21 21:46:47 -04002220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002221fi
2222if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002224 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002225 do
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002230if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002232else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002242 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 -05002243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247done
2248done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002249IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002250
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002251fi
2252fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002253CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002254if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002255 { echo "$as_me:$LINENO: result: $CC" >&5
2256echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002257else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002258 { echo "$as_me:$LINENO: result: no" >&5
2259echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002260fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002261
Theodore Ts'oe1052142006-10-21 21:46:47 -04002262
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002263 test -n "$CC" && break
2264 done
2265fi
2266if test -z "$CC"; then
2267 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002268 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002269do
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279else
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002286 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 -05002287 ac_cv_prog_ac_ct_CC="$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002290 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002291done
2292done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002293IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002294
2295fi
2296fi
2297ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002301else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002302 { echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002304fi
2305
Theodore Ts'oe1052142006-10-21 21:46:47 -04002306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307 test -n "$ac_ct_CC" && break
2308done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002309
Theodore Ts'oe1052142006-10-21 21:46:47 -04002310 if test "x$ac_ct_CC" = x; then
2311 CC=""
2312 else
2313 case $cross_compiling:$ac_tool_warned in
2314yes:)
2315{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2316whose name does not start with the host triplet. If you think this
2317configuration is useful to you, please write to autoconf@gnu.org." >&5
2318echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2319whose name does not start with the host triplet. If you think this
2320configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2321ac_tool_warned=yes ;;
2322esac
2323 CC=$ac_ct_CC
2324 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002325fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002328
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: no acceptable C compiler found in \$PATH
2333See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2335
2336# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002337echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002338ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002339{ (ac_try="$ac_compiler --version >&5"
2340case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343esac
2344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002349{ (ac_try="$ac_compiler -v >&5"
2350case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353esac
2354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002359{ (ac_try="$ac_compiler -V >&5"
2360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
2364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369
2370cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
2376
2377int
2378main ()
2379{
2380
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385ac_clean_files_save=$ac_clean_files
2386ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387# Try to create an executable without -o first, disregard a.out.
2388# It will help us diagnose broken compilers, and finding out an intuition
2389# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002390{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2391echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002393#
2394# List of possible output files, starting from the most likely.
2395# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2396# only as a last resort. b.out is created by i960 compilers.
2397ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2398#
2399# The IRIX 6 linker writes into existing files which may not be
2400# executable, retaining their permissions. Remove them first so a
2401# subsequent execution test works.
2402ac_rmfiles=
2403for ac_file in $ac_files
2404do
2405 case $ac_file in
2406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2407 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2408 esac
2409done
2410rm -f $ac_rmfiles
2411
2412if { (ac_try="$ac_link_default"
2413case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2423# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2424# in a Makefile. We should not override ac_cv_exeext if it was cached,
2425# so that the user can short-circuit this test for compilers unknown to
2426# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002427for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002428do
2429 test -f "$ac_file" || continue
2430 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432 ;;
2433 [ab].out )
2434 # We found the default executable, but exeext='' is most
2435 # certainly right.
2436 break;;
2437 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2439 then :; else
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 fi
2442 # We set ac_cv_exeext here because the later test for it is not
2443 # safe: cross compilers may not add the suffix if given an `-o'
2444 # argument, so we may need to know it at that point already.
2445 # Even if this section looks crufty: it has the advantage of
2446 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447 break;;
2448 * )
2449 break;;
2450 esac
2451done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452test "$ac_cv_exeext" = no && ac_cv_exeext=
2453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002454else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002455 ac_file=''
2456fi
2457
2458{ echo "$as_me:$LINENO: result: $ac_file" >&5
2459echo "${ECHO_T}$ac_file" >&6; }
2460if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002461 echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2465See \`config.log' for more details." >&5
2466echo "$as_me: error: C compiler cannot create executables
2467See \`config.log' for more details." >&2;}
2468 { (exit 77); exit 77; }; }
2469fi
2470
2471ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472
Theodore Ts'oe1052142006-10-21 21:46:47 -04002473# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2476echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2478# If not cross compiling, check that we can run a simple program.
2479if test "$cross_compiling" != yes; then
2480 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002491 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 if test "$cross_compiling" = maybe; then
2493 cross_compiling=yes
2494 else
2495 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2496If you meant to cross compile, use \`--host'.
2497See \`config.log' for more details." >&5
2498echo "$as_me: error: cannot run C compiled programs.
2499If you meant to cross compile, use \`--host'.
2500See \`config.log' for more details." >&2;}
2501 { (exit 1); exit 1; }; }
2502 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002503 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505{ echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002508rm -f a.out a.exe conftest$ac_cv_exeext b.out
2509ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2513echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2514{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2515echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002516
Theodore Ts'oe1052142006-10-21 21:46:47 -04002517{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2518echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2519if { (ac_try="$ac_link"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2530# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2531# work properly (i.e., refer to `conftest.exe'), while it won't with
2532# `rm'.
2533for ac_file in conftest.exe conftest conftest.*; do
2534 test -f "$ac_file" || continue
2535 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538 break;;
2539 * ) break;;
2540 esac
2541done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544See \`config.log' for more details." >&5
2545echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2548fi
2549
2550rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002551{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553
2554rm -f conftest.$ac_ext
2555EXEEXT=$ac_cv_exeext
2556ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002557{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559if test "${ac_cv_objext+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568
2569int
2570main ()
2571{
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002588 for ac_file in conftest.o conftest.obj conftest.*; do
2589 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2593 break;;
2594 esac
2595done
2596else
2597 echo "$as_me: failed program was:" >&5
2598sed 's/^/| /' conftest.$ac_ext >&5
2599
2600{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2601See \`config.log' for more details." >&5
2602echo "$as_me: error: cannot compute suffix of object files: cannot compile
2603See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }
2605fi
2606
2607rm -f conftest.$ac_cv_objext conftest.$ac_ext
2608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002609{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2610echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611OBJEXT=$ac_cv_objext
2612ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2614echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615if test "${ac_cv_c_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
2624
2625int
2626main ()
2627{
2628#ifndef __GNUC__
2629 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002630#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002637if { (ac_try="$ac_compile"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002649 (exit $ac_status); } && {
2650 test -z "$ac_c_werror_flag" ||
2651 test ! -s conftest.err
2652 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002653 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002654else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655 echo "$as_me: failed program was:" >&5
2656sed 's/^/| /' conftest.$ac_ext >&5
2657
Theodore Ts'oe1052142006-10-21 21:46:47 -04002658 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002660
2661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2666echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667GCC=`test $ac_compiler_gnu = yes && echo yes`
2668ac_test_CFLAGS=${CFLAGS+set}
2669ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002670{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2671echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672if test "${ac_cv_prog_cc_g+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002674else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002675 ac_save_c_werror_flag=$ac_c_werror_flag
2676 ac_c_werror_flag=yes
2677 ac_cv_prog_cc_g=no
2678 CFLAGS="-g"
2679 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002680/* confdefs.h. */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h. */
2685
2686int
2687main ()
2688{
2689
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002695if { (ac_try="$ac_compile"
2696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
2700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002707 (exit $ac_status); } && {
2708 test -z "$ac_c_werror_flag" ||
2709 test ! -s conftest.err
2710 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002711 ac_cv_prog_cc_g=yes
2712else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002713 echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002715
Theodore Ts'oe1052142006-10-21 21:46:47 -04002716 CFLAGS=""
2717 cat >conftest.$ac_ext <<_ACEOF
2718/* confdefs.h. */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2722/* end confdefs.h. */
2723
2724int
2725main ()
2726{
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext
2733if { (ac_try="$ac_compile"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002749 :
2750else
2751 echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_c_werror_flag=$ac_save_c_werror_flag
2755 CFLAGS="-g"
2756 cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h. */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h. */
2762
2763int
2764main ()
2765{
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (ac_try="$ac_compile"
2773case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002788 ac_cv_prog_cc_g=yes
2789else
2790 echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002795
2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800fi
2801
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_c_werror_flag=$ac_save_c_werror_flag
2804fi
2805{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2806echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002807if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002808 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002809elif test $ac_cv_prog_cc_g = yes; then
2810 if test "$GCC" = yes; then
2811 CFLAGS="-g -O2"
2812 else
2813 CFLAGS="-g"
2814 fi
2815else
2816 if test "$GCC" = yes; then
2817 CFLAGS="-O2"
2818 else
2819 CFLAGS=
2820 fi
2821fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002822{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2823echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2824if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828ac_save_CC=$CC
2829cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h. */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h. */
2835#include <stdarg.h>
2836#include <stdio.h>
2837#include <sys/types.h>
2838#include <sys/stat.h>
2839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2840struct buf { int x; };
2841FILE * (*rcsopen) (struct buf *, struct stat *, int);
2842static char *e (p, i)
2843 char **p;
2844 int i;
2845{
2846 return p[i];
2847}
2848static char *f (char * (*g) (char **, int), char **p, ...)
2849{
2850 char *s;
2851 va_list v;
2852 va_start (v,p);
2853 s = g (p, va_arg (v,int));
2854 va_end (v);
2855 return s;
2856}
2857
2858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2859 function prototypes and stuff, but not '\xHH' hex character constants.
2860 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002861 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2863 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2868 inside strings and character constants. */
2869#define FOO(x) 'x'
2870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002872int test (int i, double x);
2873struct s1 {int (*f) (int a);};
2874struct s2 {int (*f) (double a);};
2875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876int argc;
2877char **argv;
2878int
2879main ()
2880{
2881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2882 ;
2883 return 0;
2884}
2885_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888do
2889 CC="$ac_save_CC $ac_arg"
2890 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002891if { (ac_try="$ac_compile"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002903 (exit $ac_status); } && {
2904 test -z "$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002907 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
Theodore Ts'oe1052142006-10-21 21:46:47 -04002912
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914
2915rm -f core conftest.err conftest.$ac_objext
2916 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002918rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919CC=$ac_save_CC
2920
2921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922# AC_CACHE_VAL
2923case "x$ac_cv_prog_cc_c89" in
2924 x)
2925 { echo "$as_me:$LINENO: result: none needed" >&5
2926echo "${ECHO_T}none needed" >&6; } ;;
2927 xno)
2928 { echo "$as_me:$LINENO: result: unsupported" >&5
2929echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002930 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002931 CC="$CC $ac_cv_prog_cc_c89"
2932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2933echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934esac
2935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937ac_ext=c
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002948{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002950# On Suns, sometimes $CPP names a directory.
2951if test -n "$CPP" && test -d "$CPP"; then
2952 CPP=
2953fi
2954if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960 do
2961 ac_preproc_ok=false
2962for ac_c_preproc_warn_flag in '' yes
2963do
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002968 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976#ifdef __STDC__
2977# include <limits.h>
2978#else
2979# include <assert.h>
2980#endif
2981 Syntax error
2982_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002983if { (ac_try="$ac_cpp conftest.$ac_ext"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002995 (exit $ac_status); } >/dev/null && {
2996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002999 :
3000else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003003
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003004 # Broken: fails on valid input.
3005continue
3006fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008rm -f conftest.err conftest.$ac_ext
3009
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011 # can be detected and how.
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018#include <ac_nonexistent.h>
3019_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020if { (ac_try="$ac_cpp conftest.$ac_ext"
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003032 (exit $ac_status); } >/dev/null && {
3033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036 # Broken: success on invalid input.
3037continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 # Passes both tests.
3043ac_preproc_ok=:
3044break
3045fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047rm -f conftest.err conftest.$ac_ext
3048
3049done
3050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051rm -f conftest.err conftest.$ac_ext
3052if $ac_preproc_ok; then
3053 break
3054fi
3055
3056 done
3057 ac_cv_prog_CPP=$CPP
3058
3059fi
3060 CPP=$ac_cv_prog_CPP
3061else
3062 ac_cv_prog_CPP=$CPP
3063fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003064{ echo "$as_me:$LINENO: result: $CPP" >&5
3065echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066ac_preproc_ok=false
3067for ac_c_preproc_warn_flag in '' yes
3068do
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
3081#ifdef __STDC__
3082# include <limits.h>
3083#else
3084# include <assert.h>
3085#endif
3086 Syntax error
3087_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003088if { (ac_try="$ac_cpp conftest.$ac_ext"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003100 (exit $ac_status); } >/dev/null && {
3101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003104 :
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 # Broken: fails on valid input.
3110continue
3111fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113rm -f conftest.err conftest.$ac_ext
3114
Theodore Ts'oe1052142006-10-21 21:46:47 -04003115 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116 # can be detected and how.
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123#include <ac_nonexistent.h>
3124_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003125if { (ac_try="$ac_cpp conftest.$ac_ext"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003137 (exit $ac_status); } >/dev/null && {
3138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141 # Broken: success on invalid input.
3142continue
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 # Passes both tests.
3148ac_preproc_ok=:
3149break
3150fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152rm -f conftest.err conftest.$ac_ext
3153
3154done
3155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156rm -f conftest.err conftest.$ac_ext
3157if $ac_preproc_ok; then
3158 :
3159else
3160 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3161See \`config.log' for more details." >&5
3162echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3163See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3165fi
3166
3167ac_ext=c
3168ac_cpp='$CPP $CPPFLAGS'
3169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172
3173
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003174# Check whether --with-linker was given.
3175if test "${with_linker+set}" = set; then
3176 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3177echo "${ECHO_T}LD=$withval" >&6; }
3178LD=$withval
3179else
3180 if test -z "$LD" ; then LD=$CC; fi
3181{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3182echo "${ECHO_T}LD defaults to $LD" >&6; }
3183fi
3184export LD
3185
3186
3187# Check whether --with-ccopts was given.
3188if test "${with_ccopts+set}" = set; then
3189 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3190echo "${ECHO_T}CCOPTS is $withval" >&6; }
3191CFLAGS=$withval
3192fi
3193
3194
Theodore Ts'oe1052142006-10-21 21:46:47 -04003195{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3196echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3197if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200 # Extract the first word of "grep ggrep" to use in msg output
3201if test -z "$GREP"; then
3202set dummy grep ggrep; ac_prog_name=$2
3203if test "${ac_cv_path_GREP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206 ac_path_GREP_found=false
3207# Loop through the user's path and test for each of PROGNAME-LIST
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3210do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_prog in grep ggrep; do
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003216 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003217 # Check for GNU ac_path_GREP and select it if it is found.
3218 # Check for GNU $ac_path_GREP
3219case `"$ac_path_GREP" --version 2>&1` in
3220*GNU*)
3221 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3222*)
3223 ac_count=0
3224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3225 while :
3226 do
3227 cat "conftest.in" "conftest.in" >"conftest.tmp"
3228 mv "conftest.tmp" "conftest.in"
3229 cp "conftest.in" "conftest.nl"
3230 echo 'GREP' >> "conftest.nl"
3231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3233 ac_count=`expr $ac_count + 1`
3234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3235 # Best one so far, save it but keep looking for a better one
3236 ac_cv_path_GREP="$ac_path_GREP"
3237 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003238 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003239 # 10*(2^10) chars as input seems more than enough
3240 test $ac_count -gt 10 && break
3241 done
3242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3243esac
3244
3245
3246 $ac_path_GREP_found && break 3
3247 done
3248done
3249
3250done
3251IFS=$as_save_IFS
3252
3253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003254fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003255
3256GREP="$ac_cv_path_GREP"
3257if test -z "$GREP"; then
3258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3259echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3260 { (exit 1); exit 1; }; }
3261fi
3262
3263else
3264 ac_cv_path_GREP=$GREP
3265fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003266
3267
Theodore Ts'oe1052142006-10-21 21:46:47 -04003268fi
3269{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3270echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3271 GREP="$ac_cv_path_GREP"
3272
3273
3274{ echo "$as_me:$LINENO: checking for egrep" >&5
3275echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3276if test "${ac_cv_path_EGREP+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3280 then ac_cv_path_EGREP="$GREP -E"
3281 else
3282 # Extract the first word of "egrep" to use in msg output
3283if test -z "$EGREP"; then
3284set dummy egrep; ac_prog_name=$2
3285if test "${ac_cv_path_EGREP+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287else
3288 ac_path_EGREP_found=false
3289# Loop through the user's path and test for each of PROGNAME-LIST
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_prog in egrep; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003299 # Check for GNU ac_path_EGREP and select it if it is found.
3300 # Check for GNU $ac_path_EGREP
3301case `"$ac_path_EGREP" --version 2>&1` in
3302*GNU*)
3303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3304*)
3305 ac_count=0
3306 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3307 while :
3308 do
3309 cat "conftest.in" "conftest.in" >"conftest.tmp"
3310 mv "conftest.tmp" "conftest.in"
3311 cp "conftest.in" "conftest.nl"
3312 echo 'EGREP' >> "conftest.nl"
3313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3315 ac_count=`expr $ac_count + 1`
3316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3317 # Best one so far, save it but keep looking for a better one
3318 ac_cv_path_EGREP="$ac_path_EGREP"
3319 ac_path_EGREP_max=$ac_count
3320 fi
3321 # 10*(2^10) chars as input seems more than enough
3322 test $ac_count -gt 10 && break
3323 done
3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3325esac
3326
3327
3328 $ac_path_EGREP_found && break 3
3329 done
3330done
3331
3332done
3333IFS=$as_save_IFS
3334
3335
3336fi
3337
3338EGREP="$ac_cv_path_EGREP"
3339if test -z "$EGREP"; then
3340 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3341echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3342 { (exit 1); exit 1; }; }
3343fi
3344
3345else
3346 ac_cv_path_EGREP=$EGREP
3347fi
3348
3349
3350 fi
3351fi
3352{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3353echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3354 EGREP="$ac_cv_path_EGREP"
3355
3356
3357{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3358echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359if test "${ac_cv_header_stdc+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
3368#include <stdlib.h>
3369#include <stdarg.h>
3370#include <string.h>
3371#include <float.h>
3372
3373int
3374main ()
3375{
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003382if { (ac_try="$ac_compile"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003394 (exit $ac_status); } && {
3395 test -z "$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003398 ac_cv_header_stdc=yes
3399else
3400 echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
Theodore Ts'oe1052142006-10-21 21:46:47 -04003403 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003405
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003407
3408if test $ac_cv_header_stdc = yes; then
3409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3410 cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
3416#include <string.h>
3417
3418_ACEOF
3419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 $EGREP "memchr" >/dev/null 2>&1; then
3421 :
3422else
3423 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003424fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003425rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003426
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003427fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003428
3429if test $ac_cv_header_stdc = yes; then
3430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#include <stdlib.h>
3438
3439_ACEOF
3440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3441 $EGREP "free" >/dev/null 2>&1; then
3442 :
3443else
3444 ac_cv_header_stdc=no
3445fi
3446rm -f conftest*
3447
3448fi
3449
3450if test $ac_cv_header_stdc = yes; then
3451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3452 if test "$cross_compiling" = yes; then
3453 :
3454else
3455 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003462#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463#if ((' ' & 0x0FF) == 0x020)
3464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3466#else
3467# define ISLOWER(c) \
3468 (('a' <= (c) && (c) <= 'i') \
3469 || ('j' <= (c) && (c) <= 'r') \
3470 || ('s' <= (c) && (c) <= 'z'))
3471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3472#endif
3473
3474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3475int
3476main ()
3477{
3478 int i;
3479 for (i = 0; i < 256; i++)
3480 if (XOR (islower (i), ISLOWER (i))
3481 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482 return 2;
3483 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003484}
3485_ACEOF
3486rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487if { (ac_try="$ac_link"
3488case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491esac
3492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003497 { (case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 :
3507else
3508 echo "$as_me: program exited with status $ac_status" >&5
3509echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512( exit $ac_status )
3513ac_cv_header_stdc=no
3514fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3516fi
3517
3518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003519fi
3520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003521{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3522echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523if test $ac_cv_header_stdc = yes; then
3524
3525cat >>confdefs.h <<\_ACEOF
3526#define STDC_HEADERS 1
3527_ACEOF
3528
3529fi
3530
3531# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3542 inttypes.h stdint.h unistd.h
3543do
3544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003545{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556$ac_includes_default
3557
3558#include <$ac_header>
3559_ACEOF
3560rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561if { (ac_try="$ac_compile"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003577 eval "$as_ac_Header=yes"
3578else
3579 echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
Theodore Ts'oe1052142006-10-21 21:46:47 -04003582 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003584
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587ac_res=`eval echo '${'$as_ac_Header'}'`
3588 { echo "$as_me:$LINENO: result: $ac_res" >&5
3589echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590if test `eval echo '${'$as_ac_Header'}'` = yes; then
3591 cat >>confdefs.h <<_ACEOF
3592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3593_ACEOF
3594
3595fi
3596
3597done
3598
3599
3600if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003601 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3602echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003606{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3607echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608else
3609 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003610{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3611echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003612cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618$ac_includes_default
3619#include <linux/fs.h>
3620_ACEOF
3621rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003622if { (ac_try="$ac_compile"
3623case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626esac
3627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003638 ac_header_compiler=yes
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
Theodore Ts'oe1052142006-10-21 21:46:47 -04003643 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003644fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003645
3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3648echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003649
3650# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3652echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003653cat >conftest.$ac_ext <<_ACEOF
3654/* confdefs.h. */
3655_ACEOF
3656cat confdefs.h >>conftest.$ac_ext
3657cat >>conftest.$ac_ext <<_ACEOF
3658/* end confdefs.h. */
3659#include <linux/fs.h>
3660_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003661if { (ac_try="$ac_cpp conftest.$ac_ext"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003673 (exit $ac_status); } >/dev/null && {
3674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003677 ac_header_preproc=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 ac_header_preproc=no
3683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003684
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003685rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3687echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003688
3689# So? What about this header?
3690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3691 yes:no: )
3692 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3693echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3694 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3695echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3696 ac_header_preproc=yes
3697 ;;
3698 no:yes:* )
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3700echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3702echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3704echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3706echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3708echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3710echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003712 ;;
3713esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003714{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3715echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003716if test "${ac_cv_header_linux_fs_h+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719 ac_cv_header_linux_fs_h=$ac_header_preproc
3720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003721{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3722echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003723
3724fi
3725if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003726 linux_headers=yes
3727else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003728 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003729fi
3730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003731
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003732if test "$linux_headers" != yes; then
3733 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003734fi
3735
Theodore Ts'oe1052142006-10-21 21:46:47 -04003736{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3737echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003738if test "$GCC" = yes
3739then
3740 case "$host_cpu" in
3741 alpha) addcflags="-mieee" ;;
3742 esac
3743fi
3744if test "x$addcflags" != x
3745then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003746 { echo "$as_me:$LINENO: result: $addcflags" >&5
3747echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003748 CFLAGS="$addcflags $CFLAGS"
3749else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003750 { echo "$as_me:$LINENO: result: (none)" >&5
3751echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003752fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003753LIB_EXT=.a
3754STATIC_LIB_EXT=.a
3755PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003756
Theodore Ts'oe1052142006-10-21 21:46:47 -04003757# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003758if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003759 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3760echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003761LDFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003762fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003763
Theodore Ts'oe1052142006-10-21 21:46:47 -04003764
3765# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003766if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003767 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003768else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003769 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003770fi
3771# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003772if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003773 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003774then
3775 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003776 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3777echo "${ECHO_T}Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003778else
3779 MAINTAINER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003780 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3781echo "${ECHO_T}Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003782fi
3783
3784else
3785 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003786{ echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3787echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003788
Theodore Ts'oe1052142006-10-21 21:46:47 -04003789fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003790
Theodore Ts'oe1052142006-10-21 21:46:47 -04003791
3792# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003793if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003794 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003795then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003796 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3797echo "${ECHO_T}Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003798else
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
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003803 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3804echo "${ECHO_T}Enabling compression support" >&6; }
3805 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3806echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003807fi
3808
3809else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003810 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3811echo "${ECHO_T}Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003812
Theodore Ts'oe1052142006-10-21 21:46:47 -04003813fi
3814
3815# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003816if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003817 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003818then
3819 HTREE_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003820 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3821echo "${ECHO_T}Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003822else
3823 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003824 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003825#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003826_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003827
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003828 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3829echo "${ECHO_T}Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003830fi
3831
3832else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003833 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003834cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003835#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003836_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003837
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003838{ echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3839echo "${ECHO_T}Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003840
Theodore Ts'oe1052142006-10-21 21:46:47 -04003841fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003842
Theodore Ts'oe1052142006-10-21 21:46:47 -04003843
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003844E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003845# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003846if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003847 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003848then
3849 ELF_CMT=#
3850 MAKEFILE_ELF=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003851 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3852echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003853else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003854 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003855 ELF_CMT=
3856 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003857 case "$host_os" in
3858 solaris2.*)
3859 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3860 ;;
3861 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003862 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003863 LIB_EXT=.so
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003864 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3865echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003866fi
3867
3868else
3869 MAKEFILE_ELF=/dev/null
3870ELF_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003871{ echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3872echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003873
Theodore Ts'oe1052142006-10-21 21:46:47 -04003874fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003875
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003876
Theodore Ts'oe1052142006-10-21 21:46:47 -04003877
3878# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003879if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003880 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003881then
3882 BSDLIB_CMT=#
3883 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003884 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3885echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003886else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003887 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003888 BSDLIB_CMT=
3889 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003890 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003891 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003892 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003893 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3894 LIB_EXT=.dylib
3895 ;;
3896 esac
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003897 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3898echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003899fi
3900
3901else
3902 MAKEFILE_BSDLIB=/dev/null
3903BSDLIB_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003904{ echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3905echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003906
Theodore Ts'oe1052142006-10-21 21:46:47 -04003907fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003908
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003909
Theodore Ts'oe1052142006-10-21 21:46:47 -04003910
3911# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003912if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003913 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003914then
3915 PROFILE_CMT=#
3916 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003917 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3918echo "${ECHO_T}Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003919else
3920 PROFILE_CMT=
3921 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3922 PROFILED_LIB_EXT=_p.a
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003923 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3924echo "${ECHO_T}Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003925fi
3926
3927else
3928 PROFILE_CMT=#
3929MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003930{ echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3931echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003932
Theodore Ts'oe1052142006-10-21 21:46:47 -04003933fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003934
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003935
Theodore Ts'oe1052142006-10-21 21:46:47 -04003936
3937# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003938if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003939 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003940then
3941 CHECKER_CMT=#
3942 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003943 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3944echo "${ECHO_T}Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003945else
3946 CHECKER_CMT=
3947 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003948 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3949echo "${ECHO_T}Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003950fi
3951
3952else
3953 CHECKER_CMT=#
3954MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003955{ echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3956echo "${ECHO_T}Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003957
Theodore Ts'oe1052142006-10-21 21:46:47 -04003958fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003959
3960
3961
3962
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003963
Theodore Ts'oe1052142006-10-21 21:46:47 -04003964
3965# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003966if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003967 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003968then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003969 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3970echo "${ECHO_T}Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003972 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003973#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003974_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003975
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003976 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3977echo "${ECHO_T}Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003978fi
3979
3980else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003981 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3982echo "${ECHO_T}Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003983
Theodore Ts'oe1052142006-10-21 21:46:47 -04003984fi
3985
3986# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003987if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003988 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003989then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003990 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3991echo "${ECHO_T}Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003992else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003993 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003994#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003995_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003996
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003997 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
3998echo "${ECHO_T}Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003999fi
4000
4001else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004002 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4003echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004004
Theodore Ts'oe1052142006-10-21 21:46:47 -04004005fi
4006
4007# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004008if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004009 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004010then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004011 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4012echo "${ECHO_T}Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004013 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004014else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004015 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004016 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004017#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004018_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004019
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004020 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4021echo "${ECHO_T}Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004022fi
4023
4024else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004025 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4026echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4027cat >>confdefs.h <<\_ACEOF
4028#define CONFIG_TESTIO_DEBUG 1
4029_ACEOF
4030
4031TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004032
Theodore Ts'oe1052142006-10-21 21:46:47 -04004033fi
4034
Theodore Ts'oaf773652008-09-01 11:27:27 -04004035
Theodore Ts'oe1052142006-10-21 21:46:47 -04004036# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004037if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004038 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004039then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004040 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4041echo "${ECHO_T}Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004042 DEBUGFS_CMT="#"
4043else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004044 DEBUGFS_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004045 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4046echo "${ECHO_T}Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004047fi
4048
4049else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004050 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4051echo "${ECHO_T}Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004052DEBUGFS_CMT=
4053
Theodore Ts'oe1052142006-10-21 21:46:47 -04004054fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004055
Theodore Ts'oe1052142006-10-21 21:46:47 -04004056
4057# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004058if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004059 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004060then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004061 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4062echo "${ECHO_T}Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004063 IMAGER_CMT="#"
4064else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004065 IMAGER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004066 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4067echo "${ECHO_T}Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004068fi
4069
4070else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004071 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4072echo "${ECHO_T}Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004073IMAGER_CMT=
4074
Theodore Ts'oe1052142006-10-21 21:46:47 -04004075fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004076
Theodore Ts'oe1052142006-10-21 21:46:47 -04004077
4078# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004079if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004080 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004081then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004082 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4083echo "${ECHO_T}Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004084 RESIZER_CMT="#"
4085else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004086 RESIZER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004087 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4088echo "${ECHO_T}Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004089fi
4090
4091else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004092 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4093echo "${ECHO_T}Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004094RESIZER_CMT=
4095
Theodore Ts'oe1052142006-10-21 21:46:47 -04004096fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004097
Theodore Ts'oe1052142006-10-21 21:46:47 -04004098
Theodore Ts'oe1052142006-10-21 21:46:47 -04004099# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004100if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004101 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004102then
4103 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004104 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4105echo "${ECHO_T}Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004106else
4107 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004108 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4109echo "${ECHO_T}Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004110fi
4111
4112else
4113 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004114 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004115 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004116 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4117echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004118 ;;
4119 *)
4120 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004121 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4122echo "${ECHO_T}Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004123esac
4124
Theodore Ts'oe1052142006-10-21 21:46:47 -04004125fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004126
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004127
Theodore Ts'oe1052142006-10-21 21:46:47 -04004128
4129# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004130if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004131 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004132then
4133 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004134 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4135echo "${ECHO_T}Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004136else
4137 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004138 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4139echo "${ECHO_T}Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004140fi
4141
4142else
4143 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004144{ echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4145echo "${ECHO_T}Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004146
Theodore Ts'oe1052142006-10-21 21:46:47 -04004147fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004148
4149
Theodore Ts'oe1052142006-10-21 21:46:47 -04004150
Theodore Ts'o32493942007-12-31 10:45:01 -05004151# Check whether --enable-tls was given.
4152if test "${enable_tls+set}" = set; then
4153 enableval=$enable_tls; if test "$enableval" = "no"
4154then
4155 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004156 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4157echo "${ECHO_T}Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004158else
4159 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004160 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4161echo "${ECHO_T}Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004162fi
4163
4164else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004165 if test -n "$WITH_DIET_LIBC"
4166then
4167 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004168 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4169echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004170else
4171 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004172 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4173echo "${ECHO_T}Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004174fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004175
4176fi
4177
4178if test "$try_tls" = "yes"
4179then
4180
4181 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4182echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4183 if test "${ac_cv_tls+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186
4187 ax_tls_keywords="__thread __declspec(thread) none"
4188 for ax_tls_keyword in $ax_tls_keywords; do
4189 case $ax_tls_keyword in
4190 none) ac_cv_tls=none ; break ;;
4191 *)
4192 cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h. */
4198#include <stdlib.h>
4199 static void
4200 foo(void) {
4201 static $ax_tls_keyword int bar;
4202 exit(1);
4203 }
4204int
4205main ()
4206{
4207
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext
4213if { (ac_try="$ac_compile"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 ac_cv_tls=$ax_tls_keyword ; break
4230else
4231 echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 ac_cv_tls=none
4235
4236fi
4237
4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 esac
4240 done
4241
4242fi
4243
4244
4245 if test "$ac_cv_tls" != "none"; then
4246
4247cat >>confdefs.h <<_ACEOF
4248#define TLS $ac_cv_tls
4249_ACEOF
4250
4251 fi
4252 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4253echo "${ECHO_T}$ac_cv_tls" >&6; }
4254
4255fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004256# Check whether --enable-uuidd was given.
4257if test "${enable_uuidd+set}" = set; then
4258 enableval=$enable_uuidd; if test "$enableval" = "no"
4259then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004260 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4261echo "${ECHO_T}Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004262 UUIDD_CMT="#"
4263else
4264 cat >>confdefs.h <<\_ACEOF
4265#define USE_UUIDD 1
4266_ACEOF
4267
4268 UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004269 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4270echo "${ECHO_T}Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004271fi
4272
4273else
4274 cat >>confdefs.h <<\_ACEOF
4275#define USE_UUIDD 1
4276_ACEOF
4277
4278UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004279{ echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4280echo "${ECHO_T}Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004281
4282fi
4283
4284
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004285MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004288PACKAGE=e2fsprogs
4289VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004290VERSION=0.14.1
4291cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004292#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004293_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004295cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004296#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004297_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004298
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004299
4300
4301
4302
Theodore Ts'oe1052142006-10-21 21:46:47 -04004303{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4304echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4305set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4306if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004307 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004308else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004309 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004310SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004311all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004312 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004313_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004314# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004315case `${MAKE-make} -f conftest.make 2>/dev/null` in
4316 *@@@%%%=?*=@@@%%%*)
4317 eval ac_cv_prog_make_${ac_make}_set=yes;;
4318 *)
4319 eval ac_cv_prog_make_${ac_make}_set=no;;
4320esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004321rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004323if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4324 { echo "$as_me:$LINENO: result: yes" >&5
4325echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004326 SET_MAKE=
4327else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004328 { echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004330 SET_MAKE="MAKE=${MAKE-make}"
4331fi
4332
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004333# Find a good install program. We prefer a C program (faster),
4334# so one script is as good as another. But avoid the broken or
4335# incompatible versions:
4336# SysV /etc/install, /usr/sbin/install
4337# SunOS /usr/etc/install
4338# IRIX /sbin/install
4339# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004341# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4342# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4343# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004345# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004346{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4347echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004348if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004349if test "${ac_cv_path_install+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004351else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 # Account for people who put trailing slashes in PATH elements.
4358case $as_dir/ in
4359 ./ | .// | /cC/* | \
4360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4361 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4362 /usr/ucb/* ) ;;
4363 *)
4364 # OSF1 and SCO ODT 3.0 have their own names for install.
4365 # Don't use installbsd from OSF since it installs stuff as root
4366 # by default.
4367 for ac_prog in ginstall scoinst install; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004369 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 -04004370 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004372 # AIX install. It has an incompatible calling convention.
4373 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004374 elif test $ac_prog = install &&
4375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4376 # program-specific install script used by HP pwplus--don't use.
4377 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004378 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4380 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004381 fi
4382 fi
4383 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004384 done
4385 ;;
4386esac
4387done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004388IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004390
4391fi
4392 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004394 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004395 # As a last resort, use the slow shell script. Don't cache a
4396 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004397 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004399 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004400 fi
4401fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004402{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4403echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004404
4405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4406# It thinks the first close brace ends the variable substitution.
4407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4408
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004410
4411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4412
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004413
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004414 MKINSTALLDIRS=
4415 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004416 case "$ac_aux_dir" in
4417 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4418 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4419 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004420 fi
4421 if test -z "$MKINSTALLDIRS"; then
4422 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4423 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004424
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004425
4426
Theodore Ts'oe1052142006-10-21 21:46:47 -04004427 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4428echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4429 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004430if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004431 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004432else
4433 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004434fi
4435
4436 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4437echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004438
4439
4440
4441
4442
4443
4444# Prepare PATH_SEPARATOR.
4445# The user is always right.
4446if test "${PATH_SEPARATOR+set}" != set; then
4447 echo "#! /bin/sh" >conf$$.sh
4448 echo "exit 0" >>conf$$.sh
4449 chmod +x conf$$.sh
4450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4451 PATH_SEPARATOR=';'
4452 else
4453 PATH_SEPARATOR=:
4454 fi
4455 rm -f conf$$.sh
4456fi
4457
4458# Find out how to test for executable files. Don't use a zero-byte file,
4459# as systems may use methods other than mode bits to determine executability.
4460cat >conf$$.file <<_ASEOF
4461#! /bin/sh
4462exit 0
4463_ASEOF
4464chmod +x conf$$.file
4465if test -x conf$$.file >/dev/null 2>&1; then
4466 ac_executable_p="test -x"
4467else
4468 ac_executable_p="test -f"
4469fi
4470rm -f conf$$.file
4471
4472# Extract the first word of "msgfmt", so it can be a program name with args.
4473set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004476if test "${ac_cv_path_MSGFMT+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 case "$MSGFMT" in
4480 [\\/]* | ?:[\\/]*)
4481 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4482 ;;
4483 *)
4484 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4485 for ac_dir in $PATH; do
4486 IFS="$ac_save_IFS"
4487 test -z "$ac_dir" && ac_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4490 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4491 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4492 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4493 break 2
4494 fi
4495 fi
4496 done
4497 done
4498 IFS="$ac_save_IFS"
4499 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4500 ;;
4501esac
4502fi
4503MSGFMT="$ac_cv_path_MSGFMT"
4504if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004505 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4506echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004507else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004508 { echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004510fi
4511
4512 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4513set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004516if test "${ac_cv_path_GMSGFMT+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519 case $GMSGFMT in
4520 [\\/]* | ?:[\\/]*)
4521 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4522 ;;
4523 *)
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004530 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 -05004531 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4534 fi
4535done
4536done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004537IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004538
4539 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4540 ;;
4541esac
4542fi
4543GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004544if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004545 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4546echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004547else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004548 { echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004550fi
4551
4552
4553
Theodore Ts'oe1052142006-10-21 21:46:47 -04004554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555# Prepare PATH_SEPARATOR.
4556# The user is always right.
4557if test "${PATH_SEPARATOR+set}" != set; then
4558 echo "#! /bin/sh" >conf$$.sh
4559 echo "exit 0" >>conf$$.sh
4560 chmod +x conf$$.sh
4561 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4562 PATH_SEPARATOR=';'
4563 else
4564 PATH_SEPARATOR=:
4565 fi
4566 rm -f conf$$.sh
4567fi
4568
4569# Find out how to test for executable files. Don't use a zero-byte file,
4570# as systems may use methods other than mode bits to determine executability.
4571cat >conf$$.file <<_ASEOF
4572#! /bin/sh
4573exit 0
4574_ASEOF
4575chmod +x conf$$.file
4576if test -x conf$$.file >/dev/null 2>&1; then
4577 ac_executable_p="test -x"
4578else
4579 ac_executable_p="test -f"
4580fi
4581rm -f conf$$.file
4582
4583# Extract the first word of "xgettext", so it can be a program name with args.
4584set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004587if test "${ac_cv_path_XGETTEXT+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 case "$XGETTEXT" in
4591 [\\/]* | ?:[\\/]*)
4592 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4593 ;;
4594 *)
4595 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4596 for ac_dir in $PATH; do
4597 IFS="$ac_save_IFS"
4598 test -z "$ac_dir" && ac_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4601 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4602 (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
4603 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4604 break 2
4605 fi
4606 fi
4607 done
4608 done
4609 IFS="$ac_save_IFS"
4610 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4611 ;;
4612esac
4613fi
4614XGETTEXT="$ac_cv_path_XGETTEXT"
4615if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004616 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4617echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004618else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004619 { echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004621fi
4622
4623 rm -f messages.po
4624
4625
4626# Prepare PATH_SEPARATOR.
4627# The user is always right.
4628if test "${PATH_SEPARATOR+set}" != set; then
4629 echo "#! /bin/sh" >conf$$.sh
4630 echo "exit 0" >>conf$$.sh
4631 chmod +x conf$$.sh
4632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4633 PATH_SEPARATOR=';'
4634 else
4635 PATH_SEPARATOR=:
4636 fi
4637 rm -f conf$$.sh
4638fi
4639
4640# Find out how to test for executable files. Don't use a zero-byte file,
4641# as systems may use methods other than mode bits to determine executability.
4642cat >conf$$.file <<_ASEOF
4643#! /bin/sh
4644exit 0
4645_ASEOF
4646chmod +x conf$$.file
4647if test -x conf$$.file >/dev/null 2>&1; then
4648 ac_executable_p="test -x"
4649else
4650 ac_executable_p="test -f"
4651fi
4652rm -f conf$$.file
4653
4654# Extract the first word of "msgmerge", so it can be a program name with args.
4655set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004658if test "${ac_cv_path_MSGMERGE+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 case "$MSGMERGE" in
4662 [\\/]* | ?:[\\/]*)
4663 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4664 ;;
4665 *)
4666 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH; do
4668 IFS="$ac_save_IFS"
4669 test -z "$ac_dir" && ac_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4672 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4673 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4674 break 2
4675 fi
4676 fi
4677 done
4678 done
4679 IFS="$ac_save_IFS"
4680 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4681 ;;
4682esac
4683fi
4684MSGMERGE="$ac_cv_path_MSGMERGE"
4685if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004686 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4687echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004688else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004689 { echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004691fi
4692
4693
4694 if test "$GMSGFMT" != ":"; then
4695 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4696 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4697 : ;
4698 else
4699 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004700 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4701echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004702 GMSGFMT=":"
4703 fi
4704 fi
4705
4706 if test "$XGETTEXT" != ":"; then
4707 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4708 (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
4709 : ;
4710 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004711 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4712echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004713 XGETTEXT=":"
4714 fi
4715 rm -f messages.po
4716 fi
4717
Theodore Ts'oe1052142006-10-21 21:46:47 -04004718 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004719
4720
4721if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004726if test "${ac_cv_prog_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004728else
4729 if test -n "$RANLIB"; then
4730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4731else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004738 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 -05004739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004744done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004745IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004746
4747fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004748fi
4749RANLIB=$ac_cv_prog_RANLIB
4750if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4752echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004753else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004754 { echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004756fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004757
Theodore Ts'oe1052142006-10-21 21:46:47 -04004758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004759fi
4760if test -z "$ac_cv_prog_RANLIB"; then
4761 ac_ct_RANLIB=$RANLIB
4762 # Extract the first word of "ranlib", so it can be a program name with args.
4763set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769 if test -n "$ac_ct_RANLIB"; then
4770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004778 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 -05004779 ac_cv_prog_ac_ct_RANLIB="ranlib"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783done
4784done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004785IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004787fi
4788fi
4789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4790if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4792echo "${ECHO_T}$ac_ct_RANLIB" >&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
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798 if test "x$ac_ct_RANLIB" = x; then
4799 RANLIB=":"
4800 else
4801 case $cross_compiling:$ac_tool_warned in
4802yes:)
4803{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4804whose name does not start with the host triplet. If you think this
4805configuration is useful to you, please write to autoconf@gnu.org." >&5
4806echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4807whose name does not start with the host triplet. If you think this
4808configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4809ac_tool_warned=yes ;;
4810esac
4811 RANLIB=$ac_ct_RANLIB
4812 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004813else
4814 RANLIB="$ac_cv_prog_RANLIB"
4815fi
4816
4817
Theodore Ts'oe1052142006-10-21 21:46:47 -04004818 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4819echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004820if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 ac_check_lib_save_LIBS=$LIBS
4824LIBS="-lcposix $LIBS"
4825cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831
Theodore Ts'oe1052142006-10-21 21:46:47 -04004832/* Override any GCC internal prototype to avoid an error.
4833 Use char because int might match the return type of a GCC
4834 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004835#ifdef __cplusplus
4836extern "C"
4837#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004838char strerror ();
4839int
4840main ()
4841{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004842return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004843 ;
4844 return 0;
4845}
4846_ACEOF
4847rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004848if { (ac_try="$ac_link"
4849case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852esac
4853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest$ac_exeext &&
4864 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004865 ac_cv_lib_cposix_strerror=yes
4866else
4867 echo "$as_me: failed program was:" >&5
4868sed 's/^/| /' conftest.$ac_ext >&5
4869
Theodore Ts'oe1052142006-10-21 21:46:47 -04004870 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004871fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004872
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004874 conftest$ac_exeext conftest.$ac_ext
4875LIBS=$ac_check_lib_save_LIBS
4876fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004877{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4878echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004879if test $ac_cv_lib_cposix_strerror = yes; then
4880 LIBS="$LIBS -lcposix"
4881fi
4882
4883
4884
Theodore Ts'oe1052142006-10-21 21:46:47 -04004885{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4886echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004887if test "${ac_cv_c_const+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896
4897int
4898main ()
4899{
4900/* FIXME: Include the comments suggested by Paul. */
4901#ifndef __cplusplus
4902 /* Ultrix mips cc rejects this. */
4903 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004904 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004905 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004906 char const *const *pcpcc;
4907 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004908 /* NEC SVR4.0.2 mips cc rejects this. */
4909 struct point {int x, y;};
4910 static struct point const zero = {0,0};
4911 /* AIX XL C 1.02.0.0 rejects this.
4912 It does not let you subtract one const X* pointer from another in
4913 an arm of an if-expression whose if-part is not a constant
4914 expression */
4915 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004916 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004917 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004918 ++pcpcc;
4919 ppc = (char**) pcpcc;
4920 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004921 { /* SCO 3.2v4 cc rejects this. */
4922 char *t;
4923 char const *s = 0 ? (char *) 0 : (char const *) 0;
4924
4925 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004926 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004927 }
4928 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4929 int x[] = {25, 17};
4930 const int *foo = &x[0];
4931 ++foo;
4932 }
4933 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4934 typedef const int *iptr;
4935 iptr p = 0;
4936 ++p;
4937 }
4938 { /* AIX XL C 1.02.0.0 rejects this saying
4939 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4940 struct s { int j; const int *ap[3]; };
4941 struct s *b; b->j = 5;
4942 }
4943 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4944 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004945 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004946 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004947 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004948#endif
4949
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004955if { (ac_try="$ac_compile"
4956case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959esac
4960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971 ac_cv_c_const=yes
4972else
4973 echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
Theodore Ts'oe1052142006-10-21 21:46:47 -04004976 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004978
4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004980fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004981{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4982echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004983if test $ac_cv_c_const = no; then
4984
4985cat >>confdefs.h <<\_ACEOF
4986#define const
4987_ACEOF
4988
4989fi
4990
4991
Theodore Ts'oe1052142006-10-21 21:46:47 -04004992 { echo "$as_me:$LINENO: checking for signed" >&5
4993echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004994if test "${bh_cv_c_signed+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003
5004int
5005main ()
5006{
5007signed char x;
5008 ;
5009 return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005013if { (ac_try="$ac_compile"
5014case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017esac
5018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005025 (exit $ac_status); } && {
5026 test -z "$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5028 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005029 bh_cv_c_signed=yes
5030else
5031 echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
Theodore Ts'oe1052142006-10-21 21:46:47 -04005034 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005036
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005038fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005039{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5040echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005041 if test $bh_cv_c_signed = no; then
5042
5043cat >>confdefs.h <<\_ACEOF
5044#define signed
5045_ACEOF
5046
5047 fi
5048
Theodore Ts'oe1052142006-10-21 21:46:47 -04005049{ echo "$as_me:$LINENO: checking for inline" >&5
5050echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005051if test "${ac_cv_c_inline+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 ac_cv_c_inline=no
5055for ac_kw in inline __inline__ __inline; do
5056 cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062#ifndef __cplusplus
5063typedef int foo_t;
5064static $ac_kw foo_t static_foo () {return 0; }
5065$ac_kw foo_t foo () {return 0; }
5066#endif
5067
5068_ACEOF
5069rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005070if { (ac_try="$ac_compile"
5071case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074esac
5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005086 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005087else
5088 echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
Theodore Ts'oe1052142006-10-21 21:46:47 -04005091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005092fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005093
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005096done
5097
5098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005099{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5100echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005101
5102
5103case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005104 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005105 *)
5106 case $ac_cv_c_inline in
5107 no) ac_val=;;
5108 *) ac_val=$ac_cv_c_inline;;
5109 esac
5110 cat >>confdefs.h <<_ACEOF
5111#ifndef __cplusplus
5112#define inline $ac_val
5113#endif
5114_ACEOF
5115 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005116esac
5117
Theodore Ts'oe1052142006-10-21 21:46:47 -04005118{ echo "$as_me:$LINENO: checking for off_t" >&5
5119echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005120if test "${ac_cv_type_off_t+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005130typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005131int
5132main ()
5133{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005134if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005135 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005136if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005137 return 0;
5138 ;
5139 return 0;
5140}
5141_ACEOF
5142rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005143if { (ac_try="$ac_compile"
5144case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147esac
5148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005155 (exit $ac_status); } && {
5156 test -z "$ac_c_werror_flag" ||
5157 test ! -s conftest.err
5158 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005159 ac_cv_type_off_t=yes
5160else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005161 echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005163
Theodore Ts'oe1052142006-10-21 21:46:47 -04005164 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005166
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005168fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005169{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5170echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005171if test $ac_cv_type_off_t = yes; then
5172 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005173else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005174
5175cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005176#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005177_ACEOF
5178
5179fi
5180
Theodore Ts'oe1052142006-10-21 21:46:47 -04005181{ echo "$as_me:$LINENO: checking for size_t" >&5
5182echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005183if test "${ac_cv_type_size_t+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 cat >conftest.$ac_ext <<_ACEOF
5187/* confdefs.h. */
5188_ACEOF
5189cat confdefs.h >>conftest.$ac_ext
5190cat >>conftest.$ac_ext <<_ACEOF
5191/* end confdefs.h. */
5192$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005193typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005194int
5195main ()
5196{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005197if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005198 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005199if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005200 return 0;
5201 ;
5202 return 0;
5203}
5204_ACEOF
5205rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005206if { (ac_try="$ac_compile"
5207case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210esac
5211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005222 ac_cv_type_size_t=yes
5223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005224 echo "$as_me: failed program was:" >&5
5225sed 's/^/| /' conftest.$ac_ext >&5
5226
Theodore Ts'oe1052142006-10-21 21:46:47 -04005227 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005229
5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005231fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005232{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5233echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005234if test $ac_cv_type_size_t = yes; then
5235 :
5236else
5237
5238cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005239#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005240_ACEOF
5241
5242fi
5243
5244
Theodore Ts'oe1052142006-10-21 21:46:47 -04005245 { echo "$as_me:$LINENO: checking for long long" >&5
5246echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005247if test "${ac_cv_type_long_long+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250 cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h. */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h. */
5256long long ll = 1LL; int i = 63;
5257int
5258main ()
5259{
5260long long llmax = (long long) -1;
5261 return ll << i | ll >> i | llmax / ll | llmax % ll;
5262 ;
5263 return 0;
5264}
5265_ACEOF
5266rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005267if { (ac_try="$ac_link"
5268case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271esac
5272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest$ac_exeext &&
5283 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005284 ac_cv_type_long_long=yes
5285else
5286 echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
Theodore Ts'oe1052142006-10-21 21:46:47 -04005289 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005290fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005291
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005293 conftest$ac_exeext conftest.$ac_ext
5294fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005295{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5296echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005297 if test $ac_cv_type_long_long = yes; then
5298
5299cat >>confdefs.h <<\_ACEOF
5300#define HAVE_LONG_LONG 1
5301_ACEOF
5302
5303 fi
5304
5305
Theodore Ts'oe1052142006-10-21 21:46:47 -04005306 { echo "$as_me:$LINENO: checking for long double" >&5
5307echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005308if test "${gt_cv_c_long_double+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311 if test "$GCC" = yes; then
5312 gt_cv_c_long_double=yes
5313 else
5314 cat >conftest.$ac_ext <<_ACEOF
5315/* confdefs.h. */
5316_ACEOF
5317cat confdefs.h >>conftest.$ac_ext
5318cat >>conftest.$ac_ext <<_ACEOF
5319/* end confdefs.h. */
5320
5321 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5322 long double foo = 0.0;
5323 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5324 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5325
5326int
5327main ()
5328{
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005335if { (ac_try="$ac_compile"
5336case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339esac
5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005351 gt_cv_c_long_double=yes
5352else
5353 echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
Theodore Ts'oe1052142006-10-21 21:46:47 -04005356 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005358
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005360 fi
5361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005362{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5363echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005364 if test $gt_cv_c_long_double = yes; then
5365
5366cat >>confdefs.h <<\_ACEOF
5367#define HAVE_LONG_DOUBLE 1
5368_ACEOF
5369
5370 fi
5371
5372
Theodore Ts'oe1052142006-10-21 21:46:47 -04005373 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5374echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005375if test "${gt_cv_c_wchar_t+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378 cat >conftest.$ac_ext <<_ACEOF
5379/* confdefs.h. */
5380_ACEOF
5381cat confdefs.h >>conftest.$ac_ext
5382cat >>conftest.$ac_ext <<_ACEOF
5383/* end confdefs.h. */
5384#include <stddef.h>
5385 wchar_t foo = (wchar_t)'\0';
5386int
5387main ()
5388{
5389
5390 ;
5391 return 0;
5392}
5393_ACEOF
5394rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005395if { (ac_try="$ac_compile"
5396case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399esac
5400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005407 (exit $ac_status); } && {
5408 test -z "$ac_c_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005411 gt_cv_c_wchar_t=yes
5412else
5413 echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
Theodore Ts'oe1052142006-10-21 21:46:47 -04005416 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005418
5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005420fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005421{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5422echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005423 if test $gt_cv_c_wchar_t = yes; then
5424
5425cat >>confdefs.h <<\_ACEOF
5426#define HAVE_WCHAR_T 1
5427_ACEOF
5428
5429 fi
5430
5431
Theodore Ts'oe1052142006-10-21 21:46:47 -04005432 { echo "$as_me:$LINENO: checking for wint_t" >&5
5433echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005434if test "${gt_cv_c_wint_t+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 cat >conftest.$ac_ext <<_ACEOF
5438/* confdefs.h. */
5439_ACEOF
5440cat confdefs.h >>conftest.$ac_ext
5441cat >>conftest.$ac_ext <<_ACEOF
5442/* end confdefs.h. */
5443#include <wchar.h>
5444 wint_t foo = (wchar_t)'\0';
5445int
5446main ()
5447{
5448
5449 ;
5450 return 0;
5451}
5452_ACEOF
5453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005454if { (ac_try="$ac_compile"
5455case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458esac
5459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005466 (exit $ac_status); } && {
5467 test -z "$ac_c_werror_flag" ||
5468 test ! -s conftest.err
5469 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005470 gt_cv_c_wint_t=yes
5471else
5472 echo "$as_me: failed program was:" >&5
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
Theodore Ts'oe1052142006-10-21 21:46:47 -04005475 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005477
5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005479fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005480{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5481echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005482 if test $gt_cv_c_wint_t = yes; then
5483
5484cat >>confdefs.h <<\_ACEOF
5485#define HAVE_WINT_T 1
5486_ACEOF
5487
5488 fi
5489
5490
Theodore Ts'oe1052142006-10-21 21:46:47 -04005491 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5492echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005493if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502#include <sys/types.h>
5503#include <inttypes.h>
5504int
5505main ()
5506{
5507uintmax_t i = (uintmax_t) -1;
5508 ;
5509 return 0;
5510}
5511_ACEOF
5512rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005513if { (ac_try="$ac_compile"
5514case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517esac
5518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005529 jm_ac_cv_header_inttypes_h=yes
5530else
5531 echo "$as_me: failed program was:" >&5
5532sed 's/^/| /' conftest.$ac_ext >&5
5533
Theodore Ts'oe1052142006-10-21 21:46:47 -04005534 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005536
5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005539{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5540echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005541 if test $jm_ac_cv_header_inttypes_h = yes; then
5542
5543cat >>confdefs.h <<_ACEOF
5544#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5545_ACEOF
5546
5547 fi
5548
5549
Theodore Ts'oe1052142006-10-21 21:46:47 -04005550 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5551echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005552if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555 cat >conftest.$ac_ext <<_ACEOF
5556/* confdefs.h. */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h. */
5561#include <sys/types.h>
5562#include <stdint.h>
5563int
5564main ()
5565{
5566uintmax_t i = (uintmax_t) -1;
5567 ;
5568 return 0;
5569}
5570_ACEOF
5571rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005572if { (ac_try="$ac_compile"
5573case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576esac
5577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588 jm_ac_cv_header_stdint_h=yes
5589else
5590 echo "$as_me: failed program was:" >&5
5591sed 's/^/| /' conftest.$ac_ext >&5
5592
Theodore Ts'oe1052142006-10-21 21:46:47 -04005593 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005595
5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005598{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5599echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005600 if test $jm_ac_cv_header_stdint_h = yes; then
5601
5602cat >>confdefs.h <<_ACEOF
5603#define HAVE_STDINT_H_WITH_UINTMAX 1
5604_ACEOF
5605
5606 fi
5607
5608
5609
5610
Theodore Ts'oe1052142006-10-21 21:46:47 -04005611 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5612echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005613if test "${gt_cv_c_intmax_t+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622
5623#include <stddef.h>
5624#include <stdlib.h>
5625#if HAVE_STDINT_H_WITH_UINTMAX
5626#include <stdint.h>
5627#endif
5628#if HAVE_INTTYPES_H_WITH_UINTMAX
5629#include <inttypes.h>
5630#endif
5631
5632int
5633main ()
5634{
5635intmax_t x = -1;
5636 ;
5637 return 0;
5638}
5639_ACEOF
5640rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641if { (ac_try="$ac_compile"
5642case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005653 (exit $ac_status); } && {
5654 test -z "$ac_c_werror_flag" ||
5655 test ! -s conftest.err
5656 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005657 gt_cv_c_intmax_t=yes
5658else
5659 echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
Theodore Ts'oe1052142006-10-21 21:46:47 -04005662 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005664
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005667{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5668echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669 if test $gt_cv_c_intmax_t = yes; then
5670
5671cat >>confdefs.h <<\_ACEOF
5672#define HAVE_INTMAX_T 1
5673_ACEOF
5674
5675 fi
5676
5677
5678
Theodore Ts'oe1052142006-10-21 21:46:47 -04005679 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5680echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681if test "${gt_cv_func_printf_posix+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684
5685 if test "$cross_compiling" = yes; then
5686
5687 cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h. */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h. */
5693
5694#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5695 notposix
5696#endif
5697
5698_ACEOF
5699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5700 $EGREP "notposix" >/dev/null 2>&1; then
5701 gt_cv_func_printf_posix="guessing no"
5702else
5703 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005704fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005705rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005706
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005707
5708else
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715
5716#include <stdio.h>
5717#include <string.h>
5718/* The string "%2$d %1$d", with dollar characters protected from the shell's
5719 dollar expansion (possibly an autoconf bug). */
5720static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5721static char buf[100];
5722int main ()
5723{
5724 sprintf (buf, format, 33, 55);
5725 return (strcmp (buf, "55 33") != 0);
5726}
5727_ACEOF
5728rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005729if { (ac_try="$ac_link"
5730case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 gt_cv_func_printf_posix=yes
5749else
5750 echo "$as_me: program exited with status $ac_status" >&5
5751echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754( exit $ac_status )
5755gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005756fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757rm -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 -05005758fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005759
Theodore Ts'oe1052142006-10-21 21:46:47 -04005760
5761
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005762fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005763{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5764echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005765 case $gt_cv_func_printf_posix in
5766 *yes)
5767
5768cat >>confdefs.h <<\_ACEOF
5769#define HAVE_POSIX_PRINTF 1
5770_ACEOF
5771
5772 ;;
5773 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005774
5775# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5776# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005777{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5778echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005779if test "${ac_cv_working_alloca_h+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005781else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005782 cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005788#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005789int
5790main ()
5791{
5792char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005793 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005794 ;
5795 return 0;
5796}
5797_ACEOF
5798rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005799if { (ac_try="$ac_link"
5800case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest$ac_exeext &&
5815 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005816 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005817else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005818 echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005820
Theodore Ts'oe1052142006-10-21 21:46:47 -04005821 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005823
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825 conftest$ac_exeext conftest.$ac_ext
5826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005827{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5828echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005829if test $ac_cv_working_alloca_h = yes; then
5830
5831cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005832#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005834
5835fi
5836
Theodore Ts'oe1052142006-10-21 21:46:47 -04005837{ echo "$as_me:$LINENO: checking for alloca" >&5
5838echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005839if test "${ac_cv_func_alloca_works+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005841else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005842 cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005848#ifdef __GNUC__
5849# define alloca __builtin_alloca
5850#else
5851# ifdef _MSC_VER
5852# include <malloc.h>
5853# define alloca _alloca
5854# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005855# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005856# include <alloca.h>
5857# else
5858# ifdef _AIX
5859 #pragma alloca
5860# else
5861# ifndef alloca /* predefined by HP cc +Olibcalls */
5862char *alloca ();
5863# endif
5864# endif
5865# endif
5866# endif
5867#endif
5868
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005869int
5870main ()
5871{
5872char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04005873 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005874 ;
5875 return 0;
5876}
5877_ACEOF
5878rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005879if { (ac_try="$ac_link"
5880case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883esac
5884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest$ac_exeext &&
5895 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005896 ac_cv_func_alloca_works=yes
5897else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005898 echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005900
Theodore Ts'oe1052142006-10-21 21:46:47 -04005901 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005903
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005905 conftest$ac_exeext conftest.$ac_ext
5906fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005907{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5908echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005909
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005910if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911
5912cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005913#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005914_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005915
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005917 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5918# that cause trouble. Some versions do not even contain alloca or
5919# contain a buggy version. If you still want to use their alloca,
5920# use ar to extract alloca.o from them instead of compiling alloca.c.
5921
Theodore Ts'oe1052142006-10-21 21:46:47 -04005922ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005923
5924cat >>confdefs.h <<\_ACEOF
5925#define C_ALLOCA 1
5926_ACEOF
5927
5928
Theodore Ts'oe1052142006-10-21 21:46:47 -04005929{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5930echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005931if test "${ac_cv_os_cray+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h. */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005940#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005941webecray
5942#else
5943wenotbecray
5944#endif
5945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005946_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005948 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005949 ac_cv_os_cray=yes
5950else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005951 ac_cv_os_cray=no
5952fi
5953rm -f conftest*
5954
5955fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005956{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5957echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005958if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005959 for ac_func in _getb67 GETB67 getb67; do
5960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005964 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005966 cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5974#define $ac_func innocuous_$ac_func
5975
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005976/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005977 which can conflict with char $ac_func (); below.
5978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 <limits.h> exists even on freestanding compilers. */
5980
5981#ifdef __STDC__
5982# include <limits.h>
5983#else
5984# include <assert.h>
5985#endif
5986
5987#undef $ac_func
5988
Theodore Ts'oe1052142006-10-21 21:46:47 -04005989/* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992#ifdef __cplusplus
5993extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005995char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005996/* The GNU C library defines this for functions which it implements
5997 to always fail with ENOSYS. Some functions are actually named
5998 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005999#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006000choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006001#endif
6002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003int
6004main ()
6005{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006006return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006007 ;
6008 return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006012if { (ac_try="$ac_link"
6013case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest$ac_exeext &&
6028 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006031 echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006033
Theodore Ts'oe1052142006-10-21 21:46:47 -04006034 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006036
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038 conftest$ac_exeext conftest.$ac_ext
6039fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006040ac_res=`eval echo '${'$as_ac_var'}'`
6041 { echo "$as_me:$LINENO: result: $ac_res" >&5
6042echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043if test `eval echo '${'$as_ac_var'}'` = yes; then
6044
6045cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006046#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006050fi
6051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006053fi
6054
Theodore Ts'oe1052142006-10-21 21:46:47 -04006055{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6056echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006057if test "${ac_cv_c_stack_direction+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006059else
6060 if test "$cross_compiling" = yes; then
6061 ac_cv_c_stack_direction=0
6062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063 cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006069$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006071find_stack_direction ()
6072{
6073 static char *addr = 0;
6074 auto char dummy;
6075 if (addr == 0)
6076 {
6077 addr = &dummy;
6078 return find_stack_direction ();
6079 }
6080 else
6081 return (&dummy > addr) ? 1 : -1;
6082}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083
6084int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006085main ()
6086{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006087 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006088}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089_ACEOF
6090rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006091if { (ac_try="$ac_link"
6092case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095esac
6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006110 ac_cv_c_stack_direction=1
6111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112 echo "$as_me: program exited with status $ac_status" >&5
6113echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006116( exit $ac_status )
6117ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006118fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006119rm -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 -05006120fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006121
6122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006124{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6125echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006128#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129_ACEOF
6130
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006131
6132fi
6133
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134
6135
6136for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006137do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006144fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006145ac_res=`eval echo '${'$as_ac_Header'}'`
6146 { echo "$as_me:$LINENO: result: $ac_res" >&5
6147echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006148else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h. */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h. */
6158$ac_includes_default
6159#include <$ac_header>
6160_ACEOF
6161rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006162if { (ac_try="$ac_compile"
6163case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006178 ac_header_compiler=yes
6179else
6180 echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
Theodore Ts'oe1052142006-10-21 21:46:47 -04006183 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006185
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6188echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006189
6190# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006191{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006193cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
6199#include <$ac_header>
6200_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006201if { (ac_try="$ac_cpp conftest.$ac_ext"
6202case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205esac
6206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006213 (exit $ac_status); } >/dev/null && {
6214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006217 ac_header_preproc=yes
6218else
6219 echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_header_preproc=no
6223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006225rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6227echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006228
6229# So? What about this header?
6230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6231 yes:no: )
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6236 ac_header_preproc=yes
6237 ;;
6238 no:yes:* )
6239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006252 ;;
6253esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006254{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259 eval "$as_ac_Header=\$ac_header_preproc"
6260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006261ac_res=`eval echo '${'$as_ac_Header'}'`
6262 { echo "$as_me:$LINENO: result: $ac_res" >&5
6263echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006264
6265fi
6266if test `eval echo '${'$as_ac_Header'}'` = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269_ACEOF
6270
6271fi
6272
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006273done
6274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006276for ac_func in getpagesize
6277do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006279{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6281if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006282 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006283else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006284 cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h. */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h. */
6290/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6292#define $ac_func innocuous_$ac_func
6293
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006294/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006295 which can conflict with char $ac_func (); below.
6296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6297 <limits.h> exists even on freestanding compilers. */
6298
6299#ifdef __STDC__
6300# include <limits.h>
6301#else
6302# include <assert.h>
6303#endif
6304
6305#undef $ac_func
6306
Theodore Ts'oe1052142006-10-21 21:46:47 -04006307/* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310#ifdef __cplusplus
6311extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006312#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006313char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006314/* The GNU C library defines this for functions which it implements
6315 to always fail with ENOSYS. Some functions are actually named
6316 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006317#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006318choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006319#endif
6320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006321int
6322main ()
6323{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006324return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006325 ;
6326 return 0;
6327}
6328_ACEOF
6329rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006330if { (ac_try="$ac_link"
6331case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334esac
6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest$ac_exeext &&
6346 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006347 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006348else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006349 echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006351
Theodore Ts'oe1052142006-10-21 21:46:47 -04006352 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006354
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356 conftest$ac_exeext conftest.$ac_ext
6357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006358ac_res=`eval echo '${'$as_ac_var'}'`
6359 { echo "$as_me:$LINENO: result: $ac_res" >&5
6360echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361if test `eval echo '${'$as_ac_var'}'` = yes; then
6362 cat >>confdefs.h <<_ACEOF
6363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6364_ACEOF
6365
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006366fi
6367done
6368
Theodore Ts'oe1052142006-10-21 21:46:47 -04006369{ echo "$as_me:$LINENO: checking for working mmap" >&5
6370echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006371if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006373else
6374 if test "$cross_compiling" = yes; then
6375 ac_cv_func_mmap_fixed_mapped=no
6376else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006377 cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383$ac_includes_default
6384/* malloc might have been renamed as rpl_malloc. */
6385#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006386
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006387/* Thanks to Mike Haertel and Jim Avera for this test.
6388 Here is a matrix of mmap possibilities:
6389 mmap private not fixed
6390 mmap private fixed at somewhere currently unmapped
6391 mmap private fixed at somewhere already mapped
6392 mmap shared not fixed
6393 mmap shared fixed at somewhere currently unmapped
6394 mmap shared fixed at somewhere already mapped
6395 For private mappings, we should verify that changes cannot be read()
6396 back from the file, nor mmap's back from the file at a different
6397 address. (There have been systems where private was not correctly
6398 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006400 like early versions of FreeBSD and possibly contemporary NetBSD.)
6401 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006403
6404 Grep wants private fixed already mapped.
6405 The main things grep needs to know about mmap are:
6406 * does it exist and is it safe to write into the mmap'd area
6407 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006408
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006409#include <fcntl.h>
6410#include <sys/mman.h>
6411
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006412#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413char *malloc ();
6414#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006417#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006418/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006419# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006420# define HAVE_SYS_PARAM_H 1
6421# endif
6422
6423# ifdef _SC_PAGESIZE
6424# define getpagesize() sysconf(_SC_PAGESIZE)
6425# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006426# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006427# include <sys/param.h>
6428# ifdef EXEC_PAGESIZE
6429# define getpagesize() EXEC_PAGESIZE
6430# else /* no EXEC_PAGESIZE */
6431# ifdef NBPG
6432# define getpagesize() NBPG * CLSIZE
6433# ifndef CLSIZE
6434# define CLSIZE 1
6435# endif /* no CLSIZE */
6436# else /* no NBPG */
6437# ifdef NBPC
6438# define getpagesize() NBPC
6439# else /* no NBPC */
6440# ifdef PAGESIZE
6441# define getpagesize() PAGESIZE
6442# endif /* PAGESIZE */
6443# endif /* no NBPC */
6444# endif /* no NBPG */
6445# endif /* no EXEC_PAGESIZE */
6446# else /* no HAVE_SYS_PARAM_H */
6447# define getpagesize() 8192 /* punt totally */
6448# endif /* no HAVE_SYS_PARAM_H */
6449# endif /* no _SC_PAGESIZE */
6450
6451#endif /* no HAVE_GETPAGESIZE */
6452
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006453int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006455{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456 char *data, *data2, *data3;
6457 int i, pagesize;
6458 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006459
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006460 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462 /* First, make a file with some known garbage in it. */
6463 data = (char *) malloc (pagesize);
6464 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006465 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466 for (i = 0; i < pagesize; ++i)
6467 *(data + i) = rand ();
6468 umask (0);
6469 fd = creat ("conftest.mmap", 0600);
6470 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006471 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006472 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006473 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006475
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476 /* Next, try to mmap the file at a fixed address which already has
6477 something else allocated at it. If we can, also make sure that
6478 we see the same garbage. */
6479 fd = open ("conftest.mmap", O_RDWR);
6480 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006481 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482 data2 = (char *) malloc (2 * pagesize);
6483 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006484 return 1;
6485 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6487 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006488 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489 for (i = 0; i < pagesize; ++i)
6490 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006491 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006493 /* Finally, make sure that changes to the mapped area do not
6494 percolate back to the file as seen by read(). (This is a bug on
6495 some variants of i386 svr4.0.) */
6496 for (i = 0; i < pagesize; ++i)
6497 *(data2 + i) = *(data2 + i) + 1;
6498 data3 = (char *) malloc (pagesize);
6499 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006500 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006502 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006503 for (i = 0; i < pagesize; ++i)
6504 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006505 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006506 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006507 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006508}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509_ACEOF
6510rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006511if { (ac_try="$ac_link"
6512case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006530 ac_cv_func_mmap_fixed_mapped=yes
6531else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532 echo "$as_me: program exited with status $ac_status" >&5
6533echo "$as_me: failed program was:" >&5
6534sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536( exit $ac_status )
6537ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006539rm -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 -05006540fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006541
6542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006544{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6545echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006546if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547
6548cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006549#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006551
6552fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006554
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006555
Theodore Ts'oe1052142006-10-21 21:46:47 -04006556 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6557echo $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 -05006558if test "${ac_cv_gnu_library_2_1+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006560else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561 cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006567
6568#include <features.h>
6569#ifdef __GNU_LIBRARY__
6570 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6571 Lucky GNU user
6572 #endif
6573#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006574
6575_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006578 ac_cv_gnu_library_2_1=yes
6579else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006580 ac_cv_gnu_library_2_1=no
6581fi
6582rm -f conftest*
6583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584
6585
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006587{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6588echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006590 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006591
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593
6594
Theodore Ts'oe1052142006-10-21 21:46:47 -04006595 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6596echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006599else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006601 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006602
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006603 # Guess based on the CPU.
6604 case "$host_cpu" in
6605 alpha* | i3456786 | m68k | s390*)
6606 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6607 *)
6608 gt_cv_int_divbyzero_sigfpe="guessing no";;
6609 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006610
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006611else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612 cat >conftest.$ac_ext <<_ACEOF
6613/* confdefs.h. */
6614_ACEOF
6615cat confdefs.h >>conftest.$ac_ext
6616cat >>conftest.$ac_ext <<_ACEOF
6617/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006618
6619#include <stdlib.h>
6620#include <signal.h>
6621
6622static void
6623#ifdef __cplusplus
6624sigfpe_handler (int sig)
6625#else
6626sigfpe_handler (sig) int sig;
6627#endif
6628{
6629 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6630 exit (sig != SIGFPE);
6631}
6632
6633int x = 1;
6634int y = 0;
6635int z;
6636int nan;
6637
6638int main ()
6639{
6640 signal (SIGFPE, sigfpe_handler);
6641/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6642#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6643 signal (SIGTRAP, sigfpe_handler);
6644#endif
6645/* Linux/SPARC yields signal SIGILL. */
6646#if defined (__sparc__) && defined (__linux__)
6647 signal (SIGILL, sigfpe_handler);
6648#endif
6649
6650 z = x / y;
6651 nan = y / y;
6652 exit (1);
6653}
6654
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006655_ACEOF
6656rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006657if { (ac_try="$ac_link"
6658case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
6662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006667 { (case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670esac
6671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006676 gt_cv_int_divbyzero_sigfpe=yes
6677else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678 echo "$as_me: program exited with status $ac_status" >&5
6679echo "$as_me: failed program was:" >&5
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
6682( exit $ac_status )
6683gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006684fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006685rm -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 -04006686fi
6687
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688
6689
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006690fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006691{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6692echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006693 case "$gt_cv_int_divbyzero_sigfpe" in
6694 *yes) value=1;;
6695 *) value=0;;
6696 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697
6698cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006699#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006701
6702
6703
Theodore Ts'oe1052142006-10-21 21:46:47 -04006704 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6705echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709 cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h. */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h. */
6715unsigned long long ull = 1ULL; int i = 63;
6716int
6717main ()
6718{
6719unsigned long long ullmax = (unsigned long long) -1;
6720 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006726if { (ac_try="$ac_link"
6727case "(($ac_try" in
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6730esac
6731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006733 ac_status=$?
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest$ac_exeext &&
6742 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006743 ac_cv_type_unsigned_long_long=yes
6744else
6745 echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
Theodore Ts'oe1052142006-10-21 21:46:47 -04006748 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006750
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752 conftest$ac_exeext conftest.$ac_ext
6753fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006754{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6755echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756 if test $ac_cv_type_unsigned_long_long = yes; then
6757
6758cat >>confdefs.h <<\_ACEOF
6759#define HAVE_UNSIGNED_LONG_LONG 1
6760_ACEOF
6761
6762 fi
6763
6764
6765
6766
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006767 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 -05006768
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006769 test $ac_cv_type_unsigned_long_long = yes \
6770 && ac_type='unsigned long long' \
6771 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006772
6773cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006774#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775_ACEOF
6776
6777 else
6778
6779cat >>confdefs.h <<\_ACEOF
6780#define HAVE_UINTMAX_T 1
6781_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006782
6783 fi
6784
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006785
Theodore Ts'oe1052142006-10-21 21:46:47 -04006786 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6787echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788if test "${gt_cv_header_inttypes_h+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006790else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006791
6792 cat >conftest.$ac_ext <<_ACEOF
6793/* confdefs.h. */
6794_ACEOF
6795cat confdefs.h >>conftest.$ac_ext
6796cat >>conftest.$ac_ext <<_ACEOF
6797/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006798#include <sys/types.h>
6799#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800int
6801main ()
6802{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804 ;
6805 return 0;
6806}
6807_ACEOF
6808rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006809if { (ac_try="$ac_compile"
6810case "(($ac_try" in
6811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6813esac
6814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006825 gt_cv_header_inttypes_h=yes
6826else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827 echo "$as_me: failed program was:" >&5
6828sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006829
Theodore Ts'oe1052142006-10-21 21:46:47 -04006830 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006832
6833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834
6835fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006836{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6837echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006838 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839
6840cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006841#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006843
6844 fi
6845
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006846
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006848 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04006849 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6850echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006853else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006854
6855 cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h. */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006861#include <inttypes.h>
6862#ifdef PRId32
6863char *p = PRId32;
6864#endif
6865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006866int
6867main ()
6868{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006870 ;
6871 return 0;
6872}
6873_ACEOF
6874rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006875if { (ac_try="$ac_compile"
6876case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879esac
6880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006887 (exit $ac_status); } && {
6888 test -z "$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006891 gt_cv_inttypes_pri_broken=no
6892else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006893 echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006895
Theodore Ts'oe1052142006-10-21 21:46:47 -04006896 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006898
6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900
6901fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006902{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6903echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006904 fi
6905 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906
6907cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006908#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006910
6911 fi
6912
6913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915for ac_header in stdint.h
6916do
6917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006924ac_res=`eval echo '${'$as_ac_Header'}'`
6925 { echo "$as_me:$LINENO: result: $ac_res" >&5
6926echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927else
6928 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006929{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
6937$ac_includes_default
6938#include <$ac_header>
6939_ACEOF
6940rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006941if { (ac_try="$ac_compile"
6942case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945esac
6946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957 ac_header_compiler=yes
6958else
6959 echo "$as_me: failed program was:" >&5
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
Theodore Ts'oe1052142006-10-21 21:46:47 -04006962 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006964
6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968
6969# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
6978#include <$ac_header>
6979_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006980if { (ac_try="$ac_cpp conftest.$ac_ext"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
6985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006992 (exit $ac_status); } >/dev/null && {
6993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996 ac_header_preproc=yes
6997else
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_header_preproc=no
7002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007003
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007005{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7006echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007
7008# So? What about this header?
7009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7010 yes:no: )
7011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7015 ac_header_preproc=yes
7016 ;;
7017 no:yes:* )
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7025echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031 ;;
7032esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007033{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 eval "$as_ac_Header=\$ac_header_preproc"
7039fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007040ac_res=`eval echo '${'$as_ac_Header'}'`
7041 { echo "$as_me:$LINENO: result: $ac_res" >&5
7042echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043
7044fi
7045if test `eval echo '${'$as_ac_Header'}'` = yes; then
7046 cat >>confdefs.h <<_ACEOF
7047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7048_ACEOF
7049
7050fi
7051
7052done
7053
Theodore Ts'oe1052142006-10-21 21:46:47 -04007054 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7055echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056 result=
7057 cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063
7064#include <limits.h>
7065#if HAVE_STDINT_H
7066#include <stdint.h>
7067#endif
7068#ifdef SIZE_MAX
7069Found it
7070#endif
7071
7072_ACEOF
7073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074 $EGREP "Found it" >/dev/null 2>&1; then
7075 result=yes
7076fi
7077rm -f conftest*
7078
7079 if test -z "$result"; then
7080 if test "$cross_compiling" = yes; then
7081 # Depending upon the size, compute the lo and hi bounds.
7082cat >conftest.$ac_ext <<_ACEOF
7083/* confdefs.h. */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h. */
7088#include <stddef.h>
7089int
7090main ()
7091{
7092static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7093test_array [0] = 0
7094
7095 ;
7096 return 0;
7097}
7098_ACEOF
7099rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007100if { (ac_try="$ac_compile"
7101case "(($ac_try" in
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7104esac
7105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116 ac_lo=0 ac_mid=0
7117 while :; do
7118 cat >conftest.$ac_ext <<_ACEOF
7119/* confdefs.h. */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h. */
7124#include <stddef.h>
7125int
7126main ()
7127{
7128static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7129test_array [0] = 0
7130
7131 ;
7132 return 0;
7133}
7134_ACEOF
7135rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007136if { (ac_try="$ac_compile"
7137case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140esac
7141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152 ac_hi=$ac_mid; break
7153else
7154 echo "$as_me: failed program was:" >&5
7155sed 's/^/| /' conftest.$ac_ext >&5
7156
Theodore Ts'oe1052142006-10-21 21:46:47 -04007157 ac_lo=`expr $ac_mid + 1`
7158 if test $ac_lo -le $ac_mid; then
7159 ac_lo= ac_hi=
7160 break
7161 fi
7162 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007164
7165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007166 done
7167else
7168 echo "$as_me: failed program was:" >&5
7169sed 's/^/| /' conftest.$ac_ext >&5
7170
Theodore Ts'oe1052142006-10-21 21:46:47 -04007171 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172/* confdefs.h. */
7173_ACEOF
7174cat confdefs.h >>conftest.$ac_ext
7175cat >>conftest.$ac_ext <<_ACEOF
7176/* end confdefs.h. */
7177#include <stddef.h>
7178int
7179main ()
7180{
7181static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7182test_array [0] = 0
7183
7184 ;
7185 return 0;
7186}
7187_ACEOF
7188rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007189if { (ac_try="$ac_compile"
7190case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193esac
7194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205 ac_hi=-1 ac_mid=-1
7206 while :; do
7207 cat >conftest.$ac_ext <<_ACEOF
7208/* confdefs.h. */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
7212/* end confdefs.h. */
7213#include <stddef.h>
7214int
7215main ()
7216{
7217static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7218test_array [0] = 0
7219
7220 ;
7221 return 0;
7222}
7223_ACEOF
7224rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007225if { (ac_try="$ac_compile"
7226case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229esac
7230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241 ac_lo=$ac_mid; break
7242else
7243 echo "$as_me: failed program was:" >&5
7244sed 's/^/| /' conftest.$ac_ext >&5
7245
Theodore Ts'oe1052142006-10-21 21:46:47 -04007246 ac_hi=`expr '(' $ac_mid ')' - 1`
7247 if test $ac_mid -le $ac_hi; then
7248 ac_lo= ac_hi=
7249 break
7250 fi
7251 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007253
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007255 done
7256else
7257 echo "$as_me: failed program was:" >&5
7258sed 's/^/| /' conftest.$ac_ext >&5
7259
Theodore Ts'oe1052142006-10-21 21:46:47 -04007260 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007262
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007265
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007267# Binary search between lo and hi bounds.
7268while test "x$ac_lo" != "x$ac_hi"; do
7269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7270 cat >conftest.$ac_ext <<_ACEOF
7271/* confdefs.h. */
7272_ACEOF
7273cat confdefs.h >>conftest.$ac_ext
7274cat >>conftest.$ac_ext <<_ACEOF
7275/* end confdefs.h. */
7276#include <stddef.h>
7277int
7278main ()
7279{
7280static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7281test_array [0] = 0
7282
7283 ;
7284 return 0;
7285}
7286_ACEOF
7287rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007288if { (ac_try="$ac_compile"
7289case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292esac
7293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007304 ac_hi=$ac_mid
7305else
7306 echo "$as_me: failed program was:" >&5
7307sed 's/^/| /' conftest.$ac_ext >&5
7308
Theodore Ts'oe1052142006-10-21 21:46:47 -04007309 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007311
7312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007313done
7314case $ac_lo in
7315?*) res_hi=$ac_lo;;
7316'') result=? ;;
7317esac
7318else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319 cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h. */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h. */
7325#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007326static long int longval () { return ~(size_t)0 / 10; }
7327static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328#include <stdio.h>
7329#include <stdlib.h>
7330int
7331main ()
7332{
7333
7334 FILE *f = fopen ("conftest.val", "w");
7335 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007336 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337 if ((~(size_t)0 / 10) < 0)
7338 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007341 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007342 fprintf (f, "%ld\n", i);
7343 }
7344 else
7345 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007346 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007348 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349 fprintf (f, "%lu\n", i);
7350 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007351 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007352
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007358if { (ac_try="$ac_link"
7359case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362esac
7363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007368 { (case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371esac
7372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 res_hi=`cat conftest.val`
7378else
7379 echo "$as_me: program exited with status $ac_status" >&5
7380echo "$as_me: failed program was:" >&5
7381sed 's/^/| /' conftest.$ac_ext >&5
7382
7383( exit $ac_status )
7384result=?
7385fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007386rm -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 -05007387fi
7388rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007389
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007390 if test "$cross_compiling" = yes; then
7391 # Depending upon the size, compute the lo and hi bounds.
7392cat >conftest.$ac_ext <<_ACEOF
7393/* confdefs.h. */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h. */
7398#include <stddef.h>
7399int
7400main ()
7401{
7402static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7403test_array [0] = 0
7404
7405 ;
7406 return 0;
7407}
7408_ACEOF
7409rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007410if { (ac_try="$ac_compile"
7411case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414esac
7415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007426 ac_lo=0 ac_mid=0
7427 while :; do
7428 cat >conftest.$ac_ext <<_ACEOF
7429/* confdefs.h. */
7430_ACEOF
7431cat confdefs.h >>conftest.$ac_ext
7432cat >>conftest.$ac_ext <<_ACEOF
7433/* end confdefs.h. */
7434#include <stddef.h>
7435int
7436main ()
7437{
7438static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7439test_array [0] = 0
7440
7441 ;
7442 return 0;
7443}
7444_ACEOF
7445rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007446if { (ac_try="$ac_compile"
7447case "(($ac_try" in
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7450esac
7451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462 ac_hi=$ac_mid; break
7463else
7464 echo "$as_me: failed program was:" >&5
7465sed 's/^/| /' conftest.$ac_ext >&5
7466
Theodore Ts'oe1052142006-10-21 21:46:47 -04007467 ac_lo=`expr $ac_mid + 1`
7468 if test $ac_lo -le $ac_mid; then
7469 ac_lo= ac_hi=
7470 break
7471 fi
7472 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007473fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007474
7475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476 done
7477else
7478 echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
Theodore Ts'oe1052142006-10-21 21:46:47 -04007481 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482/* confdefs.h. */
7483_ACEOF
7484cat confdefs.h >>conftest.$ac_ext
7485cat >>conftest.$ac_ext <<_ACEOF
7486/* end confdefs.h. */
7487#include <stddef.h>
7488int
7489main ()
7490{
7491static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7492test_array [0] = 0
7493
7494 ;
7495 return 0;
7496}
7497_ACEOF
7498rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007499if { (ac_try="$ac_compile"
7500case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7503esac
7504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515 ac_hi=-1 ac_mid=-1
7516 while :; do
7517 cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h. */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h. */
7523#include <stddef.h>
7524int
7525main ()
7526{
7527static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7528test_array [0] = 0
7529
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007535if { (ac_try="$ac_compile"
7536case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
7540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551 ac_lo=$ac_mid; break
7552else
7553 echo "$as_me: failed program was:" >&5
7554sed 's/^/| /' conftest.$ac_ext >&5
7555
Theodore Ts'oe1052142006-10-21 21:46:47 -04007556 ac_hi=`expr '(' $ac_mid ')' - 1`
7557 if test $ac_mid -le $ac_hi; then
7558 ac_lo= ac_hi=
7559 break
7560 fi
7561 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007563
7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565 done
7566else
7567 echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
Theodore Ts'oe1052142006-10-21 21:46:47 -04007570 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007572
7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007575
7576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577# Binary search between lo and hi bounds.
7578while test "x$ac_lo" != "x$ac_hi"; do
7579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7580 cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
7586#include <stddef.h>
7587int
7588main ()
7589{
7590static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7591test_array [0] = 0
7592
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007598if { (ac_try="$ac_compile"
7599case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602esac
7603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007614 ac_hi=$ac_mid
7615else
7616 echo "$as_me: failed program was:" >&5
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
Theodore Ts'oe1052142006-10-21 21:46:47 -04007619 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007621
7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007623done
7624case $ac_lo in
7625?*) res_lo=$ac_lo;;
7626'') result=? ;;
7627esac
7628else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h. */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h. */
7635#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007636static long int longval () { return ~(size_t)0 % 10; }
7637static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638#include <stdio.h>
7639#include <stdlib.h>
7640int
7641main ()
7642{
7643
7644 FILE *f = fopen ("conftest.val", "w");
7645 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007646 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647 if ((~(size_t)0 % 10) < 0)
7648 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007649 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007651 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007652 fprintf (f, "%ld\n", i);
7653 }
7654 else
7655 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007656 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007658 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659 fprintf (f, "%lu\n", i);
7660 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007661 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662
7663 ;
7664 return 0;
7665}
7666_ACEOF
7667rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007668if { (ac_try="$ac_link"
7669case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672esac
7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007678 { (case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 res_lo=`cat conftest.val`
7688else
7689 echo "$as_me: program exited with status $ac_status" >&5
7690echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
7693( exit $ac_status )
7694result=?
7695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007696rm -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 -05007697fi
7698rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007699
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007700 if test "$cross_compiling" = yes; then
7701 # Depending upon the size, compute the lo and hi bounds.
7702cat >conftest.$ac_ext <<_ACEOF
7703/* confdefs.h. */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h. */
7708#include <stddef.h>
7709int
7710main ()
7711{
7712static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7713test_array [0] = 0
7714
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007720if { (ac_try="$ac_compile"
7721case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724esac
7725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007736 ac_lo=0 ac_mid=0
7737 while :; do
7738 cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744#include <stddef.h>
7745int
7746main ()
7747{
7748static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7749test_array [0] = 0
7750
7751 ;
7752 return 0;
7753}
7754_ACEOF
7755rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007756if { (ac_try="$ac_compile"
7757case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760esac
7761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007772 ac_hi=$ac_mid; break
7773else
7774 echo "$as_me: failed program was:" >&5
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
Theodore Ts'oe1052142006-10-21 21:46:47 -04007777 ac_lo=`expr $ac_mid + 1`
7778 if test $ac_lo -le $ac_mid; then
7779 ac_lo= ac_hi=
7780 break
7781 fi
7782 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007783fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007784
7785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007786 done
7787else
7788 echo "$as_me: failed program was:" >&5
7789sed 's/^/| /' conftest.$ac_ext >&5
7790
Theodore Ts'oe1052142006-10-21 21:46:47 -04007791 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h. */
7797#include <stddef.h>
7798int
7799main ()
7800{
7801static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7802test_array [0] = 0
7803
7804 ;
7805 return 0;
7806}
7807_ACEOF
7808rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007809if { (ac_try="$ac_compile"
7810case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7813esac
7814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7815 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007816 ac_status=$?
7817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007821 (exit $ac_status); } && {
7822 test -z "$ac_c_werror_flag" ||
7823 test ! -s conftest.err
7824 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007825 ac_hi=-1 ac_mid=-1
7826 while :; do
7827 cat >conftest.$ac_ext <<_ACEOF
7828/* confdefs.h. */
7829_ACEOF
7830cat confdefs.h >>conftest.$ac_ext
7831cat >>conftest.$ac_ext <<_ACEOF
7832/* end confdefs.h. */
7833#include <stddef.h>
7834int
7835main ()
7836{
7837static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7838test_array [0] = 0
7839
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007845if { (ac_try="$ac_compile"
7846case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852 ac_status=$?
7853 grep -v '^ *+' conftest.er1 >conftest.err
7854 rm -f conftest.er1
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007857 (exit $ac_status); } && {
7858 test -z "$ac_c_werror_flag" ||
7859 test ! -s conftest.err
7860 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861 ac_lo=$ac_mid; break
7862else
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
Theodore Ts'oe1052142006-10-21 21:46:47 -04007866 ac_hi=`expr '(' $ac_mid ')' - 1`
7867 if test $ac_mid -le $ac_hi; then
7868 ac_lo= ac_hi=
7869 break
7870 fi
7871 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007873
7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007875 done
7876else
7877 echo "$as_me: failed program was:" >&5
7878sed 's/^/| /' conftest.$ac_ext >&5
7879
Theodore Ts'oe1052142006-10-21 21:46:47 -04007880 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007881fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007882
7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007884fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007885
7886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007887# Binary search between lo and hi bounds.
7888while test "x$ac_lo" != "x$ac_hi"; do
7889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7890 cat >conftest.$ac_ext <<_ACEOF
7891/* confdefs.h. */
7892_ACEOF
7893cat confdefs.h >>conftest.$ac_ext
7894cat >>conftest.$ac_ext <<_ACEOF
7895/* end confdefs.h. */
7896#include <stddef.h>
7897int
7898main ()
7899{
7900static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7901test_array [0] = 0
7902
7903 ;
7904 return 0;
7905}
7906_ACEOF
7907rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007908if { (ac_try="$ac_compile"
7909case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912esac
7913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007924 ac_hi=$ac_mid
7925else
7926 echo "$as_me: failed program was:" >&5
7927sed 's/^/| /' conftest.$ac_ext >&5
7928
Theodore Ts'oe1052142006-10-21 21:46:47 -04007929 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007931
7932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007933done
7934case $ac_lo in
7935?*) fits_in_uint=$ac_lo;;
7936'') result=? ;;
7937esac
7938else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939 cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h. */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h. */
7945#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007946static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7947static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007948#include <stdio.h>
7949#include <stdlib.h>
7950int
7951main ()
7952{
7953
7954 FILE *f = fopen ("conftest.val", "w");
7955 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007956 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007957 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7958 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007959 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007960 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007961 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007962 fprintf (f, "%ld\n", i);
7963 }
7964 else
7965 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007966 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007967 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007968 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007969 fprintf (f, "%lu\n", i);
7970 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007971 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007972
7973 ;
7974 return 0;
7975}
7976_ACEOF
7977rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007978if { (ac_try="$ac_link"
7979case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982esac
7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007988 { (case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 fits_in_uint=`cat conftest.val`
7998else
7999 echo "$as_me: program exited with status $ac_status" >&5
8000echo "$as_me: failed program was:" >&5
8001sed 's/^/| /' conftest.$ac_ext >&5
8002
8003( exit $ac_status )
8004result=?
8005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008006rm -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 -05008007fi
8008rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008010 if test "$fits_in_uint" = 1; then
8011 cat >conftest.$ac_ext <<_ACEOF
8012/* confdefs.h. */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h. */
8017#include <stddef.h>
8018 extern size_t foo;
8019 extern unsigned long foo;
8020
8021int
8022main ()
8023{
8024
8025 ;
8026 return 0;
8027}
8028_ACEOF
8029rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008030if { (ac_try="$ac_compile"
8031case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034esac
8035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008046 fits_in_uint=0
8047else
8048 echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
Theodore Ts'oe1052142006-10-21 21:46:47 -04008051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008052fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008053
8054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008055 fi
8056 if test -z "$result"; then
8057 if test "$fits_in_uint" = 1; then
8058 result="$res_hi$res_lo"U
8059 else
8060 result="$res_hi$res_lo"UL
8061 fi
8062 else
8063 result='~(size_t)0'
8064 fi
8065 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008066 { echo "$as_me:$LINENO: result: $result" >&5
8067echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008068 if test "$result" != yes; then
8069
8070cat >>confdefs.h <<_ACEOF
8071#define SIZE_MAX $result
8072_ACEOF
8073
8074 fi
8075
8076
8077
8078
8079for ac_header in stdint.h
8080do
8081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008088ac_res=`eval echo '${'$as_ac_Header'}'`
8089 { echo "$as_me:$LINENO: result: $ac_res" >&5
8090echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091else
8092 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008093{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008095cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h. */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */
8101$ac_includes_default
8102#include <$ac_header>
8103_ACEOF
8104rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008105if { (ac_try="$ac_compile"
8106case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109esac
8110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008121 ac_header_compiler=yes
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
Theodore Ts'oe1052142006-10-21 21:46:47 -04008126 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008127fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008128
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8131echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008132
8133# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008134{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8135echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008136cat >conftest.$ac_ext <<_ACEOF
8137/* confdefs.h. */
8138_ACEOF
8139cat confdefs.h >>conftest.$ac_ext
8140cat >>conftest.$ac_ext <<_ACEOF
8141/* end confdefs.h. */
8142#include <$ac_header>
8143_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008144if { (ac_try="$ac_cpp conftest.$ac_ext"
8145case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008156 (exit $ac_status); } >/dev/null && {
8157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008160 ac_header_preproc=yes
8161else
8162 echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
8164
8165 ac_header_preproc=no
8166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008168rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008171
8172# So? What about this header?
8173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8174 yes:no: )
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179 ac_header_preproc=yes
8180 ;;
8181 no:yes:* )
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008195 ;;
8196esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 eval "$as_ac_Header=\$ac_header_preproc"
8203fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008204ac_res=`eval echo '${'$as_ac_Header'}'`
8205 { echo "$as_me:$LINENO: result: $ac_res" >&5
8206echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008207
8208fi
8209if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212_ACEOF
8213
8214fi
8215
8216done
8217
8218
8219
8220 if test "X$prefix" = "XNONE"; then
8221 acl_final_prefix="$ac_default_prefix"
8222 else
8223 acl_final_prefix="$prefix"
8224 fi
8225 if test "X$exec_prefix" = "XNONE"; then
8226 acl_final_exec_prefix='${prefix}'
8227 else
8228 acl_final_exec_prefix="$exec_prefix"
8229 fi
8230 acl_save_prefix="$prefix"
8231 prefix="$acl_final_prefix"
8232 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8233 prefix="$acl_save_prefix"
8234
8235
Theodore Ts'oe1052142006-10-21 21:46:47 -04008236# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008237if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008238 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008239else
8240 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008241fi
8242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008243# Prepare PATH_SEPARATOR.
8244# The user is always right.
8245if test "${PATH_SEPARATOR+set}" != set; then
8246 echo "#! /bin/sh" >conf$$.sh
8247 echo "exit 0" >>conf$$.sh
8248 chmod +x conf$$.sh
8249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8250 PATH_SEPARATOR=';'
8251 else
8252 PATH_SEPARATOR=:
8253 fi
8254 rm -f conf$$.sh
8255fi
8256ac_prog=ld
8257if test "$GCC" = yes; then
8258 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008259 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8260echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008261 case $host in
8262 *-*-mingw*)
8263 # gcc leaves a trailing carriage return which upsets mingw
8264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8265 *)
8266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8267 esac
8268 case $ac_prog in
8269 # Accept absolute paths.
8270 [\\/]* | [A-Za-z]:[\\/]*)
8271 re_direlt='/[^/][^/]*/\.\./'
8272 # Canonicalize the path of ld
8273 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8274 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8275 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8276 done
8277 test -z "$LD" && LD="$ac_prog"
8278 ;;
8279 "")
8280 # If it fails, then pretend we aren't using GCC.
8281 ac_prog=ld
8282 ;;
8283 *)
8284 # If it is relative, then search for the first ld in PATH.
8285 with_gnu_ld=unknown
8286 ;;
8287 esac
8288elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008289 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8290echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008291else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008292 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8293echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008294fi
8295if test "${acl_cv_path_LD+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 if test -z "$LD"; then
8299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8300 for ac_dir in $PATH; do
8301 test -z "$ac_dir" && ac_dir=.
8302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8303 acl_cv_path_LD="$ac_dir/$ac_prog"
8304 # Check to see if the program is GNU ld. I'd rather use --version,
8305 # but apparently some GNU ld's only accept -v.
8306 # Break only if it was the GNU/non-GNU ld that we prefer.
8307 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8308 *GNU* | *'with BFD'*)
8309 test "$with_gnu_ld" != no && break ;;
8310 *)
8311 test "$with_gnu_ld" != yes && break ;;
8312 esac
8313 fi
8314 done
8315 IFS="$ac_save_ifs"
8316else
8317 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8318fi
8319fi
8320
8321LD="$acl_cv_path_LD"
8322if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008323 { echo "$as_me:$LINENO: result: $LD" >&5
8324echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008325else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008326 { echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008328fi
8329test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8330echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8331 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008332{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8333echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008334if test "${acl_cv_prog_gnu_ld+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336else
8337 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8338case `$LD -v 2>&1 </dev/null` in
8339*GNU* | *'with BFD'*)
8340 acl_cv_prog_gnu_ld=yes ;;
8341*)
8342 acl_cv_prog_gnu_ld=no ;;
8343esac
8344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008345{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8346echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008347with_gnu_ld=$acl_cv_prog_gnu_ld
8348
8349
8350
Theodore Ts'oe1052142006-10-21 21:46:47 -04008351 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8352echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008353if test "${acl_cv_rpath+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356
8357 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8358 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8359 . ./conftest.sh
8360 rm -f ./conftest.sh
8361 acl_cv_rpath=done
8362
8363fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008364{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8365echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008366 wl="$acl_cv_wl"
8367 libext="$acl_cv_libext"
8368 shlibext="$acl_cv_shlibext"
8369 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8370 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8371 hardcode_direct="$acl_cv_hardcode_direct"
8372 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008374if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008375 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008376else
8377 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008378fi
8379
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008380
8381
8382
8383
8384
8385
8386
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008387 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008388
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008389 acl_save_prefix="$prefix"
8390 prefix="$acl_final_prefix"
8391 acl_save_exec_prefix="$exec_prefix"
8392 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008393
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008394 eval additional_includedir=\"$includedir\"
8395 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008396
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008397 exec_prefix="$acl_save_exec_prefix"
8398 prefix="$acl_save_prefix"
8399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400
Theodore Ts'oe1052142006-10-21 21:46:47 -04008401# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008402if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008403 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008404 if test "X$withval" = "Xno"; then
8405 use_additional=no
8406 else
8407 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008408
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008409 acl_save_prefix="$prefix"
8410 prefix="$acl_final_prefix"
8411 acl_save_exec_prefix="$exec_prefix"
8412 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008413
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008414 eval additional_includedir=\"$includedir\"
8415 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008416
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008417 exec_prefix="$acl_save_exec_prefix"
8418 prefix="$acl_save_prefix"
8419
8420 else
8421 additional_includedir="$withval/include"
8422 additional_libdir="$withval/lib"
8423 fi
8424 fi
8425
Theodore Ts'oe1052142006-10-21 21:46:47 -04008426fi
8427
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008428 LIBICONV=
8429 LTLIBICONV=
8430 INCICONV=
8431 rpathdirs=
8432 ltrpathdirs=
8433 names_already_handled=
8434 names_next_round='iconv '
8435 while test -n "$names_next_round"; do
8436 names_this_round="$names_next_round"
8437 names_next_round=
8438 for name in $names_this_round; do
8439 already_handled=
8440 for n in $names_already_handled; do
8441 if test "$n" = "$name"; then
8442 already_handled=yes
8443 break
8444 fi
8445 done
8446 if test -z "$already_handled"; then
8447 names_already_handled="$names_already_handled $name"
8448 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8449 eval value=\"\$HAVE_LIB$uppername\"
8450 if test -n "$value"; then
8451 if test "$value" = yes; then
8452 eval value=\"\$LIB$uppername\"
8453 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8454 eval value=\"\$LTLIB$uppername\"
8455 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8456 else
8457 :
8458 fi
8459 else
8460 found_dir=
8461 found_la=
8462 found_so=
8463 found_a=
8464 if test $use_additional = yes; then
8465 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8466 found_dir="$additional_libdir"
8467 found_so="$additional_libdir/lib$name.$shlibext"
8468 if test -f "$additional_libdir/lib$name.la"; then
8469 found_la="$additional_libdir/lib$name.la"
8470 fi
8471 else
8472 if test -f "$additional_libdir/lib$name.$libext"; then
8473 found_dir="$additional_libdir"
8474 found_a="$additional_libdir/lib$name.$libext"
8475 if test -f "$additional_libdir/lib$name.la"; then
8476 found_la="$additional_libdir/lib$name.la"
8477 fi
8478 fi
8479 fi
8480 fi
8481 if test "X$found_dir" = "X"; then
8482 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008483
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008484 acl_save_prefix="$prefix"
8485 prefix="$acl_final_prefix"
8486 acl_save_exec_prefix="$exec_prefix"
8487 exec_prefix="$acl_final_exec_prefix"
8488 eval x=\"$x\"
8489 exec_prefix="$acl_save_exec_prefix"
8490 prefix="$acl_save_prefix"
8491
8492 case "$x" in
8493 -L*)
8494 dir=`echo "X$x" | sed -e 's/^X-L//'`
8495 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8496 found_dir="$dir"
8497 found_so="$dir/lib$name.$shlibext"
8498 if test -f "$dir/lib$name.la"; then
8499 found_la="$dir/lib$name.la"
8500 fi
8501 else
8502 if test -f "$dir/lib$name.$libext"; then
8503 found_dir="$dir"
8504 found_a="$dir/lib$name.$libext"
8505 if test -f "$dir/lib$name.la"; then
8506 found_la="$dir/lib$name.la"
8507 fi
8508 fi
8509 fi
8510 ;;
8511 esac
8512 if test "X$found_dir" != "X"; then
8513 break
8514 fi
8515 done
8516 fi
8517 if test "X$found_dir" != "X"; then
8518 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8519 if test "X$found_so" != "X"; then
8520 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8522 else
8523 haveit=
8524 for x in $ltrpathdirs; do
8525 if test "X$x" = "X$found_dir"; then
8526 haveit=yes
8527 break
8528 fi
8529 done
8530 if test -z "$haveit"; then
8531 ltrpathdirs="$ltrpathdirs $found_dir"
8532 fi
8533 if test "$hardcode_direct" = yes; then
8534 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8535 else
8536 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8538 haveit=
8539 for x in $rpathdirs; do
8540 if test "X$x" = "X$found_dir"; then
8541 haveit=yes
8542 break
8543 fi
8544 done
8545 if test -z "$haveit"; then
8546 rpathdirs="$rpathdirs $found_dir"
8547 fi
8548 else
8549 haveit=
8550 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008552 acl_save_prefix="$prefix"
8553 prefix="$acl_final_prefix"
8554 acl_save_exec_prefix="$exec_prefix"
8555 exec_prefix="$acl_final_exec_prefix"
8556 eval x=\"$x\"
8557 exec_prefix="$acl_save_exec_prefix"
8558 prefix="$acl_save_prefix"
8559
8560 if test "X$x" = "X-L$found_dir"; then
8561 haveit=yes
8562 break
8563 fi
8564 done
8565 if test -z "$haveit"; then
8566 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8567 fi
8568 if test "$hardcode_minus_L" != no; then
8569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8570 else
8571 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8572 fi
8573 fi
8574 fi
8575 fi
8576 else
8577 if test "X$found_a" != "X"; then
8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8579 else
8580 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8581 fi
8582 fi
8583 additional_includedir=
8584 case "$found_dir" in
8585 */lib | */lib/)
8586 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8587 additional_includedir="$basedir/include"
8588 ;;
8589 esac
8590 if test "X$additional_includedir" != "X"; then
8591 if test "X$additional_includedir" != "X/usr/include"; then
8592 haveit=
8593 if test "X$additional_includedir" = "X/usr/local/include"; then
8594 if test -n "$GCC"; then
8595 case $host_os in
8596 linux*) haveit=yes;;
8597 esac
8598 fi
8599 fi
8600 if test -z "$haveit"; then
8601 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008602
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008603 acl_save_prefix="$prefix"
8604 prefix="$acl_final_prefix"
8605 acl_save_exec_prefix="$exec_prefix"
8606 exec_prefix="$acl_final_exec_prefix"
8607 eval x=\"$x\"
8608 exec_prefix="$acl_save_exec_prefix"
8609 prefix="$acl_save_prefix"
8610
8611 if test "X$x" = "X-I$additional_includedir"; then
8612 haveit=yes
8613 break
8614 fi
8615 done
8616 if test -z "$haveit"; then
8617 if test -d "$additional_includedir"; then
8618 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8619 fi
8620 fi
8621 fi
8622 fi
8623 fi
8624 if test -n "$found_la"; then
8625 save_libdir="$libdir"
8626 case "$found_la" in
8627 */* | *\\*) . "$found_la" ;;
8628 *) . "./$found_la" ;;
8629 esac
8630 libdir="$save_libdir"
8631 for dep in $dependency_libs; do
8632 case "$dep" in
8633 -L*)
8634 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8635 if test "X$additional_libdir" != "X/usr/lib"; then
8636 haveit=
8637 if test "X$additional_libdir" = "X/usr/local/lib"; then
8638 if test -n "$GCC"; then
8639 case $host_os in
8640 linux*) haveit=yes;;
8641 esac
8642 fi
8643 fi
8644 if test -z "$haveit"; then
8645 haveit=
8646 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008647
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008648 acl_save_prefix="$prefix"
8649 prefix="$acl_final_prefix"
8650 acl_save_exec_prefix="$exec_prefix"
8651 exec_prefix="$acl_final_exec_prefix"
8652 eval x=\"$x\"
8653 exec_prefix="$acl_save_exec_prefix"
8654 prefix="$acl_save_prefix"
8655
8656 if test "X$x" = "X-L$additional_libdir"; then
8657 haveit=yes
8658 break
8659 fi
8660 done
8661 if test -z "$haveit"; then
8662 if test -d "$additional_libdir"; then
8663 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8664 fi
8665 fi
8666 haveit=
8667 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008668
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008669 acl_save_prefix="$prefix"
8670 prefix="$acl_final_prefix"
8671 acl_save_exec_prefix="$exec_prefix"
8672 exec_prefix="$acl_final_exec_prefix"
8673 eval x=\"$x\"
8674 exec_prefix="$acl_save_exec_prefix"
8675 prefix="$acl_save_prefix"
8676
8677 if test "X$x" = "X-L$additional_libdir"; then
8678 haveit=yes
8679 break
8680 fi
8681 done
8682 if test -z "$haveit"; then
8683 if test -d "$additional_libdir"; then
8684 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8685 fi
8686 fi
8687 fi
8688 fi
8689 ;;
8690 -R*)
8691 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8692 if test "$enable_rpath" != no; then
8693 haveit=
8694 for x in $rpathdirs; do
8695 if test "X$x" = "X$dir"; then
8696 haveit=yes
8697 break
8698 fi
8699 done
8700 if test -z "$haveit"; then
8701 rpathdirs="$rpathdirs $dir"
8702 fi
8703 haveit=
8704 for x in $ltrpathdirs; do
8705 if test "X$x" = "X$dir"; then
8706 haveit=yes
8707 break
8708 fi
8709 done
8710 if test -z "$haveit"; then
8711 ltrpathdirs="$ltrpathdirs $dir"
8712 fi
8713 fi
8714 ;;
8715 -l*)
8716 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8717 ;;
8718 *.la)
8719 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8720 ;;
8721 *)
8722 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8724 ;;
8725 esac
8726 done
8727 fi
8728 else
8729 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8730 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8731 fi
8732 fi
8733 fi
8734 done
8735 done
8736 if test "X$rpathdirs" != "X"; then
8737 if test -n "$hardcode_libdir_separator"; then
8738 alldirs=
8739 for found_dir in $rpathdirs; do
8740 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8741 done
8742 acl_save_libdir="$libdir"
8743 libdir="$alldirs"
8744 eval flag=\"$hardcode_libdir_flag_spec\"
8745 libdir="$acl_save_libdir"
8746 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8747 else
8748 for found_dir in $rpathdirs; do
8749 acl_save_libdir="$libdir"
8750 libdir="$found_dir"
8751 eval flag=\"$hardcode_libdir_flag_spec\"
8752 libdir="$acl_save_libdir"
8753 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8754 done
8755 fi
8756 fi
8757 if test "X$ltrpathdirs" != "X"; then
8758 for found_dir in $ltrpathdirs; do
8759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8760 done
8761 fi
8762
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008763
8764
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008766
8767
8768
8769
Theodore Ts'oe1052142006-10-21 21:46:47 -04008770 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8771echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008772if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008774else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008775 cat >conftest.$ac_ext <<_ACEOF
8776/* confdefs.h. */
8777_ACEOF
8778cat confdefs.h >>conftest.$ac_ext
8779cat >>conftest.$ac_ext <<_ACEOF
8780/* end confdefs.h. */
8781$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008782typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008783int
8784main ()
8785{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008786if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008787 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008788if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008789 return 0;
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008795if { (ac_try="$ac_compile"
8796case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799esac
8800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008811 ac_cv_type_ptrdiff_t=yes
8812else
8813 echo "$as_me: failed program was:" >&5
8814sed 's/^/| /' conftest.$ac_ext >&5
8815
Theodore Ts'oe1052142006-10-21 21:46:47 -04008816 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008818
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008821{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8822echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008823if test $ac_cv_type_ptrdiff_t = yes; then
8824 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008825else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008826
8827cat >>confdefs.h <<\_ACEOF
8828#define ptrdiff_t long
8829_ACEOF
8830
8831
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008832fi
8833
8834
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008835
8836
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008837
8838
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008839
8840
8841
8842
8843
8844for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008846do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008852 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008854ac_res=`eval echo '${'$as_ac_Header'}'`
8855 { echo "$as_me:$LINENO: result: $ac_res" >&5
8856echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008857else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008858 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008859{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008861cat >conftest.$ac_ext <<_ACEOF
8862/* confdefs.h. */
8863_ACEOF
8864cat confdefs.h >>conftest.$ac_ext
8865cat >>conftest.$ac_ext <<_ACEOF
8866/* end confdefs.h. */
8867$ac_includes_default
8868#include <$ac_header>
8869_ACEOF
8870rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008871if { (ac_try="$ac_compile"
8872case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8875esac
8876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008887 ac_header_compiler=yes
8888else
8889 echo "$as_me: failed program was:" >&5
8890sed 's/^/| /' conftest.$ac_ext >&5
8891
Theodore Ts'oe1052142006-10-21 21:46:47 -04008892 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008893fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008894
8895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8897echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008898
8899# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008900{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008902cat >conftest.$ac_ext <<_ACEOF
8903/* confdefs.h. */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h. */
8908#include <$ac_header>
8909_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008910if { (ac_try="$ac_cpp conftest.$ac_ext"
8911case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914esac
8915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008922 (exit $ac_status); } >/dev/null && {
8923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008926 ac_header_preproc=yes
8927else
8928 echo "$as_me: failed program was:" >&5
8929sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 ac_header_preproc=no
8932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008934rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008935{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8936echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008937
8938# So? What about this header?
8939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8940 yes:no: )
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8942echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8944echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8945 ac_header_preproc=yes
8946 ;;
8947 no:yes:* )
8948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8949echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8951echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8953echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8955echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8959echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008960
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008961 ;;
8962esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008963{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967else
8968 eval "$as_ac_Header=\$ac_header_preproc"
8969fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008970ac_res=`eval echo '${'$as_ac_Header'}'`
8971 { echo "$as_me:$LINENO: result: $ac_res" >&5
8972echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008973
8974fi
8975if test `eval echo '${'$as_ac_Header'}'` = yes; then
8976 cat >>confdefs.h <<_ACEOF
8977#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8978_ACEOF
8979
8980fi
8981
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008982done
8983
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9008mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9009strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9010__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009011do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009018 cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h. */
9024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9026#define $ac_func innocuous_$ac_func
9027
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009028/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009029 which can conflict with char $ac_func (); below.
9030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9031 <limits.h> exists even on freestanding compilers. */
9032
9033#ifdef __STDC__
9034# include <limits.h>
9035#else
9036# include <assert.h>
9037#endif
9038
9039#undef $ac_func
9040
Theodore Ts'oe1052142006-10-21 21:46:47 -04009041/* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009044#ifdef __cplusplus
9045extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009046#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009047char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009048/* The GNU C library defines this for functions which it implements
9049 to always fail with ENOSYS. Some functions are actually named
9050 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009051#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009052choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009053#endif
9054
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055int
9056main ()
9057{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009058return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009059 ;
9060 return 0;
9061}
9062_ACEOF
9063rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009064if { (ac_try="$ac_link"
9065case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009076 (exit $ac_status); } && {
9077 test -z "$ac_c_werror_flag" ||
9078 test ! -s conftest.err
9079 } && test -s conftest$ac_exeext &&
9080 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009081 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009083 echo "$as_me: failed program was:" >&5
9084sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009085
Theodore Ts'oe1052142006-10-21 21:46:47 -04009086 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009088
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009090 conftest$ac_exeext conftest.$ac_ext
9091fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009092ac_res=`eval echo '${'$as_ac_var'}'`
9093 { echo "$as_me:$LINENO: result: $ac_res" >&5
9094echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009095if test `eval echo '${'$as_ac_var'}'` = yes; then
9096 cat >>confdefs.h <<_ACEOF
9097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9098_ACEOF
9099
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009100fi
9101done
9102
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009103
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104
Theodore Ts'oe1052142006-10-21 21:46:47 -04009105 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9106echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009107if test "${ac_cv_have_decl__snprintf+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9109else
9110 cat >conftest.$ac_ext <<_ACEOF
9111/* confdefs.h. */
9112_ACEOF
9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
9115/* end confdefs.h. */
9116#include <stdio.h>
9117int
9118main ()
9119{
9120
9121#ifndef _snprintf
9122 char *p = (char *) _snprintf;
9123#endif
9124
9125 ;
9126 return 0;
9127}
9128_ACEOF
9129rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009130if { (ac_try="$ac_compile"
9131case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134esac
9135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009142 (exit $ac_status); } && {
9143 test -z "$ac_c_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009146 ac_cv_have_decl__snprintf=yes
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
Theodore Ts'oe1052142006-10-21 21:46:47 -04009151 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009153
9154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009155fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009156{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9157echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009158 if test $ac_cv_have_decl__snprintf = yes; then
9159 gt_value=1
9160 else
9161 gt_value=0
9162 fi
9163
9164cat >>confdefs.h <<_ACEOF
9165#define HAVE_DECL__SNPRINTF $gt_value
9166_ACEOF
9167
9168
9169
Theodore Ts'oe1052142006-10-21 21:46:47 -04009170 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9171echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009172if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else
9175 cat >conftest.$ac_ext <<_ACEOF
9176/* confdefs.h. */
9177_ACEOF
9178cat confdefs.h >>conftest.$ac_ext
9179cat >>conftest.$ac_ext <<_ACEOF
9180/* end confdefs.h. */
9181#include <stdio.h>
9182int
9183main ()
9184{
9185
9186#ifndef _snwprintf
9187 char *p = (char *) _snwprintf;
9188#endif
9189
9190 ;
9191 return 0;
9192}
9193_ACEOF
9194rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009195if { (ac_try="$ac_compile"
9196case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199esac
9200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009211 ac_cv_have_decl__snwprintf=yes
9212else
9213 echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
Theodore Ts'oe1052142006-10-21 21:46:47 -04009216 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009217fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009218
9219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009221{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9222echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223 if test $ac_cv_have_decl__snwprintf = yes; then
9224 gt_value=1
9225 else
9226 gt_value=0
9227 fi
9228
9229cat >>confdefs.h <<_ACEOF
9230#define HAVE_DECL__SNWPRINTF $gt_value
9231_ACEOF
9232
9233
9234
9235
Theodore Ts'oe1052142006-10-21 21:46:47 -04009236 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9237echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009238if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241 cat >conftest.$ac_ext <<_ACEOF
9242/* confdefs.h. */
9243_ACEOF
9244cat confdefs.h >>conftest.$ac_ext
9245cat >>conftest.$ac_ext <<_ACEOF
9246/* end confdefs.h. */
9247#include <stdio.h>
9248int
9249main ()
9250{
9251
9252#ifndef feof_unlocked
9253 char *p = (char *) feof_unlocked;
9254#endif
9255
9256 ;
9257 return 0;
9258}
9259_ACEOF
9260rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009261if { (ac_try="$ac_compile"
9262case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265esac
9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009277 ac_cv_have_decl_feof_unlocked=yes
9278else
9279 echo "$as_me: failed program was:" >&5
9280sed 's/^/| /' conftest.$ac_ext >&5
9281
Theodore Ts'oe1052142006-10-21 21:46:47 -04009282 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009284
9285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009287{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9288echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009289 if test $ac_cv_have_decl_feof_unlocked = yes; then
9290 gt_value=1
9291 else
9292 gt_value=0
9293 fi
9294
9295cat >>confdefs.h <<_ACEOF
9296#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9297_ACEOF
9298
9299
9300
Theodore Ts'oe1052142006-10-21 21:46:47 -04009301 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9302echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009303if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305else
9306 cat >conftest.$ac_ext <<_ACEOF
9307/* confdefs.h. */
9308_ACEOF
9309cat confdefs.h >>conftest.$ac_ext
9310cat >>conftest.$ac_ext <<_ACEOF
9311/* end confdefs.h. */
9312#include <stdio.h>
9313int
9314main ()
9315{
9316
9317#ifndef fgets_unlocked
9318 char *p = (char *) fgets_unlocked;
9319#endif
9320
9321 ;
9322 return 0;
9323}
9324_ACEOF
9325rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009326if { (ac_try="$ac_compile"
9327case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9330esac
9331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009333 ac_status=$?
9334 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009338 (exit $ac_status); } && {
9339 test -z "$ac_c_werror_flag" ||
9340 test ! -s conftest.err
9341 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342 ac_cv_have_decl_fgets_unlocked=yes
9343else
9344 echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
Theodore Ts'oe1052142006-10-21 21:46:47 -04009347 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009349
9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009351fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009352{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9353echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009354 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9355 gt_value=1
9356 else
9357 gt_value=0
9358 fi
9359
9360cat >>confdefs.h <<_ACEOF
9361#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9362_ACEOF
9363
9364
9365
Theodore Ts'oe1052142006-10-21 21:46:47 -04009366 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9367echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009368if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370else
9371 cat >conftest.$ac_ext <<_ACEOF
9372/* confdefs.h. */
9373_ACEOF
9374cat confdefs.h >>conftest.$ac_ext
9375cat >>conftest.$ac_ext <<_ACEOF
9376/* end confdefs.h. */
9377#include <stdio.h>
9378int
9379main ()
9380{
9381
9382#ifndef getc_unlocked
9383 char *p = (char *) getc_unlocked;
9384#endif
9385
9386 ;
9387 return 0;
9388}
9389_ACEOF
9390rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009391if { (ac_try="$ac_compile"
9392case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395esac
9396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009403 (exit $ac_status); } && {
9404 test -z "$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009407 ac_cv_have_decl_getc_unlocked=yes
9408else
9409 echo "$as_me: failed program was:" >&5
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
Theodore Ts'oe1052142006-10-21 21:46:47 -04009412 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009413fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009414
9415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009416fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009417{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9418echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009419 if test $ac_cv_have_decl_getc_unlocked = yes; then
9420 gt_value=1
9421 else
9422 gt_value=0
9423 fi
9424
9425cat >>confdefs.h <<_ACEOF
9426#define HAVE_DECL_GETC_UNLOCKED $gt_value
9427_ACEOF
9428
9429
9430
9431 case $gt_cv_func_printf_posix in
9432 *yes) HAVE_POSIX_PRINTF=1 ;;
9433 *) HAVE_POSIX_PRINTF=0 ;;
9434 esac
9435
9436 if test "$ac_cv_func_asprintf" = yes; then
9437 HAVE_ASPRINTF=1
9438 else
9439 HAVE_ASPRINTF=0
9440 fi
9441
9442 if test "$ac_cv_func_snprintf" = yes; then
9443 HAVE_SNPRINTF=1
9444 else
9445 HAVE_SNPRINTF=0
9446 fi
9447
9448 if test "$ac_cv_func_wprintf" = yes; then
9449 HAVE_WPRINTF=1
9450 else
9451 HAVE_WPRINTF=0
9452 fi
9453
9454
9455
9456
9457
9458
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009459
9460 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009461
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009462 for element in $INCICONV; do
9463 haveit=
9464 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009466 acl_save_prefix="$prefix"
9467 prefix="$acl_final_prefix"
9468 acl_save_exec_prefix="$exec_prefix"
9469 exec_prefix="$acl_final_exec_prefix"
9470 eval x=\"$x\"
9471 exec_prefix="$acl_save_exec_prefix"
9472 prefix="$acl_save_prefix"
9473
9474 if test "X$x" = "X$element"; then
9475 haveit=yes
9476 break
9477 fi
9478 done
9479 if test -z "$haveit"; then
9480 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9481 fi
9482 done
9483
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009484
Theodore Ts'oe1052142006-10-21 21:46:47 -04009485 { echo "$as_me:$LINENO: checking for iconv" >&5
9486echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009487if test "${am_cv_func_iconv+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009489else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009491 am_cv_func_iconv="no, consider installing GNU libiconv"
9492 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009493 cat >conftest.$ac_ext <<_ACEOF
9494/* confdefs.h. */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
9498/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009499#include <stdlib.h>
9500#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501int
9502main ()
9503{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009504iconv_t cd = iconv_open("","");
9505 iconv(cd,NULL,NULL,NULL,NULL);
9506 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009507 ;
9508 return 0;
9509}
9510_ACEOF
9511rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009512if { (ac_try="$ac_link"
9513case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516esac
9517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest$ac_exeext &&
9528 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009529 am_cv_func_iconv=yes
9530else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531 echo "$as_me: failed program was:" >&5
9532sed 's/^/| /' conftest.$ac_ext >&5
9533
Theodore Ts'oe1052142006-10-21 21:46:47 -04009534
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009536
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009539 if test "$am_cv_func_iconv" != yes; then
9540 am_save_LIBS="$LIBS"
9541 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009542 cat >conftest.$ac_ext <<_ACEOF
9543/* confdefs.h. */
9544_ACEOF
9545cat confdefs.h >>conftest.$ac_ext
9546cat >>conftest.$ac_ext <<_ACEOF
9547/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009548#include <stdlib.h>
9549#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009550int
9551main ()
9552{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009553iconv_t cd = iconv_open("","");
9554 iconv(cd,NULL,NULL,NULL,NULL);
9555 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556 ;
9557 return 0;
9558}
9559_ACEOF
9560rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009561if { (ac_try="$ac_link"
9562case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565esac
9566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext &&
9577 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009578 am_cv_lib_iconv=yes
9579 am_cv_func_iconv=yes
9580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009581 echo "$as_me: failed program was:" >&5
9582sed 's/^/| /' conftest.$ac_ext >&5
9583
Theodore Ts'oe1052142006-10-21 21:46:47 -04009584
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009586
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009588 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009589 LIBS="$am_save_LIBS"
9590 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009593{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9594echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009595 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596
9597cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009598#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600
9601 fi
9602 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009603 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9604echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9605 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9606echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009607 else
9608 CPPFLAGS="$am_save_CPPFLAGS"
9609 LIBICONV=
9610 LTLIBICONV=
9611 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009612
9613
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009614
9615 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009616 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9617echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618 if test "${am_cv_proto_iconv+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009620else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621
9622 cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009628
9629#include <stdlib.h>
9630#include <iconv.h>
9631extern
9632#ifdef __cplusplus
9633"C"
9634#endif
9635#if defined(__STDC__) || defined(__cplusplus)
9636size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9637#else
9638size_t iconv();
9639#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009641int
9642main ()
9643{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009645 ;
9646 return 0;
9647}
9648_ACEOF
9649rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009650if { (ac_try="$ac_compile"
9651case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009666 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009667else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
Theodore Ts'oe1052142006-10-21 21:46:47 -04009671 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009673
9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009675 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 +00009676fi
9677
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009678 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009679 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009680 }$am_cv_proto_iconv" >&5
9681echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009682 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683
9684cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009685#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009686_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009687
9688 fi
9689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009690
Theodore Ts'oe1052142006-10-21 21:46:47 -04009691 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9692echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009693if test "${am_cv_langinfo_codeset+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009695else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009696 cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009702#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009703int
9704main ()
9705{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009706char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009707 ;
9708 return 0;
9709}
9710_ACEOF
9711rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext &&
9728 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009729 am_cv_langinfo_codeset=yes
9730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009731 echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009733
Theodore Ts'oe1052142006-10-21 21:46:47 -04009734 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009736
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009738 conftest$ac_exeext conftest.$ac_ext
9739
9740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009741{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9742echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009743 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744
9745cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009746#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009747_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009748
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009749 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009750
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009751 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752
Theodore Ts'oe1052142006-10-21 21:46:47 -04009753 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9754echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009755if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009758 cat >conftest.$ac_ext <<_ACEOF
9759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009764#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765int
9766main ()
9767{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009768return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009769 ;
9770 return 0;
9771}
9772_ACEOF
9773rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009774if { (ac_try="$ac_link"
9775case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778esac
9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest$ac_exeext &&
9790 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009791 am_cv_val_LC_MESSAGES=yes
9792else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793 echo "$as_me: failed program was:" >&5
9794sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009795
Theodore Ts'oe1052142006-10-21 21:46:47 -04009796 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009798
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800 conftest$ac_exeext conftest.$ac_ext
9801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9803echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009804 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009805
9806cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009807#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009808_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009809
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009810 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009811
9812 fi
9813
9814 for ac_prog in bison
9815do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009816 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009817set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009820if test "${ac_cv_prog_INTLBISON+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009822else
9823 if test -n "$INTLBISON"; then
9824 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9825else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827for as_dir in $PATH
9828do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009832 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 -05009833 ac_cv_prog_INTLBISON="$ac_prog"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837done
9838done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009840
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009841fi
9842fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009843INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009844if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009845 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9846echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009847else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009848 { echo "$as_me:$LINENO: result: no" >&5
9849echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009850fi
9851
Theodore Ts'oe1052142006-10-21 21:46:47 -04009852
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009853 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009854done
9855
9856 if test -z "$INTLBISON"; then
9857 ac_verc_fail=yes
9858 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009859 { echo "$as_me:$LINENO: checking version of bison" >&5
9860echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009861 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9862 case $ac_prog_version in
9863 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9864 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9865 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9866 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9867 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009868 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9869echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009870 fi
9871 if test $ac_verc_fail = yes; then
9872 INTLBISON=:
9873 fi
9874
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009875
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009876
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009877
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009878
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009879
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009880
9881
9882
9883
9884
9885
9886
9887
9888
9889
Theodore Ts'oe1052142006-10-21 21:46:47 -04009890 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9891echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9892 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009893if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009894 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009895else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009896 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009897fi
9898
9899 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9900echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009901
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009903
9904
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009905 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009906 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009908 LIBINTL=
9909 LTLIBINTL=
9910 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009911
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009912 if test "$USE_NLS" = "yes"; then
9913 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009914
Theodore Ts'oe1052142006-10-21 21:46:47 -04009915 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9916echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917
Theodore Ts'oe1052142006-10-21 21:46:47 -04009918# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009919if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009920 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009921else
9922 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009923fi
9924
9925 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9926echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009927
9928 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9929 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931
9932
9933
9934
9935
Theodore Ts'oe1052142006-10-21 21:46:47 -04009936 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9937echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009938if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009940else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941 cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h. */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009947#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009948extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009949extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009950int
9951main ()
9952{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009953bindtextdomain ("", "");
9954return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009960if { (ac_try="$ac_link"
9961case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest$ac_exeext &&
9976 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009977 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009978else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009979 echo "$as_me: failed program was:" >&5
9980sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009981
Theodore Ts'oe1052142006-10-21 21:46:47 -04009982 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009983fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009984
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009986 conftest$ac_exeext conftest.$ac_ext
9987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009988{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9989echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009990
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009991 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992
9993
9994
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009995 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009996
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009997 acl_save_prefix="$prefix"
9998 prefix="$acl_final_prefix"
9999 acl_save_exec_prefix="$exec_prefix"
10000 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010002 eval additional_includedir=\"$includedir\"
10003 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010005 exec_prefix="$acl_save_exec_prefix"
10006 prefix="$acl_save_prefix"
10007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010008
Theodore Ts'oe1052142006-10-21 21:46:47 -040010009# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010010if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010011 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010012 if test "X$withval" = "Xno"; then
10013 use_additional=no
10014 else
10015 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010017 acl_save_prefix="$prefix"
10018 prefix="$acl_final_prefix"
10019 acl_save_exec_prefix="$exec_prefix"
10020 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010021
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010022 eval additional_includedir=\"$includedir\"
10023 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010025 exec_prefix="$acl_save_exec_prefix"
10026 prefix="$acl_save_prefix"
10027
10028 else
10029 additional_includedir="$withval/include"
10030 additional_libdir="$withval/lib"
10031 fi
10032 fi
10033
Theodore Ts'oe1052142006-10-21 21:46:47 -040010034fi
10035
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010036 LIBINTL=
10037 LTLIBINTL=
10038 INCINTL=
10039 rpathdirs=
10040 ltrpathdirs=
10041 names_already_handled=
10042 names_next_round='intl '
10043 while test -n "$names_next_round"; do
10044 names_this_round="$names_next_round"
10045 names_next_round=
10046 for name in $names_this_round; do
10047 already_handled=
10048 for n in $names_already_handled; do
10049 if test "$n" = "$name"; then
10050 already_handled=yes
10051 break
10052 fi
10053 done
10054 if test -z "$already_handled"; then
10055 names_already_handled="$names_already_handled $name"
10056 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10057 eval value=\"\$HAVE_LIB$uppername\"
10058 if test -n "$value"; then
10059 if test "$value" = yes; then
10060 eval value=\"\$LIB$uppername\"
10061 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10062 eval value=\"\$LTLIB$uppername\"
10063 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10064 else
10065 :
10066 fi
10067 else
10068 found_dir=
10069 found_la=
10070 found_so=
10071 found_a=
10072 if test $use_additional = yes; then
10073 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10074 found_dir="$additional_libdir"
10075 found_so="$additional_libdir/lib$name.$shlibext"
10076 if test -f "$additional_libdir/lib$name.la"; then
10077 found_la="$additional_libdir/lib$name.la"
10078 fi
10079 else
10080 if test -f "$additional_libdir/lib$name.$libext"; then
10081 found_dir="$additional_libdir"
10082 found_a="$additional_libdir/lib$name.$libext"
10083 if test -f "$additional_libdir/lib$name.la"; then
10084 found_la="$additional_libdir/lib$name.la"
10085 fi
10086 fi
10087 fi
10088 fi
10089 if test "X$found_dir" = "X"; then
10090 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010091
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010092 acl_save_prefix="$prefix"
10093 prefix="$acl_final_prefix"
10094 acl_save_exec_prefix="$exec_prefix"
10095 exec_prefix="$acl_final_exec_prefix"
10096 eval x=\"$x\"
10097 exec_prefix="$acl_save_exec_prefix"
10098 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010099
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010100 case "$x" in
10101 -L*)
10102 dir=`echo "X$x" | sed -e 's/^X-L//'`
10103 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10104 found_dir="$dir"
10105 found_so="$dir/lib$name.$shlibext"
10106 if test -f "$dir/lib$name.la"; then
10107 found_la="$dir/lib$name.la"
10108 fi
10109 else
10110 if test -f "$dir/lib$name.$libext"; then
10111 found_dir="$dir"
10112 found_a="$dir/lib$name.$libext"
10113 if test -f "$dir/lib$name.la"; then
10114 found_la="$dir/lib$name.la"
10115 fi
10116 fi
10117 fi
10118 ;;
10119 esac
10120 if test "X$found_dir" != "X"; then
10121 break
10122 fi
10123 done
10124 fi
10125 if test "X$found_dir" != "X"; then
10126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10127 if test "X$found_so" != "X"; then
10128 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10129 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10130 else
10131 haveit=
10132 for x in $ltrpathdirs; do
10133 if test "X$x" = "X$found_dir"; then
10134 haveit=yes
10135 break
10136 fi
10137 done
10138 if test -z "$haveit"; then
10139 ltrpathdirs="$ltrpathdirs $found_dir"
10140 fi
10141 if test "$hardcode_direct" = yes; then
10142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10143 else
10144 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10145 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10146 haveit=
10147 for x in $rpathdirs; do
10148 if test "X$x" = "X$found_dir"; then
10149 haveit=yes
10150 break
10151 fi
10152 done
10153 if test -z "$haveit"; then
10154 rpathdirs="$rpathdirs $found_dir"
10155 fi
10156 else
10157 haveit=
10158 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010160 acl_save_prefix="$prefix"
10161 prefix="$acl_final_prefix"
10162 acl_save_exec_prefix="$exec_prefix"
10163 exec_prefix="$acl_final_exec_prefix"
10164 eval x=\"$x\"
10165 exec_prefix="$acl_save_exec_prefix"
10166 prefix="$acl_save_prefix"
10167
10168 if test "X$x" = "X-L$found_dir"; then
10169 haveit=yes
10170 break
10171 fi
10172 done
10173 if test -z "$haveit"; then
10174 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10175 fi
10176 if test "$hardcode_minus_L" != no; then
10177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10178 else
10179 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10180 fi
10181 fi
10182 fi
10183 fi
10184 else
10185 if test "X$found_a" != "X"; then
10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10187 else
10188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10189 fi
10190 fi
10191 additional_includedir=
10192 case "$found_dir" in
10193 */lib | */lib/)
10194 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10195 additional_includedir="$basedir/include"
10196 ;;
10197 esac
10198 if test "X$additional_includedir" != "X"; then
10199 if test "X$additional_includedir" != "X/usr/include"; then
10200 haveit=
10201 if test "X$additional_includedir" = "X/usr/local/include"; then
10202 if test -n "$GCC"; then
10203 case $host_os in
10204 linux*) haveit=yes;;
10205 esac
10206 fi
10207 fi
10208 if test -z "$haveit"; then
10209 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010210
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010211 acl_save_prefix="$prefix"
10212 prefix="$acl_final_prefix"
10213 acl_save_exec_prefix="$exec_prefix"
10214 exec_prefix="$acl_final_exec_prefix"
10215 eval x=\"$x\"
10216 exec_prefix="$acl_save_exec_prefix"
10217 prefix="$acl_save_prefix"
10218
10219 if test "X$x" = "X-I$additional_includedir"; then
10220 haveit=yes
10221 break
10222 fi
10223 done
10224 if test -z "$haveit"; then
10225 if test -d "$additional_includedir"; then
10226 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10227 fi
10228 fi
10229 fi
10230 fi
10231 fi
10232 if test -n "$found_la"; then
10233 save_libdir="$libdir"
10234 case "$found_la" in
10235 */* | *\\*) . "$found_la" ;;
10236 *) . "./$found_la" ;;
10237 esac
10238 libdir="$save_libdir"
10239 for dep in $dependency_libs; do
10240 case "$dep" in
10241 -L*)
10242 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10243 if test "X$additional_libdir" != "X/usr/lib"; then
10244 haveit=
10245 if test "X$additional_libdir" = "X/usr/local/lib"; then
10246 if test -n "$GCC"; then
10247 case $host_os in
10248 linux*) haveit=yes;;
10249 esac
10250 fi
10251 fi
10252 if test -z "$haveit"; then
10253 haveit=
10254 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010255
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010256 acl_save_prefix="$prefix"
10257 prefix="$acl_final_prefix"
10258 acl_save_exec_prefix="$exec_prefix"
10259 exec_prefix="$acl_final_exec_prefix"
10260 eval x=\"$x\"
10261 exec_prefix="$acl_save_exec_prefix"
10262 prefix="$acl_save_prefix"
10263
10264 if test "X$x" = "X-L$additional_libdir"; then
10265 haveit=yes
10266 break
10267 fi
10268 done
10269 if test -z "$haveit"; then
10270 if test -d "$additional_libdir"; then
10271 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10272 fi
10273 fi
10274 haveit=
10275 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010276
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010277 acl_save_prefix="$prefix"
10278 prefix="$acl_final_prefix"
10279 acl_save_exec_prefix="$exec_prefix"
10280 exec_prefix="$acl_final_exec_prefix"
10281 eval x=\"$x\"
10282 exec_prefix="$acl_save_exec_prefix"
10283 prefix="$acl_save_prefix"
10284
10285 if test "X$x" = "X-L$additional_libdir"; then
10286 haveit=yes
10287 break
10288 fi
10289 done
10290 if test -z "$haveit"; then
10291 if test -d "$additional_libdir"; then
10292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10293 fi
10294 fi
10295 fi
10296 fi
10297 ;;
10298 -R*)
10299 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10300 if test "$enable_rpath" != no; then
10301 haveit=
10302 for x in $rpathdirs; do
10303 if test "X$x" = "X$dir"; then
10304 haveit=yes
10305 break
10306 fi
10307 done
10308 if test -z "$haveit"; then
10309 rpathdirs="$rpathdirs $dir"
10310 fi
10311 haveit=
10312 for x in $ltrpathdirs; do
10313 if test "X$x" = "X$dir"; then
10314 haveit=yes
10315 break
10316 fi
10317 done
10318 if test -z "$haveit"; then
10319 ltrpathdirs="$ltrpathdirs $dir"
10320 fi
10321 fi
10322 ;;
10323 -l*)
10324 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10325 ;;
10326 *.la)
10327 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10328 ;;
10329 *)
10330 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10331 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10332 ;;
10333 esac
10334 done
10335 fi
10336 else
10337 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10338 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10339 fi
10340 fi
10341 fi
10342 done
10343 done
10344 if test "X$rpathdirs" != "X"; then
10345 if test -n "$hardcode_libdir_separator"; then
10346 alldirs=
10347 for found_dir in $rpathdirs; do
10348 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10349 done
10350 acl_save_libdir="$libdir"
10351 libdir="$alldirs"
10352 eval flag=\"$hardcode_libdir_flag_spec\"
10353 libdir="$acl_save_libdir"
10354 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10355 else
10356 for found_dir in $rpathdirs; do
10357 acl_save_libdir="$libdir"
10358 libdir="$found_dir"
10359 eval flag=\"$hardcode_libdir_flag_spec\"
10360 libdir="$acl_save_libdir"
10361 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10362 done
10363 fi
10364 fi
10365 if test "X$ltrpathdirs" != "X"; then
10366 for found_dir in $ltrpathdirs; do
10367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10368 done
10369 fi
10370
Theodore Ts'oe1052142006-10-21 21:46:47 -040010371 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10372echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010373if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010375else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010376 gt_save_CPPFLAGS="$CPPFLAGS"
10377 CPPFLAGS="$CPPFLAGS $INCINTL"
10378 gt_save_LIBS="$LIBS"
10379 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010380 cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h. */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010386#include <libintl.h>
10387extern int _nl_msg_cat_cntr;
10388extern
10389#ifdef __cplusplus
10390"C"
10391#endif
10392const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010393int
10394main ()
10395{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010396bindtextdomain ("", "");
10397return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010398 ;
10399 return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010403if { (ac_try="$ac_link"
10404case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010420 gt_cv_func_gnugettext1_libintl=yes
10421else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010422 echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
Theodore Ts'oe1052142006-10-21 21:46:47 -040010425 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010427
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010429 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010430 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10431 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010432 cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h. */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
10437/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010438#include <libintl.h>
10439extern int _nl_msg_cat_cntr;
10440extern
10441#ifdef __cplusplus
10442"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010443#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010444const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010445int
10446main ()
10447{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010448bindtextdomain ("", "");
10449return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010450 ;
10451 return 0;
10452}
10453_ACEOF
10454rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010455if { (ac_try="$ac_link"
10456case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459esac
10460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest$ac_exeext &&
10471 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010472 LIBINTL="$LIBINTL $LIBICONV"
10473 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10474 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010476else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010477 echo "$as_me: failed program was:" >&5
10478sed 's/^/| /' conftest.$ac_ext >&5
10479
Theodore Ts'oe1052142006-10-21 21:46:47 -040010480
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010481fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010482
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010484 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010485 fi
10486 CPPFLAGS="$gt_save_CPPFLAGS"
10487 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010489{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10490echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010491 fi
10492
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010493 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10494 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010495 && test "$PACKAGE" != gettext-runtime \
10496 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010497 gt_use_preinstalled_gnugettext=yes
10498 else
10499 LIBINTL=
10500 LTLIBINTL=
10501 INCINTL=
10502 fi
10503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010504
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010505 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10506 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010507 fi
10508 fi
10509
10510 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010511 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010512 USE_INCLUDED_LIBINTL=yes
10513 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10514 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10515 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010516 fi
10517
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010518 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10519 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10520 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010521 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010523
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010524 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10525 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010526
10527cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010528#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010529_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010530
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010531 else
10532 USE_NLS=no
10533 fi
10534 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010535
Theodore Ts'oe1052142006-10-21 21:46:47 -040010536 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10537echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10538 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10539echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010540 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010541 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10542echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010543 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10544 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10545 gt_source="external libintl"
10546 else
10547 gt_source="libc"
10548 fi
10549 else
10550 gt_source="included intl directory"
10551 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010552 { echo "$as_me:$LINENO: result: $gt_source" >&5
10553echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010554 fi
10555
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010556 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010557
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010558 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10559 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010560 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10561echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10562 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10563echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010564
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010565 for element in $INCINTL; do
10566 haveit=
10567 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010568
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010569 acl_save_prefix="$prefix"
10570 prefix="$acl_final_prefix"
10571 acl_save_exec_prefix="$exec_prefix"
10572 exec_prefix="$acl_final_exec_prefix"
10573 eval x=\"$x\"
10574 exec_prefix="$acl_save_exec_prefix"
10575 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010576
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010577 if test "X$x" = "X$element"; then
10578 haveit=yes
10579 break
10580 fi
10581 done
10582 if test -z "$haveit"; then
10583 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10584 fi
10585 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010586
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010587 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010588
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010589
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010590cat >>confdefs.h <<\_ACEOF
10591#define HAVE_GETTEXT 1
10592_ACEOF
10593
10594
10595cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010596#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010598
10599 fi
10600
10601 POSUB=po
10602 fi
10603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010604
10605 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010606 BUILD_INCLUDED_LIBINTL=yes
10607 fi
10608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010609
10610
10611
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010612
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010613 nls_cv_header_intl=
10614 nls_cv_header_libgt=
10615
10616 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010617
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010618
10619 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010620
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010621
10622 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010623
10624
10625 if test "$USE_INCLUDED_LIBINTL" = yes; then
10626 INTLOBJS="\$(GETTOBJS)"
10627 fi
10628
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010629
10630 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010631
10632
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010633
10634 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010635
10636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637
10638
10639
10640
10641
Theodore Ts'oe1052142006-10-21 21:46:47 -040010642{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10643echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10644set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10645if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010646 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010647else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010649SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010650all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010651 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010652_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010653# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010654case `${MAKE-make} -f conftest.make 2>/dev/null` in
10655 *@@@%%%=?*=@@@%%%*)
10656 eval ac_cv_prog_make_${ac_make}_set=yes;;
10657 *)
10658 eval ac_cv_prog_make_${ac_make}_set=no;;
10659esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010662if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10663 { echo "$as_me:$LINENO: result: yes" >&5
10664echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010665 SET_MAKE=
10666else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010667 { echo "$as_me:$LINENO: result: no" >&5
10668echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010669 SET_MAKE="MAKE=${MAKE-make}"
10670fi
10671
10672# Extract the first word of "ln", so it can be a program name with args.
10673set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010676if test "${ac_cv_path_LN+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010678else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679 case $LN in
10680 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010681 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10682 ;;
10683 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685for as_dir in $PATH
10686do
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010690 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 -050010691 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 break 2
10694 fi
10695done
10696done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010697IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010699 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10700 ;;
10701esac
10702fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010703LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010704if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010705 { echo "$as_me:$LINENO: result: $LN" >&5
10706echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010707else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010708 { echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010710fi
10711
Theodore Ts'oe1052142006-10-21 21:46:47 -040010712
10713{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010715LN_S=$as_ln_s
10716if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010717 { echo "$as_me:$LINENO: result: yes" >&5
10718echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010719else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10721echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010722fi
10723
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010724# Extract the first word of "mv", so it can be a program name with args.
10725set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010728if test "${ac_cv_path_MV+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010731 case $MV in
10732 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010733 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10734 ;;
10735 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010742 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 -050010743 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10746 fi
10747done
10748done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010749IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010750
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010751 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10752 ;;
10753esac
10754fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010755MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010756if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010757 { echo "$as_me:$LINENO: result: $MV" >&5
10758echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010759else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010760 { echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010762fi
10763
Theodore Ts'oe1052142006-10-21 21:46:47 -040010764
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010765# Extract the first word of "cp", so it can be a program name with args.
10766set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010769if test "${ac_cv_path_CP+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010771else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772 case $CP in
10773 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010774 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10775 ;;
10776 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010783 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 -050010784 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010790IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010791
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010792 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10793 ;;
10794esac
10795fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010796CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010797if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010798 { echo "$as_me:$LINENO: result: $CP" >&5
10799echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010800else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010801 { echo "$as_me:$LINENO: result: no" >&5
10802echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010803fi
10804
Theodore Ts'oe1052142006-10-21 21:46:47 -040010805
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010806# Extract the first word of "rm", so it can be a program name with args.
10807set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010810if test "${ac_cv_path_RM+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010812else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813 case $RM in
10814 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010815 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10816 ;;
10817 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010824 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 -050010825 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10828 fi
10829done
10830done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010831IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010832
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010833 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10834 ;;
10835esac
10836fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010837RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010838if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010839 { echo "$as_me:$LINENO: result: $RM" >&5
10840echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010841else
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 +000010844fi
10845
Theodore Ts'oe1052142006-10-21 21:46:47 -040010846
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010847# Extract the first word of "chmod", so it can be a program name with args.
10848set dummy chmod; 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_CHMOD+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 $CHMOD in
10855 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010856 ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$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_CHMOD" && ac_cv_path_CHMOD=":"
10875 ;;
10876esac
10877fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010878CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010879if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010880 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10881echo "${ECHO_T}$CHMOD" >&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
Theodore Ts'o32237012005-01-17 19:13:39 -050010888for ac_prog in gawk mawk nawk awk
10889do
10890 # Extract the first word of "$ac_prog", so it can be a program name with args.
10891set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050010894if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010895 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010896else
Theodore Ts'o32237012005-01-17 19:13:39 -050010897 if test -n "$AWK"; then
10898 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10899else
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010906 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 -050010907 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10910 fi
10911done
10912done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010913IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010914
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010915fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010916fi
10917AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010918if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010919 { echo "$as_me:$LINENO: result: $AWK" >&5
10920echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010921else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010922 { echo "$as_me:$LINENO: result: no" >&5
10923echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010924fi
10925
Theodore Ts'oe1052142006-10-21 21:46:47 -040010926
Theodore Ts'o32237012005-01-17 19:13:39 -050010927 test -n "$AWK" && break
10928done
10929
Theodore Ts'oe1052142006-10-21 21:46:47 -040010930{ echo "$as_me:$LINENO: checking for egrep" >&5
10931echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10932if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10936 then ac_cv_path_EGREP="$GREP -E"
10937 else
10938 # Extract the first word of "egrep" to use in msg output
10939if test -z "$EGREP"; then
10940set dummy egrep; ac_prog_name=$2
10941if test "${ac_cv_path_EGREP+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943else
10944 ac_path_EGREP_found=false
10945# Loop through the user's path and test for each of PROGNAME-LIST
10946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10948do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_prog in egrep; do
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010954 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040010955 # Check for GNU ac_path_EGREP and select it if it is found.
10956 # Check for GNU $ac_path_EGREP
10957case `"$ac_path_EGREP" --version 2>&1` in
10958*GNU*)
10959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10960*)
10961 ac_count=0
10962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10963 while :
10964 do
10965 cat "conftest.in" "conftest.in" >"conftest.tmp"
10966 mv "conftest.tmp" "conftest.in"
10967 cp "conftest.in" "conftest.nl"
10968 echo 'EGREP' >> "conftest.nl"
10969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10971 ac_count=`expr $ac_count + 1`
10972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10973 # Best one so far, save it but keep looking for a better one
10974 ac_cv_path_EGREP="$ac_path_EGREP"
10975 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050010976 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010977 # 10*(2^10) chars as input seems more than enough
10978 test $ac_count -gt 10 && break
10979 done
10980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10981esac
10982
10983
10984 $ac_path_EGREP_found && break 3
10985 done
10986done
10987
10988done
10989IFS=$as_save_IFS
10990
10991
Theodore Ts'o32237012005-01-17 19:13:39 -050010992fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010993
10994EGREP="$ac_cv_path_EGREP"
10995if test -z "$EGREP"; then
10996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10997echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10998 { (exit 1); exit 1; }; }
10999fi
11000
11001else
11002 ac_cv_path_EGREP=$EGREP
11003fi
11004
11005
11006 fi
11007fi
11008{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11009echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11010 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011011
11012
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011013# Extract the first word of "sed", so it can be a program name with args.
11014set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011017if test "${ac_cv_path_SED+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020 case $SED in
11021 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011022 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11023 ;;
11024 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026for as_dir in $PATH
11027do
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011031 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 -050011032 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11035 fi
11036done
11037done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011038IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011039
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011040 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11041 ;;
11042esac
11043fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011044SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011045if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011046 { echo "$as_me:$LINENO: result: $SED" >&5
11047echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011048else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011049 { echo "$as_me:$LINENO: result: no" >&5
11050echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011051fi
11052
Theodore Ts'oe1052142006-10-21 21:46:47 -040011053
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011054# Extract the first word of "perl", so it can be a program name with args.
11055set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058if test "${ac_cv_path_PERL+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011060else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011061 case $PERL in
11062 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011063 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11064 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011065 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $PATH
11068do
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011072 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 -050011073 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11075 break 2
11076 fi
11077done
11078done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011079IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011080
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011081 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11082 ;;
11083esac
11084fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011085PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011086if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011087 { echo "$as_me:$LINENO: result: $PERL" >&5
11088echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011089else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011090 { echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011092fi
11093
Theodore Ts'oe1052142006-10-21 21:46:47 -040011094
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011095# Extract the first word of "ldconfig", so it can be a program name with args.
11096set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011099if test "${ac_cv_path_LDCONFIG+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011101else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011102 case $LDCONFIG in
11103 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011104 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11105 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011106 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $PATH
11109do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011113 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 -050011114 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11117 fi
11118done
11119done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011120IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011121
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011122 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11123 ;;
11124esac
11125fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011126LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011127if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011128 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11129echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011130else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011131 { echo "$as_me:$LINENO: result: no" >&5
11132echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011133fi
11134
Theodore Ts'oe1052142006-10-21 21:46:47 -040011135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011136if test -n "$ac_tool_prefix"; then
11137 # 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 +000011138set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011141if test "${ac_cv_prog_AR+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011143else
11144 if test -n "$AR"; then
11145 ac_cv_prog_AR="$AR" # Let the user override the test.
11146else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011153 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 -050011154 ac_cv_prog_AR="${ac_tool_prefix}ar"
11155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11157 fi
11158done
11159done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011160IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011161
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011162fi
11163fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011164AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011165if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011166 { echo "$as_me:$LINENO: result: $AR" >&5
11167echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011168else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011169 { echo "$as_me:$LINENO: result: no" >&5
11170echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011171fi
11172
Theodore Ts'oe1052142006-10-21 21:46:47 -040011173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011174fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011175if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011176 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011177 # Extract the first word of "ar", so it can be a program name with args.
11178set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011181if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011184 if test -n "$ac_ct_AR"; then
11185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011193 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 -050011194 ac_cv_prog_ac_ct_AR="ar"
11195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198done
11199done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011200IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011201
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011202fi
11203fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011204ac_ct_AR=$ac_cv_prog_ac_ct_AR
11205if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011206 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11207echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011208else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011209 { echo "$as_me:$LINENO: result: no" >&5
11210echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011211fi
11212
Theodore Ts'oe1052142006-10-21 21:46:47 -040011213 if test "x$ac_ct_AR" = x; then
11214 AR="ar"
11215 else
11216 case $cross_compiling:$ac_tool_warned in
11217yes:)
11218{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11219whose name does not start with the host triplet. If you think this
11220configuration is useful to you, please write to autoconf@gnu.org." >&5
11221echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11222whose name does not start with the host triplet. If you think this
11223configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11224ac_tool_warned=yes ;;
11225esac
11226 AR=$ac_ct_AR
11227 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011228else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011229 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011230fi
11231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011232if test -n "$ac_tool_prefix"; then
11233 # 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 +000011234set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011237if test "${ac_cv_prog_RANLIB+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011239else
11240 if test -n "$RANLIB"; then
11241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11242else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244for as_dir in $PATH
11245do
11246 IFS=$as_save_IFS
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011249 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 -050011250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 break 2
11253 fi
11254done
11255done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011256IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011257
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011258fi
11259fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011260RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011261if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011262 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11263echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011264else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011265 { echo "$as_me:$LINENO: result: no" >&5
11266echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011267fi
11268
Theodore Ts'oe1052142006-10-21 21:46:47 -040011269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011271if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011272 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011273 # Extract the first word of "ranlib", so it can be a program name with args.
11274set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011279else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011280 if test -n "$ac_ct_RANLIB"; then
11281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284for as_dir in $PATH
11285do
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011289 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 -050011290 ac_cv_prog_ac_ct_RANLIB="ranlib"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11293 fi
11294done
11295done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011296IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011297
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011298fi
11299fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011300ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11301if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011302 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11303echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011304else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011305 { echo "$as_me:$LINENO: result: no" >&5
11306echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011307fi
11308
Theodore Ts'oe1052142006-10-21 21:46:47 -040011309 if test "x$ac_ct_RANLIB" = x; then
11310 RANLIB=":"
11311 else
11312 case $cross_compiling:$ac_tool_warned in
11313yes:)
11314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11315whose name does not start with the host triplet. If you think this
11316configuration is useful to you, please write to autoconf@gnu.org." >&5
11317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11318whose name does not start with the host triplet. If you think this
11319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11320ac_tool_warned=yes ;;
11321esac
11322 RANLIB=$ac_ct_RANLIB
11323 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011324else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011326fi
11327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011328if test -n "$ac_tool_prefix"; then
11329 # 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 +000011330set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011333if test "${ac_cv_prog_STRIP+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011335else
11336 if test -n "$STRIP"; then
11337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11338else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340for as_dir in $PATH
11341do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011345 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 -050011346 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350done
11351done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011352IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011354fi
11355fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011356STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011357if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011358 { echo "$as_me:$LINENO: result: $STRIP" >&5
11359echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011360else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011361 { echo "$as_me:$LINENO: result: no" >&5
11362echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011363fi
11364
Theodore Ts'oe1052142006-10-21 21:46:47 -040011365
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011366fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011367if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011369 # Extract the first word of "strip", so it can be a program name with args.
11370set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011375else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376 if test -n "$ac_ct_STRIP"; then
11377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011378else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380for as_dir in $PATH
11381do
11382 IFS=$as_save_IFS
11383 test -z "$as_dir" && as_dir=.
11384 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011385 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 -050011386 ac_cv_prog_ac_ct_STRIP="strip"
11387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11388 break 2
11389 fi
11390done
11391done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011392IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011393
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011394fi
11395fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11397if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011398 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11399echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011400else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011401 { echo "$as_me:$LINENO: result: no" >&5
11402echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011403fi
11404
Theodore Ts'oe1052142006-10-21 21:46:47 -040011405 if test "x$ac_ct_STRIP" = x; then
11406 STRIP=":"
11407 else
11408 case $cross_compiling:$ac_tool_warned in
11409yes:)
11410{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11411whose name does not start with the host triplet. If you think this
11412configuration is useful to you, please write to autoconf@gnu.org." >&5
11413echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11414whose name does not start with the host triplet. If you think this
11415configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11416ac_tool_warned=yes ;;
11417esac
11418 STRIP=$ac_ct_STRIP
11419 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011420else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011422fi
11423
Manish Katiyar7321d942008-04-14 17:20:03 +053011424# Extract the first word of "makeinfo", so it can be a program name with args.
11425set dummy makeinfo; ac_word=$2
11426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11428if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431 if test -n "$MAKEINFO"; then
11432 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11433else
11434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $PATH
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_prog_MAKEINFO="makeinfo"
11442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11444 fi
11445done
11446done
11447IFS=$as_save_IFS
11448
11449fi
11450fi
11451MAKEINFO=$ac_cv_prog_MAKEINFO
11452if test -n "$MAKEINFO"; then
11453 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11454echo "${ECHO_T}$MAKEINFO" >&6; }
11455else
11456 { echo "$as_me:$LINENO: result: no" >&5
11457echo "${ECHO_T}no" >&6; }
11458fi
11459
11460
11461if test "_$MAKEINFO" = "_"; then
11462 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11463else
11464 case "$MAKEINFO" in
11465 */missing.*)
11466 { echo "$as_me:$LINENO: WARNING:
11467*** Makeinfo is missing. Info documentation will not be built." >&5
11468echo "$as_me: WARNING:
11469*** Makeinfo is missing. Info documentation will not be built." >&2;}
11470 ;;
11471 *)
11472 ;;
11473 esac
11474fi
11475
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011476# Find a good install program. We prefer a C program (faster),
11477# so one script is as good as another. But avoid the broken or
11478# incompatible versions:
11479# SysV /etc/install, /usr/sbin/install
11480# SunOS /usr/etc/install
11481# IRIX /sbin/install
11482# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011484# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011485# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11486# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011487# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011488# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011489{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11490echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011491if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492if test "${ac_cv_path_install+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496for as_dir in $PATH
11497do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 # Account for people who put trailing slashes in PATH elements.
11501case $as_dir/ in
11502 ./ | .// | /cC/* | \
11503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11504 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11505 /usr/ucb/* ) ;;
11506 *)
11507 # OSF1 and SCO ODT 3.0 have their own names for install.
11508 # Don't use installbsd from OSF since it installs stuff as root
11509 # by default.
11510 for ac_prog in ginstall scoinst install; do
11511 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011512 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 +000011513 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011515 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011516 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011517 elif test $ac_prog = install &&
11518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11519 # program-specific install script used by HP pwplus--don't use.
11520 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011521 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11523 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011524 fi
11525 fi
11526 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011527 done
11528 ;;
11529esac
11530done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011531IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011533
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011534fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011535 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011537 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011538 # As a last resort, use the slow shell script. Don't cache a
11539 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011540 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011541 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011543 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011544fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011545{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11546echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011547
11548# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11549# It thinks the first close brace ends the variable substitution.
11550test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011553
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011554test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11555
Theodore Ts'o6c133521999-07-03 20:37:03 +000011556# See if we need a separate native compiler.
11557if test $cross_compiling = no; then
11558 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011559
Theodore Ts'o6c133521999-07-03 20:37:03 +000011560else
11561 for ac_prog in gcc cc
11562do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011563 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011564set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011569else
11570 if test -n "$BUILD_CC"; then
11571 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11572else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011575do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011579 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 -050011580 ac_cv_prog_BUILD_CC="$ac_prog"
11581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 break 2
11583 fi
11584done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011585done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011586IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588fi
11589fi
11590BUILD_CC=$ac_cv_prog_BUILD_CC
11591if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011592 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11593echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011595 { echo "$as_me:$LINENO: result: no" >&5
11596echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597fi
11598
Theodore Ts'oe1052142006-10-21 21:46:47 -040011599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011600 test -n "$BUILD_CC" && break
11601done
11602
11603fi
11604
Theodore Ts'o740837d2007-12-16 17:21:38 -050011605
11606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011635
Theodore Ts'o106ad962007-04-04 21:26:37 -040011636
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011637
11638
Theodore Ts'o3d058022008-07-12 22:06:30 -040011639
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040011640
11641for 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 termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011642do
11643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011650ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011653else
11654 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011655{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011657cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663$ac_includes_default
11664#include <$ac_header>
11665_ACEOF
11666rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011667if { (ac_try="$ac_compile"
11668case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011679 (exit $ac_status); } && {
11680 test -z "$ac_c_werror_flag" ||
11681 test ! -s conftest.err
11682 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011683 ac_header_compiler=yes
11684else
11685 echo "$as_me: failed program was:" >&5
11686sed 's/^/| /' conftest.$ac_ext >&5
11687
Theodore Ts'oe1052142006-10-21 21:46:47 -040011688 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011689fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011690
11691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11693echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011694
11695# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011696{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11697echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698cat >conftest.$ac_ext <<_ACEOF
11699/* confdefs.h. */
11700_ACEOF
11701cat confdefs.h >>conftest.$ac_ext
11702cat >>conftest.$ac_ext <<_ACEOF
11703/* end confdefs.h. */
11704#include <$ac_header>
11705_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011706if { (ac_try="$ac_cpp conftest.$ac_ext"
11707case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11710esac
11711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011718 (exit $ac_status); } >/dev/null && {
11719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011722 ac_header_preproc=yes
11723else
11724 echo "$as_me: failed program was:" >&5
11725sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 ac_header_preproc=no
11728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011730rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011731{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11732echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733
11734# So? What about this header?
11735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11736 yes:no: )
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11741 ac_header_preproc=yes
11742 ;;
11743 no:yes:* )
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011756
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757 ;;
11758esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011759{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 eval "$as_ac_Header=\$ac_header_preproc"
11765fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011766ac_res=`eval echo '${'$as_ac_Header'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011769
11770fi
11771if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774_ACEOF
11775
11776fi
11777
11778done
11779
11780
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011781
11782for ac_header in sys/disk.h sys/mount.h
11783do
11784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011785{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789else
11790 cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
11796
11797#if HAVE_SYS_QUEUE_H
11798#include <sys/queue.h>
11799#endif
11800
11801
11802#include <$ac_header>
11803_ACEOF
11804rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011805if { (ac_try="$ac_compile"
11806case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809esac
11810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011821 eval "$as_ac_Header=yes"
11822else
11823 echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
Theodore Ts'oe1052142006-10-21 21:46:47 -040011826 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011827fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011828
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011831ac_res=`eval echo '${'$as_ac_Header'}'`
11832 { echo "$as_me:$LINENO: result: $ac_res" >&5
11833echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011834if test `eval echo '${'$as_ac_Header'}'` = yes; then
11835 cat >>confdefs.h <<_ACEOF
11836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11837_ACEOF
11838
11839fi
11840
11841done
11842
11843
11844for ac_header in net/if.h
11845do
11846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851else
11852 cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
11858
11859#if HAVE_SYS_TYPES_H
11860#include <sys/types.h>
11861#endif
11862#if HAVE_SYS_SOCKET
11863#include <sys/socket.h>
11864#endif
11865
11866
11867#include <$ac_header>
11868_ACEOF
11869rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870if { (ac_try="$ac_compile"
11871case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011886 eval "$as_ac_Header=yes"
11887else
11888 echo "$as_me: failed program was:" >&5
11889sed 's/^/| /' conftest.$ac_ext >&5
11890
Theodore Ts'oe1052142006-10-21 21:46:47 -040011891 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011892fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011893
11894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011896ac_res=`eval echo '${'$as_ac_Header'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011899if test `eval echo '${'$as_ac_Header'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11902_ACEOF
11903
11904fi
11905
11906done
11907
11908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011909for ac_func in vprintf
11910do
11911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011912{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916else
11917 cat >conftest.$ac_ext <<_ACEOF
11918/* confdefs.h. */
11919_ACEOF
11920cat confdefs.h >>conftest.$ac_ext
11921cat >>conftest.$ac_ext <<_ACEOF
11922/* end confdefs.h. */
11923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925#define $ac_func innocuous_$ac_func
11926
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011927/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928 which can conflict with char $ac_func (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11931
11932#ifdef __STDC__
11933# include <limits.h>
11934#else
11935# include <assert.h>
11936#endif
11937
11938#undef $ac_func
11939
Theodore Ts'oe1052142006-10-21 21:46:47 -040011940/* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943#ifdef __cplusplus
11944extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011945#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011946char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011947/* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011950#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011951choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011952#endif
11953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011954int
11955main ()
11956{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011957return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958 ;
11959 return 0;
11960}
11961_ACEOF
11962rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011963if { (ac_try="$ac_link"
11964case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967esac
11968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext &&
11979 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982 echo "$as_me: failed program was:" >&5
11983sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011984
Theodore Ts'oe1052142006-10-21 21:46:47 -040011985 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011987
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011989 conftest$ac_exeext conftest.$ac_ext
11990fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011991ac_res=`eval echo '${'$as_ac_var'}'`
11992 { echo "$as_me:$LINENO: result: $ac_res" >&5
11993echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994if test `eval echo '${'$as_ac_var'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11997_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011998
Theodore Ts'oe1052142006-10-21 21:46:47 -040011999{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12000echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001if test "${ac_cv_func__doprnt+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012004 cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12012#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012013
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012014/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015 which can conflict with char _doprnt (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */
12018
12019#ifdef __STDC__
12020# include <limits.h>
12021#else
12022# include <assert.h>
12023#endif
12024
12025#undef _doprnt
12026
Theodore Ts'oe1052142006-10-21 21:46:47 -040012027/* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012030#ifdef __cplusplus
12031extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012032#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012033char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012034/* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012037#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012038choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012039#endif
12040
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041int
12042main ()
12043{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012044return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045 ;
12046 return 0;
12047}
12048_ACEOF
12049rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012050if { (ac_try="$ac_link"
12051case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest$ac_exeext &&
12066 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069 echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012071
Theodore Ts'oe1052142006-10-21 21:46:47 -040012072 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012073fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012074
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076 conftest$ac_exeext conftest.$ac_ext
12077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012078{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12079echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012080if test $ac_cv_func__doprnt = yes; then
12081
12082cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012083#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012085
12086fi
12087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088fi
12089done
12090
12091
Theodore Ts'oe1052142006-10-21 21:46:47 -040012092{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12093echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012094if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097 cat >conftest.$ac_ext <<_ACEOF
12098/* confdefs.h. */
12099_ACEOF
12100cat confdefs.h >>conftest.$ac_ext
12101cat >>conftest.$ac_ext <<_ACEOF
12102/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012103#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012104
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105int
12106main ()
12107{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012108static struct dirent ac_aggr;
12109if (ac_aggr.d_reclen)
12110return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111 ;
12112 return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012116if { (ac_try="$ac_compile"
12117case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012132 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012133else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012138/* confdefs.h. */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h. */
12143#include <dirent.h>
12144
12145int
12146main ()
12147{
12148static struct dirent ac_aggr;
12149if (sizeof ac_aggr.d_reclen)
12150return 0;
12151 ;
12152 return 0;
12153}
12154_ACEOF
12155rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012156if { (ac_try="$ac_compile"
12157case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160esac
12161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012172 ac_cv_member_struct_dirent_d_reclen=yes
12173else
12174 echo "$as_me: failed program was:" >&5
12175sed 's/^/| /' conftest.$ac_ext >&5
12176
Theodore Ts'oe1052142006-10-21 21:46:47 -040012177 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012179
12180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012182
12183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12186echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012187if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12188 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012189#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012191
12192fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012193
Theodore Ts'oe1052142006-10-21 21:46:47 -040012194{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12195echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012196if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012198else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199 cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h. */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012205#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012206
Theodore Ts'oe1052142006-10-21 21:46:47 -040012207typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012208int
12209main ()
12210{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012212 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012213if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012214 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215 ;
12216 return 0;
12217}
12218_ACEOF
12219rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012220if { (ac_try="$ac_compile"
12221case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012236 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238 echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012242fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012243
12244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012245fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012246{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12247echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012248if test $ac_cv_type_ssize_t = yes; then
12249 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012250#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012252
12253fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012254
Theodore Ts'oe1052142006-10-21 21:46:47 -040012255{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12256echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012257if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012259else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260 cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012266#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012268int
12269main ()
12270{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012271#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012272 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012273#endif
12274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012280if { (ac_try="$ac_compile"
12281case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012292 (exit $ac_status); } && {
12293 test -z "$ac_c_werror_flag" ||
12294 test ! -s conftest.err
12295 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012296 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012297else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012298 echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
Theodore Ts'oe1052142006-10-21 21:46:47 -040012301 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012303
12304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012305fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012306{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12307echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012308if test $ac_cv_have_decl_llseek = yes; then
12309 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012310#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012311_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012312
12313fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012314
Theodore Ts'oe1052142006-10-21 21:46:47 -040012315{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12316echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012317if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012318 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012319else
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'o6928adc2000-05-25 23:28:50 +000012326#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012327 #define _LARGEFILE64_SOURCE
12328 #include <unistd.h>
12329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330int
12331main ()
12332{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012333#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012334 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012335#endif
12336
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012337 ;
12338 return 0;
12339}
12340_ACEOF
12341rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012342if { (ac_try="$ac_compile"
12343case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346esac
12347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012358 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012359else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012360 echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
Theodore Ts'oe1052142006-10-21 21:46:47 -040012363 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012364fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012365
12366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012368{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12369echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012370if test $ac_cv_have_decl_lseek64 = yes; then
12371 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012372#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012373_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012374
12375fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012376
Theodore Ts'oe1052142006-10-21 21:46:47 -040012377{ echo "$as_me:$LINENO: checking for short" >&5
12378echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012379if test "${ac_cv_type_short+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381else
12382 cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
12388$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012389typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012390int
12391main ()
12392{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012393if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012394 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012395if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012396 return 0;
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012402if { (ac_try="$ac_compile"
12403case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012418 ac_cv_type_short=yes
12419else
12420 echo "$as_me: failed program was:" >&5
12421sed 's/^/| /' conftest.$ac_ext >&5
12422
Theodore Ts'oe1052142006-10-21 21:46:47 -040012423 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012424fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012425
Theodore Ts'oe1052142006-10-21 21:46:47 -040012426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427fi
12428{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12429echo "${ECHO_T}$ac_cv_type_short" >&6; }
12430
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012431# The cast to long int works around a bug in the HP C Compiler
12432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12434# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012435{ echo "$as_me:$LINENO: checking size of short" >&5
12436echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012437if test "${ac_cv_sizeof_short+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012440 if test "$cross_compiling" = yes; then
12441 # Depending upon the size, compute the lo and hi bounds.
12442cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012449 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012450int
12451main ()
12452{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012453static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454test_array [0] = 0
12455
12456 ;
12457 return 0;
12458}
12459_ACEOF
12460rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012461if { (ac_try="$ac_compile"
12462case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465esac
12466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477 ac_lo=0 ac_mid=0
12478 while :; do
12479 cat >conftest.$ac_ext <<_ACEOF
12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
12485$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012486 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012487int
12488main ()
12489{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012490static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012491test_array [0] = 0
12492
12493 ;
12494 return 0;
12495}
12496_ACEOF
12497rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012498if { (ac_try="$ac_compile"
12499case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502esac
12503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514 ac_hi=$ac_mid; break
12515else
12516 echo "$as_me: failed program was:" >&5
12517sed 's/^/| /' conftest.$ac_ext >&5
12518
Theodore Ts'oe1052142006-10-21 21:46:47 -040012519 ac_lo=`expr $ac_mid + 1`
12520 if test $ac_lo -le $ac_mid; then
12521 ac_lo= ac_hi=
12522 break
12523 fi
12524 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012526
12527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012528 done
12529else
12530 echo "$as_me: failed program was:" >&5
12531sed 's/^/| /' conftest.$ac_ext >&5
12532
Theodore Ts'oe1052142006-10-21 21:46:47 -040012533 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534/* confdefs.h. */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h. */
12539$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012540 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012541int
12542main ()
12543{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012544static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012545test_array [0] = 0
12546
12547 ;
12548 return 0;
12549}
12550_ACEOF
12551rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012552if { (ac_try="$ac_compile"
12553case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012564 (exit $ac_status); } && {
12565 test -z "$ac_c_werror_flag" ||
12566 test ! -s conftest.err
12567 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012568 ac_hi=-1 ac_mid=-1
12569 while :; do
12570 cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012577 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012578int
12579main ()
12580{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012581static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012582test_array [0] = 0
12583
12584 ;
12585 return 0;
12586}
12587_ACEOF
12588rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012589if { (ac_try="$ac_compile"
12590case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012605 ac_lo=$ac_mid; break
12606else
12607 echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
Theodore Ts'oe1052142006-10-21 21:46:47 -040012610 ac_hi=`expr '(' $ac_mid ')' - 1`
12611 if test $ac_mid -le $ac_hi; then
12612 ac_lo= ac_hi=
12613 break
12614 fi
12615 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012616fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012617
12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012619 done
12620else
12621 echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
Theodore Ts'oe1052142006-10-21 21:46:47 -040012624 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012625fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012626
12627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012629
12630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012631# Binary search between lo and hi bounds.
12632while test "x$ac_lo" != "x$ac_hi"; do
12633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12634 cat >conftest.$ac_ext <<_ACEOF
12635/* confdefs.h. */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h. */
12640$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012641 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012642int
12643main ()
12644{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012645static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012646test_array [0] = 0
12647
12648 ;
12649 return 0;
12650}
12651_ACEOF
12652rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012653if { (ac_try="$ac_compile"
12654case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657esac
12658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012669 ac_hi=$ac_mid
12670else
12671 echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
Theodore Ts'oe1052142006-10-21 21:46:47 -040012674 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012675fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012676
12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678done
12679case $ac_lo in
12680?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012681'') if test "$ac_cv_type_short" = yes; then
12682 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012683See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012684echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012685See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012686 { (exit 77); exit 77; }; }
12687 else
12688 ac_cv_sizeof_short=0
12689 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012690esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012691else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012692 cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012699 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012700static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12701static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012702#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703#include <stdlib.h>
12704int
12705main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012706{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012707
12708 FILE *f = fopen ("conftest.val", "w");
12709 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012710 return 1;
12711 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012712 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012713 long int i = longval ();
12714 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12715 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012716 fprintf (f, "%ld\n", i);
12717 }
12718 else
12719 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012720 unsigned long int i = ulongval ();
12721 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12722 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012723 fprintf (f, "%lu\n", i);
12724 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012725 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012726
12727 ;
12728 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012729}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012730_ACEOF
12731rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012732if { (ac_try="$ac_link"
12733case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745esac
12746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012752else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012753 echo "$as_me: program exited with status $ac_status" >&5
12754echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012758if test "$ac_cv_type_short" = yes; then
12759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012760See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012761echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012762See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012763 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012764 else
12765 ac_cv_sizeof_short=0
12766 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012767fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012768rm -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 -050012769fi
12770rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012772{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12773echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012774
12775
12776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012778#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012780
12781
Theodore Ts'oe1052142006-10-21 21:46:47 -040012782{ echo "$as_me:$LINENO: checking for int" >&5
12783echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012784if test "${ac_cv_type_int+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012794typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012795int
12796main ()
12797{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012798if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012799 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012800if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012801 return 0;
12802 ;
12803 return 0;
12804}
12805_ACEOF
12806rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012807if { (ac_try="$ac_compile"
12808case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811esac
12812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012823 ac_cv_type_int=yes
12824else
12825 echo "$as_me: failed program was:" >&5
12826sed 's/^/| /' conftest.$ac_ext >&5
12827
Theodore Ts'oe1052142006-10-21 21:46:47 -040012828 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012829fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012830
Theodore Ts'oe1052142006-10-21 21:46:47 -040012831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832fi
12833{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12834echo "${ECHO_T}$ac_cv_type_int" >&6; }
12835
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012836# The cast to long int works around a bug in the HP C Compiler
12837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12839# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012840{ echo "$as_me:$LINENO: checking size of int" >&5
12841echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842if test "${ac_cv_sizeof_int+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012845 if test "$cross_compiling" = yes; then
12846 # Depending upon the size, compute the lo and hi bounds.
12847cat >conftest.$ac_ext <<_ACEOF
12848/* confdefs.h. */
12849_ACEOF
12850cat confdefs.h >>conftest.$ac_ext
12851cat >>conftest.$ac_ext <<_ACEOF
12852/* end confdefs.h. */
12853$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012854 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012855int
12856main ()
12857{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012859test_array [0] = 0
12860
12861 ;
12862 return 0;
12863}
12864_ACEOF
12865rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012866if { (ac_try="$ac_compile"
12867case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870esac
12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012878 (exit $ac_status); } && {
12879 test -z "$ac_c_werror_flag" ||
12880 test ! -s conftest.err
12881 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012882 ac_lo=0 ac_mid=0
12883 while :; do
12884 cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012891 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892int
12893main ()
12894{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012895static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012896test_array [0] = 0
12897
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012903if { (ac_try="$ac_compile"
12904case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012919 ac_hi=$ac_mid; break
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
Theodore Ts'oe1052142006-10-21 21:46:47 -040012924 ac_lo=`expr $ac_mid + 1`
12925 if test $ac_lo -le $ac_mid; then
12926 ac_lo= ac_hi=
12927 break
12928 fi
12929 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012931
12932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012933 done
12934else
12935 echo "$as_me: failed program was:" >&5
12936sed 's/^/| /' conftest.$ac_ext >&5
12937
Theodore Ts'oe1052142006-10-21 21:46:47 -040012938 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012939/* confdefs.h. */
12940_ACEOF
12941cat confdefs.h >>conftest.$ac_ext
12942cat >>conftest.$ac_ext <<_ACEOF
12943/* end confdefs.h. */
12944$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012945 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012946int
12947main ()
12948{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012949static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950test_array [0] = 0
12951
12952 ;
12953 return 0;
12954}
12955_ACEOF
12956rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012957if { (ac_try="$ac_compile"
12958case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012969 (exit $ac_status); } && {
12970 test -z "$ac_c_werror_flag" ||
12971 test ! -s conftest.err
12972 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012973 ac_hi=-1 ac_mid=-1
12974 while :; do
12975 cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
12981$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012982 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983int
12984main ()
12985{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012986static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012987test_array [0] = 0
12988
12989 ;
12990 return 0;
12991}
12992_ACEOF
12993rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012994if { (ac_try="$ac_compile"
12995case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998esac
12999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013010 ac_lo=$ac_mid; break
13011else
13012 echo "$as_me: failed program was:" >&5
13013sed 's/^/| /' conftest.$ac_ext >&5
13014
Theodore Ts'oe1052142006-10-21 21:46:47 -040013015 ac_hi=`expr '(' $ac_mid ')' - 1`
13016 if test $ac_mid -le $ac_hi; then
13017 ac_lo= ac_hi=
13018 break
13019 fi
13020 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013022
13023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013024 done
13025else
13026 echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
Theodore Ts'oe1052142006-10-21 21:46:47 -040013029 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013031
13032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013033fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013034
13035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013036# Binary search between lo and hi bounds.
13037while test "x$ac_lo" != "x$ac_hi"; do
13038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13039 cat >conftest.$ac_ext <<_ACEOF
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
13044/* end confdefs.h. */
13045$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013046 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013047int
13048main ()
13049{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013050static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013051test_array [0] = 0
13052
13053 ;
13054 return 0;
13055}
13056_ACEOF
13057rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013058if { (ac_try="$ac_compile"
13059case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062esac
13063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013074 ac_hi=$ac_mid
13075else
13076 echo "$as_me: failed program was:" >&5
13077sed 's/^/| /' conftest.$ac_ext >&5
13078
Theodore Ts'oe1052142006-10-21 21:46:47 -040013079 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013080fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013081
13082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083done
13084case $ac_lo in
13085?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013086'') if test "$ac_cv_type_int" = yes; then
13087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013089echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013091 { (exit 77); exit 77; }; }
13092 else
13093 ac_cv_sizeof_int=0
13094 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013095esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013097 cat >conftest.$ac_ext <<_ACEOF
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013104 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013105static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13106static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013107#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013108#include <stdlib.h>
13109int
13110main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013111{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013112
13113 FILE *f = fopen ("conftest.val", "w");
13114 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013115 return 1;
13116 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013117 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013118 long int i = longval ();
13119 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13120 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013121 fprintf (f, "%ld\n", i);
13122 }
13123 else
13124 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013125 unsigned long int i = ulongval ();
13126 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13127 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013128 fprintf (f, "%lu\n", i);
13129 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013130 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013131
13132 ;
13133 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013134}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013135_ACEOF
13136rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013137if { (ac_try="$ac_link"
13138case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150esac
13151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013157else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013158 echo "$as_me: program exited with status $ac_status" >&5
13159echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013163if test "$ac_cv_type_int" = yes; then
13164 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013165See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013166echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013167See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013168 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013169 else
13170 ac_cv_sizeof_int=0
13171 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013172fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013173rm -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 -050013174fi
13175rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013176fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013177{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13178echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013179
13180
13181
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013182cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013183#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013184_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013185
13186
Theodore Ts'oe1052142006-10-21 21:46:47 -040013187{ echo "$as_me:$LINENO: checking for long" >&5
13188echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013189if test "${ac_cv_type_long+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191else
13192 cat >conftest.$ac_ext <<_ACEOF
13193/* confdefs.h. */
13194_ACEOF
13195cat confdefs.h >>conftest.$ac_ext
13196cat >>conftest.$ac_ext <<_ACEOF
13197/* end confdefs.h. */
13198$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013199typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013200int
13201main ()
13202{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013203if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013204 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013205if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013206 return 0;
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013212if { (ac_try="$ac_compile"
13213case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216esac
13217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013224 (exit $ac_status); } && {
13225 test -z "$ac_c_werror_flag" ||
13226 test ! -s conftest.err
13227 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013228 ac_cv_type_long=yes
13229else
13230 echo "$as_me: failed program was:" >&5
13231sed 's/^/| /' conftest.$ac_ext >&5
13232
Theodore Ts'oe1052142006-10-21 21:46:47 -040013233 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013234fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013235
Theodore Ts'oe1052142006-10-21 21:46:47 -040013236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237fi
13238{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13239echo "${ECHO_T}$ac_cv_type_long" >&6; }
13240
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013241# The cast to long int works around a bug in the HP C Compiler
13242# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13243# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13244# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013245{ echo "$as_me:$LINENO: checking size of long" >&5
13246echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013247if test "${ac_cv_sizeof_long+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013250 if test "$cross_compiling" = yes; then
13251 # Depending upon the size, compute the lo and hi bounds.
13252cat >conftest.$ac_ext <<_ACEOF
13253/* confdefs.h. */
13254_ACEOF
13255cat confdefs.h >>conftest.$ac_ext
13256cat >>conftest.$ac_ext <<_ACEOF
13257/* end confdefs.h. */
13258$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013259 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013260int
13261main ()
13262{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013263static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013264test_array [0] = 0
13265
13266 ;
13267 return 0;
13268}
13269_ACEOF
13270rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013271if { (ac_try="$ac_compile"
13272case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275esac
13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013287 ac_lo=0 ac_mid=0
13288 while :; do
13289 cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013296 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013297int
13298main ()
13299{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013300static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013301test_array [0] = 0
13302
13303 ;
13304 return 0;
13305}
13306_ACEOF
13307rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013308if { (ac_try="$ac_compile"
13309case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13312esac
13313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013315 ac_status=$?
13316 grep -v '^ *+' conftest.er1 >conftest.err
13317 rm -f conftest.er1
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013320 (exit $ac_status); } && {
13321 test -z "$ac_c_werror_flag" ||
13322 test ! -s conftest.err
13323 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013324 ac_hi=$ac_mid; break
13325else
13326 echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
Theodore Ts'oe1052142006-10-21 21:46:47 -040013329 ac_lo=`expr $ac_mid + 1`
13330 if test $ac_lo -le $ac_mid; then
13331 ac_lo= ac_hi=
13332 break
13333 fi
13334 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013335fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013336
13337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013338 done
13339else
13340 echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
Theodore Ts'oe1052142006-10-21 21:46:47 -040013343 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013344/* confdefs.h. */
13345_ACEOF
13346cat confdefs.h >>conftest.$ac_ext
13347cat >>conftest.$ac_ext <<_ACEOF
13348/* end confdefs.h. */
13349$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013350 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013351int
13352main ()
13353{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013354static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013355test_array [0] = 0
13356
13357 ;
13358 return 0;
13359}
13360_ACEOF
13361rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013362if { (ac_try="$ac_compile"
13363case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13366esac
13367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013378 ac_hi=-1 ac_mid=-1
13379 while :; do
13380 cat >conftest.$ac_ext <<_ACEOF
13381/* confdefs.h. */
13382_ACEOF
13383cat confdefs.h >>conftest.$ac_ext
13384cat >>conftest.$ac_ext <<_ACEOF
13385/* end confdefs.h. */
13386$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013387 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013388int
13389main ()
13390{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013391static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013392test_array [0] = 0
13393
13394 ;
13395 return 0;
13396}
13397_ACEOF
13398rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013399if { (ac_try="$ac_compile"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013411 (exit $ac_status); } && {
13412 test -z "$ac_c_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013415 ac_lo=$ac_mid; break
13416else
13417 echo "$as_me: failed program was:" >&5
13418sed 's/^/| /' conftest.$ac_ext >&5
13419
Theodore Ts'oe1052142006-10-21 21:46:47 -040013420 ac_hi=`expr '(' $ac_mid ')' - 1`
13421 if test $ac_mid -le $ac_hi; then
13422 ac_lo= ac_hi=
13423 break
13424 fi
13425 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013427
13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013429 done
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
Theodore Ts'oe1052142006-10-21 21:46:47 -040013434 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013435fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013436
13437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013438fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013441# Binary search between lo and hi bounds.
13442while test "x$ac_lo" != "x$ac_hi"; do
13443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13444 cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h. */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h. */
13450$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013451 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013452int
13453main ()
13454{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013455static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013456test_array [0] = 0
13457
13458 ;
13459 return 0;
13460}
13461_ACEOF
13462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013463if { (ac_try="$ac_compile"
13464case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467esac
13468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013470 ac_status=$?
13471 grep -v '^ *+' conftest.er1 >conftest.err
13472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013475 (exit $ac_status); } && {
13476 test -z "$ac_c_werror_flag" ||
13477 test ! -s conftest.err
13478 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013479 ac_hi=$ac_mid
13480else
13481 echo "$as_me: failed program was:" >&5
13482sed 's/^/| /' conftest.$ac_ext >&5
13483
Theodore Ts'oe1052142006-10-21 21:46:47 -040013484 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013486
13487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013488done
13489case $ac_lo in
13490?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013491'') if test "$ac_cv_type_long" = yes; then
13492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013493See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013494echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013495See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013496 { (exit 77); exit 77; }; }
13497 else
13498 ac_cv_sizeof_long=0
13499 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013501else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013502 cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
13508$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013509 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013510static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13511static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013512#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013513#include <stdlib.h>
13514int
13515main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013516{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013517
13518 FILE *f = fopen ("conftest.val", "w");
13519 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013520 return 1;
13521 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013522 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013523 long int i = longval ();
13524 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13525 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013526 fprintf (f, "%ld\n", i);
13527 }
13528 else
13529 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013530 unsigned long int i = ulongval ();
13531 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13532 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013533 fprintf (f, "%lu\n", i);
13534 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013535 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013536
13537 ;
13538 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013539}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013540_ACEOF
13541rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013542if { (ac_try="$ac_link"
13543case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13546esac
13547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013562else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563 echo "$as_me: program exited with status $ac_status" >&5
13564echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013568if test "$ac_cv_type_long" = yes; then
13569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013570See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013571echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013572See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013573 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013574 else
13575 ac_cv_sizeof_long=0
13576 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013578rm -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 -050013579fi
13580rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013581fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013582{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13583echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013584
13585
13586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013587cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013588#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013589_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013590
13591
Theodore Ts'oe1052142006-10-21 21:46:47 -040013592{ echo "$as_me:$LINENO: checking for long long" >&5
13593echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013594if test "${ac_cv_type_long_long+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13596else
13597 cat >conftest.$ac_ext <<_ACEOF
13598/* confdefs.h. */
13599_ACEOF
13600cat confdefs.h >>conftest.$ac_ext
13601cat >>conftest.$ac_ext <<_ACEOF
13602/* end confdefs.h. */
13603$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013604typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013605int
13606main ()
13607{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013608if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013611 return 0;
13612 ;
13613 return 0;
13614}
13615_ACEOF
13616rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013617if { (ac_try="$ac_compile"
13618case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13621esac
13622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013633 ac_cv_type_long_long=yes
13634else
13635 echo "$as_me: failed program was:" >&5
13636sed 's/^/| /' conftest.$ac_ext >&5
13637
Theodore Ts'oe1052142006-10-21 21:46:47 -040013638 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013639fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013640
Theodore Ts'oe1052142006-10-21 21:46:47 -040013641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642fi
13643{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13644echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13645
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013646# The cast to long int works around a bug in the HP C Compiler
13647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13649# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013650{ echo "$as_me:$LINENO: checking size of long long" >&5
13651echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013652if test "${ac_cv_sizeof_long_long+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013655 if test "$cross_compiling" = yes; then
13656 # Depending upon the size, compute the lo and hi bounds.
13657cat >conftest.$ac_ext <<_ACEOF
13658/* confdefs.h. */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h. */
13663$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013664 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013665int
13666main ()
13667{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013668static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669test_array [0] = 0
13670
13671 ;
13672 return 0;
13673}
13674_ACEOF
13675rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013676if { (ac_try="$ac_compile"
13677case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680esac
13681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013692 ac_lo=0 ac_mid=0
13693 while :; do
13694 cat >conftest.$ac_ext <<_ACEOF
13695/* confdefs.h. */
13696_ACEOF
13697cat confdefs.h >>conftest.$ac_ext
13698cat >>conftest.$ac_ext <<_ACEOF
13699/* end confdefs.h. */
13700$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013701 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013702int
13703main ()
13704{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013705static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013706test_array [0] = 0
13707
13708 ;
13709 return 0;
13710}
13711_ACEOF
13712rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013713if { (ac_try="$ac_compile"
13714case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717esac
13718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013725 (exit $ac_status); } && {
13726 test -z "$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013729 ac_hi=$ac_mid; break
13730else
13731 echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
Theodore Ts'oe1052142006-10-21 21:46:47 -040013734 ac_lo=`expr $ac_mid + 1`
13735 if test $ac_lo -le $ac_mid; then
13736 ac_lo= ac_hi=
13737 break
13738 fi
13739 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013741
13742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013743 done
13744else
13745 echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
Theodore Ts'oe1052142006-10-21 21:46:47 -040013748 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013755 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013756int
13757main ()
13758{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013759static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013760test_array [0] = 0
13761
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013767if { (ac_try="$ac_compile"
13768case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774 ac_status=$?
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013779 (exit $ac_status); } && {
13780 test -z "$ac_c_werror_flag" ||
13781 test ! -s conftest.err
13782 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013783 ac_hi=-1 ac_mid=-1
13784 while :; do
13785 cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013792 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013793int
13794main ()
13795{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013796static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013797test_array [0] = 0
13798
13799 ;
13800 return 0;
13801}
13802_ACEOF
13803rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804if { (ac_try="$ac_compile"
13805case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808esac
13809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013811 ac_status=$?
13812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013820 ac_lo=$ac_mid; break
13821else
13822 echo "$as_me: failed program was:" >&5
13823sed 's/^/| /' conftest.$ac_ext >&5
13824
Theodore Ts'oe1052142006-10-21 21:46:47 -040013825 ac_hi=`expr '(' $ac_mid ')' - 1`
13826 if test $ac_mid -le $ac_hi; then
13827 ac_lo= ac_hi=
13828 break
13829 fi
13830 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013832
13833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013834 done
13835else
13836 echo "$as_me: failed program was:" >&5
13837sed 's/^/| /' conftest.$ac_ext >&5
13838
Theodore Ts'oe1052142006-10-21 21:46:47 -040013839 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013841
13842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013844
13845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013846# Binary search between lo and hi bounds.
13847while test "x$ac_lo" != "x$ac_hi"; do
13848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13849 cat >conftest.$ac_ext <<_ACEOF
13850/* confdefs.h. */
13851_ACEOF
13852cat confdefs.h >>conftest.$ac_ext
13853cat >>conftest.$ac_ext <<_ACEOF
13854/* end confdefs.h. */
13855$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013856 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013857int
13858main ()
13859{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013860static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013861test_array [0] = 0
13862
13863 ;
13864 return 0;
13865}
13866_ACEOF
13867rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013868if { (ac_try="$ac_compile"
13869case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13872esac
13873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013880 (exit $ac_status); } && {
13881 test -z "$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013884 ac_hi=$ac_mid
13885else
13886 echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
Theodore Ts'oe1052142006-10-21 21:46:47 -040013889 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013890fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013891
13892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013893done
13894case $ac_lo in
13895?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013896'') if test "$ac_cv_type_long_long" = yes; then
13897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013899echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013900See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013901 { (exit 77); exit 77; }; }
13902 else
13903 ac_cv_sizeof_long_long=0
13904 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013905esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013907 cat >conftest.$ac_ext <<_ACEOF
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
13912/* end confdefs.h. */
13913$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013914 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013915static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13916static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013917#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013918#include <stdlib.h>
13919int
13920main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013921{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013922
13923 FILE *f = fopen ("conftest.val", "w");
13924 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013925 return 1;
13926 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013927 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013928 long int i = longval ();
13929 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13930 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931 fprintf (f, "%ld\n", i);
13932 }
13933 else
13934 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013935 unsigned long int i = ulongval ();
13936 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13937 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938 fprintf (f, "%lu\n", i);
13939 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013940 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013941
13942 ;
13943 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013944}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013945_ACEOF
13946rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013947if { (ac_try="$ac_link"
13948case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951esac
13952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013967else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968 echo "$as_me: program exited with status $ac_status" >&5
13969echo "$as_me: failed program was:" >&5
13970sed 's/^/| /' conftest.$ac_ext >&5
13971
13972( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013973if test "$ac_cv_type_long_long" = yes; then
13974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013975See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013976echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013977See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013979 else
13980 ac_cv_sizeof_long_long=0
13981 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013982fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013983rm -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 -050013984fi
13985rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013987{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13988echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013989
13990
13991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013992cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013993#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013995
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013996
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013997SIZEOF_SHORT=$ac_cv_sizeof_short
13998SIZEOF_INT=$ac_cv_sizeof_int
13999SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014000SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14001
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014002
14003
14004
Theodore Ts'oe1052142006-10-21 21:46:47 -040014005{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14006echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014007if test "${ac_cv_c_bigendian+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014009else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014010 # See if sys/param.h defines the BYTE_ORDER macro.
14011cat >conftest.$ac_ext <<_ACEOF
14012/* confdefs.h. */
14013_ACEOF
14014cat confdefs.h >>conftest.$ac_ext
14015cat >>conftest.$ac_ext <<_ACEOF
14016/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014017#include <sys/types.h>
14018#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020int
14021main ()
14022{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014023#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14024 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014025 bogus endian macros
14026#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014027
14028 ;
14029 return 0;
14030}
14031_ACEOF
14032rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014033if { (ac_try="$ac_compile"
14034case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037esac
14038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014045 (exit $ac_status); } && {
14046 test -z "$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14048 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014049 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014050cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014056#include <sys/types.h>
14057#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014059int
14060main ()
14061{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014062#if BYTE_ORDER != BIG_ENDIAN
14063 not big endian
14064#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014065
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014071if { (ac_try="$ac_compile"
14072case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14075esac
14076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014087 ac_cv_c_bigendian=yes
14088else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089 echo "$as_me: failed program was:" >&5
14090sed 's/^/| /' conftest.$ac_ext >&5
14091
Theodore Ts'oe1052142006-10-21 21:46:47 -040014092 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014093fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014094
14095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097 echo "$as_me: failed program was:" >&5
14098sed 's/^/| /' conftest.$ac_ext >&5
14099
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014101if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014102 # try to guess the endianness by grepping values into an object file
14103 ac_cv_c_bigendian=unknown
14104 cat >conftest.$ac_ext <<_ACEOF
14105/* confdefs.h. */
14106_ACEOF
14107cat confdefs.h >>conftest.$ac_ext
14108cat >>conftest.$ac_ext <<_ACEOF
14109/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14111short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014112void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014113short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14114short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014115void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14116int
14117main ()
14118{
14119 _ascii (); _ebcdic ();
14120 ;
14121 return 0;
14122}
14123_ACEOF
14124rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014125if { (ac_try="$ac_compile"
14126case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129esac
14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014141 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14142 ac_cv_c_bigendian=yes
14143fi
14144if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14145 if test "$ac_cv_c_bigendian" = unknown; then
14146 ac_cv_c_bigendian=no
14147 else
14148 # finding both strings is unlikely to happen, but who knows?
14149 ac_cv_c_bigendian=unknown
14150 fi
14151fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014152else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153 echo "$as_me: failed program was:" >&5
14154sed 's/^/| /' conftest.$ac_ext >&5
14155
Theodore Ts'oe1052142006-10-21 21:46:47 -040014156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014157fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158
14159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014160else
14161 cat >conftest.$ac_ext <<_ACEOF
14162/* confdefs.h. */
14163_ACEOF
14164cat confdefs.h >>conftest.$ac_ext
14165cat >>conftest.$ac_ext <<_ACEOF
14166/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014167$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014168int
14169main ()
14170{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014171
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014172 /* Are we little or big endian? From Harbison&Steele. */
14173 union
14174 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014175 long int l;
14176 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014177 } u;
14178 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014179 return u.c[sizeof (long int) - 1] == 1;
14180
14181 ;
14182 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014183}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184_ACEOF
14185rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014186if { (ac_try="$ac_link"
14187case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190esac
14191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014196 { (case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199esac
14200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014205 ac_cv_c_bigendian=no
14206else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014207 echo "$as_me: program exited with status $ac_status" >&5
14208echo "$as_me: failed program was:" >&5
14209sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014211( exit $ac_status )
14212ac_cv_c_bigendian=yes
14213fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014214rm -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 -040014215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014216
14217
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014218fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014219
14220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014221fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014222{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14223echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224case $ac_cv_c_bigendian in
14225 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014227cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014228#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014229_ACEOF
14230 ;;
14231 no)
14232 ;;
14233 *)
14234 { { echo "$as_me:$LINENO: error: unknown endianness
14235presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14236echo "$as_me: error: unknown endianness
14237presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14238 { (exit 1); exit 1; }; } ;;
14239esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014240
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014241BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014242ASM_TYPES_HEADER=./asm_types.h
14243
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014244echo "/* These defines are needed for the public ext2fs.h header file */" \
14245 > public_config.h
14246if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14247 uniq tmp_config.$$ >> public_config.h
14248else
14249 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14250fi
14251if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14252 uniq tmp_config.$$ >> public_config.h
14253else
14254 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14255fi
14256rm -f tmp_config.$$
14257PUBLIC_CONFIG_HEADER=./public_config.h
14258
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014260for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014261do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014267 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014269ac_res=`eval echo '${'$as_ac_Header'}'`
14270 { echo "$as_me:$LINENO: result: $ac_res" >&5
14271echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014273 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276cat >conftest.$ac_ext <<_ACEOF
14277/* confdefs.h. */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
14281/* end confdefs.h. */
14282$ac_includes_default
14283#include <$ac_header>
14284_ACEOF
14285rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014286if { (ac_try="$ac_compile"
14287case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014302 ac_header_compiler=yes
14303else
14304 echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
Theodore Ts'oe1052142006-10-21 21:46:47 -040014307 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014308fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014309
14310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14312echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313
14314# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014315{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014317cat >conftest.$ac_ext <<_ACEOF
14318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
14323#include <$ac_header>
14324_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014325if { (ac_try="$ac_cpp conftest.$ac_ext"
14326case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014332 ac_status=$?
14333 grep -v '^ *+' conftest.er1 >conftest.err
14334 rm -f conftest.er1
14335 cat conftest.err >&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014337 (exit $ac_status); } >/dev/null && {
14338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14339 test ! -s conftest.err
14340 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014341 ac_header_preproc=yes
14342else
14343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 ac_header_preproc=no
14347fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014348
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014349rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14351echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014352
14353# So? What about this header?
14354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14355 yes:no: )
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14360 ac_header_preproc=yes
14361 ;;
14362 no:yes:* )
14363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376 ;;
14377esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383 eval "$as_ac_Header=\$ac_header_preproc"
14384fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014385ac_res=`eval echo '${'$as_ac_Header'}'`
14386 { echo "$as_me:$LINENO: result: $ac_res" >&5
14387echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014388
14389fi
14390if test `eval echo '${'$as_ac_Header'}'` = yes; then
14391 cat >>confdefs.h <<_ACEOF
14392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14393_ACEOF
14394
14395fi
14396
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014397done
14398
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14400echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014401if test "${ac_cv_type_intptr_t+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014403else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404 cat >conftest.$ac_ext <<_ACEOF
14405/* confdefs.h. */
14406_ACEOF
14407cat confdefs.h >>conftest.$ac_ext
14408cat >>conftest.$ac_ext <<_ACEOF
14409/* end confdefs.h. */
14410$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014411typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014412int
14413main ()
14414{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014415if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014416 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418 return 0;
14419 ;
14420 return 0;
14421}
14422_ACEOF
14423rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424if { (ac_try="$ac_compile"
14425case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428esac
14429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014431 ac_status=$?
14432 grep -v '^ *+' conftest.er1 >conftest.err
14433 rm -f conftest.er1
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014436 (exit $ac_status); } && {
14437 test -z "$ac_c_werror_flag" ||
14438 test ! -s conftest.err
14439 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014440 ac_cv_type_intptr_t=yes
14441else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014442 echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014444
Theodore Ts'oe1052142006-10-21 21:46:47 -040014445 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014447
14448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014449fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014450{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14451echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014453
14454cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014455#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456_ACEOF
14457
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014459fi
14460
Theodore Ts'oe1052142006-10-21 21:46:47 -040014461{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14462echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465else
14466 cat >conftest.$ac_ext <<_ACEOF
14467/* confdefs.h. */
14468_ACEOF
14469cat confdefs.h >>conftest.$ac_ext
14470cat >>conftest.$ac_ext <<_ACEOF
14471/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014472#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014473int
14474main ()
14475{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014476struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014477 ;
14478 return 0;
14479}
14480_ACEOF
14481rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014482if { (ac_try="$ac_compile"
14483case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486esac
14487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014498 e2fsprogs_cv_struct_st_flags=yes
14499else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
Theodore Ts'oe1052142006-10-21 21:46:47 -040014503 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014504fi
14505
Theodore Ts'oe1052142006-10-21 21:46:47 -040014506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507fi
14508
14509{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14510echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014511if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014512 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14513echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014514 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014516else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014517 cat >conftest.$ac_ext <<_ACEOF
14518/* confdefs.h. */
14519_ACEOF
14520cat confdefs.h >>conftest.$ac_ext
14521cat >>conftest.$ac_ext <<_ACEOF
14522/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014523#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014524int
14525main ()
14526{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014527struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014528 ;
14529 return 0;
14530}
14531_ACEOF
14532rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014533if { (ac_try="$ac_compile"
14534case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014549 e2fsprogs_cv_struct_st_flags_immut=yes
14550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014551 echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
Theodore Ts'oe1052142006-10-21 21:46:47 -040014554 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014555fi
14556
Theodore Ts'oe1052142006-10-21 21:46:47 -040014557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558fi
14559
14560 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14561echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014562 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014564#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014565_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014566
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014567 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014569{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14570echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014571if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014572 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014573else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014574 cat >conftest.$ac_ext <<_ACEOF
14575/* confdefs.h. */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014580#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014581 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014583int
14584main ()
14585{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014586static struct sockaddr ac_aggr;
14587if (ac_aggr.sa_len)
14588return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014589 ;
14590 return 0;
14591}
14592_ACEOF
14593rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014594if { (ac_try="$ac_compile"
14595case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14598esac
14599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014606 (exit $ac_status); } && {
14607 test -z "$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14609 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014610 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014611else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
Theodore Ts'oe1052142006-10-21 21:46:47 -040014615 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
14621#include <sys/types.h>
14622 #include <sys/socket.h>
14623
14624int
14625main ()
14626{
14627static struct sockaddr ac_aggr;
14628if (sizeof ac_aggr.sa_len)
14629return 0;
14630 ;
14631 return 0;
14632}
14633_ACEOF
14634rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014635if { (ac_try="$ac_compile"
14636case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639esac
14640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014642 ac_status=$?
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014651 ac_cv_member_struct_sockaddr_sa_len=yes
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
Theodore Ts'oe1052142006-10-21 21:46:47 -040014656 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014658
14659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014660fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014661
14662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14665echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014666if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014667
14668cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014669#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014670_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014671
14672fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014692
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014693
14694
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014695
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014696
Theodore Ts'o106ad962007-04-04 21:26:37 -040014697
14698
14699
Theodore Ts'o740837d2007-12-16 17:21:38 -050014700
14701
Theodore Ts'o261cd392008-01-21 13:45:00 -050014702
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014703
14704
14705for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014706do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014708{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14710if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014711 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014712else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014713 cat >conftest.$ac_ext <<_ACEOF
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
14718/* end confdefs.h. */
14719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14721#define $ac_func innocuous_$ac_func
14722
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014723/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014724 which can conflict with char $ac_func (); below.
14725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14726 <limits.h> exists even on freestanding compilers. */
14727
14728#ifdef __STDC__
14729# include <limits.h>
14730#else
14731# include <assert.h>
14732#endif
14733
14734#undef $ac_func
14735
Theodore Ts'oe1052142006-10-21 21:46:47 -040014736/* Override any GCC internal prototype to avoid an error.
14737 Use char because int might match the return type of a GCC
14738 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014739#ifdef __cplusplus
14740extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014741#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014742char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014743/* The GNU C library defines this for functions which it implements
14744 to always fail with ENOSYS. Some functions are actually named
14745 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014746#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014747choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014748#endif
14749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750int
14751main ()
14752{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014753return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014754 ;
14755 return 0;
14756}
14757_ACEOF
14758rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014759if { (ac_try="$ac_link"
14760case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763esac
14764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest$ac_exeext &&
14775 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014776 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014777else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014778 echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014780
Theodore Ts'oe1052142006-10-21 21:46:47 -040014781 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014782fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014783
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014785 conftest$ac_exeext conftest.$ac_ext
14786fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014787ac_res=`eval echo '${'$as_ac_var'}'`
14788 { echo "$as_me:$LINENO: result: $ac_res" >&5
14789echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014790if test `eval echo '${'$as_ac_var'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793_ACEOF
14794
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014795fi
14796done
14797
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014798SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014799{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14800echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014801if test "${ac_cv_lib_socket_socket+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014804 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014805LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014806cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h. */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h. */
14812
Theodore Ts'oe1052142006-10-21 21:46:47 -040014813/* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014816#ifdef __cplusplus
14817extern "C"
14818#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014819char socket ();
14820int
14821main ()
14822{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014829if { (ac_try="$ac_link"
14830case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833esac
14834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest$ac_exeext &&
14845 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014846 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014847else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014850
Theodore Ts'oe1052142006-10-21 21:46:47 -040014851 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014852fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014853
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014855 conftest$ac_exeext conftest.$ac_ext
14856LIBS=$ac_check_lib_save_LIBS
14857fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014858{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14859echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014860if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014861 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014862fi
14863
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014864
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014865DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014866{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14867echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014868if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014871 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014872LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014873cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879
Theodore Ts'oe1052142006-10-21 21:46:47 -040014880/* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014883#ifdef __cplusplus
14884extern "C"
14885#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014886char dlopen ();
14887int
14888main ()
14889{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014890return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014896if { (ac_try="$ac_link"
14897case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest$ac_exeext &&
14912 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014913 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014914else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014917
Theodore Ts'oe1052142006-10-21 21:46:47 -040014918 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014920
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014922 conftest$ac_exeext conftest.$ac_ext
14923LIBS=$ac_check_lib_save_LIBS
14924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014925{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14926echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014927if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014928 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014929cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014930#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014931_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014932
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014933fi
14934
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014935
Theodore Ts'oe1052142006-10-21 21:46:47 -040014936{ echo "$as_me:$LINENO: checking for optreset" >&5
14937echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014938if test "${ac_cv_have_optreset+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014940else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014941 cat >conftest.$ac_ext <<_ACEOF
14942/* confdefs.h. */
14943_ACEOF
14944cat confdefs.h >>conftest.$ac_ext
14945cat >>conftest.$ac_ext <<_ACEOF
14946/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014947#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948
14949_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014952 ac_cv_have_optreset=yes
14953else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014954 ac_cv_have_optreset=no
14955fi
14956rm -f conftest*
14957
14958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014959{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14960echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014961if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014962 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014963#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014964_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014965
14966fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014967{ echo "$as_me:$LINENO: checking for unified diff option" >&5
14968echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040014969if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014970 UNI_DIFF_OPTS=-u
14971else
14972 UNI_DIFF_OPTS=-c
14973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014974{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14975echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014976
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014977case "$host_os" in
14978linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014979 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014980#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014981_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014982
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014983 ;;
14984esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014985LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014986CYGWIN_CMT="#"
14987UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014988case "$host_os" in
14989linux*)
14990 LINUX_CMT=
14991 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014992cygwin)
14993 CYGWIN_CMT=
14994 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014995 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014996esac
14997
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014998
14999
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015000case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015001linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015002 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15003 root_prefix="";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015004 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15005echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015006 fi
15007 ;;
15008esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015009case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015010linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015011 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015012 prefix="/usr";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015013 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15014echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015015 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015016 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15017echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015018 mandir=/usr/share/man
15019 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015020 fi
15021;;
15022esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015023if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015024 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015025 root_prefix="$ac_default_prefix"
15026 else
15027 root_prefix="$prefix"
15028 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015029 root_bindir=$bindir
15030 root_sbindir=$sbindir
15031 root_libdir=$libdir
15032 root_sysconfdir=$sysconfdir
15033else
15034 root_bindir='${root_prefix}/bin'
15035 root_sbindir='${root_prefix}/sbin'
15036 root_libdir='${root_prefix}/lib'
15037 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015038fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015039if test "$bindir" != '${exec_prefix}/bin'; then
15040 root_bindir=$bindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015041 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15042echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015043fi
15044if test "$sbindir" != '${exec_prefix}/sbin'; then
15045 root_sbindir=$sbindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015046 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15047echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015048fi
15049if test "$libdir" != '${exec_prefix}/lib'; then
15050 root_libdir=$libdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015051 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15052echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015053fi
15054if test "$sysconfdir" != '${prefix}/etc'; then
15055 root_sysconfdir=$sysconfdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015056 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15057echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015058fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015059
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015060
15061
15062
15063
Theodore Ts'oe1052142006-10-21 21:46:47 -040015064{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15065echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015066if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015068else
15069 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015070cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015076#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015077int
15078main ()
15079{
Theodore Ts'oae851481997-04-29 18:13:24 +000015080fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015081 ;
15082 return 0;
15083}
15084_ACEOF
15085rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015086if { (ac_try="$ac_link"
15087case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15090esac
15091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015093 ac_status=$?
15094 grep -v '^ *+' conftest.er1 >conftest.err
15095 rm -f conftest.er1
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015098 (exit $ac_status); } && {
15099 test -z "$ac_c_werror_flag" ||
15100 test ! -s conftest.err
15101 } && test -s conftest$ac_exeext &&
15102 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015103 ac_cv_e2fsprogs_use_static=yes
15104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015105 echo "$as_me: failed program was:" >&5
15106sed 's/^/| /' conftest.$ac_ext >&5
15107
Theodore Ts'oe1052142006-10-21 21:46:47 -040015108 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015109fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015110
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015112 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015113LDFLAGS=$SAVE_LDFLAGS
15114fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015115
Theodore Ts'odefde781999-01-04 07:39:19 +000015116case "$host_os" in
15117solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015118 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015119;;
15120esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015121{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15122echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015123LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015124if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015125 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015126fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015127
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015128case "$host_os" in
15129darwin*)
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015130 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15131echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015132 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015133#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015134_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015135
15136 ;;
15137esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015138SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15139ET_DIR=`cd ${srcdir}/lib/et; pwd`
15140
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015141
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015142if test "$cross_compiling" = yes ; then
15143 DO_TEST_SUITE=
15144else
15145 DO_TEST_SUITE=check
15146fi
15147
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015148INTL_FLAGS=
15149if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15150 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15151fi
15152
Theodore Ts'odd947da2005-11-09 18:37:07 -040015153if test $cross_compiling = no; then
15154 BUILD_CFLAGS="$CFLAGS"
15155 BUILD_LDFLAGS="$LDFLAGS"
15156else
15157 BUILD_CFLAGS=
15158 BUILD_LDFLAGS=
15159fi
15160
15161
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015162test -d lib || mkdir lib
15163test -d include || mkdir include
15164test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015165test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015166for i in MCONFIG Makefile e2fsprogs.spec \
15167 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015168 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15169 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015170 lib/uuid/Makefile lib/uuid/uuid_types.h \
15171 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015172 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15173 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015174 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015175 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15176 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15177 if test -d `dirname ${srcdir}/$i` ; then
15178 outlist="$outlist $i"
15179 fi
15180done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015181ac_config_files="$ac_config_files $outlist"
15182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015183cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015184# This file is a shell script that caches the results of configure
15185# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015186# scripts and configure runs, see configure's option --config-cache.
15187# It is not useful on other systems. If it contains results you don't
15188# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015189#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015190# config.status only pays attention to the cache file if you give it
15191# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015192#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015193# `ac_cv_env_foo' variables (set or unset) will be overridden when
15194# loading this file, other *unset* `ac_cv_foo' will be assigned the
15195# following values.
15196
15197_ACEOF
15198
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015199# The following way of writing the cache mishandles newlines in values,
15200# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015201# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015202# Ultrix sh set writes to stderr and can't be redirected directly,
15203# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015204(
15205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15206 eval ac_val=\$$ac_var
15207 case $ac_val in #(
15208 *${as_nl}*)
15209 case $ac_var in #(
15210 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15211echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15212 esac
15213 case $ac_var in #(
15214 _ | IFS | as_nl) ;; #(
15215 *) $as_unset $ac_var ;;
15216 esac ;;
15217 esac
15218 done
15219
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015220 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015221 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15222 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015223 # `set' does not quote correctly, so add quotes (double-quote
15224 # substitution turns \\\\ into \\, and sed turns \\ into \).
15225 sed -n \
15226 "s/'/'\\\\''/g;
15227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015228 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015229 *)
15230 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015232 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015233 esac |
15234 sort
15235) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015236 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015237 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015238 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015239 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15241 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015242 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15243 :end' >>confcache
15244if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15245 if test -w "$cache_file"; then
15246 test "x$cache_file" != "x/dev/null" &&
15247 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15248echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015249 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015250 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015251 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15252echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015253 fi
15254fi
15255rm -f confcache
15256
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015257test "x$prefix" = xNONE && prefix=$ac_default_prefix
15258# Let make expand exec_prefix.
15259test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15260
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015261# Transform confdefs.h into DEFS.
15262# Protect against shell expansion while executing Makefile rules.
15263# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015264#
15265# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015266# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015267# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015268ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015269t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015270:clear
15271s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015272t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015273s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015274t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015275b any
15276:quote
15277s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15278s/\[/\\&/g
15279s/\]/\\&/g
15280s/\$/$$/g
15281H
15282:any
15283${
15284 g
15285 s/^\n//
15286 s/\n/ /g
15287 p
15288}
15289'
15290DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015291
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015293ac_libobjs=
15294ac_ltlibobjs=
15295for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15296 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15298 ac_i=`echo "$ac_i" | sed "$ac_script"`
15299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15300 # will be set to the directory where LIBOBJS objects are built.
15301 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15302 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015303done
15304LIBOBJS=$ac_libobjs
15305
15306LTLIBOBJS=$ac_ltlibobjs
15307
15308
15309
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015310: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015311ac_clean_files_save=$ac_clean_files
15312ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15313{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15314echo "$as_me: creating $CONFIG_STATUS" >&6;}
15315cat >$CONFIG_STATUS <<_ACEOF
15316#! $SHELL
15317# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015318# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015319# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015320# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015322debug=false
15323ac_cs_recheck=false
15324ac_cs_silent=false
15325SHELL=\${CONFIG_SHELL-$SHELL}
15326_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015328cat >>$CONFIG_STATUS <<\_ACEOF
15329## --------------------- ##
15330## M4sh Initialization. ##
15331## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015332
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015333# Be more Bourne compatible
15334DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015335if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15336 emulate sh
15337 NULLCMD=:
15338 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15339 # is contrary to our usage. Disable this feature.
15340 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015341 setopt NO_GLOB_SUBST
15342else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015343 case `(set -o) 2>/dev/null` in
15344 *posix*) set -o posix ;;
15345esac
15346
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015347fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015348
15349
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015350
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015351
Theodore Ts'oe1052142006-10-21 21:46:47 -040015352# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015353# Avoid depending upon Character Ranges.
15354as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15355as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15356as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15357as_cr_digits='0123456789'
15358as_cr_alnum=$as_cr_Letters$as_cr_digits
15359
15360# The user is always right.
15361if test "${PATH_SEPARATOR+set}" != set; then
15362 echo "#! /bin/sh" >conf$$.sh
15363 echo "exit 0" >>conf$$.sh
15364 chmod +x conf$$.sh
15365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15366 PATH_SEPARATOR=';'
15367 else
15368 PATH_SEPARATOR=:
15369 fi
15370 rm -f conf$$.sh
15371fi
15372
Theodore Ts'oe1052142006-10-21 21:46:47 -040015373# Support unset when possible.
15374if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15375 as_unset=unset
15376else
15377 as_unset=false
15378fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015379
Theodore Ts'oe1052142006-10-21 21:46:47 -040015380
15381# IFS
15382# We need space, tab and new line, in precisely that order. Quoting is
15383# there to prevent editors from complaining about space-tab.
15384# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15385# splitting by setting IFS to empty value.)
15386as_nl='
15387'
15388IFS=" "" $as_nl"
15389
15390# Find who we are. Look in the path if we contain no directory separator.
15391case $0 in
15392 *[\\/]* ) as_myself=$0 ;;
15393 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015394for as_dir in $PATH
15395do
15396 IFS=$as_save_IFS
15397 test -z "$as_dir" && as_dir=.
15398 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15399done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015400IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015401
Theodore Ts'oe1052142006-10-21 21:46:47 -040015402 ;;
15403esac
15404# We did not find ourselves, most probably we were run as `sh COMMAND'
15405# in which case we are not to be found in the path.
15406if test "x$as_myself" = x; then
15407 as_myself=$0
15408fi
15409if test ! -f "$as_myself"; then
15410 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15411 { (exit 1); exit 1; }
15412fi
15413
15414# Work around bugs in pre-3.0 UWIN ksh.
15415for as_var in ENV MAIL MAILPATH
15416do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15417done
15418PS1='$ '
15419PS2='> '
15420PS4='+ '
15421
15422# NLS nuisances.
15423for as_var in \
15424 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15425 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15426 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015428 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15429 eval $as_var=C; export $as_var
15430 else
15431 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15432 fi
15433done
15434
15435# Required to use basename.
15436if expr a : '\(a\)' >/dev/null 2>&1 &&
15437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15438 as_expr=expr
15439else
15440 as_expr=false
15441fi
15442
15443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15444 as_basename=basename
15445else
15446 as_basename=false
15447fi
15448
15449
15450# Name of the executable.
15451as_me=`$as_basename -- "$0" ||
15452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15453 X"$0" : 'X\(//\)$' \| \
15454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15455echo X/"$0" |
15456 sed '/^.*\/\([^/][^/]*\)\/*$/{
15457 s//\1/
15458 q
15459 }
15460 /^X\/\(\/\/\)$/{
15461 s//\1/
15462 q
15463 }
15464 /^X\/\(\/\).*/{
15465 s//\1/
15466 q
15467 }
15468 s/.*/./; q'`
15469
15470# CDPATH.
15471$as_unset CDPATH
15472
15473
15474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015475 as_lineno_1=$LINENO
15476 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015477 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015478 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015480 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15481 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015482 # line-number line after each line using $LINENO; the second 'sed'
15483 # does the real work. The second script uses 'N' to pair each
15484 # line-number line with the line containing $LINENO, and appends
15485 # trailing '-' during substitution so that $LINENO is not a special
15486 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015487 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015488 # scripts with optimization help from Paolo Bonzini. Blame Lee
15489 # E. McMahon (1931-1989) for sed's syntax. :-)
15490 sed -n '
15491 p
15492 /[$]LINENO/=
15493 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015494 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015495 s/[$]LINENO.*/&-/
15496 t lineno
15497 b
15498 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015499 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015500 :loop
15501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015502 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015503 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015504 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015505 chmod +x "$as_me.lineno" ||
15506 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015507 { (exit 1); exit 1; }; }
15508
15509 # Don't try to exec as it changes $[0], causing all sort of problems
15510 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015511 # original and so on. Autoconf is especially sensitive to this).
15512 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015513 # Exit status is that of the last command.
15514 exit
15515}
15516
15517
Theodore Ts'oe1052142006-10-21 21:46:47 -040015518if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15519 as_dirname=dirname
15520else
15521 as_dirname=false
15522fi
15523
15524ECHO_C= ECHO_N= ECHO_T=
15525case `echo -n x` in
15526-n*)
15527 case `echo 'x\c'` in
15528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15529 *) ECHO_C='\c';;
15530 esac;;
15531*)
15532 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015533esac
15534
Theodore Ts'oe1052142006-10-21 21:46:47 -040015535if expr a : '\(a\)' >/dev/null 2>&1 &&
15536 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015537 as_expr=expr
15538else
15539 as_expr=false
15540fi
15541
15542rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015543if test -d conf$$.dir; then
15544 rm -f conf$$.dir/conf$$.file
15545else
15546 rm -f conf$$.dir
15547 mkdir conf$$.dir
15548fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015549echo >conf$$.file
15550if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015551 as_ln_s='ln -s'
15552 # ... but there are two gotchas:
15553 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15554 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15555 # In both cases, we have to default to `cp -p'.
15556 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015557 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015558elif ln conf$$.file conf$$ 2>/dev/null; then
15559 as_ln_s=ln
15560else
15561 as_ln_s='cp -p'
15562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15564rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015565
15566if mkdir -p . 2>/dev/null; then
15567 as_mkdir_p=:
15568else
15569 test -d ./-p && rmdir ./-p
15570 as_mkdir_p=false
15571fi
15572
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015573if test -x / >/dev/null 2>&1; then
15574 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015575else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015576 if ls -dL / >/dev/null 2>&1; then
15577 as_ls_L_option=L
15578 else
15579 as_ls_L_option=
15580 fi
15581 as_test_x='
15582 eval sh -c '\''
15583 if test -d "$1"; then
15584 test -d "$1/.";
15585 else
15586 case $1 in
15587 -*)set "./$1";;
15588 esac;
15589 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15590 ???[sx]*):;;*)false;;esac;fi
15591 '\'' sh
15592 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015593fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015594as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015595
15596# Sed expression to map a string onto a valid CPP name.
15597as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15598
15599# Sed expression to map a string onto a valid variable name.
15600as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15601
15602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015603exec 6>&1
15604
Theodore Ts'oe1052142006-10-21 21:46:47 -040015605# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015606# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015607# values after options handling.
15608ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015609This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015610generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015611
15612 CONFIG_FILES = $CONFIG_FILES
15613 CONFIG_HEADERS = $CONFIG_HEADERS
15614 CONFIG_LINKS = $CONFIG_LINKS
15615 CONFIG_COMMANDS = $CONFIG_COMMANDS
15616 $ $0 $@
15617
Theodore Ts'oe1052142006-10-21 21:46:47 -040015618on `(hostname || uname -n) 2>/dev/null | sed 1q`
15619"
15620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015621_ACEOF
15622
Theodore Ts'oe1052142006-10-21 21:46:47 -040015623cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015624# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015625config_files="$ac_config_files"
15626config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015627
Theodore Ts'oe1052142006-10-21 21:46:47 -040015628_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015629
15630cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015631ac_cs_usage="\
15632\`$as_me' instantiates files from templates according to the
15633current configuration.
15634
15635Usage: $0 [OPTIONS] [FILE]...
15636
15637 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015638 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015639 -q, --quiet do not print progress messages
15640 -d, --debug don't remove temporary files
15641 --recheck update $as_me by reconfiguring in the same conditions
15642 --file=FILE[:TEMPLATE]
15643 instantiate the configuration file FILE
15644
15645Configuration files:
15646$config_files
15647
15648Configuration commands:
15649$config_commands
15650
15651Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015652
Theodore Ts'oe1052142006-10-21 21:46:47 -040015653_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015654cat >>$CONFIG_STATUS <<_ACEOF
15655ac_cs_version="\\
15656config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015657configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015658 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015659
Theodore Ts'oe1052142006-10-21 21:46:47 -040015660Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015661This config.status script is free software; the Free Software Foundation
15662gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015663
15664ac_pwd='$ac_pwd'
15665srcdir='$srcdir'
15666INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015667_ACEOF
15668
15669cat >>$CONFIG_STATUS <<\_ACEOF
15670# If no file are specified by the user, then we need to provide default
15671# value. By we need to know if files were specified by the user.
15672ac_need_defaults=:
15673while test $# != 0
15674do
15675 case $1 in
15676 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015679 ac_shift=:
15680 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015681 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015682 ac_option=$1
15683 ac_optarg=$2
15684 ac_shift=shift
15685 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015686 esac
15687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015688 case $ac_option in
15689 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15691 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015692 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15693 echo "$ac_cs_version"; exit ;;
15694 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015695 debug=: ;;
15696 --file | --fil | --fi | --f )
15697 $ac_shift
15698 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15699 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015700 --he | --h | --help | --hel | -h )
15701 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15704 ac_cs_silent=: ;;
15705
15706 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015707 -*) { echo "$as_me: error: unrecognized option: $1
15708Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015709 { (exit 1); exit 1; }; } ;;
15710
Theodore Ts'oe1052142006-10-21 21:46:47 -040015711 *) ac_config_targets="$ac_config_targets $1"
15712 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015713
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015714 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015715 shift
15716done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015718ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015720if $ac_cs_silent; then
15721 exec 6>/dev/null
15722 ac_configure_extra_args="$ac_configure_extra_args --silent"
15723fi
15724
15725_ACEOF
15726cat >>$CONFIG_STATUS <<_ACEOF
15727if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015728 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15729 CONFIG_SHELL=$SHELL
15730 export CONFIG_SHELL
15731 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015732fi
15733
15734_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015735cat >>$CONFIG_STATUS <<\_ACEOF
15736exec 5>>config.log
15737{
15738 echo
15739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15740## Running $as_me. ##
15741_ASBOX
15742 echo "$ac_log"
15743} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015744
Theodore Ts'oe1052142006-10-21 21:46:47 -040015745_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015746cat >>$CONFIG_STATUS <<_ACEOF
15747#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015748# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015749#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015750# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015751 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015752 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015753 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015754 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15755 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015756
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015757
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015758_ACEOF
15759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015760cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015761
15762# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015763for ac_config_target in $ac_config_targets
15764do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015765 case $ac_config_target in
15766 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15767 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015769 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15770echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15771 { (exit 1); exit 1; }; };;
15772 esac
15773done
15774
Theodore Ts'oe1052142006-10-21 21:46:47 -040015775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015776# If the user did not use the arguments to specify the items to instantiate,
15777# then the envvar interface is used. Set only those that are not.
15778# We use the long form for the default assignment because of an extremely
15779# bizarre bug on SunOS 4.1.3.
15780if $ac_need_defaults; then
15781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15783fi
15784
15785# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015786# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015787# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015788# Hook for its removal unless debugging.
15789# Note that there is a small window in which the directory will not be cleaned:
15790# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015791$debug ||
15792{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015793 tmp=
15794 trap 'exit_status=$?
15795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15796' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015797 trap '{ (exit 1); exit 1; }' 1 2 13 15
15798}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799# Create a (secure) tmp directory for tmp files.
15800
15801{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015803 test -n "$tmp" && test -d "$tmp"
15804} ||
15805{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015806 tmp=./conf$$-$RANDOM
15807 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015808} ||
15809{
15810 echo "$me: cannot create a temporary directory in ." >&2
15811 { (exit 1); exit 1; }
15812}
15813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015814#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015815# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015816#
15817
15818# No need to generate the scripts if there are no CONFIG_FILES.
15819# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015820if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015821
15822_ACEOF
15823
Theodore Ts'oe1052142006-10-21 21:46:47 -040015824# Create sed commands to just substitute file output variables.
15825
15826# Remaining file output variables are in a fragment that also has non-file
15827# output varibles.
15828
15829
15830
15831ac_delim='%!_!# '
15832for ac_last_try in false false false false false :; do
15833 cat >conf$$subs.sed <<_ACEOF
15834SHELL!$SHELL$ac_delim
15835PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15836PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15837PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15838PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15839PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15840PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15841exec_prefix!$exec_prefix$ac_delim
15842prefix!$prefix$ac_delim
15843program_transform_name!$program_transform_name$ac_delim
15844bindir!$bindir$ac_delim
15845sbindir!$sbindir$ac_delim
15846libexecdir!$libexecdir$ac_delim
15847datarootdir!$datarootdir$ac_delim
15848datadir!$datadir$ac_delim
15849sysconfdir!$sysconfdir$ac_delim
15850sharedstatedir!$sharedstatedir$ac_delim
15851localstatedir!$localstatedir$ac_delim
15852includedir!$includedir$ac_delim
15853oldincludedir!$oldincludedir$ac_delim
15854docdir!$docdir$ac_delim
15855infodir!$infodir$ac_delim
15856htmldir!$htmldir$ac_delim
15857dvidir!$dvidir$ac_delim
15858pdfdir!$pdfdir$ac_delim
15859psdir!$psdir$ac_delim
15860libdir!$libdir$ac_delim
15861localedir!$localedir$ac_delim
15862mandir!$mandir$ac_delim
15863DEFS!$DEFS$ac_delim
15864ECHO_C!$ECHO_C$ac_delim
15865ECHO_N!$ECHO_N$ac_delim
15866ECHO_T!$ECHO_T$ac_delim
15867LIBS!$LIBS$ac_delim
15868build_alias!$build_alias$ac_delim
15869host_alias!$host_alias$ac_delim
15870target_alias!$target_alias$ac_delim
15871E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15872E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15873E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15874E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015875E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015876build!$build$ac_delim
15877build_cpu!$build_cpu$ac_delim
15878build_vendor!$build_vendor$ac_delim
15879build_os!$build_os$ac_delim
15880host!$host$ac_delim
15881host_cpu!$host_cpu$ac_delim
15882host_vendor!$host_vendor$ac_delim
15883host_os!$host_os$ac_delim
15884CC!$CC$ac_delim
15885CFLAGS!$CFLAGS$ac_delim
15886LDFLAGS!$LDFLAGS$ac_delim
15887CPPFLAGS!$CPPFLAGS$ac_delim
15888ac_ct_CC!$ac_ct_CC$ac_delim
15889EXEEXT!$EXEEXT$ac_delim
15890OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015891CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015892LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015893GREP!$GREP$ac_delim
15894EGREP!$EGREP$ac_delim
15895LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15896MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15897HTREE_CMT!$HTREE_CMT$ac_delim
15898ELF_CMT!$ELF_CMT$ac_delim
15899BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15900PROFILE_CMT!$PROFILE_CMT$ac_delim
15901CHECKER_CMT!$CHECKER_CMT$ac_delim
15902LIB_EXT!$LIB_EXT$ac_delim
15903STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15904PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oaf773652008-09-01 11:27:27 -040015905TEST_IO_CMT!$TEST_IO_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015906DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015907_ACEOF
15908
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015909 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015910 break
15911 elif $ac_last_try; then
15912 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15913echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15914 { (exit 1); exit 1; }; }
15915 else
15916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015917 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015918done
15919
15920ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15921if test -n "$ac_eof"; then
15922 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15923 ac_eof=`expr $ac_eof + 1`
15924fi
15925
15926cat >>$CONFIG_STATUS <<_ACEOF
15927cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15929/^[ ]*@MCONFIG@[ ]*$/{
15930r $MCONFIG
15931d
15932}
15933/^[ ]*@MAKEFILE_ELF@[ ]*$/{
15934r $MAKEFILE_ELF
15935d
15936}
15937/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15938r $MAKEFILE_BSDLIB
15939d
15940}
15941/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15942r $MAKEFILE_PROFILE
15943d
15944}
15945/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15946r $MAKEFILE_CHECKER
15947d
15948}
15949/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15950r $MAKEFILE_LIBRARY
15951d
15952}
15953/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15954r $ASM_TYPES_HEADER
15955d
15956}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015957/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
15958r $PUBLIC_CONFIG_HEADER
15959d
15960}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015961_ACEOF
15962sed '
15963s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15964s/^/s,@/; s/!/@,|#_!!_#|/
15965:n
15966t n
15967s/'"$ac_delim"'$/,g/; t
15968s/$/\\/; p
15969N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15970' >>$CONFIG_STATUS <conf$$subs.sed
15971rm -f conf$$subs.sed
15972cat >>$CONFIG_STATUS <<_ACEOF
15973CEOF$ac_eof
15974_ACEOF
15975
15976
15977ac_delim='%!_!# '
15978for ac_last_try in false false false false false :; do
15979 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'oaf773652008-09-01 11:27:27 -040015980IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015981RESIZER_CMT!$RESIZER_CMT$ac_delim
15982FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015983FSCK_MAN!$FSCK_MAN$ac_delim
15984E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15985E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050015986UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015987GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15988PACKAGE!$PACKAGE$ac_delim
15989VERSION!$VERSION$ac_delim
15990SET_MAKE!$SET_MAKE$ac_delim
15991INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15992INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15993INSTALL_DATA!$INSTALL_DATA$ac_delim
15994MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15995USE_NLS!$USE_NLS$ac_delim
15996MSGFMT!$MSGFMT$ac_delim
15997GMSGFMT!$GMSGFMT$ac_delim
15998XGETTEXT!$XGETTEXT$ac_delim
15999MSGMERGE!$MSGMERGE$ac_delim
16000RANLIB!$RANLIB$ac_delim
16001ALLOCA!$ALLOCA$ac_delim
16002GLIBC21!$GLIBC21$ac_delim
16003HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16004HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16005HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16006HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16007LIBICONV!$LIBICONV$ac_delim
16008LTLIBICONV!$LTLIBICONV$ac_delim
16009INTLBISON!$INTLBISON$ac_delim
16010BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16011USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16012CATOBJEXT!$CATOBJEXT$ac_delim
16013DATADIRNAME!$DATADIRNAME$ac_delim
16014INSTOBJEXT!$INSTOBJEXT$ac_delim
16015GENCAT!$GENCAT$ac_delim
16016INTLOBJS!$INTLOBJS$ac_delim
16017INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16018INTLLIBS!$INTLLIBS$ac_delim
16019LIBINTL!$LIBINTL$ac_delim
16020LTLIBINTL!$LTLIBINTL$ac_delim
16021POSUB!$POSUB$ac_delim
16022BINARY_TYPE!$BINARY_TYPE$ac_delim
16023LN!$LN$ac_delim
16024LN_S!$LN_S$ac_delim
16025MV!$MV$ac_delim
16026CP!$CP$ac_delim
16027RM!$RM$ac_delim
16028CHMOD!$CHMOD$ac_delim
16029AWK!$AWK$ac_delim
16030SED!$SED$ac_delim
16031PERL!$PERL$ac_delim
16032LDCONFIG!$LDCONFIG$ac_delim
16033AR!$AR$ac_delim
16034STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016035MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016036BUILD_CC!$BUILD_CC$ac_delim
16037SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16038SIZEOF_INT!$SIZEOF_INT$ac_delim
16039SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16040SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16041SOCKET_LIB!$SOCKET_LIB$ac_delim
16042DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16043UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16044LINUX_CMT!$LINUX_CMT$ac_delim
16045CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16046UNIX_CMT!$UNIX_CMT$ac_delim
16047root_prefix!$root_prefix$ac_delim
16048root_bindir!$root_bindir$ac_delim
16049root_sbindir!$root_sbindir$ac_delim
16050root_libdir!$root_libdir$ac_delim
16051root_sysconfdir!$root_sysconfdir$ac_delim
16052LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16053SS_DIR!$SS_DIR$ac_delim
16054ET_DIR!$ET_DIR$ac_delim
16055DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16056INTL_FLAGS!$INTL_FLAGS$ac_delim
16057BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16058BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16059LIBOBJS!$LIBOBJS$ac_delim
16060LTLIBOBJS!$LTLIBOBJS$ac_delim
16061_ACEOF
16062
Theodore Ts'oaf773652008-09-01 11:27:27 -040016063 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016064 break
16065 elif $ac_last_try; then
16066 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16067echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16068 { (exit 1); exit 1; }; }
16069 else
16070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16071 fi
16072done
16073
16074ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16075if test -n "$ac_eof"; then
16076 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16077 ac_eof=`expr $ac_eof + 1`
16078fi
16079
16080cat >>$CONFIG_STATUS <<_ACEOF
16081cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16083_ACEOF
16084sed '
16085s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16086s/^/s,@/; s/!/@,|#_!!_#|/
16087:n
16088t n
16089s/'"$ac_delim"'$/,g/; t
16090s/$/\\/; p
16091N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16092' >>$CONFIG_STATUS <conf$$subs.sed
16093rm -f conf$$subs.sed
16094cat >>$CONFIG_STATUS <<_ACEOF
16095:end
16096s/|#_!!_#|//g
16097CEOF$ac_eof
16098_ACEOF
16099
16100
16101# VPATH may cause trouble with some makes, so we remove $(srcdir),
16102# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16103# trailing colons and then remove the whole line if VPATH becomes empty
16104# (actually we leave an empty line to preserve line numbers).
16105if test "x$srcdir" = x.; then
16106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16107s/:*\$(srcdir):*/:/
16108s/:*\${srcdir}:*/:/
16109s/:*@srcdir@:*/:/
16110s/^\([^=]*=[ ]*\):*/\1/
16111s/:*$//
16112s/^[^=]*=[ ]*$//
16113}'
16114fi
16115
16116cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016117fi # test -n "$CONFIG_FILES"
16118
Theodore Ts'oe1052142006-10-21 21:46:47 -040016119
16120for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16121do
16122 case $ac_tag in
16123 :[FHLC]) ac_mode=$ac_tag; continue;;
16124 esac
16125 case $ac_mode$ac_tag in
16126 :[FHL]*:*);;
16127 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16128echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16129 { (exit 1); exit 1; }; };;
16130 :[FH]-) ac_tag=-:-;;
16131 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16132 esac
16133 ac_save_IFS=$IFS
16134 IFS=:
16135 set x $ac_tag
16136 IFS=$ac_save_IFS
16137 shift
16138 ac_file=$1
16139 shift
16140
16141 case $ac_mode in
16142 :L) ac_source=$1;;
16143 :[FH])
16144 ac_file_inputs=
16145 for ac_f
16146 do
16147 case $ac_f in
16148 -) ac_f="$tmp/stdin";;
16149 *) # Look for the file first in the build tree, then in the source tree
16150 # (if the path is not absolute). The absolute path cannot be DOS-style,
16151 # because $ac_f cannot contain `:'.
16152 test -f "$ac_f" ||
16153 case $ac_f in
16154 [\\/$]*) false;;
16155 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16156 esac ||
16157 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16158echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16159 { (exit 1); exit 1; }; };;
16160 esac
16161 ac_file_inputs="$ac_file_inputs $ac_f"
16162 done
16163
16164 # Let's still pretend it is `configure' which instantiates (i.e., don't
16165 # use $as_me), people would be surprised to read:
16166 # /* config.h. Generated by config.status. */
16167 configure_input="Generated from "`IFS=:
16168 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16169 if test x"$ac_file" != x-; then
16170 configure_input="$ac_file. $configure_input"
16171 { echo "$as_me:$LINENO: creating $ac_file" >&5
16172echo "$as_me: creating $ac_file" >&6;}
16173 fi
16174
16175 case $ac_tag in
16176 *:-:* | *:-) cat >"$tmp/stdin";;
16177 esac
16178 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016179 esac
16180
Theodore Ts'oe1052142006-10-21 21:46:47 -040016181 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016182$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16183 X"$ac_file" : 'X\(//\)[^/]' \| \
16184 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016186echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16188 s//\1/
16189 q
16190 }
16191 /^X\(\/\/\)[^/].*/{
16192 s//\1/
16193 q
16194 }
16195 /^X\(\/\/\)$/{
16196 s//\1/
16197 q
16198 }
16199 /^X\(\/\).*/{
16200 s//\1/
16201 q
16202 }
16203 s/.*/./; q'`
16204 { as_dir="$ac_dir"
16205 case $as_dir in #(
16206 -*) as_dir=./$as_dir;;
16207 esac
16208 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016209 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016210 while :; do
16211 case $as_dir in #(
16212 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16213 *) as_qdir=$as_dir;;
16214 esac
16215 as_dirs="'$as_qdir' $as_dirs"
16216 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016217$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16218 X"$as_dir" : 'X\(//\)[^/]' \| \
16219 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016221echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16223 s//\1/
16224 q
16225 }
16226 /^X\(\/\/\)[^/].*/{
16227 s//\1/
16228 q
16229 }
16230 /^X\(\/\/\)$/{
16231 s//\1/
16232 q
16233 }
16234 /^X\(\/\).*/{
16235 s//\1/
16236 q
16237 }
16238 s/.*/./; q'`
16239 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016240 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016241 test -z "$as_dirs" || eval "mkdir $as_dirs"
16242 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16243echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016244 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016245 ac_builddir=.
16246
Theodore Ts'oe1052142006-10-21 21:46:47 -040016247case "$ac_dir" in
16248.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16249*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016251 # A ".." for each directory in $ac_dir_suffix.
16252 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16253 case $ac_top_builddir_sub in
16254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16256 esac ;;
16257esac
16258ac_abs_top_builddir=$ac_pwd
16259ac_abs_builddir=$ac_pwd$ac_dir_suffix
16260# for backward compatibility:
16261ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016262
16263case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016264 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016265 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016266 ac_top_srcdir=$ac_top_builddir_sub
16267 ac_abs_top_srcdir=$ac_pwd ;;
16268 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016269 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016270 ac_top_srcdir=$srcdir
16271 ac_abs_top_srcdir=$srcdir ;;
16272 *) # Relative name.
16273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16274 ac_top_srcdir=$ac_top_build_prefix$srcdir
16275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016276esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016277ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016279
Theodore Ts'oe1052142006-10-21 21:46:47 -040016280 case $ac_mode in
16281 :F)
16282 #
16283 # CONFIG_FILE
16284 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016285
16286 case $INSTALL in
16287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016289 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016290_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016291
16292cat >>$CONFIG_STATUS <<\_ACEOF
16293# If the template does not know about datarootdir, expand it.
16294# FIXME: This hack should be removed a few years after 2.60.
16295ac_datarootdir_hack=; ac_datarootdir_seen=
16296
16297case `sed -n '/datarootdir/ {
16298 p
16299 q
16300}
16301/@datadir@/p
16302/@docdir@/p
16303/@infodir@/p
16304/@localedir@/p
16305/@mandir@/p
16306' $ac_file_inputs` in
16307*datarootdir*) ac_datarootdir_seen=yes;;
16308*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16309 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16310echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16311_ACEOF
16312cat >>$CONFIG_STATUS <<_ACEOF
16313 ac_datarootdir_hack='
16314 s&@datadir@&$datadir&g
16315 s&@docdir@&$docdir&g
16316 s&@infodir@&$infodir&g
16317 s&@localedir@&$localedir&g
16318 s&@mandir@&$mandir&g
16319 s&\\\${datarootdir}&$datarootdir&g' ;;
16320esac
16321_ACEOF
16322
16323# Neutralize VPATH when `$srcdir' = `.'.
16324# Shell code in configure.ac might set extrasub.
16325# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016326cat >>$CONFIG_STATUS <<_ACEOF
16327 sed "$ac_vpsub
16328$extrasub
16329_ACEOF
16330cat >>$CONFIG_STATUS <<\_ACEOF
16331:t
16332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016333s&@configure_input@&$configure_input&;t t
16334s&@top_builddir@&$ac_top_builddir_sub&;t t
16335s&@srcdir@&$ac_srcdir&;t t
16336s&@abs_srcdir@&$ac_abs_srcdir&;t t
16337s&@top_srcdir@&$ac_top_srcdir&;t t
16338s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16339s&@builddir@&$ac_builddir&;t t
16340s&@abs_builddir@&$ac_abs_builddir&;t t
16341s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16342s&@INSTALL@&$ac_INSTALL&;t t
16343$ac_datarootdir_hack
16344" $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 -050016345
Theodore Ts'oe1052142006-10-21 21:46:47 -040016346test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16347 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16348 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16349 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16350which seems to be undefined. Please make sure it is defined." >&5
16351echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16352which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016353
Theodore Ts'oe1052142006-10-21 21:46:47 -040016354 rm -f "$tmp/stdin"
16355 case $ac_file in
16356 -) cat "$tmp/out"; rm -f "$tmp/out";;
16357 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16358 esac
16359 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016360
16361
Theodore Ts'oe1052142006-10-21 21:46:47 -040016362 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16363echo "$as_me: executing $ac_file commands" >&6;}
16364 ;;
16365 esac
16366
16367
16368 case $ac_file$ac_mode in
16369 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016370 for ac_file in $CONFIG_FILES; do
16371 # Support "outfile[:infile[:infile...]]"
16372 case "$ac_file" in
16373 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016374 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016375 # PO directories have a Makefile.in generated from Makefile.in.in.
16376 case "$ac_file" in */Makefile.in)
16377 # Adjust a relative srcdir.
16378 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16379 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16380 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16381 # In autoconf-2.13 it is called $ac_given_srcdir.
16382 # In autoconf-2.50 it is called $srcdir.
16383 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16384 case "$ac_given_srcdir" in
16385 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16386 /*) top_srcdir="$ac_given_srcdir" ;;
16387 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16388 esac
16389 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16390 rm -f "$ac_dir/POTFILES"
16391 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16392 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 -050016393 POMAKEFILEDEPS="POTFILES.in"
16394 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016395 # on $ac_dir but don't depend on user-specified configuration
16396 # parameters.
16397 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16398 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016399 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016400 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16401 fi
16402 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16403 # Hide the ALL_LINGUAS assigment from automake.
16404 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016405 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16406 else
16407 # The set of available languages was given in configure.in.
16408 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016409 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016410 # Compute POFILES
16411 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16412 # Compute UPDATEPOFILES
16413 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16414 # Compute DUMMYPOFILES
16415 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16416 # Compute GMOFILES
16417 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016418 case "$ac_given_srcdir" in
16419 .) srcdirpre= ;;
16420 *) srcdirpre='$(srcdir)/' ;;
16421 esac
16422 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016423 UPDATEPOFILES=
16424 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016425 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016426 for lang in $ALL_LINGUAS; do
16427 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016428 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16429 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016430 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016431 done
16432 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16433 # environment variable.
16434 INST_LINGUAS=
16435 if test -n "$ALL_LINGUAS"; then
16436 for presentlang in $ALL_LINGUAS; do
16437 useit=no
16438 if test "%UNSET%" != "$LINGUAS"; then
16439 desiredlanguages="$LINGUAS"
16440 else
16441 desiredlanguages="$ALL_LINGUAS"
16442 fi
16443 for desiredlang in $desiredlanguages; do
16444 # Use the presentlang catalog if desiredlang is
16445 # a. equal to presentlang, or
16446 # b. a variant of presentlang (because in this case,
16447 # presentlang can be used as a fallback for messages
16448 # which are not translated in the desiredlang catalog).
16449 case "$desiredlang" in
16450 "$presentlang"*) useit=yes;;
16451 esac
16452 done
16453 if test $useit = yes; then
16454 INST_LINGUAS="$INST_LINGUAS $presentlang"
16455 fi
16456 done
16457 fi
16458 CATALOGS=
16459 if test -n "$INST_LINGUAS"; then
16460 for lang in $INST_LINGUAS; do
16461 CATALOGS="$CATALOGS $lang.gmo"
16462 done
16463 fi
16464 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016465 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 -040016466 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16467 if test -f "$f"; then
16468 case "$f" in
16469 *.orig | *.bak | *~) ;;
16470 *) cat "$f" >> "$ac_dir/Makefile" ;;
16471 esac
16472 fi
16473 done
16474 fi
16475 ;;
16476 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016477 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016478
Theodore Ts'oe1052142006-10-21 21:46:47 -040016479 esac
16480done # for ac_tag
16481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016482
16483{ (exit 0); exit 0; }
16484_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016485chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016486ac_clean_files=$ac_clean_files_save
16487
16488
16489# configure is writing to config.log, and then calls config.status.
16490# config.status does its own redirection, appending to config.log.
16491# Unfortunately, on DOS this fails, as config.log is still kept open
16492# by configure, so config.status won't be able to write to it; its
16493# output is simply discarded. So we exec the FD to /dev/null,
16494# effectively closing config.log, so it can be properly (re)opened and
16495# appended to by config.status. When coming back to configure, we
16496# need to make the FD available again.
16497if test "$no_create" != yes; then
16498 ac_cs_success=:
16499 ac_config_status_args=
16500 test "$silent" = yes &&
16501 ac_config_status_args="$ac_config_status_args --quiet"
16502 exec 5>/dev/null
16503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16504 exec 5>>config.log
16505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16506 # would make configure fail if this is the last instruction.
16507 $ac_cs_success || { (exit 1); exit 1; }
16508fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016509
Theodore Ts'oee683a12005-02-05 15:53:56 -050016510if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16511