blob: db058bd27cbb480deb62319daf5ae6d812bc2313 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400687DEBUGFS_CMT
688IMAGER_CMT
689RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400690FSCK_PROG
691FSCK_MAN
692E2INITRD_PROG
693E2INITRD_MAN
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500694PKG_CONFIG
Theodore Ts'oe1052142006-10-21 21:46:47 -0400695DEVMAPPER_REQ
696DEVMAPPER_PC_LIBS
697DEVMAPPER_LIBS
698STATIC_DEVMAPPER_LIBS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500699STATIC_BLKID_DEVMAPPER_LIBS
Theodore Ts'o5610f992007-12-31 11:16:56 -0500700UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400701GETTEXT_PACKAGE
702PACKAGE
703VERSION
704SET_MAKE
705INSTALL_PROGRAM
706INSTALL_SCRIPT
707INSTALL_DATA
708MKINSTALLDIRS
709USE_NLS
710MSGFMT
711GMSGFMT
712XGETTEXT
713MSGMERGE
714RANLIB
715ALLOCA
716GLIBC21
717HAVE_POSIX_PRINTF
718HAVE_ASPRINTF
719HAVE_SNPRINTF
720HAVE_WPRINTF
721LIBICONV
722LTLIBICONV
723INTLBISON
724BUILD_INCLUDED_LIBINTL
725USE_INCLUDED_LIBINTL
726CATOBJEXT
727DATADIRNAME
728INSTOBJEXT
729GENCAT
730INTLOBJS
731INTL_LIBTOOL_SUFFIX_PREFIX
732INTLLIBS
733LIBINTL
734LTLIBINTL
735POSUB
736BINARY_TYPE
737LN
738LN_S
739MV
740CP
741RM
742CHMOD
743AWK
744SED
745PERL
746LDCONFIG
747AR
748STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530749MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400750BUILD_CC
751SIZEOF_SHORT
752SIZEOF_INT
753SIZEOF_LONG
754SIZEOF_LONG_LONG
755SOCKET_LIB
756DLOPEN_LIB
757UNI_DIFF_OPTS
758LINUX_CMT
759CYGWIN_CMT
760UNIX_CMT
761root_prefix
762root_bindir
763root_sbindir
764root_libdir
765root_sysconfdir
766LDFLAG_STATIC
767SS_DIR
768ET_DIR
769DO_TEST_SUITE
770INTL_FLAGS
771BUILD_CFLAGS
772BUILD_LDFLAGS
773LIBOBJS
774LTLIBOBJS'
775ac_subst_files='MCONFIG
776MAKEFILE_ELF
777MAKEFILE_BSDLIB
778MAKEFILE_PROFILE
779MAKEFILE_CHECKER
780MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400781ASM_TYPES_HEADER
782PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400783 ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400789LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400790CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500791CPP
792PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400793
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000794
795# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500796ac_init_help=
797ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000798# The variables have the same names as the options, with
799# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500800cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000801exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000802no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000811verbose=
812x_includes=NONE
813x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400820# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000829includedir='${prefix}/include'
830oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400831docdir='${datarootdir}/doc/${PACKAGE}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000843for ac_option
844do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400847 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000848 ac_prev=
849 continue
850 fi
851
Theodore Ts'oe1052142006-10-21 21:46:47 -0400852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
Theodore Ts'oe1052142006-10-21 21:46:47 -0400859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000862
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500866 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867
868 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500869 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500871 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882
Theodore Ts'oe1052142006-10-21 21:46:47 -0400883 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500886 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000887
Theodore Ts'oe1052142006-10-21 21:46:47 -0400888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000897 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902 eval enable_$ac_feature=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000913
914 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942
943 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500944 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500946 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000947
Theodore Ts'oe1052142006-10-21 21:46:47 -0400948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500959 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500964 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500969 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500976 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000977
Theodore Ts'oe1052142006-10-21 21:46:47 -0400978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400984 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000994
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001000 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001014 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001015
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001019 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001050 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001051
Theodore Ts'oe1052142006-10-21 21:46:47 -04001052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001081 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001092
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001100 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110
1111 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119
1120 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001127 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001138 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 ;;
1151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001158 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 export $ac_envvar ;;
1160
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001161 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176fi
1177
Theodore Ts'oe1052142006-10-21 21:46:47 -04001178# Be sure to have absolute directory names.
1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001185 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209fi
1210
1211ac_tool_prefix=
1212test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214test "$silent" = yes && exec 6>/dev/null
1215
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001216
Theodore Ts'oe1052142006-10-21 21:46:47 -04001217ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218ac_ls_di=`ls -di .` &&
1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1225
1226
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001255 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001264 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001270 pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295\`configure' configures this package to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001348_ACEOF
1349
1350 cat <<\_ACEOF
1351
1352System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359
1360 cat <<\_ACEOF
1361
1362Optional Features:
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001365 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001380 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001381 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001382 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1385
1386Optional Packages:
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001389 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001390 --with-cc=COMPILER select compiler to use
1391 --with-linker=LINKER select linker to use
1392 --with-ccopts=CCOPTS select compiler command line options
1393 --with-ldopts=LDOPTS select linker command line options
1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search for libintl in includedir and libdir
1401
1402Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001407 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001410 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001411 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
1416_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001417ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424 ac_builddir=.
1425
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001441
1442case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001443 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001455esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457
Theodore Ts'oe1052142006-10-21 21:46:47 -04001458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466 else
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 done
1471fi
1472
Theodore Ts'oe1052142006-10-21 21:46:47 -04001473test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474if $ac_init_version; then
1475 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001476configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001477generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001484 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001486cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487This file contains any messages produced by compilers while
1488running configure, to aid debugging if configure makes a mistake.
1489
1490It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001491generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492
1493 $ $0 $@
1494
1495_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001496exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497{
1498cat <<_ASUNAME
1499## --------- ##
1500## Platform. ##
1501## --------- ##
1502
1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511
1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519
1520_ASUNAME
1521
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1528done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001530
1531} >&5
1532
1533cat >&5 <<_ACEOF
1534
1535
1536## ----------- ##
1537## Core tests. ##
1538## ----------- ##
1539
1540_ACEOF
1541
1542
1543# Keep a trace of the command line.
1544# Strip out --no-create and --no-recursion so they do not pile up.
1545# Strip out --silent because we don't want to record it for future runs.
1546# Also quote any args containing shell meta-characters.
1547# Make two passes to allow for proper duplicate-argument suppression.
1548ac_configure_args=
1549ac_configure_args0=
1550ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551ac_must_keep_next=false
1552for ac_pass in 1 2
1553do
1554 for ac_arg
1555 do
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 esac
1564 case $ac_pass in
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 2)
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1570 else
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1579 ;;
1580 -* ) ac_must_keep_next=true ;;
1581 esac
1582 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001583 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584 ;;
1585 esac
1586 done
1587done
1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591# When interrupted or exit'd, cleanup temporary files, and complete
1592# config.log. We remove comments because anyway the quotes in there
1593# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001594# WARNING: Use '\'' to represent an apostrophe within the trap.
1595# 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 -05001596trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1598 {
1599 echo
1600
1601 cat <<\_ASBOX
1602## ---------------- ##
1603## Cache variables. ##
1604## ---------------- ##
1605_ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608(
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 esac |
1634 sort
1635)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636 echo
1637
1638 cat <<\_ASBOX
1639## ----------------- ##
1640## Output variables. ##
1641## ----------------- ##
1642_ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1645 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651 done | sort
1652 echo
1653
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656## ------------------- ##
1657## File substitutions. ##
1658## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659_ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1662 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668 done | sort
1669 echo
1670 fi
1671
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674## ----------- ##
1675## confdefs.h. ##
1676## ----------- ##
1677_ASBOX
1678 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001679 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001680 echo
1681 fi
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1685 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001688 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001689' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692done
1693ac_signal=0
1694
1695# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001696rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001697
1698# Predefined preprocessor variables.
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_NAME "$PACKAGE_NAME"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_VERSION "$PACKAGE_VERSION"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_STRING "$PACKAGE_STRING"
1717_ACEOF
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722_ACEOF
1723
1724
1725# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001726# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001727if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731else
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001735shift
1736for ac_site_file
1737do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001738 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001742 . "$ac_site_file"
1743 fi
1744done
1745
1746if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751echo "$as_me: loading cache $cache_file" >&6;}
1752 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001755 esac
1756 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759echo "$as_me: creating cache $cache_file" >&6;}
1760 >$cache_file
1761fi
1762
1763# Check that the precious variables saved in the cache have kept the same
1764# value.
1765ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001766for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001771 case $ac_old_set,$ac_new_set in
1772 set,)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,set)
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1780 ,);;
1781 *)
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 esac
1802 fi
1803done
1804if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001810fi
1811
Theodore Ts'oe1052142006-10-21 21:46:47 -04001812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001828ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834
1835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001836ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001837for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001839 ac_aux_dir=$ac_dir
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1841 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001842 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001843 ac_aux_dir=$ac_dir
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1845 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001846 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001847 ac_aux_dir=$ac_dir
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1849 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001850 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001851done
1852if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001855 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001857
1858# These three variables are undocumented and unsupported,
1859# and are intended to be withdrawn in a future Autoconf release.
1860# They can cause serious problems if a builder's source tree is in a directory
1861# whose full name contains unusual characters.
1862ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001866
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001867MCONFIG=./MCONFIG
1868
Theodore Ts'o74becf31997-04-26 14:37:06 +00001869BINARY_TYPE=bin
1870E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001874E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001875MONTH=`echo $DATE | awk -F- '{print $2}'`
1876YEAR=`echo $DATE | awk -F- '{print $3}'`
1877
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001878if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001881 E2FSPROGS_YEAR=19$YEAR
1882else
1883 E2FSPROGS_YEAR=20$YEAR
1884fi
1885
1886case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001887Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001899*) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1900echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001901esac
1902
Andreas Dilger927566a2006-11-12 19:41:25 -05001903base_ver=`echo $E2FSPROGS_VERSION | \
1904 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001905
1906date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907
1908case $E2FSPROGS_VERSION in
1909*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001910 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001911 ;;
1912*)
1913 E2FSPROGS_PKGVER="$base_ver"
1914 ;;
1915esac
1916
1917unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001918{ echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1919echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1920{ echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1921echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001922
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001923
1924
1925
Andreas Dilger927566a2006-11-12 19:41:25 -05001926
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001927# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001928$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001931 { (exit 1); exit 1; }; }
1932
Theodore Ts'oe1052142006-10-21 21:46:47 -04001933{ echo "$as_me:$LINENO: checking build system type" >&5
1934echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001935if test "${ac_cv_build+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001938 ac_build_alias=$build_alias
1939test "x$ac_build_alias" = x &&
1940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001942 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001945ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001948 { (exit 1); exit 1; }; }
1949
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001950fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001951{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952echo "${ECHO_T}$ac_cv_build" >&6; }
1953case $ac_cv_build in
1954*-*-*) ;;
1955*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956echo "$as_me: error: invalid value of canonical build" >&2;}
1957 { (exit 1); exit 1; }; };;
1958esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001959build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001960ac_save_IFS=$IFS; IFS='-'
1961set x $ac_cv_build
1962shift
1963build_cpu=$1
1964build_vendor=$2
1965shift; shift
1966# Remember, the first character of IFS is used to create $*,
1967# except with old shells:
1968build_os=$*
1969IFS=$ac_save_IFS
1970case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001971
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001972
Theodore Ts'oe1052142006-10-21 21:46:47 -04001973{ echo "$as_me:$LINENO: checking host system type" >&5
1974echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001975if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001978 if test "x$host_alias" = x; then
1979 ac_cv_host=$ac_cv_build
1980else
1981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001984 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001985fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001986
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001988{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989echo "${ECHO_T}$ac_cv_host" >&6; }
1990case $ac_cv_host in
1991*-*-*) ;;
1992*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993echo "$as_me: error: invalid value of canonical host" >&2;}
1994 { (exit 1); exit 1; }; };;
1995esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001996host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001997ac_save_IFS=$IFS; IFS='-'
1998set x $ac_cv_host
1999shift
2000host_cpu=$1
2001host_vendor=$2
2002shift; shift
2003# Remember, the first character of IFS is used to create $*,
2004# except with old shells:
2005host_os=$*
2006IFS=$ac_save_IFS
2007case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002008
2009
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002010WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002011
Theodore Ts'oe1052142006-10-21 21:46:47 -04002012# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002013if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002014 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002015WITH_DIET_LIBC=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04002016{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2017echo "${ECHO_T}CC=$CC" >&6; }
2018fi
2019
2020# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002021if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002022 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2023echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002024CC=$withval
2025else
2026 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002027{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2028echo "${ECHO_T}CC defaults to $CC" >&6; }
2029fi
2030export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002032ac_ext=c
2033ac_cpp='$CPP $CPPFLAGS'
2034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037if test -n "$ac_tool_prefix"; then
2038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2039set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002042if test "${ac_cv_prog_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002044else
2045 if test -n "$CC"; then
2046 ac_cv_prog_CC="$CC" # Let the user override the test.
2047else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002054 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 -05002055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 break 2
2058 fi
2059done
2060done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002061IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002062
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002063fi
2064fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002065CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002066if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002067 { echo "$as_me:$LINENO: result: $CC" >&5
2068echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002069else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002070 { echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002072fi
2073
Theodore Ts'oe1052142006-10-21 21:46:47 -04002074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002075fi
2076if test -z "$ac_cv_prog_CC"; then
2077 ac_ct_CC=$CC
2078 # Extract the first word of "gcc", so it can be a program name with args.
2079set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085 if test -n "$ac_ct_CC"; then
2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002094 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 -05002095 ac_cv_prog_ac_ct_CC="gcc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 break 2
2098 fi
2099done
2100done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002101IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002102
2103fi
2104fi
2105ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002107 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002109else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002110 { echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002112fi
2113
Theodore Ts'oe1052142006-10-21 21:46:47 -04002114 if test "x$ac_ct_CC" = x; then
2115 CC=""
2116 else
2117 case $cross_compiling:$ac_tool_warned in
2118yes:)
2119{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2120whose name does not start with the host triplet. If you think this
2121configuration is useful to you, please write to autoconf@gnu.org." >&5
2122echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2123whose name does not start with the host triplet. If you think this
2124configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2125ac_tool_warned=yes ;;
2126esac
2127 CC=$ac_ct_CC
2128 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002129else
2130 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002131fi
2132
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002133if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002134 if test -n "$ac_tool_prefix"; then
2135 # 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 -05002136set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002139if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002141else
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2144else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002151 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 -05002152 ac_cv_prog_CC="${ac_tool_prefix}cc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2155 fi
2156done
2157done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002158IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002159
2160fi
2161fi
2162CC=$ac_cv_prog_CC
2163if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002164 { echo "$as_me:$LINENO: result: $CC" >&5
2165echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002166else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002167 { echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002169fi
2170
Theodore Ts'oe1052142006-10-21 21:46:47 -04002171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002172 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002173fi
2174if test -z "$CC"; then
2175 # Extract the first word of "cc", so it can be a program name with args.
2176set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002179if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002185 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002192 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 -05002193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194 ac_prog_rejected=yes
2195 continue
2196 fi
2197 ac_cv_prog_CC="cc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2200 fi
2201done
2202done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002203IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002204
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002205if test $ac_prog_rejected = yes; then
2206 # We found a bogon in the path, so make sure we never use it.
2207 set dummy $ac_cv_prog_CC
2208 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002209 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002210 # We chose a different compiler from the bogus one.
2211 # However, it has the same basename, so the bogon will be chosen
2212 # first if we set CC to just the basename; use the full file name.
2213 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002214 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002215 fi
2216fi
2217fi
2218fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002219CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002220if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002221 { echo "$as_me:$LINENO: result: $CC" >&5
2222echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002223else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002224 { echo "$as_me:$LINENO: result: no" >&5
2225echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002226fi
2227
Theodore Ts'oe1052142006-10-21 21:46:47 -04002228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002229fi
2230if test -z "$CC"; then
2231 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002232 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002233 do
2234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002238if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002240else
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2243else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002250 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 -05002251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2254 fi
2255done
2256done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002257IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002258
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259fi
2260fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002261CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002262if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002263 { echo "$as_me:$LINENO: result: $CC" >&5
2264echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002265else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002266 { echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002268fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002269
Theodore Ts'oe1052142006-10-21 21:46:47 -04002270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002271 test -n "$CC" && break
2272 done
2273fi
2274if test -z "$CC"; then
2275 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002276 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002277do
2278 # Extract the first word of "$ac_prog", so it can be a program name with args.
2279set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002282if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284else
2285 if test -n "$ac_ct_CC"; then
2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2287else
2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH
2290do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002294 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 -05002295 ac_cv_prog_ac_ct_CC="$ac_prog"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002298 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002299done
2300done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002301IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002302
2303fi
2304fi
2305ac_ct_CC=$ac_cv_prog_ac_ct_CC
2306if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002307 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2308echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002309else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002310 { echo "$as_me:$LINENO: result: no" >&5
2311echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002312fi
2313
Theodore Ts'oe1052142006-10-21 21:46:47 -04002314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002315 test -n "$ac_ct_CC" && break
2316done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002317
Theodore Ts'oe1052142006-10-21 21:46:47 -04002318 if test "x$ac_ct_CC" = x; then
2319 CC=""
2320 else
2321 case $cross_compiling:$ac_tool_warned in
2322yes:)
2323{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2324whose name does not start with the host triplet. If you think this
2325configuration is useful to you, please write to autoconf@gnu.org." >&5
2326echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327whose name does not start with the host triplet. If you think this
2328configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329ac_tool_warned=yes ;;
2330esac
2331 CC=$ac_ct_CC
2332 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002333fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002335fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002336
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002338test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: no acceptable C compiler found in \$PATH
2341See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2343
2344# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002345echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002346ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002347{ (ac_try="$ac_compiler --version >&5"
2348case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2351esac
2352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002357{ (ac_try="$ac_compiler -v >&5"
2358case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361esac
2362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002367{ (ac_try="$ac_compiler -V >&5"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2377
2378cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h. */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h. */
2384
2385int
2386main ()
2387{
2388
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393ac_clean_files_save=$ac_clean_files
2394ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395# Try to create an executable without -o first, disregard a.out.
2396# It will help us diagnose broken compilers, and finding out an intuition
2397# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002398{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002400ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002401#
2402# List of possible output files, starting from the most likely.
2403# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2404# only as a last resort. b.out is created by i960 compilers.
2405ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2406#
2407# The IRIX 6 linker writes into existing files which may not be
2408# executable, retaining their permissions. Remove them first so a
2409# subsequent execution test works.
2410ac_rmfiles=
2411for ac_file in $ac_files
2412do
2413 case $ac_file in
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2416 esac
2417done
2418rm -f $ac_rmfiles
2419
2420if { (ac_try="$ac_link_default"
2421case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424esac
2425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2431# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2432# in a Makefile. We should not override ac_cv_exeext if it was cached,
2433# so that the user can short-circuit this test for compilers unknown to
2434# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002435for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436do
2437 test -f "$ac_file" || continue
2438 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002440 ;;
2441 [ab].out )
2442 # We found the default executable, but exeext='' is most
2443 # certainly right.
2444 break;;
2445 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2447 then :; else
2448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2449 fi
2450 # We set ac_cv_exeext here because the later test for it is not
2451 # safe: cross compilers may not add the suffix if given an `-o'
2452 # argument, so we may need to know it at that point already.
2453 # Even if this section looks crufty: it has the advantage of
2454 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002455 break;;
2456 * )
2457 break;;
2458 esac
2459done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002460test "$ac_cv_exeext" = no && ac_cv_exeext=
2461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002463 ac_file=''
2464fi
2465
2466{ echo "$as_me:$LINENO: result: $ac_file" >&5
2467echo "${ECHO_T}$ac_file" >&6; }
2468if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2473See \`config.log' for more details." >&5
2474echo "$as_me: error: C compiler cannot create executables
2475See \`config.log' for more details." >&2;}
2476 { (exit 77); exit 77; }; }
2477fi
2478
2479ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002483{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002485# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486# If not cross compiling, check that we can run a simple program.
2487if test "$cross_compiling" != yes; then
2488 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002489 { (case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492esac
2493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002499 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 if test "$cross_compiling" = maybe; then
2501 cross_compiling=yes
2502 else
2503 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2504If you meant to cross compile, use \`--host'.
2505See \`config.log' for more details." >&5
2506echo "$as_me: error: cannot run C compiled programs.
2507If you meant to cross compile, use \`--host'.
2508See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2510 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002511 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002512fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513{ echo "$as_me:$LINENO: result: yes" >&5
2514echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516rm -f a.out a.exe conftest$ac_cv_exeext b.out
2517ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002518# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002519# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002520{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2521echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2522{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2523echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002524
Theodore Ts'oe1052142006-10-21 21:46:47 -04002525{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2526echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2527if { (ac_try="$ac_link"
2528case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539# work properly (i.e., refer to `conftest.exe'), while it won't with
2540# `rm'.
2541for ac_file in conftest.exe conftest conftest.*; do
2542 test -f "$ac_file" || continue
2543 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546 break;;
2547 * ) break;;
2548 esac
2549done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2552See \`config.log' for more details." >&5
2553echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2554See \`config.log' for more details." >&2;}
2555 { (exit 1); exit 1; }; }
2556fi
2557
2558rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002559{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2560echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561
2562rm -f conftest.$ac_ext
2563EXEEXT=$ac_cv_exeext
2564ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002565{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2566echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002567if test "${ac_cv_objext+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */
2576
2577int
2578main ()
2579{
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002586if { (ac_try="$ac_compile"
2587case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002596 for ac_file in conftest.o conftest.obj conftest.*; do
2597 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002598 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2601 break;;
2602 esac
2603done
2604else
2605 echo "$as_me: failed program was:" >&5
2606sed 's/^/| /' conftest.$ac_ext >&5
2607
2608{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2609See \`config.log' for more details." >&5
2610echo "$as_me: error: cannot compute suffix of object files: cannot compile
2611See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2613fi
2614
2615rm -f conftest.$ac_cv_objext conftest.$ac_ext
2616fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002617{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2618echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002619OBJEXT=$ac_cv_objext
2620ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002621{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2622echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002623if test "${ac_cv_c_compiler_gnu+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h. */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h. */
2632
2633int
2634main ()
2635{
2636#ifndef __GNUC__
2637 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002638#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002639
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002645if { (ac_try="$ac_compile"
2646case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649esac
2650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002652 ac_status=$?
2653 grep -v '^ *+' conftest.er1 >conftest.err
2654 rm -f conftest.er1
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002657 (exit $ac_status); } && {
2658 test -z "$ac_c_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002662else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002663 echo "$as_me: failed program was:" >&5
2664sed 's/^/| /' conftest.$ac_ext >&5
2665
Theodore Ts'oe1052142006-10-21 21:46:47 -04002666 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002668
2669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002670ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002671
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002673{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2674echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002675GCC=`test $ac_compiler_gnu = yes && echo yes`
2676ac_test_CFLAGS=${CFLAGS+set}
2677ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002678{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002680if test "${ac_cv_prog_cc_g+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002682else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002683 ac_save_c_werror_flag=$ac_c_werror_flag
2684 ac_c_werror_flag=yes
2685 ac_cv_prog_cc_g=no
2686 CFLAGS="-g"
2687 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h. */
2693
2694int
2695main ()
2696{
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002703if { (ac_try="$ac_compile"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002715 (exit $ac_status); } && {
2716 test -z "$ac_c_werror_flag" ||
2717 test ! -s conftest.err
2718 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002719 ac_cv_prog_cc_g=yes
2720else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002723
Theodore Ts'oe1052142006-10-21 21:46:47 -04002724 CFLAGS=""
2725 cat >conftest.$ac_ext <<_ACEOF
2726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h. */
2731
2732int
2733main ()
2734{
2735
2736 ;
2737 return 0;
2738}
2739_ACEOF
2740rm -f conftest.$ac_objext
2741if { (ac_try="$ac_compile"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compile") 2>conftest.er1
2748 ac_status=$?
2749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002753 (exit $ac_status); } && {
2754 test -z "$ac_c_werror_flag" ||
2755 test ! -s conftest.err
2756 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002757 :
2758else
2759 echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762 ac_c_werror_flag=$ac_save_c_werror_flag
2763 CFLAGS="-g"
2764 cat >conftest.$ac_ext <<_ACEOF
2765/* confdefs.h. */
2766_ACEOF
2767cat confdefs.h >>conftest.$ac_ext
2768cat >>conftest.$ac_ext <<_ACEOF
2769/* end confdefs.h. */
2770
2771int
2772main ()
2773{
2774
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (ac_try="$ac_compile"
2781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002792 (exit $ac_status); } && {
2793 test -z "$ac_c_werror_flag" ||
2794 test ! -s conftest.err
2795 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002796 ac_cv_prog_cc_g=yes
2797else
2798 echo "$as_me: failed program was:" >&5
2799sed 's/^/| /' conftest.$ac_ext >&5
2800
2801
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002803
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002805fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002806
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808fi
2809
2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_c_werror_flag=$ac_save_c_werror_flag
2812fi
2813{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2814echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002815if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002816 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002817elif test $ac_cv_prog_cc_g = yes; then
2818 if test "$GCC" = yes; then
2819 CFLAGS="-g -O2"
2820 else
2821 CFLAGS="-g"
2822 fi
2823else
2824 if test "$GCC" = yes; then
2825 CFLAGS="-O2"
2826 else
2827 CFLAGS=
2828 fi
2829fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002830{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2831echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2832if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002835 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002836ac_save_CC=$CC
2837cat >conftest.$ac_ext <<_ACEOF
2838/* confdefs.h. */
2839_ACEOF
2840cat confdefs.h >>conftest.$ac_ext
2841cat >>conftest.$ac_ext <<_ACEOF
2842/* end confdefs.h. */
2843#include <stdarg.h>
2844#include <stdio.h>
2845#include <sys/types.h>
2846#include <sys/stat.h>
2847/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2848struct buf { int x; };
2849FILE * (*rcsopen) (struct buf *, struct stat *, int);
2850static char *e (p, i)
2851 char **p;
2852 int i;
2853{
2854 return p[i];
2855}
2856static char *f (char * (*g) (char **, int), char **p, ...)
2857{
2858 char *s;
2859 va_list v;
2860 va_start (v,p);
2861 s = g (p, va_arg (v,int));
2862 va_end (v);
2863 return s;
2864}
2865
2866/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2867 function prototypes and stuff, but not '\xHH' hex character constants.
2868 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2871 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002873int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2874
Theodore Ts'oe1052142006-10-21 21:46:47 -04002875/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2876 inside strings and character constants. */
2877#define FOO(x) 'x'
2878int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2879
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002880int test (int i, double x);
2881struct s1 {int (*f) (int a);};
2882struct s2 {int (*f) (double a);};
2883int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884int argc;
2885char **argv;
2886int
2887main ()
2888{
2889return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2890 ;
2891 return 0;
2892}
2893_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002894for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002896do
2897 CC="$ac_save_CC $ac_arg"
2898 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002899if { (ac_try="$ac_compile"
2900case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002911 (exit $ac_status); } && {
2912 test -z "$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002915 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916else
2917 echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
Theodore Ts'oe1052142006-10-21 21:46:47 -04002920
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922
2923rm -f core conftest.err conftest.$ac_objext
2924 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927CC=$ac_save_CC
2928
2929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002930# AC_CACHE_VAL
2931case "x$ac_cv_prog_cc_c89" in
2932 x)
2933 { echo "$as_me:$LINENO: result: none needed" >&5
2934echo "${ECHO_T}none needed" >&6; } ;;
2935 xno)
2936 { echo "$as_me:$LINENO: result: unsupported" >&5
2937echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002939 CC="$CC $ac_cv_prog_cc_c89"
2940 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2941echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942esac
2943
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951ac_ext=c
2952ac_cpp='$CPP $CPPFLAGS'
2953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002956{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002958# On Suns, sometimes $CPP names a directory.
2959if test -n "$CPP" && test -d "$CPP"; then
2960 CPP=
2961fi
2962if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963 if test "${ac_cv_prog_CPP+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002966 # Double quotes because CPP needs to be expanded
2967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2968 do
2969 ac_preproc_ok=false
2970for ac_c_preproc_warn_flag in '' yes
2971do
2972 # Use a header file that comes with gcc, so configuring glibc
2973 # with a fresh cross-compiler works.
2974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002976 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002977 # not just through cpp. "Syntax error" is here to catch this case.
2978 cat >conftest.$ac_ext <<_ACEOF
2979/* confdefs.h. */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h. */
2984#ifdef __STDC__
2985# include <limits.h>
2986#else
2987# include <assert.h>
2988#endif
2989 Syntax error
2990_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002991if { (ac_try="$ac_cpp conftest.$ac_ext"
2992case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995esac
2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003003 (exit $ac_status); } >/dev/null && {
3004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3005 test ! -s conftest.err
3006 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003007 :
3008else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003009 echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003012 # Broken: fails on valid input.
3013continue
3014fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003015
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016rm -f conftest.err conftest.$ac_ext
3017
Theodore Ts'oe1052142006-10-21 21:46:47 -04003018 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003019 # can be detected and how.
3020 cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
3026#include <ac_nonexistent.h>
3027_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003028if { (ac_try="$ac_cpp conftest.$ac_ext"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003040 (exit $ac_status); } >/dev/null && {
3041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044 # Broken: success on invalid input.
3045continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 # Passes both tests.
3051ac_preproc_ok=:
3052break
3053fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003054
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003055rm -f conftest.err conftest.$ac_ext
3056
3057done
3058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3059rm -f conftest.err conftest.$ac_ext
3060if $ac_preproc_ok; then
3061 break
3062fi
3063
3064 done
3065 ac_cv_prog_CPP=$CPP
3066
3067fi
3068 CPP=$ac_cv_prog_CPP
3069else
3070 ac_cv_prog_CPP=$CPP
3071fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003072{ echo "$as_me:$LINENO: result: $CPP" >&5
3073echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074ac_preproc_ok=false
3075for ac_c_preproc_warn_flag in '' yes
3076do
3077 # Use a header file that comes with gcc, so configuring glibc
3078 # with a fresh cross-compiler works.
3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080 # <limits.h> exists even on freestanding compilers.
3081 # On the NeXT, cc -E runs the code through the compiler's parser,
3082 # not just through cpp. "Syntax error" is here to catch this case.
3083 cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h. */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h. */
3089#ifdef __STDC__
3090# include <limits.h>
3091#else
3092# include <assert.h>
3093#endif
3094 Syntax error
3095_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003096if { (ac_try="$ac_cpp conftest.$ac_ext"
3097case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003108 (exit $ac_status); } >/dev/null && {
3109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003112 :
3113else
3114 echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 # Broken: fails on valid input.
3118continue
3119fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003120
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121rm -f conftest.err conftest.$ac_ext
3122
Theodore Ts'oe1052142006-10-21 21:46:47 -04003123 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124 # can be detected and how.
3125 cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h. */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h. */
3131#include <ac_nonexistent.h>
3132_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003133if { (ac_try="$ac_cpp conftest.$ac_ext"
3134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003145 (exit $ac_status); } >/dev/null && {
3146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003149 # Broken: success on invalid input.
3150continue
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 # Passes both tests.
3156ac_preproc_ok=:
3157break
3158fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003160rm -f conftest.err conftest.$ac_ext
3161
3162done
3163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164rm -f conftest.err conftest.$ac_ext
3165if $ac_preproc_ok; then
3166 :
3167else
3168 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3169See \`config.log' for more details." >&5
3170echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3171See \`config.log' for more details." >&2;}
3172 { (exit 1); exit 1; }; }
3173fi
3174
3175ac_ext=c
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
3181
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003182# Check whether --with-linker was given.
3183if test "${with_linker+set}" = set; then
3184 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3185echo "${ECHO_T}LD=$withval" >&6; }
3186LD=$withval
3187else
3188 if test -z "$LD" ; then LD=$CC; fi
3189{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3190echo "${ECHO_T}LD defaults to $LD" >&6; }
3191fi
3192export LD
3193
3194
3195# Check whether --with-ccopts was given.
3196if test "${with_ccopts+set}" = set; then
3197 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3198echo "${ECHO_T}CCOPTS is $withval" >&6; }
3199CFLAGS=$withval
3200fi
3201
3202
Theodore Ts'oe1052142006-10-21 21:46:47 -04003203{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003208 # Extract the first word of "grep ggrep" to use in msg output
3209if test -z "$GREP"; then
3210set dummy grep ggrep; ac_prog_name=$2
3211if test "${ac_cv_path_GREP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213else
3214 ac_path_GREP_found=false
3215# Loop through the user's path and test for each of PROGNAME-LIST
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3218do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_prog in grep ggrep; do
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003225 # Check for GNU ac_path_GREP and select it if it is found.
3226 # Check for GNU $ac_path_GREP
3227case `"$ac_path_GREP" --version 2>&1` in
3228*GNU*)
3229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3230*)
3231 ac_count=0
3232 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3233 while :
3234 do
3235 cat "conftest.in" "conftest.in" >"conftest.tmp"
3236 mv "conftest.tmp" "conftest.in"
3237 cp "conftest.in" "conftest.nl"
3238 echo 'GREP' >> "conftest.nl"
3239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241 ac_count=`expr $ac_count + 1`
3242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243 # Best one so far, save it but keep looking for a better one
3244 ac_cv_path_GREP="$ac_path_GREP"
3245 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003246 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003247 # 10*(2^10) chars as input seems more than enough
3248 test $ac_count -gt 10 && break
3249 done
3250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3251esac
3252
3253
3254 $ac_path_GREP_found && break 3
3255 done
3256done
3257
3258done
3259IFS=$as_save_IFS
3260
3261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003263
3264GREP="$ac_cv_path_GREP"
3265if test -z "$GREP"; then
3266 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268 { (exit 1); exit 1; }; }
3269fi
3270
3271else
3272 ac_cv_path_GREP=$GREP
3273fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003274
3275
Theodore Ts'oe1052142006-10-21 21:46:47 -04003276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279 GREP="$ac_cv_path_GREP"
3280
3281
3282{ echo "$as_me:$LINENO: checking for egrep" >&5
3283echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284if test "${ac_cv_path_EGREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288 then ac_cv_path_EGREP="$GREP -E"
3289 else
3290 # Extract the first word of "egrep" to use in msg output
3291if test -z "$EGREP"; then
3292set dummy egrep; ac_prog_name=$2
3293if test "${ac_cv_path_EGREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296 ac_path_EGREP_found=false
3297# Loop through the user's path and test for each of PROGNAME-LIST
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in egrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003307 # Check for GNU ac_path_EGREP and select it if it is found.
3308 # Check for GNU $ac_path_EGREP
3309case `"$ac_path_EGREP" --version 2>&1` in
3310*GNU*)
3311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3312*)
3313 ac_count=0
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'EGREP' >> "conftest.nl"
3321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_EGREP="$ac_path_EGREP"
3327 ac_path_EGREP_max=$ac_count
3328 fi
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333esac
3334
3335
3336 $ac_path_EGREP_found && break 3
3337 done
3338done
3339
3340done
3341IFS=$as_save_IFS
3342
3343
3344fi
3345
3346EGREP="$ac_cv_path_EGREP"
3347if test -z "$EGREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3351fi
3352
3353else
3354 ac_cv_path_EGREP=$EGREP
3355fi
3356
3357
3358 fi
3359fi
3360{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362 EGREP="$ac_cv_path_EGREP"
3363
3364
3365{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3366echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003367if test "${ac_cv_header_stdc+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370 cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#include <stdlib.h>
3377#include <stdarg.h>
3378#include <string.h>
3379#include <float.h>
3380
3381int
3382main ()
3383{
3384
3385 ;
3386 return 0;
3387}
3388_ACEOF
3389rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003390if { (ac_try="$ac_compile"
3391case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003402 (exit $ac_status); } && {
3403 test -z "$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406 ac_cv_header_stdc=yes
3407else
3408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
Theodore Ts'oe1052142006-10-21 21:46:47 -04003411 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003413
3414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003415
3416if test $ac_cv_header_stdc = yes; then
3417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
3424#include <string.h>
3425
3426_ACEOF
3427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 $EGREP "memchr" >/dev/null 2>&1; then
3429 :
3430else
3431 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003432fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003433rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003434
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003435fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003436
3437if test $ac_cv_header_stdc = yes; then
3438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445#include <stdlib.h>
3446
3447_ACEOF
3448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 $EGREP "free" >/dev/null 2>&1; then
3450 :
3451else
3452 ac_cv_header_stdc=no
3453fi
3454rm -f conftest*
3455
3456fi
3457
3458if test $ac_cv_header_stdc = yes; then
3459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3460 if test "$cross_compiling" = yes; then
3461 :
3462else
3463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003470#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003471#if ((' ' & 0x0FF) == 0x020)
3472# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3473# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3474#else
3475# define ISLOWER(c) \
3476 (('a' <= (c) && (c) <= 'i') \
3477 || ('j' <= (c) && (c) <= 'r') \
3478 || ('s' <= (c) && (c) <= 'z'))
3479# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3480#endif
3481
3482#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3483int
3484main ()
3485{
3486 int i;
3487 for (i = 0; i < 256; i++)
3488 if (XOR (islower (i), ISLOWER (i))
3489 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003490 return 2;
3491 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003492}
3493_ACEOF
3494rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003495if { (ac_try="$ac_link"
3496case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499esac
3500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003505 { (case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508esac
3509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 :
3515else
3516 echo "$as_me: program exited with status $ac_status" >&5
3517echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520( exit $ac_status )
3521ac_cv_header_stdc=no
3522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3524fi
3525
3526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003527fi
3528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003529{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3530echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003531if test $ac_cv_header_stdc = yes; then
3532
3533cat >>confdefs.h <<\_ACEOF
3534#define STDC_HEADERS 1
3535_ACEOF
3536
3537fi
3538
3539# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3550 inttypes.h stdint.h unistd.h
3551do
3552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003553{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h. */
3564$ac_includes_default
3565
3566#include <$ac_header>
3567_ACEOF
3568rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003569if { (ac_try="$ac_compile"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003581 (exit $ac_status); } && {
3582 test -z "$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585 eval "$as_ac_Header=yes"
3586else
3587 echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003592
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003595ac_res=`eval echo '${'$as_ac_Header'}'`
3596 { echo "$as_me:$LINENO: result: $ac_res" >&5
3597echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003598if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599 cat >>confdefs.h <<_ACEOF
3600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601_ACEOF
3602
3603fi
3604
3605done
3606
3607
3608if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003609 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3610echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003611if test "${ac_cv_header_linux_fs_h+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003614{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3615echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003616else
3617 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003618{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3619echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003620cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h. */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h. */
3626$ac_includes_default
3627#include <linux/fs.h>
3628_ACEOF
3629rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003630if { (ac_try="$ac_compile"
3631case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634esac
3635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646 ac_header_compiler=yes
3647else
3648 echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003653
3654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3656echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657
3658# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003659{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3660echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003661cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667#include <linux/fs.h>
3668_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003669if { (ac_try="$ac_cpp conftest.$ac_ext"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003681 (exit $ac_status); } >/dev/null && {
3682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003685 ac_header_preproc=yes
3686else
3687 echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_header_preproc=no
3691fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003692
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003693rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3695echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003696
3697# So? What about this header?
3698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3699 yes:no: )
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3701echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3703echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3704 ac_header_preproc=yes
3705 ;;
3706 no:yes:* )
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3708echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3710echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3712echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3714echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3716echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3718echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003720 ;;
3721esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003722{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3723echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003724if test "${ac_cv_header_linux_fs_h+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 ac_cv_header_linux_fs_h=$ac_header_preproc
3728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003729{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3730echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003731
3732fi
3733if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003734 linux_headers=yes
3735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003736 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003737fi
3738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003739
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003740if test "$linux_headers" != yes; then
3741 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003742fi
3743
Theodore Ts'oe1052142006-10-21 21:46:47 -04003744{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3745echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003746if test "$GCC" = yes
3747then
3748 case "$host_cpu" in
3749 alpha) addcflags="-mieee" ;;
3750 esac
3751fi
3752if test "x$addcflags" != x
3753then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003754 { echo "$as_me:$LINENO: result: $addcflags" >&5
3755echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003756 CFLAGS="$addcflags $CFLAGS"
3757else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003758 { echo "$as_me:$LINENO: result: (none)" >&5
3759echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003760fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003761LIB_EXT=.a
3762STATIC_LIB_EXT=.a
3763PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003764
Theodore Ts'oe1052142006-10-21 21:46:47 -04003765# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003766if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003767 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3768echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003769LDFLAGS=$withval
3770else
3771 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003773
Theodore Ts'oe1052142006-10-21 21:46:47 -04003774
3775# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003776if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003777 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003778else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003779 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003780fi
3781# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003782if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003783 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003784then
3785 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003786 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3787echo "${ECHO_T}Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003788else
3789 MAINTAINER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003790 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3791echo "${ECHO_T}Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003792fi
3793
3794else
3795 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003796{ echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3797echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003798
Theodore Ts'oe1052142006-10-21 21:46:47 -04003799fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003800
Theodore Ts'oe1052142006-10-21 21:46:47 -04003801
3802# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003803if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003804 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003805then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003806 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3807echo "${ECHO_T}Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003808else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003809 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003810#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003811_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003812
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003813 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3814echo "${ECHO_T}Enabling compression support" >&6; }
3815 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3816echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003817fi
3818
3819else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003820 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3821echo "${ECHO_T}Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003822
Theodore Ts'oe1052142006-10-21 21:46:47 -04003823fi
3824
3825# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003826if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003827 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003828then
3829 HTREE_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003830 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3831echo "${ECHO_T}Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003832else
3833 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003834 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003835#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003836_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003837
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003838 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3839echo "${ECHO_T}Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003840fi
3841
3842else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003843 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003844cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003845#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003846_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003847
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003848{ echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3849echo "${ECHO_T}Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003850
Theodore Ts'oe1052142006-10-21 21:46:47 -04003851fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003852
Theodore Ts'oe1052142006-10-21 21:46:47 -04003853
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003854E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003855# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003856if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003857 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003858then
3859 ELF_CMT=#
3860 MAKEFILE_ELF=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003861 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3862echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003863else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003864 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003865 ELF_CMT=
3866 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003867 case "$host_os" in
3868 solaris2.*)
3869 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3870 ;;
3871 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003872 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003873 LIB_EXT=.so
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003874 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3875echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003876fi
3877
3878else
3879 MAKEFILE_ELF=/dev/null
3880ELF_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003881{ echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3882echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003883
Theodore Ts'oe1052142006-10-21 21:46:47 -04003884fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003885
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003886
Theodore Ts'oe1052142006-10-21 21:46:47 -04003887
3888# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003889if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003890 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003891then
3892 BSDLIB_CMT=#
3893 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003894 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3895echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003896else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003897 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003898 BSDLIB_CMT=
3899 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003900 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003901 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003902 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003903 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3904 LIB_EXT=.dylib
3905 ;;
3906 esac
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003907 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3908echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003909fi
3910
3911else
3912 MAKEFILE_BSDLIB=/dev/null
3913BSDLIB_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003914{ echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3915echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003916
Theodore Ts'oe1052142006-10-21 21:46:47 -04003917fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003918
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003919
Theodore Ts'oe1052142006-10-21 21:46:47 -04003920
3921# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003922if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003923 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003924then
3925 PROFILE_CMT=#
3926 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003927 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3928echo "${ECHO_T}Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003929else
3930 PROFILE_CMT=
3931 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3932 PROFILED_LIB_EXT=_p.a
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003933 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3934echo "${ECHO_T}Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003935fi
3936
3937else
3938 PROFILE_CMT=#
3939MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003940{ echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3941echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003942
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003944
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003945
Theodore Ts'oe1052142006-10-21 21:46:47 -04003946
3947# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003948if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003949 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003950then
3951 CHECKER_CMT=#
3952 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003953 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3954echo "${ECHO_T}Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003955else
3956 CHECKER_CMT=
3957 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003958 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3959echo "${ECHO_T}Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003960fi
3961
3962else
3963 CHECKER_CMT=#
3964MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003965{ echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3966echo "${ECHO_T}Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003967
Theodore Ts'oe1052142006-10-21 21:46:47 -04003968fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003969
3970
3971
3972
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003973
Theodore Ts'oe1052142006-10-21 21:46:47 -04003974
3975# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003976if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003977 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003978then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003979 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3980echo "${ECHO_T}Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003982 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003983#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003984_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003985
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003986 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3987echo "${ECHO_T}Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003988fi
3989
3990else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003991 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3992echo "${ECHO_T}Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003993
Theodore Ts'oe1052142006-10-21 21:46:47 -04003994fi
3995
3996# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003997if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003998 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003999then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004000 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4001echo "${ECHO_T}Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004003 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004004#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004005_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004006
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004007 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4008echo "${ECHO_T}Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004009fi
4010
4011else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004012 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4013echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004014
Theodore Ts'oe1052142006-10-21 21:46:47 -04004015fi
4016
4017# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004018if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004019 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004020then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004021 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4022echo "${ECHO_T}Disabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004023else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004024 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004025#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004026_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004027
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004028 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4029echo "${ECHO_T}Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004030fi
4031
4032else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004033 { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5
4034echo "${ECHO_T}Disabling testio debugging by default" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004035
Theodore Ts'oe1052142006-10-21 21:46:47 -04004036fi
4037
Theodore Ts'oe1052142006-10-21 21:46:47 -04004038# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004039if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004040 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004041then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004042 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4043echo "${ECHO_T}Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004044 DEBUGFS_CMT="#"
4045else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046 DEBUGFS_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004047 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4048echo "${ECHO_T}Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004049fi
4050
4051else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004052 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4053echo "${ECHO_T}Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004054DEBUGFS_CMT=
4055
Theodore Ts'oe1052142006-10-21 21:46:47 -04004056fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004057
Theodore Ts'oe1052142006-10-21 21:46:47 -04004058
4059# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004060if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004061 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004062then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004063 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4064echo "${ECHO_T}Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004065 IMAGER_CMT="#"
4066else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004067 IMAGER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004068 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4069echo "${ECHO_T}Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004070fi
4071
4072else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004073 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4074echo "${ECHO_T}Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004075IMAGER_CMT=
4076
Theodore Ts'oe1052142006-10-21 21:46:47 -04004077fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004078
Theodore Ts'oe1052142006-10-21 21:46:47 -04004079
4080# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004081if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004082 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004083then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004084 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4085echo "${ECHO_T}Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004086 RESIZER_CMT="#"
4087else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004088 RESIZER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004089 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4090echo "${ECHO_T}Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004091fi
4092
4093else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004094 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4095echo "${ECHO_T}Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004096RESIZER_CMT=
4097
Theodore Ts'oe1052142006-10-21 21:46:47 -04004098fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004099
Theodore Ts'oe1052142006-10-21 21:46:47 -04004100
Theodore Ts'oe1052142006-10-21 21:46:47 -04004101# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004102if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004103 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004104then
4105 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004106 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4107echo "${ECHO_T}Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004108else
4109 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004110 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4111echo "${ECHO_T}Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004112fi
4113
4114else
4115 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004116 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004117 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004118 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4119echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004120 ;;
4121 *)
4122 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004123 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4124echo "${ECHO_T}Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004125esac
4126
Theodore Ts'oe1052142006-10-21 21:46:47 -04004127fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004128
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004129
Theodore Ts'oe1052142006-10-21 21:46:47 -04004130
4131# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004132if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004133 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004134then
4135 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004136 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4137echo "${ECHO_T}Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004138else
4139 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004140 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4141echo "${ECHO_T}Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004142fi
4143
4144else
4145 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004146{ echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4147echo "${ECHO_T}Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004148
Theodore Ts'oe1052142006-10-21 21:46:47 -04004149fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004150
4151
Theodore Ts'oe1052142006-10-21 21:46:47 -04004152
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004153STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004154# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004155if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004156 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004157then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004158 { echo "$as_me:$LINENO: result: Disabling device-mapper support" >&5
4159echo "${ECHO_T}Disabling device-mapper support" >&6; }
Karel Zak4db2f592006-03-08 14:17:28 -05004160 DEVMAPPER_REQ=''
4161 DEVMAPPER_LIBS=''
4162 STATIC_DEVMAPPER_LIBS=''
4163else
4164 cat >>confdefs.h <<\_ACEOF
4165#define HAVE_DEVMAPPER 1
4166_ACEOF
4167
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004168 { echo "$as_me:$LINENO: result: Enabling device-mapper support" >&5
4169echo "${ECHO_T}Enabling device-mapper support" >&6; }
Karel Zak4db2f592006-03-08 14:17:28 -05004170
Karel Zak4db2f592006-03-08 14:17:28 -05004171
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004172
4173if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4176set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4179if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 case $PKG_CONFIG in
4183 [\\/]* | ?:[\\/]*)
4184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4185 ;;
4186 *)
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198done
4199done
4200IFS=$as_save_IFS
4201
4202 ;;
4203esac
4204fi
4205PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4206if test -n "$PKG_CONFIG"; then
4207 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4208echo "${ECHO_T}$PKG_CONFIG" >&6; }
4209else
4210 { echo "$as_me:$LINENO: result: no" >&5
4211echo "${ECHO_T}no" >&6; }
4212fi
4213
4214
4215fi
4216if test -z "$ac_cv_path_PKG_CONFIG"; then
4217 ac_pt_PKG_CONFIG=$PKG_CONFIG
4218 # Extract the first word of "pkg-config", so it can be a program name with args.
4219set dummy pkg-config; ac_word=$2
4220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225 case $ac_pt_PKG_CONFIG in
4226 [\\/]* | ?:[\\/]*)
4227 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4228 ;;
4229 *)
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241done
4242done
4243IFS=$as_save_IFS
4244
4245 ;;
4246esac
4247fi
4248ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4249if test -n "$ac_pt_PKG_CONFIG"; then
4250 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4251echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4252else
4253 { echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6; }
4255fi
4256
4257 if test "x$ac_pt_PKG_CONFIG" = x; then
4258 PKG_CONFIG=""
4259 else
4260 case $cross_compiling:$ac_tool_warned in
4261yes:)
4262{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4263whose name does not start with the host triplet. If you think this
4264configuration is useful to you, please write to autoconf@gnu.org." >&5
4265echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4266whose name does not start with the host triplet. If you think this
4267configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4268ac_tool_warned=yes ;;
4269esac
4270 PKG_CONFIG=$ac_pt_PKG_CONFIG
4271 fi
4272else
4273 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4274fi
4275
4276fi
4277if test -n "$PKG_CONFIG"; then
4278 _pkg_min_version=0.9.0
4279 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4280echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4281 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4282 { echo "$as_me:$LINENO: result: yes" >&5
4283echo "${ECHO_T}yes" >&6; }
4284 else
4285 { echo "$as_me:$LINENO: result: no" >&5
4286echo "${ECHO_T}no" >&6; }
4287 PKG_CONFIG=""
4288 fi
4289
4290fi
4291
4292 if test -z "$PKG_CONFIG"; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004293 { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4294echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4295 { (exit 1); exit 1; }; }
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004296 fi
4297
4298 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4299echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4300if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303 ac_check_lib_save_LIBS=$LIBS
4304LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4305cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h. */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h. */
4311
4312/* Override any GCC internal prototype to avoid an error.
4313 Use char because int might match the return type of a GCC
4314 builtin and then its argument prototype would still apply. */
4315#ifdef __cplusplus
4316extern "C"
4317#endif
4318char dm_tree_create ();
4319int
4320main ()
4321{
4322return dm_tree_create ();
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest.$ac_objext conftest$ac_exeext
4328if { (ac_try="$ac_link"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>conftest.er1
4335 ac_status=$?
4336 grep -v '^ *+' conftest.er1 >conftest.err
4337 rm -f conftest.er1
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } && {
4341 test -z "$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 } && test -s conftest$ac_exeext &&
4344 $as_test_x conftest$ac_exeext; then
4345 ac_cv_lib_devmapper_dm_tree_create=yes
4346else
4347 echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350 ac_cv_lib_devmapper_dm_tree_create=no
4351fi
4352
4353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4354 conftest$ac_exeext conftest.$ac_ext
4355LIBS=$ac_check_lib_save_LIBS
4356fi
4357{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4358echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4359if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4360 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4361 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4362 DEVMAPPER_REQ="devmapper";
4363 DEVMAPPER_PC_LIBS="-ldevmapper"
4364else
4365 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4366echo "$as_me: error: device-mapper library not found" >&2;}
4367 { (exit 1); exit 1; }; }
4368fi
4369
4370 # work around stupid devmapper.pc bug in Debian
4371 case "$STATIC_DEVMAPPER_LIBS" in
4372 *pthread*)
4373 ;;
4374 *)
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004375 { echo "$as_me:$LINENO: WARNING: Working around Debian bug 390243..." >&5
4376echo "$as_me: WARNING: Working around Debian bug 390243..." >&2;}
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004377 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4378 ;;
4379 esac
4380 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4381 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4382 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4383 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004384fi
4385
4386else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004387 { echo "$as_me:$LINENO: result: Disabling device-mapper support by default" >&5
4388echo "${ECHO_T}Disabling device-mapper support by default" >&6; }
Karel Zak4db2f592006-03-08 14:17:28 -05004389
Theodore Ts'oe1052142006-10-21 21:46:47 -04004390fi
4391
Karel Zak4db2f592006-03-08 14:17:28 -05004392
4393
4394
4395
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004396
Theodore Ts'o32493942007-12-31 10:45:01 -05004397# Check whether --enable-tls was given.
4398if test "${enable_tls+set}" = set; then
4399 enableval=$enable_tls; if test "$enableval" = "no"
4400then
4401 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004402 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4403echo "${ECHO_T}Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004404else
4405 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004406 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4407echo "${ECHO_T}Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004408fi
4409
4410else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004411 if test -n "$WITH_DIET_LIBC"
4412then
4413 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004414 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4415echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004416else
4417 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004418 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4419echo "${ECHO_T}Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004420fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004421
4422fi
4423
4424if test "$try_tls" = "yes"
4425then
4426
4427 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4428echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4429 if test "${ac_cv_tls+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432
4433 ax_tls_keywords="__thread __declspec(thread) none"
4434 for ax_tls_keyword in $ax_tls_keywords; do
4435 case $ax_tls_keyword in
4436 none) ac_cv_tls=none ; break ;;
4437 *)
4438 cat >conftest.$ac_ext <<_ACEOF
4439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
4444#include <stdlib.h>
4445 static void
4446 foo(void) {
4447 static $ax_tls_keyword int bar;
4448 exit(1);
4449 }
4450int
4451main ()
4452{
4453
4454 ;
4455 return 0;
4456}
4457_ACEOF
4458rm -f conftest.$ac_objext
4459if { (ac_try="$ac_compile"
4460case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463esac
4464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_cv_tls=$ax_tls_keyword ; break
4476else
4477 echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 ac_cv_tls=none
4481
4482fi
4483
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 esac
4486 done
4487
4488fi
4489
4490
4491 if test "$ac_cv_tls" != "none"; then
4492
4493cat >>confdefs.h <<_ACEOF
4494#define TLS $ac_cv_tls
4495_ACEOF
4496
4497 fi
4498 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4499echo "${ECHO_T}$ac_cv_tls" >&6; }
4500
4501fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004502# Check whether --enable-uuidd was given.
4503if test "${enable_uuidd+set}" = set; then
4504 enableval=$enable_uuidd; if test "$enableval" = "no"
4505then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004506 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4507echo "${ECHO_T}Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004508 UUIDD_CMT="#"
4509else
4510 cat >>confdefs.h <<\_ACEOF
4511#define USE_UUIDD 1
4512_ACEOF
4513
4514 UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004515 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4516echo "${ECHO_T}Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004517fi
4518
4519else
4520 cat >>confdefs.h <<\_ACEOF
4521#define USE_UUIDD 1
4522_ACEOF
4523
4524UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004525{ echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4526echo "${ECHO_T}Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004527
4528fi
4529
4530
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004531MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004533GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004534PACKAGE=e2fsprogs
4535VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004536VERSION=0.14.1
4537cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004538#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004539_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004541cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004542#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004543_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004544
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004545
4546
4547
4548
Theodore Ts'oe1052142006-10-21 21:46:47 -04004549{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4550echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4551set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4552if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004553 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004554else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004556SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004557all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004558 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004559_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004560# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004561case `${MAKE-make} -f conftest.make 2>/dev/null` in
4562 *@@@%%%=?*=@@@%%%*)
4563 eval ac_cv_prog_make_${ac_make}_set=yes;;
4564 *)
4565 eval ac_cv_prog_make_${ac_make}_set=no;;
4566esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004567rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004569if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4570 { echo "$as_me:$LINENO: result: yes" >&5
4571echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004572 SET_MAKE=
4573else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004574 { echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004576 SET_MAKE="MAKE=${MAKE-make}"
4577fi
4578
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004579# Find a good install program. We prefer a C program (faster),
4580# so one script is as good as another. But avoid the broken or
4581# incompatible versions:
4582# SysV /etc/install, /usr/sbin/install
4583# SunOS /usr/etc/install
4584# IRIX /sbin/install
4585# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004586# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004587# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4588# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4589# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004590# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004591# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004592{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4593echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004594if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004595if test "${ac_cv_path_install+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 # Account for people who put trailing slashes in PATH elements.
4604case $as_dir/ in
4605 ./ | .// | /cC/* | \
4606 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4607 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4608 /usr/ucb/* ) ;;
4609 *)
4610 # OSF1 and SCO ODT 3.0 have their own names for install.
4611 # Don't use installbsd from OSF since it installs stuff as root
4612 # by default.
4613 for ac_prog in ginstall scoinst install; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004615 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 -04004616 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004617 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004618 # AIX install. It has an incompatible calling convention.
4619 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004620 elif test $ac_prog = install &&
4621 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4622 # program-specific install script used by HP pwplus--don't use.
4623 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004624 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4626 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004627 fi
4628 fi
4629 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004630 done
4631 ;;
4632esac
4633done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004634IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004635
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004636
4637fi
4638 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004639 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004640 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004641 # As a last resort, use the slow shell script. Don't cache a
4642 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004643 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004644 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004645 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004646 fi
4647fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004648{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4649echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004650
4651# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4652# It thinks the first close brace ends the variable substitution.
4653test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4654
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004655test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004656
4657test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4658
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004659
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004660 MKINSTALLDIRS=
4661 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004662 case "$ac_aux_dir" in
4663 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4664 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4665 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004666 fi
4667 if test -z "$MKINSTALLDIRS"; then
4668 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4669 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004670
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004671
4672
Theodore Ts'oe1052142006-10-21 21:46:47 -04004673 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4674echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4675 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004676if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004677 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004678else
4679 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004680fi
4681
4682 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4683echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004684
4685
4686
4687
4688
4689
4690# Prepare PATH_SEPARATOR.
4691# The user is always right.
4692if test "${PATH_SEPARATOR+set}" != set; then
4693 echo "#! /bin/sh" >conf$$.sh
4694 echo "exit 0" >>conf$$.sh
4695 chmod +x conf$$.sh
4696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4697 PATH_SEPARATOR=';'
4698 else
4699 PATH_SEPARATOR=:
4700 fi
4701 rm -f conf$$.sh
4702fi
4703
4704# Find out how to test for executable files. Don't use a zero-byte file,
4705# as systems may use methods other than mode bits to determine executability.
4706cat >conf$$.file <<_ASEOF
4707#! /bin/sh
4708exit 0
4709_ASEOF
4710chmod +x conf$$.file
4711if test -x conf$$.file >/dev/null 2>&1; then
4712 ac_executable_p="test -x"
4713else
4714 ac_executable_p="test -f"
4715fi
4716rm -f conf$$.file
4717
4718# Extract the first word of "msgfmt", so it can be a program name with args.
4719set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004722if test "${ac_cv_path_MSGFMT+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725 case "$MSGFMT" in
4726 [\\/]* | ?:[\\/]*)
4727 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4728 ;;
4729 *)
4730 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4731 for ac_dir in $PATH; do
4732 IFS="$ac_save_IFS"
4733 test -z "$ac_dir" && ac_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4736 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4737 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4738 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4739 break 2
4740 fi
4741 fi
4742 done
4743 done
4744 IFS="$ac_save_IFS"
4745 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4746 ;;
4747esac
4748fi
4749MSGFMT="$ac_cv_path_MSGFMT"
4750if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004751 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4752echo "${ECHO_T}$MSGFMT" >&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
4757
4758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4759set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004762if test "${ac_cv_path_GMSGFMT+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764else
4765 case $GMSGFMT in
4766 [\\/]* | ?:[\\/]*)
4767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4768 ;;
4769 *)
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004776 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 -05004777 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781done
4782done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004783IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004784
4785 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4786 ;;
4787esac
4788fi
4789GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004790if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004791 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4792echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004793else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004794 { echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004796fi
4797
4798
4799
Theodore Ts'oe1052142006-10-21 21:46:47 -04004800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004801# Prepare PATH_SEPARATOR.
4802# The user is always right.
4803if test "${PATH_SEPARATOR+set}" != set; then
4804 echo "#! /bin/sh" >conf$$.sh
4805 echo "exit 0" >>conf$$.sh
4806 chmod +x conf$$.sh
4807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4808 PATH_SEPARATOR=';'
4809 else
4810 PATH_SEPARATOR=:
4811 fi
4812 rm -f conf$$.sh
4813fi
4814
4815# Find out how to test for executable files. Don't use a zero-byte file,
4816# as systems may use methods other than mode bits to determine executability.
4817cat >conf$$.file <<_ASEOF
4818#! /bin/sh
4819exit 0
4820_ASEOF
4821chmod +x conf$$.file
4822if test -x conf$$.file >/dev/null 2>&1; then
4823 ac_executable_p="test -x"
4824else
4825 ac_executable_p="test -f"
4826fi
4827rm -f conf$$.file
4828
4829# Extract the first word of "xgettext", so it can be a program name with args.
4830set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004833if test "${ac_cv_path_XGETTEXT+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835else
4836 case "$XGETTEXT" in
4837 [\\/]* | ?:[\\/]*)
4838 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4839 ;;
4840 *)
4841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH; do
4843 IFS="$ac_save_IFS"
4844 test -z "$ac_dir" && ac_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4847 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4848 (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
4849 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4850 break 2
4851 fi
4852 fi
4853 done
4854 done
4855 IFS="$ac_save_IFS"
4856 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4857 ;;
4858esac
4859fi
4860XGETTEXT="$ac_cv_path_XGETTEXT"
4861if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004862 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4863echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004864else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004865 { echo "$as_me:$LINENO: result: no" >&5
4866echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004867fi
4868
4869 rm -f messages.po
4870
4871
4872# Prepare PATH_SEPARATOR.
4873# The user is always right.
4874if test "${PATH_SEPARATOR+set}" != set; then
4875 echo "#! /bin/sh" >conf$$.sh
4876 echo "exit 0" >>conf$$.sh
4877 chmod +x conf$$.sh
4878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879 PATH_SEPARATOR=';'
4880 else
4881 PATH_SEPARATOR=:
4882 fi
4883 rm -f conf$$.sh
4884fi
4885
4886# Find out how to test for executable files. Don't use a zero-byte file,
4887# as systems may use methods other than mode bits to determine executability.
4888cat >conf$$.file <<_ASEOF
4889#! /bin/sh
4890exit 0
4891_ASEOF
4892chmod +x conf$$.file
4893if test -x conf$$.file >/dev/null 2>&1; then
4894 ac_executable_p="test -x"
4895else
4896 ac_executable_p="test -f"
4897fi
4898rm -f conf$$.file
4899
4900# Extract the first word of "msgmerge", so it can be a program name with args.
4901set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004904if test "${ac_cv_path_MSGMERGE+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907 case "$MSGMERGE" in
4908 [\\/]* | ?:[\\/]*)
4909 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4910 ;;
4911 *)
4912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913 for ac_dir in $PATH; do
4914 IFS="$ac_save_IFS"
4915 test -z "$ac_dir" && ac_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4919 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4920 break 2
4921 fi
4922 fi
4923 done
4924 done
4925 IFS="$ac_save_IFS"
4926 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4927 ;;
4928esac
4929fi
4930MSGMERGE="$ac_cv_path_MSGMERGE"
4931if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004932 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4933echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004934else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004935 { echo "$as_me:$LINENO: result: no" >&5
4936echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004937fi
4938
4939
4940 if test "$GMSGFMT" != ":"; then
4941 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4942 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4943 : ;
4944 else
4945 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004946 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4947echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004948 GMSGFMT=":"
4949 fi
4950 fi
4951
4952 if test "$XGETTEXT" != ":"; then
4953 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4954 (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
4955 : ;
4956 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004957 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4958echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004959 XGETTEXT=":"
4960 fi
4961 rm -f messages.po
4962 fi
4963
Theodore Ts'oe1052142006-10-21 21:46:47 -04004964 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004965
4966
4967if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004972if test "${ac_cv_prog_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004974else
4975 if test -n "$RANLIB"; then
4976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004984 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 -05004985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004990done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004991IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004992
4993fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004994fi
4995RANLIB=$ac_cv_prog_RANLIB
4996if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004997 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4998echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004999else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005000 { echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005002fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005003
Theodore Ts'oe1052142006-10-21 21:46:47 -04005004
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005005fi
5006if test -z "$ac_cv_prog_RANLIB"; then
5007 ac_ct_RANLIB=$RANLIB
5008 # Extract the first word of "ranlib", so it can be a program name with args.
5009set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04005010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005012if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 if test -n "$ac_ct_RANLIB"; then
5016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005024 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 -05005025 ac_cv_prog_ac_ct_RANLIB="ranlib"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005031IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005032
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005033fi
5034fi
5035ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5036if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005037 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5038echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005039else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005040 { echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005042fi
5043
Theodore Ts'oe1052142006-10-21 21:46:47 -04005044 if test "x$ac_ct_RANLIB" = x; then
5045 RANLIB=":"
5046 else
5047 case $cross_compiling:$ac_tool_warned in
5048yes:)
5049{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5050whose name does not start with the host triplet. If you think this
5051configuration is useful to you, please write to autoconf@gnu.org." >&5
5052echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5053whose name does not start with the host triplet. If you think this
5054configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5055ac_tool_warned=yes ;;
5056esac
5057 RANLIB=$ac_ct_RANLIB
5058 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005059else
5060 RANLIB="$ac_cv_prog_RANLIB"
5061fi
5062
5063
Theodore Ts'oe1052142006-10-21 21:46:47 -04005064 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5065echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005066if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 ac_check_lib_save_LIBS=$LIBS
5070LIBS="-lcposix $LIBS"
5071cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077
Theodore Ts'oe1052142006-10-21 21:46:47 -04005078/* Override any GCC internal prototype to avoid an error.
5079 Use char because int might match the return type of a GCC
5080 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005081#ifdef __cplusplus
5082extern "C"
5083#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084char strerror ();
5085int
5086main ()
5087{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005088return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005094if { (ac_try="$ac_link"
5095case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098esac
5099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005106 (exit $ac_status); } && {
5107 test -z "$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest$ac_exeext &&
5110 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111 ac_cv_lib_cposix_strerror=yes
5112else
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
Theodore Ts'oe1052142006-10-21 21:46:47 -04005116 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005117fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005118
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005120 conftest$ac_exeext conftest.$ac_ext
5121LIBS=$ac_check_lib_save_LIBS
5122fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005123{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5124echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005125if test $ac_cv_lib_cposix_strerror = yes; then
5126 LIBS="$LIBS -lcposix"
5127fi
5128
5129
5130
Theodore Ts'oe1052142006-10-21 21:46:47 -04005131{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5132echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005133if test "${ac_cv_c_const+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142
5143int
5144main ()
5145{
5146/* FIXME: Include the comments suggested by Paul. */
5147#ifndef __cplusplus
5148 /* Ultrix mips cc rejects this. */
5149 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005150 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005151 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005152 char const *const *pcpcc;
5153 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005154 /* NEC SVR4.0.2 mips cc rejects this. */
5155 struct point {int x, y;};
5156 static struct point const zero = {0,0};
5157 /* AIX XL C 1.02.0.0 rejects this.
5158 It does not let you subtract one const X* pointer from another in
5159 an arm of an if-expression whose if-part is not a constant
5160 expression */
5161 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005162 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005163 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005164 ++pcpcc;
5165 ppc = (char**) pcpcc;
5166 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005167 { /* SCO 3.2v4 cc rejects this. */
5168 char *t;
5169 char const *s = 0 ? (char *) 0 : (char const *) 0;
5170
5171 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005172 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005173 }
5174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5175 int x[] = {25, 17};
5176 const int *foo = &x[0];
5177 ++foo;
5178 }
5179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5180 typedef const int *iptr;
5181 iptr p = 0;
5182 ++p;
5183 }
5184 { /* AIX XL C 1.02.0.0 rejects this saying
5185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5186 struct s { int j; const int *ap[3]; };
5187 struct s *b; b->j = 5;
5188 }
5189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5190 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005191 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005192 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005193 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005194#endif
5195
5196 ;
5197 return 0;
5198}
5199_ACEOF
5200rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005201if { (ac_try="$ac_compile"
5202case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205esac
5206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005217 ac_cv_c_const=yes
5218else
5219 echo "$as_me: failed program was:" >&5
5220sed 's/^/| /' conftest.$ac_ext >&5
5221
Theodore Ts'oe1052142006-10-21 21:46:47 -04005222 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005224
5225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005226fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005227{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5228echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005229if test $ac_cv_c_const = no; then
5230
5231cat >>confdefs.h <<\_ACEOF
5232#define const
5233_ACEOF
5234
5235fi
5236
5237
Theodore Ts'oe1052142006-10-21 21:46:47 -04005238 { echo "$as_me:$LINENO: checking for signed" >&5
5239echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005240if test "${bh_cv_c_signed+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243 cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h. */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h. */
5249
5250int
5251main ()
5252{
5253signed char x;
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005271 (exit $ac_status); } && {
5272 test -z "$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005275 bh_cv_c_signed=yes
5276else
5277 echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
Theodore Ts'oe1052142006-10-21 21:46:47 -04005280 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005281fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005282
5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005284fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005285{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5286echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005287 if test $bh_cv_c_signed = no; then
5288
5289cat >>confdefs.h <<\_ACEOF
5290#define signed
5291_ACEOF
5292
5293 fi
5294
Theodore Ts'oe1052142006-10-21 21:46:47 -04005295{ echo "$as_me:$LINENO: checking for inline" >&5
5296echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005297if test "${ac_cv_c_inline+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300 ac_cv_c_inline=no
5301for ac_kw in inline __inline__ __inline; do
5302 cat >conftest.$ac_ext <<_ACEOF
5303/* confdefs.h. */
5304_ACEOF
5305cat confdefs.h >>conftest.$ac_ext
5306cat >>conftest.$ac_ext <<_ACEOF
5307/* end confdefs.h. */
5308#ifndef __cplusplus
5309typedef int foo_t;
5310static $ac_kw foo_t static_foo () {return 0; }
5311$ac_kw foo_t foo () {return 0; }
5312#endif
5313
5314_ACEOF
5315rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005316if { (ac_try="$ac_compile"
5317case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320esac
5321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005328 (exit $ac_status); } && {
5329 test -z "$ac_c_werror_flag" ||
5330 test ! -s conftest.err
5331 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005332 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005333else
5334 echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
Theodore Ts'oe1052142006-10-21 21:46:47 -04005337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005338fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005339
5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005342done
5343
5344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005345{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5346echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005347
5348
5349case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005350 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005351 *)
5352 case $ac_cv_c_inline in
5353 no) ac_val=;;
5354 *) ac_val=$ac_cv_c_inline;;
5355 esac
5356 cat >>confdefs.h <<_ACEOF
5357#ifndef __cplusplus
5358#define inline $ac_val
5359#endif
5360_ACEOF
5361 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005362esac
5363
Theodore Ts'oe1052142006-10-21 21:46:47 -04005364{ echo "$as_me:$LINENO: checking for off_t" >&5
5365echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005366if test "${ac_cv_type_off_t+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005368else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005369 cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005376typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005377int
5378main ()
5379{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005381 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005382if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005383 return 0;
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005389if { (ac_try="$ac_compile"
5390case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005405 ac_cv_type_off_t=yes
5406else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005407 echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005409
Theodore Ts'oe1052142006-10-21 21:46:47 -04005410 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005411fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005412
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005414fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005415{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5416echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005417if test $ac_cv_type_off_t = yes; then
5418 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005419else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005420
5421cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005422#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005423_ACEOF
5424
5425fi
5426
Theodore Ts'oe1052142006-10-21 21:46:47 -04005427{ echo "$as_me:$LINENO: checking for size_t" >&5
5428echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005429if test "${ac_cv_type_size_t+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h. */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h. */
5438$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005439typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005440int
5441main ()
5442{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005443if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005444 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005445if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005446 return 0;
5447 ;
5448 return 0;
5449}
5450_ACEOF
5451rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005452if { (ac_try="$ac_compile"
5453case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456esac
5457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005464 (exit $ac_status); } && {
5465 test -z "$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5467 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005468 ac_cv_type_size_t=yes
5469else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005470 echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
Theodore Ts'oe1052142006-10-21 21:46:47 -04005473 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005474fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005478{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5479echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005480if test $ac_cv_type_size_t = yes; then
5481 :
5482else
5483
5484cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005485#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005486_ACEOF
5487
5488fi
5489
5490
Theodore Ts'oe1052142006-10-21 21:46:47 -04005491 { echo "$as_me:$LINENO: checking for long long" >&5
5492echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005493if test "${ac_cv_type_long_long+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. */
5502long long ll = 1LL; int i = 63;
5503int
5504main ()
5505{
5506long long llmax = (long long) -1;
5507 return ll << i | ll >> i | llmax / ll | llmax % ll;
5508 ;
5509 return 0;
5510}
5511_ACEOF
5512rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005513if { (ac_try="$ac_link"
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_link") 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_exeext &&
5529 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005530 ac_cv_type_long_long=yes
5531else
5532 echo "$as_me: failed program was:" >&5
5533sed 's/^/| /' conftest.$ac_ext >&5
5534
Theodore Ts'oe1052142006-10-21 21:46:47 -04005535 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005537
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005539 conftest$ac_exeext conftest.$ac_ext
5540fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005541{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5542echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005543 if test $ac_cv_type_long_long = yes; then
5544
5545cat >>confdefs.h <<\_ACEOF
5546#define HAVE_LONG_LONG 1
5547_ACEOF
5548
5549 fi
5550
5551
Theodore Ts'oe1052142006-10-21 21:46:47 -04005552 { echo "$as_me:$LINENO: checking for long double" >&5
5553echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005554if test "${gt_cv_c_long_double+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 if test "$GCC" = yes; then
5558 gt_cv_c_long_double=yes
5559 else
5560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566
5567 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5568 long double foo = 0.0;
5569 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5570 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5571
5572int
5573main ()
5574{
5575
5576 ;
5577 return 0;
5578}
5579_ACEOF
5580rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005597 gt_cv_c_long_double=yes
5598else
5599 echo "$as_me: failed program was:" >&5
5600sed 's/^/| /' conftest.$ac_ext >&5
5601
Theodore Ts'oe1052142006-10-21 21:46:47 -04005602 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005603fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005604
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005606 fi
5607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005608{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5609echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005610 if test $gt_cv_c_long_double = yes; then
5611
5612cat >>confdefs.h <<\_ACEOF
5613#define HAVE_LONG_DOUBLE 1
5614_ACEOF
5615
5616 fi
5617
5618
Theodore Ts'oe1052142006-10-21 21:46:47 -04005619 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5620echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621if test "${gt_cv_c_wchar_t+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 cat >conftest.$ac_ext <<_ACEOF
5625/* confdefs.h. */
5626_ACEOF
5627cat confdefs.h >>conftest.$ac_ext
5628cat >>conftest.$ac_ext <<_ACEOF
5629/* end confdefs.h. */
5630#include <stddef.h>
5631 wchar_t foo = (wchar_t)'\0';
5632int
5633main ()
5634{
5635
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_wchar_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_wchar_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_wchar_t" >&5
5668echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669 if test $gt_cv_c_wchar_t = yes; then
5670
5671cat >>confdefs.h <<\_ACEOF
5672#define HAVE_WCHAR_T 1
5673_ACEOF
5674
5675 fi
5676
5677
Theodore Ts'oe1052142006-10-21 21:46:47 -04005678 { echo "$as_me:$LINENO: checking for wint_t" >&5
5679echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005680if test "${gt_cv_c_wint_t+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683 cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689#include <wchar.h>
5690 wint_t foo = (wchar_t)'\0';
5691int
5692main ()
5693{
5694
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005700if { (ac_try="$ac_compile"
5701case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005712 (exit $ac_status); } && {
5713 test -z "$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5715 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005716 gt_cv_c_wint_t=yes
5717else
5718 echo "$as_me: failed program was:" >&5
5719sed 's/^/| /' conftest.$ac_ext >&5
5720
Theodore Ts'oe1052142006-10-21 21:46:47 -04005721 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005722fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005723
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5727echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005728 if test $gt_cv_c_wint_t = yes; then
5729
5730cat >>confdefs.h <<\_ACEOF
5731#define HAVE_WINT_T 1
5732_ACEOF
5733
5734 fi
5735
5736
Theodore Ts'oe1052142006-10-21 21:46:47 -04005737 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5738echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005739if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742 cat >conftest.$ac_ext <<_ACEOF
5743/* confdefs.h. */
5744_ACEOF
5745cat confdefs.h >>conftest.$ac_ext
5746cat >>conftest.$ac_ext <<_ACEOF
5747/* end confdefs.h. */
5748#include <sys/types.h>
5749#include <inttypes.h>
5750int
5751main ()
5752{
5753uintmax_t i = (uintmax_t) -1;
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005759if { (ac_try="$ac_compile"
5760case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005771 (exit $ac_status); } && {
5772 test -z "$ac_c_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005775 jm_ac_cv_header_inttypes_h=yes
5776else
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
Theodore Ts'oe1052142006-10-21 21:46:47 -04005780 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005784fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5786echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787 if test $jm_ac_cv_header_inttypes_h = yes; then
5788
5789cat >>confdefs.h <<_ACEOF
5790#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5791_ACEOF
5792
5793 fi
5794
5795
Theodore Ts'oe1052142006-10-21 21:46:47 -04005796 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5797echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800else
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */
5807#include <sys/types.h>
5808#include <stdint.h>
5809int
5810main ()
5811{
5812uintmax_t i = (uintmax_t) -1;
5813 ;
5814 return 0;
5815}
5816_ACEOF
5817rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005818if { (ac_try="$ac_compile"
5819case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822esac
5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005834 jm_ac_cv_header_stdint_h=yes
5835else
5836 echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
5838
Theodore Ts'oe1052142006-10-21 21:46:47 -04005839 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005841
5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005844{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5845echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005846 if test $jm_ac_cv_header_stdint_h = yes; then
5847
5848cat >>confdefs.h <<_ACEOF
5849#define HAVE_STDINT_H_WITH_UINTMAX 1
5850_ACEOF
5851
5852 fi
5853
5854
5855
5856
Theodore Ts'oe1052142006-10-21 21:46:47 -04005857 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5858echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005859if test "${gt_cv_c_intmax_t+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862 cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h. */
5868
5869#include <stddef.h>
5870#include <stdlib.h>
5871#if HAVE_STDINT_H_WITH_UINTMAX
5872#include <stdint.h>
5873#endif
5874#if HAVE_INTTYPES_H_WITH_UINTMAX
5875#include <inttypes.h>
5876#endif
5877
5878int
5879main ()
5880{
5881intmax_t x = -1;
5882 ;
5883 return 0;
5884}
5885_ACEOF
5886rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005887if { (ac_try="$ac_compile"
5888case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005903 gt_cv_c_intmax_t=yes
5904else
5905 echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
5907
Theodore Ts'oe1052142006-10-21 21:46:47 -04005908 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005909fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005910
5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005912fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005913{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5914echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005915 if test $gt_cv_c_intmax_t = yes; then
5916
5917cat >>confdefs.h <<\_ACEOF
5918#define HAVE_INTMAX_T 1
5919_ACEOF
5920
5921 fi
5922
5923
5924
Theodore Ts'oe1052142006-10-21 21:46:47 -04005925 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5926echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005927if test "${gt_cv_func_printf_posix+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930
5931 if test "$cross_compiling" = yes; then
5932
5933 cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h. */
5939
5940#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5941 notposix
5942#endif
5943
5944_ACEOF
5945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "notposix" >/dev/null 2>&1; then
5947 gt_cv_func_printf_posix="guessing no"
5948else
5949 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005950fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005951rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005953
5954else
5955 cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
5961
5962#include <stdio.h>
5963#include <string.h>
5964/* The string "%2$d %1$d", with dollar characters protected from the shell's
5965 dollar expansion (possibly an autoconf bug). */
5966static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5967static char buf[100];
5968int main ()
5969{
5970 sprintf (buf, format, 33, 55);
5971 return (strcmp (buf, "55 33") != 0);
5972}
5973_ACEOF
5974rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005975if { (ac_try="$ac_link"
5976case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 gt_cv_func_printf_posix=yes
5995else
5996 echo "$as_me: program exited with status $ac_status" >&5
5997echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000( exit $ac_status )
6001gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006003rm -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 -05006004fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006005
Theodore Ts'oe1052142006-10-21 21:46:47 -04006006
6007
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006009{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6010echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011 case $gt_cv_func_printf_posix in
6012 *yes)
6013
6014cat >>confdefs.h <<\_ACEOF
6015#define HAVE_POSIX_PRINTF 1
6016_ACEOF
6017
6018 ;;
6019 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006020
6021# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6022# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04006023{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6024echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025if test "${ac_cv_working_alloca_h+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006027else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006034#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035int
6036main ()
6037{
6038char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006039 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006040 ;
6041 return 0;
6042}
6043_ACEOF
6044rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006045if { (ac_try="$ac_link"
6046case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest$ac_exeext &&
6061 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006063else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006066
Theodore Ts'oe1052142006-10-21 21:46:47 -04006067 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006069
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006071 conftest$ac_exeext conftest.$ac_ext
6072fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006073{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6074echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006075if test $ac_cv_working_alloca_h = yes; then
6076
6077cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006078#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006080
6081fi
6082
Theodore Ts'oe1052142006-10-21 21:46:47 -04006083{ echo "$as_me:$LINENO: checking for alloca" >&5
6084echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085if test "${ac_cv_func_alloca_works+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006088 cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006094#ifdef __GNUC__
6095# define alloca __builtin_alloca
6096#else
6097# ifdef _MSC_VER
6098# include <malloc.h>
6099# define alloca _alloca
6100# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006101# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006102# include <alloca.h>
6103# else
6104# ifdef _AIX
6105 #pragma alloca
6106# else
6107# ifndef alloca /* predefined by HP cc +Olibcalls */
6108char *alloca ();
6109# endif
6110# endif
6111# endif
6112# endif
6113#endif
6114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115int
6116main ()
6117{
6118char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006119 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120 ;
6121 return 0;
6122}
6123_ACEOF
6124rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006125if { (ac_try="$ac_link"
6126case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest$ac_exeext &&
6141 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006142 ac_cv_func_alloca_works=yes
6143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006144 echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006146
Theodore Ts'oe1052142006-10-21 21:46:47 -04006147 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006148fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006149
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151 conftest$ac_exeext conftest.$ac_ext
6152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006153{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6154echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006155
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006156if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006157
6158cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006159#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006160_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006161
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006163 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6164# that cause trouble. Some versions do not even contain alloca or
6165# contain a buggy version. If you still want to use their alloca,
6166# use ar to extract alloca.o from them instead of compiling alloca.c.
6167
Theodore Ts'oe1052142006-10-21 21:46:47 -04006168ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169
6170cat >>confdefs.h <<\_ACEOF
6171#define C_ALLOCA 1
6172_ACEOF
6173
6174
Theodore Ts'oe1052142006-10-21 21:46:47 -04006175{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6176echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006177if test "${ac_cv_os_cray+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180 cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h. */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006186#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006187webecray
6188#else
6189wenotbecray
6190#endif
6191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006192_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006194 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006195 ac_cv_os_cray=yes
6196else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006197 ac_cv_os_cray=no
6198fi
6199rm -f conftest*
6200
6201fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006202{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6203echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006204if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006205 for ac_func in _getb67 GETB67 getb67; do
6206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006207{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6209if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006210 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006211else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006212 cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
6218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6220#define $ac_func innocuous_$ac_func
6221
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006222/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006223 which can conflict with char $ac_func (); below.
6224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 <limits.h> exists even on freestanding compilers. */
6226
6227#ifdef __STDC__
6228# include <limits.h>
6229#else
6230# include <assert.h>
6231#endif
6232
6233#undef $ac_func
6234
Theodore Ts'oe1052142006-10-21 21:46:47 -04006235/* Override any GCC internal prototype to avoid an error.
6236 Use char because int might match the return type of a GCC
6237 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006238#ifdef __cplusplus
6239extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006240#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006241char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006242/* The GNU C library defines this for functions which it implements
6243 to always fail with ENOSYS. Some functions are actually named
6244 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006245#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006246choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006247#endif
6248
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006249int
6250main ()
6251{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006252return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006253 ;
6254 return 0;
6255}
6256_ACEOF
6257rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006258if { (ac_try="$ac_link"
6259case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest$ac_exeext &&
6274 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006276else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006277 echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006279
Theodore Ts'oe1052142006-10-21 21:46:47 -04006280 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006281fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006282
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006284 conftest$ac_exeext conftest.$ac_ext
6285fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006286ac_res=`eval echo '${'$as_ac_var'}'`
6287 { echo "$as_me:$LINENO: result: $ac_res" >&5
6288echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006289if test `eval echo '${'$as_ac_var'}'` = yes; then
6290
6291cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006292#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006295 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006296fi
6297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006298 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006299fi
6300
Theodore Ts'oe1052142006-10-21 21:46:47 -04006301{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6302echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303if test "${ac_cv_c_stack_direction+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006305else
6306 if test "$cross_compiling" = yes; then
6307 ac_cv_c_stack_direction=0
6308else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006309 cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h. */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006316int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006317find_stack_direction ()
6318{
6319 static char *addr = 0;
6320 auto char dummy;
6321 if (addr == 0)
6322 {
6323 addr = &dummy;
6324 return find_stack_direction ();
6325 }
6326 else
6327 return (&dummy > addr) ? 1 : -1;
6328}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329
6330int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006331main ()
6332{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006333 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006334}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006335_ACEOF
6336rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006337if { (ac_try="$ac_link"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006356 ac_cv_c_stack_direction=1
6357else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006358 echo "$as_me: program exited with status $ac_status" >&5
6359echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362( exit $ac_status )
6363ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006364fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006365rm -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 -05006366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006367
6368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006370{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6371echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006372
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006374#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375_ACEOF
6376
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006377
6378fi
6379
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006380
6381
6382for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006383do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006389 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006390fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006391ac_res=`eval echo '${'$as_ac_Header'}'`
6392 { echo "$as_me:$LINENO: result: $ac_res" >&5
6393echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006394else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006396{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006398cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h. */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h. */
6404$ac_includes_default
6405#include <$ac_header>
6406_ACEOF
6407rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006408if { (ac_try="$ac_compile"
6409case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412esac
6413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006420 (exit $ac_status); } && {
6421 test -z "$ac_c_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006424 ac_header_compiler=yes
6425else
6426 echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
Theodore Ts'oe1052142006-10-21 21:46:47 -04006429 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006430fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006431
6432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6434echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435
6436# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006437{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006439cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */
6445#include <$ac_header>
6446_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006447if { (ac_try="$ac_cpp conftest.$ac_ext"
6448case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451esac
6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006459 (exit $ac_status); } >/dev/null && {
6460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006463 ac_header_preproc=yes
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_header_preproc=no
6469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006471rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006472{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6473echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474
6475# So? What about this header?
6476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6477 yes:no: )
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6482 ac_header_preproc=yes
6483 ;;
6484 no:yes:* )
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6488echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6492echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498 ;;
6499esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006500{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 eval "$as_ac_Header=\$ac_header_preproc"
6506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006507ac_res=`eval echo '${'$as_ac_Header'}'`
6508 { echo "$as_me:$LINENO: result: $ac_res" >&5
6509echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510
6511fi
6512if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515_ACEOF
6516
6517fi
6518
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006519done
6520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006521
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006522for ac_func in getpagesize
6523do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006525{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6527if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006529else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530 cat >conftest.$ac_ext <<_ACEOF
6531/* confdefs.h. */
6532_ACEOF
6533cat confdefs.h >>conftest.$ac_ext
6534cat >>conftest.$ac_ext <<_ACEOF
6535/* end confdefs.h. */
6536/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6538#define $ac_func innocuous_$ac_func
6539
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006540/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541 which can conflict with char $ac_func (); below.
6542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6543 <limits.h> exists even on freestanding compilers. */
6544
6545#ifdef __STDC__
6546# include <limits.h>
6547#else
6548# include <assert.h>
6549#endif
6550
6551#undef $ac_func
6552
Theodore Ts'oe1052142006-10-21 21:46:47 -04006553/* Override any GCC internal prototype to avoid an error.
6554 Use char because int might match the return type of a GCC
6555 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556#ifdef __cplusplus
6557extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006559char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006560/* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006563#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006564choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006565#endif
6566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006567int
6568main ()
6569{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006570return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006571 ;
6572 return 0;
6573}
6574_ACEOF
6575rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006576if { (ac_try="$ac_link"
6577case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580esac
6581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest$ac_exeext &&
6592 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006594else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006595 echo "$as_me: failed program was:" >&5
6596sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006597
Theodore Ts'oe1052142006-10-21 21:46:47 -04006598 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006599fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006600
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006602 conftest$ac_exeext conftest.$ac_ext
6603fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006604ac_res=`eval echo '${'$as_ac_var'}'`
6605 { echo "$as_me:$LINENO: result: $ac_res" >&5
6606echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607if test `eval echo '${'$as_ac_var'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6610_ACEOF
6611
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006612fi
6613done
6614
Theodore Ts'oe1052142006-10-21 21:46:47 -04006615{ echo "$as_me:$LINENO: checking for working mmap" >&5
6616echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006619else
6620 if test "$cross_compiling" = yes; then
6621 ac_cv_func_mmap_fixed_mapped=no
6622else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006623 cat >conftest.$ac_ext <<_ACEOF
6624/* confdefs.h. */
6625_ACEOF
6626cat confdefs.h >>conftest.$ac_ext
6627cat >>conftest.$ac_ext <<_ACEOF
6628/* end confdefs.h. */
6629$ac_includes_default
6630/* malloc might have been renamed as rpl_malloc. */
6631#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006632
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006633/* Thanks to Mike Haertel and Jim Avera for this test.
6634 Here is a matrix of mmap possibilities:
6635 mmap private not fixed
6636 mmap private fixed at somewhere currently unmapped
6637 mmap private fixed at somewhere already mapped
6638 mmap shared not fixed
6639 mmap shared fixed at somewhere currently unmapped
6640 mmap shared fixed at somewhere already mapped
6641 For private mappings, we should verify that changes cannot be read()
6642 back from the file, nor mmap's back from the file at a different
6643 address. (There have been systems where private was not correctly
6644 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006646 like early versions of FreeBSD and possibly contemporary NetBSD.)
6647 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006648 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006649
6650 Grep wants private fixed already mapped.
6651 The main things grep needs to know about mmap are:
6652 * does it exist and is it safe to write into the mmap'd area
6653 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006654
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006655#include <fcntl.h>
6656#include <sys/mman.h>
6657
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006658#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659char *malloc ();
6660#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006663#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006664/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006665# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006666# define HAVE_SYS_PARAM_H 1
6667# endif
6668
6669# ifdef _SC_PAGESIZE
6670# define getpagesize() sysconf(_SC_PAGESIZE)
6671# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006672# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006673# include <sys/param.h>
6674# ifdef EXEC_PAGESIZE
6675# define getpagesize() EXEC_PAGESIZE
6676# else /* no EXEC_PAGESIZE */
6677# ifdef NBPG
6678# define getpagesize() NBPG * CLSIZE
6679# ifndef CLSIZE
6680# define CLSIZE 1
6681# endif /* no CLSIZE */
6682# else /* no NBPG */
6683# ifdef NBPC
6684# define getpagesize() NBPC
6685# else /* no NBPC */
6686# ifdef PAGESIZE
6687# define getpagesize() PAGESIZE
6688# endif /* PAGESIZE */
6689# endif /* no NBPC */
6690# endif /* no NBPG */
6691# endif /* no EXEC_PAGESIZE */
6692# else /* no HAVE_SYS_PARAM_H */
6693# define getpagesize() 8192 /* punt totally */
6694# endif /* no HAVE_SYS_PARAM_H */
6695# endif /* no _SC_PAGESIZE */
6696
6697#endif /* no HAVE_GETPAGESIZE */
6698
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006699int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006701{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006702 char *data, *data2, *data3;
6703 int i, pagesize;
6704 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006705
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006707
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708 /* First, make a file with some known garbage in it. */
6709 data = (char *) malloc (pagesize);
6710 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006711 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712 for (i = 0; i < pagesize; ++i)
6713 *(data + i) = rand ();
6714 umask (0);
6715 fd = creat ("conftest.mmap", 0600);
6716 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006717 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006719 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722 /* Next, try to mmap the file at a fixed address which already has
6723 something else allocated at it. If we can, also make sure that
6724 we see the same garbage. */
6725 fd = open ("conftest.mmap", O_RDWR);
6726 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006727 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728 data2 = (char *) malloc (2 * pagesize);
6729 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006730 return 1;
6731 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6733 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006734 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735 for (i = 0; i < pagesize; ++i)
6736 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006737 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006739 /* Finally, make sure that changes to the mapped area do not
6740 percolate back to the file as seen by read(). (This is a bug on
6741 some variants of i386 svr4.0.) */
6742 for (i = 0; i < pagesize; ++i)
6743 *(data2 + i) = *(data2 + i) + 1;
6744 data3 = (char *) malloc (pagesize);
6745 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006746 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006748 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749 for (i = 0; i < pagesize; ++i)
6750 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006751 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006753 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006754}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755_ACEOF
6756rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006757if { (ac_try="$ac_link"
6758case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761esac
6762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006767 { (case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770esac
6771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006776 ac_cv_func_mmap_fixed_mapped=yes
6777else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778 echo "$as_me: program exited with status $ac_status" >&5
6779echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006781
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006782( exit $ac_status )
6783ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006784fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006785rm -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 -05006786fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006787
6788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006790{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6791echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006792if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006793
6794cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006795#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006797
6798fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006800
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006801
Theodore Ts'oe1052142006-10-21 21:46:47 -04006802 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6803echo $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 -05006804if test "${ac_cv_gnu_library_2_1+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006806else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807 cat >conftest.$ac_ext <<_ACEOF
6808/* confdefs.h. */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006813
6814#include <features.h>
6815#ifdef __GNU_LIBRARY__
6816 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6817 Lucky GNU user
6818 #endif
6819#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820
6821_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006823 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006824 ac_cv_gnu_library_2_1=yes
6825else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006826 ac_cv_gnu_library_2_1=no
6827fi
6828rm -f conftest*
6829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830
6831
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006832fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006833{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6834echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006835
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006836 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006837
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006838
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006839
6840
Theodore Ts'oe1052142006-10-21 21:46:47 -04006841 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6842echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006845else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006847 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006849 # Guess based on the CPU.
6850 case "$host_cpu" in
6851 alpha* | i3456786 | m68k | s390*)
6852 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6853 *)
6854 gt_cv_int_divbyzero_sigfpe="guessing no";;
6855 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006857else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006858 cat >conftest.$ac_ext <<_ACEOF
6859/* confdefs.h. */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006864
6865#include <stdlib.h>
6866#include <signal.h>
6867
6868static void
6869#ifdef __cplusplus
6870sigfpe_handler (int sig)
6871#else
6872sigfpe_handler (sig) int sig;
6873#endif
6874{
6875 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6876 exit (sig != SIGFPE);
6877}
6878
6879int x = 1;
6880int y = 0;
6881int z;
6882int nan;
6883
6884int main ()
6885{
6886 signal (SIGFPE, sigfpe_handler);
6887/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6888#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6889 signal (SIGTRAP, sigfpe_handler);
6890#endif
6891/* Linux/SPARC yields signal SIGILL. */
6892#if defined (__sparc__) && defined (__linux__)
6893 signal (SIGILL, sigfpe_handler);
6894#endif
6895
6896 z = x / y;
6897 nan = y / y;
6898 exit (1);
6899}
6900
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901_ACEOF
6902rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006903if { (ac_try="$ac_link"
6904case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6907esac
6908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006913 { (case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6916esac
6917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006922 gt_cv_int_divbyzero_sigfpe=yes
6923else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006924 echo "$as_me: program exited with status $ac_status" >&5
6925echo "$as_me: failed program was:" >&5
6926sed 's/^/| /' conftest.$ac_ext >&5
6927
6928( exit $ac_status )
6929gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006931rm -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 -04006932fi
6933
Theodore Ts'oe1052142006-10-21 21:46:47 -04006934
6935
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006936fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006937{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6938echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006939 case "$gt_cv_int_divbyzero_sigfpe" in
6940 *yes) value=1;;
6941 *) value=0;;
6942 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943
6944cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006945#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006946_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006947
6948
6949
Theodore Ts'oe1052142006-10-21 21:46:47 -04006950 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6951echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961unsigned long long ull = 1ULL; int i = 63;
6962int
6963main ()
6964{
6965unsigned long long ullmax = (unsigned long long) -1;
6966 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6967 ;
6968 return 0;
6969}
6970_ACEOF
6971rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006972if { (ac_try="$ac_link"
6973case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976esac
6977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest$ac_exeext &&
6988 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006989 ac_cv_type_unsigned_long_long=yes
6990else
6991 echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
Theodore Ts'oe1052142006-10-21 21:46:47 -04006994 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006996
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998 conftest$ac_exeext conftest.$ac_ext
6999fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007000{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7001echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002 if test $ac_cv_type_unsigned_long_long = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define HAVE_UNSIGNED_LONG_LONG 1
7006_ACEOF
7007
7008 fi
7009
7010
7011
7012
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007013 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 -05007014
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007015 test $ac_cv_type_unsigned_long_long = yes \
7016 && ac_type='unsigned long long' \
7017 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018
7019cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007020#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021_ACEOF
7022
7023 else
7024
7025cat >>confdefs.h <<\_ACEOF
7026#define HAVE_UINTMAX_T 1
7027_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007028
7029 fi
7030
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007031
Theodore Ts'oe1052142006-10-21 21:46:47 -04007032 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7033echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034if test "${gt_cv_header_inttypes_h+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007036else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037
7038 cat >conftest.$ac_ext <<_ACEOF
7039/* confdefs.h. */
7040_ACEOF
7041cat confdefs.h >>conftest.$ac_ext
7042cat >>conftest.$ac_ext <<_ACEOF
7043/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007044#include <sys/types.h>
7045#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046int
7047main ()
7048{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050 ;
7051 return 0;
7052}
7053_ACEOF
7054rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007055if { (ac_try="$ac_compile"
7056case "(($ac_try" in
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7059esac
7060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007067 (exit $ac_status); } && {
7068 test -z "$ac_c_werror_flag" ||
7069 test ! -s conftest.err
7070 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007071 gt_cv_header_inttypes_h=yes
7072else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073 echo "$as_me: failed program was:" >&5
7074sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007075
Theodore Ts'oe1052142006-10-21 21:46:47 -04007076 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007078
7079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007080
7081fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007082{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7083echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007084 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085
7086cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007087#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007088_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007089
7090 fi
7091
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007092
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007093
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007094 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007095 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7096echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007099else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100
7101 cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h. */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007107#include <inttypes.h>
7108#ifdef PRId32
7109char *p = PRId32;
7110#endif
7111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007112int
7113main ()
7114{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116 ;
7117 return 0;
7118}
7119_ACEOF
7120rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007121if { (ac_try="$ac_compile"
7122case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125esac
7126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007137 gt_cv_inttypes_pri_broken=no
7138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139 echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007141
Theodore Ts'oe1052142006-10-21 21:46:47 -04007142 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007144
7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007146
7147fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007148{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7149echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007150 fi
7151 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152
7153cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007154#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007155_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007156
7157 fi
7158
7159
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007160
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161for ac_header in stdint.h
7162do
7163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007170ac_res=`eval echo '${'$as_ac_Header'}'`
7171 { echo "$as_me:$LINENO: result: $ac_res" >&5
7172echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173else
7174 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h. */
7183$ac_includes_default
7184#include <$ac_header>
7185_ACEOF
7186rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007187if { (ac_try="$ac_compile"
7188case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191esac
7192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 ac_header_compiler=yes
7204else
7205 echo "$as_me: failed program was:" >&5
7206sed 's/^/| /' conftest.$ac_ext >&5
7207
Theodore Ts'oe1052142006-10-21 21:46:47 -04007208 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007209fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007210
7211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7213echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007214
7215# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007216{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h. */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h. */
7224#include <$ac_header>
7225_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007226if { (ac_try="$ac_cpp conftest.$ac_ext"
7227case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230esac
7231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007238 (exit $ac_status); } >/dev/null && {
7239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242 ac_header_preproc=yes
7243else
7244 echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 ac_header_preproc=no
7248fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007250rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007251{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7252echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007253
7254# So? What about this header?
7255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7256 yes:no: )
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7261 ac_header_preproc=yes
7262 ;;
7263 no:yes:* )
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7267echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7271echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007277 ;;
7278esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284 eval "$as_ac_Header=\$ac_header_preproc"
7285fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007286ac_res=`eval echo '${'$as_ac_Header'}'`
7287 { echo "$as_me:$LINENO: result: $ac_res" >&5
7288echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289
7290fi
7291if test `eval echo '${'$as_ac_Header'}'` = yes; then
7292 cat >>confdefs.h <<_ACEOF
7293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7294_ACEOF
7295
7296fi
7297
7298done
7299
Theodore Ts'oe1052142006-10-21 21:46:47 -04007300 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7301echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007302 result=
7303 cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h. */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h. */
7309
7310#include <limits.h>
7311#if HAVE_STDINT_H
7312#include <stdint.h>
7313#endif
7314#ifdef SIZE_MAX
7315Found it
7316#endif
7317
7318_ACEOF
7319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320 $EGREP "Found it" >/dev/null 2>&1; then
7321 result=yes
7322fi
7323rm -f conftest*
7324
7325 if test -z "$result"; then
7326 if test "$cross_compiling" = yes; then
7327 # Depending upon the size, compute the lo and hi bounds.
7328cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h. */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h. */
7334#include <stddef.h>
7335int
7336main ()
7337{
7338static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7339test_array [0] = 0
7340
7341 ;
7342 return 0;
7343}
7344_ACEOF
7345rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007346if { (ac_try="$ac_compile"
7347case "(($ac_try" in
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7350esac
7351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007362 ac_lo=0 ac_mid=0
7363 while :; do
7364 cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h. */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h. */
7370#include <stddef.h>
7371int
7372main ()
7373{
7374static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7375test_array [0] = 0
7376
7377 ;
7378 return 0;
7379}
7380_ACEOF
7381rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007382if { (ac_try="$ac_compile"
7383case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386esac
7387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007398 ac_hi=$ac_mid; break
7399else
7400 echo "$as_me: failed program was:" >&5
7401sed 's/^/| /' conftest.$ac_ext >&5
7402
Theodore Ts'oe1052142006-10-21 21:46:47 -04007403 ac_lo=`expr $ac_mid + 1`
7404 if test $ac_lo -le $ac_mid; then
7405 ac_lo= ac_hi=
7406 break
7407 fi
7408 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007410
7411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007412 done
7413else
7414 echo "$as_me: failed program was:" >&5
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
Theodore Ts'oe1052142006-10-21 21:46:47 -04007417 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418/* confdefs.h. */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h. */
7423#include <stddef.h>
7424int
7425main ()
7426{
7427static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7428test_array [0] = 0
7429
7430 ;
7431 return 0;
7432}
7433_ACEOF
7434rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007435if { (ac_try="$ac_compile"
7436case "(($ac_try" in
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7439esac
7440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007451 ac_hi=-1 ac_mid=-1
7452 while :; do
7453 cat >conftest.$ac_ext <<_ACEOF
7454/* confdefs.h. */
7455_ACEOF
7456cat confdefs.h >>conftest.$ac_ext
7457cat >>conftest.$ac_ext <<_ACEOF
7458/* end confdefs.h. */
7459#include <stddef.h>
7460int
7461main ()
7462{
7463static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7464test_array [0] = 0
7465
7466 ;
7467 return 0;
7468}
7469_ACEOF
7470rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007471if { (ac_try="$ac_compile"
7472case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475esac
7476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487 ac_lo=$ac_mid; break
7488else
7489 echo "$as_me: failed program was:" >&5
7490sed 's/^/| /' conftest.$ac_ext >&5
7491
Theodore Ts'oe1052142006-10-21 21:46:47 -04007492 ac_hi=`expr '(' $ac_mid ')' - 1`
7493 if test $ac_mid -le $ac_hi; then
7494 ac_lo= ac_hi=
7495 break
7496 fi
7497 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007499
7500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007501 done
7502else
7503 echo "$as_me: failed program was:" >&5
7504sed 's/^/| /' conftest.$ac_ext >&5
7505
Theodore Ts'oe1052142006-10-21 21:46:47 -04007506 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007508
7509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007511
7512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513# Binary search between lo and hi bounds.
7514while test "x$ac_lo" != "x$ac_hi"; do
7515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7516 cat >conftest.$ac_ext <<_ACEOF
7517/* confdefs.h. */
7518_ACEOF
7519cat confdefs.h >>conftest.$ac_ext
7520cat >>conftest.$ac_ext <<_ACEOF
7521/* end confdefs.h. */
7522#include <stddef.h>
7523int
7524main ()
7525{
7526static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7527test_array [0] = 0
7528
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007534if { (ac_try="$ac_compile"
7535case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
7539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550 ac_hi=$ac_mid
7551else
7552 echo "$as_me: failed program was:" >&5
7553sed 's/^/| /' conftest.$ac_ext >&5
7554
Theodore Ts'oe1052142006-10-21 21:46:47 -04007555 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007557
7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559done
7560case $ac_lo in
7561?*) res_hi=$ac_lo;;
7562'') result=? ;;
7563esac
7564else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565 cat >conftest.$ac_ext <<_ACEOF
7566/* confdefs.h. */
7567_ACEOF
7568cat confdefs.h >>conftest.$ac_ext
7569cat >>conftest.$ac_ext <<_ACEOF
7570/* end confdefs.h. */
7571#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007572static long int longval () { return ~(size_t)0 / 10; }
7573static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574#include <stdio.h>
7575#include <stdlib.h>
7576int
7577main ()
7578{
7579
7580 FILE *f = fopen ("conftest.val", "w");
7581 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007582 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583 if ((~(size_t)0 / 10) < 0)
7584 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007585 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007586 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007587 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007588 fprintf (f, "%ld\n", i);
7589 }
7590 else
7591 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007592 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007593 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007594 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595 fprintf (f, "%lu\n", i);
7596 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007597 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598
7599 ;
7600 return 0;
7601}
7602_ACEOF
7603rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007604if { (ac_try="$ac_link"
7605case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608esac
7609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007614 { (case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 res_hi=`cat conftest.val`
7624else
7625 echo "$as_me: program exited with status $ac_status" >&5
7626echo "$as_me: failed program was:" >&5
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629( exit $ac_status )
7630result=?
7631fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007632rm -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 -05007633fi
7634rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007636 if test "$cross_compiling" = yes; then
7637 # Depending upon the size, compute the lo and hi bounds.
7638cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644#include <stddef.h>
7645int
7646main ()
7647{
7648static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7649test_array [0] = 0
7650
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007656if { (ac_try="$ac_compile"
7657case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660esac
7661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007668 (exit $ac_status); } && {
7669 test -z "$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672 ac_lo=0 ac_mid=0
7673 while :; do
7674 cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
7680#include <stddef.h>
7681int
7682main ()
7683{
7684static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7685test_array [0] = 0
7686
7687 ;
7688 return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007692if { (ac_try="$ac_compile"
7693case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007708 ac_hi=$ac_mid; break
7709else
7710 echo "$as_me: failed program was:" >&5
7711sed 's/^/| /' conftest.$ac_ext >&5
7712
Theodore Ts'oe1052142006-10-21 21:46:47 -04007713 ac_lo=`expr $ac_mid + 1`
7714 if test $ac_lo -le $ac_mid; then
7715 ac_lo= ac_hi=
7716 break
7717 fi
7718 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007720
7721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007722 done
7723else
7724 echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
Theodore Ts'oe1052142006-10-21 21:46:47 -04007727 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007728/* confdefs.h. */
7729_ACEOF
7730cat confdefs.h >>conftest.$ac_ext
7731cat >>conftest.$ac_ext <<_ACEOF
7732/* end confdefs.h. */
7733#include <stddef.h>
7734int
7735main ()
7736{
7737static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7738test_array [0] = 0
7739
7740 ;
7741 return 0;
7742}
7743_ACEOF
7744rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007745if { (ac_try="$ac_compile"
7746case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
7750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007761 ac_hi=-1 ac_mid=-1
7762 while :; do
7763 cat >conftest.$ac_ext <<_ACEOF
7764/* confdefs.h. */
7765_ACEOF
7766cat confdefs.h >>conftest.$ac_ext
7767cat >>conftest.$ac_ext <<_ACEOF
7768/* end confdefs.h. */
7769#include <stddef.h>
7770int
7771main ()
7772{
7773static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7774test_array [0] = 0
7775
7776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007781if { (ac_try="$ac_compile"
7782case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007793 (exit $ac_status); } && {
7794 test -z "$ac_c_werror_flag" ||
7795 test ! -s conftest.err
7796 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007797 ac_lo=$ac_mid; break
7798else
7799 echo "$as_me: failed program was:" >&5
7800sed 's/^/| /' conftest.$ac_ext >&5
7801
Theodore Ts'oe1052142006-10-21 21:46:47 -04007802 ac_hi=`expr '(' $ac_mid ')' - 1`
7803 if test $ac_mid -le $ac_hi; then
7804 ac_lo= ac_hi=
7805 break
7806 fi
7807 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007809
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007811 done
7812else
7813 echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
Theodore Ts'oe1052142006-10-21 21:46:47 -04007816 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007821
7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823# Binary search between lo and hi bounds.
7824while test "x$ac_lo" != "x$ac_hi"; do
7825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7826 cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h. */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h. */
7832#include <stddef.h>
7833int
7834main ()
7835{
7836static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7837test_array [0] = 0
7838
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007844if { (ac_try="$ac_compile"
7845case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007856 (exit $ac_status); } && {
7857 test -z "$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7859 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007860 ac_hi=$ac_mid
7861else
7862 echo "$as_me: failed program was:" >&5
7863sed 's/^/| /' conftest.$ac_ext >&5
7864
Theodore Ts'oe1052142006-10-21 21:46:47 -04007865 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007867
7868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007869done
7870case $ac_lo in
7871?*) res_lo=$ac_lo;;
7872'') result=? ;;
7873esac
7874else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007875 cat >conftest.$ac_ext <<_ACEOF
7876/* confdefs.h. */
7877_ACEOF
7878cat confdefs.h >>conftest.$ac_ext
7879cat >>conftest.$ac_ext <<_ACEOF
7880/* end confdefs.h. */
7881#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007882static long int longval () { return ~(size_t)0 % 10; }
7883static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007884#include <stdio.h>
7885#include <stdlib.h>
7886int
7887main ()
7888{
7889
7890 FILE *f = fopen ("conftest.val", "w");
7891 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007892 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007893 if ((~(size_t)0 % 10) < 0)
7894 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007895 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007896 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007897 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007898 fprintf (f, "%ld\n", i);
7899 }
7900 else
7901 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007902 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007903 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007904 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007905 fprintf (f, "%lu\n", i);
7906 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007907 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007908
7909 ;
7910 return 0;
7911}
7912_ACEOF
7913rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007914if { (ac_try="$ac_link"
7915case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918esac
7919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007924 { (case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 res_lo=`cat conftest.val`
7934else
7935 echo "$as_me: program exited with status $ac_status" >&5
7936echo "$as_me: failed program was:" >&5
7937sed 's/^/| /' conftest.$ac_ext >&5
7938
7939( exit $ac_status )
7940result=?
7941fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007942rm -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 -05007943fi
7944rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007946 if test "$cross_compiling" = yes; then
7947 # Depending upon the size, compute the lo and hi bounds.
7948cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7954#include <stddef.h>
7955int
7956main ()
7957{
7958static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7959test_array [0] = 0
7960
7961 ;
7962 return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007966if { (ac_try="$ac_compile"
7967case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970esac
7971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007982 ac_lo=0 ac_mid=0
7983 while :; do
7984 cat >conftest.$ac_ext <<_ACEOF
7985/* confdefs.h. */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h. */
7990#include <stddef.h>
7991int
7992main ()
7993{
7994static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7995test_array [0] = 0
7996
7997 ;
7998 return 0;
7999}
8000_ACEOF
8001rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008002if { (ac_try="$ac_compile"
8003case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006esac
8007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008018 ac_hi=$ac_mid; break
8019else
8020 echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
Theodore Ts'oe1052142006-10-21 21:46:47 -04008023 ac_lo=`expr $ac_mid + 1`
8024 if test $ac_lo -le $ac_mid; then
8025 ac_lo= ac_hi=
8026 break
8027 fi
8028 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008030
8031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008032 done
8033else
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
Theodore Ts'oe1052142006-10-21 21:46:47 -04008037 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008038/* confdefs.h. */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h. */
8043#include <stddef.h>
8044int
8045main ()
8046{
8047static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8048test_array [0] = 0
8049
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008055if { (ac_try="$ac_compile"
8056case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071 ac_hi=-1 ac_mid=-1
8072 while :; do
8073 cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h. */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h. */
8079#include <stddef.h>
8080int
8081main ()
8082{
8083static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8084test_array [0] = 0
8085
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008091if { (ac_try="$ac_compile"
8092case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095esac
8096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008107 ac_lo=$ac_mid; break
8108else
8109 echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
Theodore Ts'oe1052142006-10-21 21:46:47 -04008112 ac_hi=`expr '(' $ac_mid ')' - 1`
8113 if test $ac_mid -le $ac_hi; then
8114 ac_lo= ac_hi=
8115 break
8116 fi
8117 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008118fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008119
8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008121 done
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_lo= ac_hi=
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
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008130fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008131
8132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008133# Binary search between lo and hi bounds.
8134while test "x$ac_lo" != "x$ac_hi"; do
8135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8136 cat >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 <stddef.h>
8143int
8144main ()
8145{
8146static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8147test_array [0] = 0
8148
8149 ;
8150 return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008154if { (ac_try="$ac_compile"
8155case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008161 ac_status=$?
8162 grep -v '^ *+' conftest.er1 >conftest.err
8163 rm -f conftest.er1
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008170 ac_hi=$ac_mid
8171else
8172 echo "$as_me: failed program was:" >&5
8173sed 's/^/| /' conftest.$ac_ext >&5
8174
Theodore Ts'oe1052142006-10-21 21:46:47 -04008175 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008176fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008177
8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008179done
8180case $ac_lo in
8181?*) fits_in_uint=$ac_lo;;
8182'') result=? ;;
8183esac
8184else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008185 cat >conftest.$ac_ext <<_ACEOF
8186/* confdefs.h. */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h. */
8191#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008192static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8193static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008194#include <stdio.h>
8195#include <stdlib.h>
8196int
8197main ()
8198{
8199
8200 FILE *f = fopen ("conftest.val", "w");
8201 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008202 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008203 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8204 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008205 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008206 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008207 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008208 fprintf (f, "%ld\n", i);
8209 }
8210 else
8211 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008212 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008213 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008214 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008215 fprintf (f, "%lu\n", i);
8216 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008217 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008218
8219 ;
8220 return 0;
8221}
8222_ACEOF
8223rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008224if { (ac_try="$ac_link"
8225case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 fits_in_uint=`cat conftest.val`
8244else
8245 echo "$as_me: program exited with status $ac_status" >&5
8246echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
8248
8249( exit $ac_status )
8250result=?
8251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008252rm -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 -05008253fi
8254rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256 if test "$fits_in_uint" = 1; then
8257 cat >conftest.$ac_ext <<_ACEOF
8258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h. */
8263#include <stddef.h>
8264 extern size_t foo;
8265 extern unsigned long foo;
8266
8267int
8268main ()
8269{
8270
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008276if { (ac_try="$ac_compile"
8277case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292 fits_in_uint=0
8293else
8294 echo "$as_me: failed program was:" >&5
8295sed 's/^/| /' conftest.$ac_ext >&5
8296
Theodore Ts'oe1052142006-10-21 21:46:47 -04008297
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008298fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008299
8300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008301 fi
8302 if test -z "$result"; then
8303 if test "$fits_in_uint" = 1; then
8304 result="$res_hi$res_lo"U
8305 else
8306 result="$res_hi$res_lo"UL
8307 fi
8308 else
8309 result='~(size_t)0'
8310 fi
8311 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008312 { echo "$as_me:$LINENO: result: $result" >&5
8313echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008314 if test "$result" != yes; then
8315
8316cat >>confdefs.h <<_ACEOF
8317#define SIZE_MAX $result
8318_ACEOF
8319
8320 fi
8321
8322
8323
8324
8325for ac_header in stdint.h
8326do
8327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008334ac_res=`eval echo '${'$as_ac_Header'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008337else
8338 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008339{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008341cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
8347$ac_includes_default
8348#include <$ac_header>
8349_ACEOF
8350rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008351if { (ac_try="$ac_compile"
8352case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355esac
8356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008367 ac_header_compiler=yes
8368else
8369 echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
Theodore Ts'oe1052142006-10-21 21:46:47 -04008372 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008373fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008374
8375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8377echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008378
8379# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008380{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h. */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h. */
8388#include <$ac_header>
8389_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008390if { (ac_try="$ac_cpp conftest.$ac_ext"
8391case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394esac
8395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008402 (exit $ac_status); } >/dev/null && {
8403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008406 ac_header_preproc=yes
8407else
8408 echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_header_preproc=no
8412fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008413
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008414rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008415{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008417
8418# So? What about this header?
8419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8420 yes:no: )
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8425 ac_header_preproc=yes
8426 ;;
8427 no:yes:* )
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008440
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008441 ;;
8442esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008443{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 eval "$as_ac_Header=\$ac_header_preproc"
8449fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008450ac_res=`eval echo '${'$as_ac_Header'}'`
8451 { echo "$as_me:$LINENO: result: $ac_res" >&5
8452echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008453
8454fi
8455if test `eval echo '${'$as_ac_Header'}'` = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8458_ACEOF
8459
8460fi
8461
8462done
8463
8464
8465
8466 if test "X$prefix" = "XNONE"; then
8467 acl_final_prefix="$ac_default_prefix"
8468 else
8469 acl_final_prefix="$prefix"
8470 fi
8471 if test "X$exec_prefix" = "XNONE"; then
8472 acl_final_exec_prefix='${prefix}'
8473 else
8474 acl_final_exec_prefix="$exec_prefix"
8475 fi
8476 acl_save_prefix="$prefix"
8477 prefix="$acl_final_prefix"
8478 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8479 prefix="$acl_save_prefix"
8480
8481
Theodore Ts'oe1052142006-10-21 21:46:47 -04008482# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008483if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008484 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008485else
8486 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008487fi
8488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008489# Prepare PATH_SEPARATOR.
8490# The user is always right.
8491if test "${PATH_SEPARATOR+set}" != set; then
8492 echo "#! /bin/sh" >conf$$.sh
8493 echo "exit 0" >>conf$$.sh
8494 chmod +x conf$$.sh
8495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8496 PATH_SEPARATOR=';'
8497 else
8498 PATH_SEPARATOR=:
8499 fi
8500 rm -f conf$$.sh
8501fi
8502ac_prog=ld
8503if test "$GCC" = yes; then
8504 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008505 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8506echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008507 case $host in
8508 *-*-mingw*)
8509 # gcc leaves a trailing carriage return which upsets mingw
8510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8511 *)
8512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8513 esac
8514 case $ac_prog in
8515 # Accept absolute paths.
8516 [\\/]* | [A-Za-z]:[\\/]*)
8517 re_direlt='/[^/][^/]*/\.\./'
8518 # Canonicalize the path of ld
8519 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8520 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8521 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8522 done
8523 test -z "$LD" && LD="$ac_prog"
8524 ;;
8525 "")
8526 # If it fails, then pretend we aren't using GCC.
8527 ac_prog=ld
8528 ;;
8529 *)
8530 # If it is relative, then search for the first ld in PATH.
8531 with_gnu_ld=unknown
8532 ;;
8533 esac
8534elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008535 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8536echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008537else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008538 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8539echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008540fi
8541if test "${acl_cv_path_LD+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 if test -z "$LD"; then
8545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8546 for ac_dir in $PATH; do
8547 test -z "$ac_dir" && ac_dir=.
8548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8549 acl_cv_path_LD="$ac_dir/$ac_prog"
8550 # Check to see if the program is GNU ld. I'd rather use --version,
8551 # but apparently some GNU ld's only accept -v.
8552 # Break only if it was the GNU/non-GNU ld that we prefer.
8553 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8554 *GNU* | *'with BFD'*)
8555 test "$with_gnu_ld" != no && break ;;
8556 *)
8557 test "$with_gnu_ld" != yes && break ;;
8558 esac
8559 fi
8560 done
8561 IFS="$ac_save_ifs"
8562else
8563 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8564fi
8565fi
8566
8567LD="$acl_cv_path_LD"
8568if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008569 { echo "$as_me:$LINENO: result: $LD" >&5
8570echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008571else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008572 { echo "$as_me:$LINENO: result: no" >&5
8573echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008574fi
8575test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8576echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8577 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008578{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8579echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008580if test "${acl_cv_prog_gnu_ld+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8584case `$LD -v 2>&1 </dev/null` in
8585*GNU* | *'with BFD'*)
8586 acl_cv_prog_gnu_ld=yes ;;
8587*)
8588 acl_cv_prog_gnu_ld=no ;;
8589esac
8590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008591{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8592echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008593with_gnu_ld=$acl_cv_prog_gnu_ld
8594
8595
8596
Theodore Ts'oe1052142006-10-21 21:46:47 -04008597 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8598echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008599if test "${acl_cv_rpath+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601else
8602
8603 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8604 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8605 . ./conftest.sh
8606 rm -f ./conftest.sh
8607 acl_cv_rpath=done
8608
8609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008610{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8611echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612 wl="$acl_cv_wl"
8613 libext="$acl_cv_libext"
8614 shlibext="$acl_cv_shlibext"
8615 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8616 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8617 hardcode_direct="$acl_cv_hardcode_direct"
8618 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008619 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008621 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008622else
8623 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008624fi
8625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008626
8627
8628
8629
8630
8631
8632
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008633 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008634
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008635 acl_save_prefix="$prefix"
8636 prefix="$acl_final_prefix"
8637 acl_save_exec_prefix="$exec_prefix"
8638 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008639
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008640 eval additional_includedir=\"$includedir\"
8641 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008642
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008643 exec_prefix="$acl_save_exec_prefix"
8644 prefix="$acl_save_prefix"
8645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008646
Theodore Ts'oe1052142006-10-21 21:46:47 -04008647# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008648if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008649 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008650 if test "X$withval" = "Xno"; then
8651 use_additional=no
8652 else
8653 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008654
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008655 acl_save_prefix="$prefix"
8656 prefix="$acl_final_prefix"
8657 acl_save_exec_prefix="$exec_prefix"
8658 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008659
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008660 eval additional_includedir=\"$includedir\"
8661 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008662
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008663 exec_prefix="$acl_save_exec_prefix"
8664 prefix="$acl_save_prefix"
8665
8666 else
8667 additional_includedir="$withval/include"
8668 additional_libdir="$withval/lib"
8669 fi
8670 fi
8671
Theodore Ts'oe1052142006-10-21 21:46:47 -04008672fi
8673
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008674 LIBICONV=
8675 LTLIBICONV=
8676 INCICONV=
8677 rpathdirs=
8678 ltrpathdirs=
8679 names_already_handled=
8680 names_next_round='iconv '
8681 while test -n "$names_next_round"; do
8682 names_this_round="$names_next_round"
8683 names_next_round=
8684 for name in $names_this_round; do
8685 already_handled=
8686 for n in $names_already_handled; do
8687 if test "$n" = "$name"; then
8688 already_handled=yes
8689 break
8690 fi
8691 done
8692 if test -z "$already_handled"; then
8693 names_already_handled="$names_already_handled $name"
8694 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8695 eval value=\"\$HAVE_LIB$uppername\"
8696 if test -n "$value"; then
8697 if test "$value" = yes; then
8698 eval value=\"\$LIB$uppername\"
8699 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8700 eval value=\"\$LTLIB$uppername\"
8701 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8702 else
8703 :
8704 fi
8705 else
8706 found_dir=
8707 found_la=
8708 found_so=
8709 found_a=
8710 if test $use_additional = yes; then
8711 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8712 found_dir="$additional_libdir"
8713 found_so="$additional_libdir/lib$name.$shlibext"
8714 if test -f "$additional_libdir/lib$name.la"; then
8715 found_la="$additional_libdir/lib$name.la"
8716 fi
8717 else
8718 if test -f "$additional_libdir/lib$name.$libext"; then
8719 found_dir="$additional_libdir"
8720 found_a="$additional_libdir/lib$name.$libext"
8721 if test -f "$additional_libdir/lib$name.la"; then
8722 found_la="$additional_libdir/lib$name.la"
8723 fi
8724 fi
8725 fi
8726 fi
8727 if test "X$found_dir" = "X"; then
8728 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008729
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008730 acl_save_prefix="$prefix"
8731 prefix="$acl_final_prefix"
8732 acl_save_exec_prefix="$exec_prefix"
8733 exec_prefix="$acl_final_exec_prefix"
8734 eval x=\"$x\"
8735 exec_prefix="$acl_save_exec_prefix"
8736 prefix="$acl_save_prefix"
8737
8738 case "$x" in
8739 -L*)
8740 dir=`echo "X$x" | sed -e 's/^X-L//'`
8741 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8742 found_dir="$dir"
8743 found_so="$dir/lib$name.$shlibext"
8744 if test -f "$dir/lib$name.la"; then
8745 found_la="$dir/lib$name.la"
8746 fi
8747 else
8748 if test -f "$dir/lib$name.$libext"; then
8749 found_dir="$dir"
8750 found_a="$dir/lib$name.$libext"
8751 if test -f "$dir/lib$name.la"; then
8752 found_la="$dir/lib$name.la"
8753 fi
8754 fi
8755 fi
8756 ;;
8757 esac
8758 if test "X$found_dir" != "X"; then
8759 break
8760 fi
8761 done
8762 fi
8763 if test "X$found_dir" != "X"; then
8764 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8765 if test "X$found_so" != "X"; then
8766 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8767 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8768 else
8769 haveit=
8770 for x in $ltrpathdirs; do
8771 if test "X$x" = "X$found_dir"; then
8772 haveit=yes
8773 break
8774 fi
8775 done
8776 if test -z "$haveit"; then
8777 ltrpathdirs="$ltrpathdirs $found_dir"
8778 fi
8779 if test "$hardcode_direct" = yes; then
8780 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8781 else
8782 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8784 haveit=
8785 for x in $rpathdirs; do
8786 if test "X$x" = "X$found_dir"; then
8787 haveit=yes
8788 break
8789 fi
8790 done
8791 if test -z "$haveit"; then
8792 rpathdirs="$rpathdirs $found_dir"
8793 fi
8794 else
8795 haveit=
8796 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008797
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008798 acl_save_prefix="$prefix"
8799 prefix="$acl_final_prefix"
8800 acl_save_exec_prefix="$exec_prefix"
8801 exec_prefix="$acl_final_exec_prefix"
8802 eval x=\"$x\"
8803 exec_prefix="$acl_save_exec_prefix"
8804 prefix="$acl_save_prefix"
8805
8806 if test "X$x" = "X-L$found_dir"; then
8807 haveit=yes
8808 break
8809 fi
8810 done
8811 if test -z "$haveit"; then
8812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8813 fi
8814 if test "$hardcode_minus_L" != no; then
8815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8816 else
8817 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8818 fi
8819 fi
8820 fi
8821 fi
8822 else
8823 if test "X$found_a" != "X"; then
8824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8825 else
8826 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8827 fi
8828 fi
8829 additional_includedir=
8830 case "$found_dir" in
8831 */lib | */lib/)
8832 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8833 additional_includedir="$basedir/include"
8834 ;;
8835 esac
8836 if test "X$additional_includedir" != "X"; then
8837 if test "X$additional_includedir" != "X/usr/include"; then
8838 haveit=
8839 if test "X$additional_includedir" = "X/usr/local/include"; then
8840 if test -n "$GCC"; then
8841 case $host_os in
8842 linux*) haveit=yes;;
8843 esac
8844 fi
8845 fi
8846 if test -z "$haveit"; then
8847 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008848
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008849 acl_save_prefix="$prefix"
8850 prefix="$acl_final_prefix"
8851 acl_save_exec_prefix="$exec_prefix"
8852 exec_prefix="$acl_final_exec_prefix"
8853 eval x=\"$x\"
8854 exec_prefix="$acl_save_exec_prefix"
8855 prefix="$acl_save_prefix"
8856
8857 if test "X$x" = "X-I$additional_includedir"; then
8858 haveit=yes
8859 break
8860 fi
8861 done
8862 if test -z "$haveit"; then
8863 if test -d "$additional_includedir"; then
8864 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8865 fi
8866 fi
8867 fi
8868 fi
8869 fi
8870 if test -n "$found_la"; then
8871 save_libdir="$libdir"
8872 case "$found_la" in
8873 */* | *\\*) . "$found_la" ;;
8874 *) . "./$found_la" ;;
8875 esac
8876 libdir="$save_libdir"
8877 for dep in $dependency_libs; do
8878 case "$dep" in
8879 -L*)
8880 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8881 if test "X$additional_libdir" != "X/usr/lib"; then
8882 haveit=
8883 if test "X$additional_libdir" = "X/usr/local/lib"; then
8884 if test -n "$GCC"; then
8885 case $host_os in
8886 linux*) haveit=yes;;
8887 esac
8888 fi
8889 fi
8890 if test -z "$haveit"; then
8891 haveit=
8892 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008894 acl_save_prefix="$prefix"
8895 prefix="$acl_final_prefix"
8896 acl_save_exec_prefix="$exec_prefix"
8897 exec_prefix="$acl_final_exec_prefix"
8898 eval x=\"$x\"
8899 exec_prefix="$acl_save_exec_prefix"
8900 prefix="$acl_save_prefix"
8901
8902 if test "X$x" = "X-L$additional_libdir"; then
8903 haveit=yes
8904 break
8905 fi
8906 done
8907 if test -z "$haveit"; then
8908 if test -d "$additional_libdir"; then
8909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8910 fi
8911 fi
8912 haveit=
8913 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008914
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008915 acl_save_prefix="$prefix"
8916 prefix="$acl_final_prefix"
8917 acl_save_exec_prefix="$exec_prefix"
8918 exec_prefix="$acl_final_exec_prefix"
8919 eval x=\"$x\"
8920 exec_prefix="$acl_save_exec_prefix"
8921 prefix="$acl_save_prefix"
8922
8923 if test "X$x" = "X-L$additional_libdir"; then
8924 haveit=yes
8925 break
8926 fi
8927 done
8928 if test -z "$haveit"; then
8929 if test -d "$additional_libdir"; then
8930 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8931 fi
8932 fi
8933 fi
8934 fi
8935 ;;
8936 -R*)
8937 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8938 if test "$enable_rpath" != no; then
8939 haveit=
8940 for x in $rpathdirs; do
8941 if test "X$x" = "X$dir"; then
8942 haveit=yes
8943 break
8944 fi
8945 done
8946 if test -z "$haveit"; then
8947 rpathdirs="$rpathdirs $dir"
8948 fi
8949 haveit=
8950 for x in $ltrpathdirs; do
8951 if test "X$x" = "X$dir"; then
8952 haveit=yes
8953 break
8954 fi
8955 done
8956 if test -z "$haveit"; then
8957 ltrpathdirs="$ltrpathdirs $dir"
8958 fi
8959 fi
8960 ;;
8961 -l*)
8962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8963 ;;
8964 *.la)
8965 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8966 ;;
8967 *)
8968 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8970 ;;
8971 esac
8972 done
8973 fi
8974 else
8975 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8977 fi
8978 fi
8979 fi
8980 done
8981 done
8982 if test "X$rpathdirs" != "X"; then
8983 if test -n "$hardcode_libdir_separator"; then
8984 alldirs=
8985 for found_dir in $rpathdirs; do
8986 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8987 done
8988 acl_save_libdir="$libdir"
8989 libdir="$alldirs"
8990 eval flag=\"$hardcode_libdir_flag_spec\"
8991 libdir="$acl_save_libdir"
8992 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8993 else
8994 for found_dir in $rpathdirs; do
8995 acl_save_libdir="$libdir"
8996 libdir="$found_dir"
8997 eval flag=\"$hardcode_libdir_flag_spec\"
8998 libdir="$acl_save_libdir"
8999 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9000 done
9001 fi
9002 fi
9003 if test "X$ltrpathdirs" != "X"; then
9004 for found_dir in $ltrpathdirs; do
9005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9006 done
9007 fi
9008
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009009
9010
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009012
9013
9014
9015
Theodore Ts'oe1052142006-10-21 21:46:47 -04009016 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9017echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009018if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009020else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009021 cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h. */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h. */
9027$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04009028typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009029int
9030main ()
9031{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009032if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009033 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04009034if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009035 return 0;
9036 ;
9037 return 0;
9038}
9039_ACEOF
9040rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009041if { (ac_try="$ac_compile"
9042case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045esac
9046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009053 (exit $ac_status); } && {
9054 test -z "$ac_c_werror_flag" ||
9055 test ! -s conftest.err
9056 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009057 ac_cv_type_ptrdiff_t=yes
9058else
9059 echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
Theodore Ts'oe1052142006-10-21 21:46:47 -04009062 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009063fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009064
9065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009067{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9068echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009069if test $ac_cv_type_ptrdiff_t = yes; then
9070 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009072
9073cat >>confdefs.h <<\_ACEOF
9074#define ptrdiff_t long
9075_ACEOF
9076
9077
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009078fi
9079
9080
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009081
9082
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009083
9084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009085
9086
9087
9088
9089
9090for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009091stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009092do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009098 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009100ac_res=`eval echo '${'$as_ac_Header'}'`
9101 { echo "$as_me:$LINENO: result: $ac_res" >&5
9102echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009103else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009107cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113$ac_includes_default
9114#include <$ac_header>
9115_ACEOF
9116rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009117if { (ac_try="$ac_compile"
9118case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009133 ac_header_compiler=yes
9134else
9135 echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
Theodore Ts'oe1052142006-10-21 21:46:47 -04009138 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009140
9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9143echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009144
9145# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009146{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009148cat >conftest.$ac_ext <<_ACEOF
9149/* confdefs.h. */
9150_ACEOF
9151cat confdefs.h >>conftest.$ac_ext
9152cat >>conftest.$ac_ext <<_ACEOF
9153/* end confdefs.h. */
9154#include <$ac_header>
9155_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009156if { (ac_try="$ac_cpp conftest.$ac_ext"
9157case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160esac
9161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009168 (exit $ac_status); } >/dev/null && {
9169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009172 ac_header_preproc=yes
9173else
9174 echo "$as_me: failed program was:" >&5
9175sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 ac_header_preproc=no
9178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009180rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009181{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9182echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009183
9184# So? What about this header?
9185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9186 yes:no: )
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9191 ac_header_preproc=yes
9192 ;;
9193 no:yes:* )
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9201echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009207 ;;
9208esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 eval "$as_ac_Header=\$ac_header_preproc"
9215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009216ac_res=`eval echo '${'$as_ac_Header'}'`
9217 { echo "$as_me:$LINENO: result: $ac_res" >&5
9218echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009219
9220fi
9221if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222 cat >>confdefs.h <<_ACEOF
9223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9224_ACEOF
9225
9226fi
9227
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009228done
9229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9254mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9255strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9256__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009257do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009262 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264 cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h. */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h. */
9270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9272#define $ac_func innocuous_$ac_func
9273
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009274/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009275 which can conflict with char $ac_func (); below.
9276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277 <limits.h> exists even on freestanding compilers. */
9278
9279#ifdef __STDC__
9280# include <limits.h>
9281#else
9282# include <assert.h>
9283#endif
9284
9285#undef $ac_func
9286
Theodore Ts'oe1052142006-10-21 21:46:47 -04009287/* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009290#ifdef __cplusplus
9291extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009292#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009294/* The GNU C library defines this for functions which it implements
9295 to always fail with ENOSYS. Some functions are actually named
9296 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009297#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009298choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009299#endif
9300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009301int
9302main ()
9303{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009304return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009305 ;
9306 return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009310if { (ac_try="$ac_link"
9311case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314esac
9315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest$ac_exeext &&
9326 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009327 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009328else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009329 echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009331
Theodore Ts'oe1052142006-10-21 21:46:47 -04009332 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009333fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009334
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009336 conftest$ac_exeext conftest.$ac_ext
9337fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009338ac_res=`eval echo '${'$as_ac_var'}'`
9339 { echo "$as_me:$LINENO: result: $ac_res" >&5
9340echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009341if test `eval echo '${'$as_ac_var'}'` = yes; then
9342 cat >>confdefs.h <<_ACEOF
9343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9344_ACEOF
9345
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009346fi
9347done
9348
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009350
Theodore Ts'oe1052142006-10-21 21:46:47 -04009351 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9352echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009353if test "${ac_cv_have_decl__snprintf+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355else
9356 cat >conftest.$ac_ext <<_ACEOF
9357/* confdefs.h. */
9358_ACEOF
9359cat confdefs.h >>conftest.$ac_ext
9360cat >>conftest.$ac_ext <<_ACEOF
9361/* end confdefs.h. */
9362#include <stdio.h>
9363int
9364main ()
9365{
9366
9367#ifndef _snprintf
9368 char *p = (char *) _snprintf;
9369#endif
9370
9371 ;
9372 return 0;
9373}
9374_ACEOF
9375rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009376if { (ac_try="$ac_compile"
9377case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9380esac
9381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009388 (exit $ac_status); } && {
9389 test -z "$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009392 ac_cv_have_decl__snprintf=yes
9393else
9394 echo "$as_me: failed program was:" >&5
9395sed 's/^/| /' conftest.$ac_ext >&5
9396
Theodore Ts'oe1052142006-10-21 21:46:47 -04009397 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009398fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009399
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009401fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009402{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9403echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009404 if test $ac_cv_have_decl__snprintf = yes; then
9405 gt_value=1
9406 else
9407 gt_value=0
9408 fi
9409
9410cat >>confdefs.h <<_ACEOF
9411#define HAVE_DECL__SNPRINTF $gt_value
9412_ACEOF
9413
9414
9415
Theodore Ts'oe1052142006-10-21 21:46:47 -04009416 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9417echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009418if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421 cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h. */
9427#include <stdio.h>
9428int
9429main ()
9430{
9431
9432#ifndef _snwprintf
9433 char *p = (char *) _snwprintf;
9434#endif
9435
9436 ;
9437 return 0;
9438}
9439_ACEOF
9440rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009441if { (ac_try="$ac_compile"
9442case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445esac
9446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009457 ac_cv_have_decl__snwprintf=yes
9458else
9459 echo "$as_me: failed program was:" >&5
9460sed 's/^/| /' conftest.$ac_ext >&5
9461
Theodore Ts'oe1052142006-10-21 21:46:47 -04009462 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009463fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009464
9465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009466fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009467{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9468echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009469 if test $ac_cv_have_decl__snwprintf = yes; then
9470 gt_value=1
9471 else
9472 gt_value=0
9473 fi
9474
9475cat >>confdefs.h <<_ACEOF
9476#define HAVE_DECL__SNWPRINTF $gt_value
9477_ACEOF
9478
9479
9480
9481
Theodore Ts'oe1052142006-10-21 21:46:47 -04009482 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9483echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009484if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487 cat >conftest.$ac_ext <<_ACEOF
9488/* confdefs.h. */
9489_ACEOF
9490cat confdefs.h >>conftest.$ac_ext
9491cat >>conftest.$ac_ext <<_ACEOF
9492/* end confdefs.h. */
9493#include <stdio.h>
9494int
9495main ()
9496{
9497
9498#ifndef feof_unlocked
9499 char *p = (char *) feof_unlocked;
9500#endif
9501
9502 ;
9503 return 0;
9504}
9505_ACEOF
9506rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009507if { (ac_try="$ac_compile"
9508case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511esac
9512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523 ac_cv_have_decl_feof_unlocked=yes
9524else
9525 echo "$as_me: failed program was:" >&5
9526sed 's/^/| /' conftest.$ac_ext >&5
9527
Theodore Ts'oe1052142006-10-21 21:46:47 -04009528 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009530
9531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009533{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9534echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009535 if test $ac_cv_have_decl_feof_unlocked = yes; then
9536 gt_value=1
9537 else
9538 gt_value=0
9539 fi
9540
9541cat >>confdefs.h <<_ACEOF
9542#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9543_ACEOF
9544
9545
9546
Theodore Ts'oe1052142006-10-21 21:46:47 -04009547 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9548echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009549if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551else
9552 cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
9558#include <stdio.h>
9559int
9560main ()
9561{
9562
9563#ifndef fgets_unlocked
9564 char *p = (char *) fgets_unlocked;
9565#endif
9566
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009572if { (ac_try="$ac_compile"
9573case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576esac
9577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009584 (exit $ac_status); } && {
9585 test -z "$ac_c_werror_flag" ||
9586 test ! -s conftest.err
9587 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009588 ac_cv_have_decl_fgets_unlocked=yes
9589else
9590 echo "$as_me: failed program was:" >&5
9591sed 's/^/| /' conftest.$ac_ext >&5
9592
Theodore Ts'oe1052142006-10-21 21:46:47 -04009593 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009595
9596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009598{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9599echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009600 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9601 gt_value=1
9602 else
9603 gt_value=0
9604 fi
9605
9606cat >>confdefs.h <<_ACEOF
9607#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9608_ACEOF
9609
9610
9611
Theodore Ts'oe1052142006-10-21 21:46:47 -04009612 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9613echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009614if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617 cat >conftest.$ac_ext <<_ACEOF
9618/* confdefs.h. */
9619_ACEOF
9620cat confdefs.h >>conftest.$ac_ext
9621cat >>conftest.$ac_ext <<_ACEOF
9622/* end confdefs.h. */
9623#include <stdio.h>
9624int
9625main ()
9626{
9627
9628#ifndef getc_unlocked
9629 char *p = (char *) getc_unlocked;
9630#endif
9631
9632 ;
9633 return 0;
9634}
9635_ACEOF
9636rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009637if { (ac_try="$ac_compile"
9638case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641esac
9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653 ac_cv_have_decl_getc_unlocked=yes
9654else
9655 echo "$as_me: failed program was:" >&5
9656sed 's/^/| /' conftest.$ac_ext >&5
9657
Theodore Ts'oe1052142006-10-21 21:46:47 -04009658 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009660
9661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009662fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009663{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9664echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009665 if test $ac_cv_have_decl_getc_unlocked = yes; then
9666 gt_value=1
9667 else
9668 gt_value=0
9669 fi
9670
9671cat >>confdefs.h <<_ACEOF
9672#define HAVE_DECL_GETC_UNLOCKED $gt_value
9673_ACEOF
9674
9675
9676
9677 case $gt_cv_func_printf_posix in
9678 *yes) HAVE_POSIX_PRINTF=1 ;;
9679 *) HAVE_POSIX_PRINTF=0 ;;
9680 esac
9681
9682 if test "$ac_cv_func_asprintf" = yes; then
9683 HAVE_ASPRINTF=1
9684 else
9685 HAVE_ASPRINTF=0
9686 fi
9687
9688 if test "$ac_cv_func_snprintf" = yes; then
9689 HAVE_SNPRINTF=1
9690 else
9691 HAVE_SNPRINTF=0
9692 fi
9693
9694 if test "$ac_cv_func_wprintf" = yes; then
9695 HAVE_WPRINTF=1
9696 else
9697 HAVE_WPRINTF=0
9698 fi
9699
9700
9701
9702
9703
9704
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009705
9706 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009707
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009708 for element in $INCICONV; do
9709 haveit=
9710 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009712 acl_save_prefix="$prefix"
9713 prefix="$acl_final_prefix"
9714 acl_save_exec_prefix="$exec_prefix"
9715 exec_prefix="$acl_final_exec_prefix"
9716 eval x=\"$x\"
9717 exec_prefix="$acl_save_exec_prefix"
9718 prefix="$acl_save_prefix"
9719
9720 if test "X$x" = "X$element"; then
9721 haveit=yes
9722 break
9723 fi
9724 done
9725 if test -z "$haveit"; then
9726 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9727 fi
9728 done
9729
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009730
Theodore Ts'oe1052142006-10-21 21:46:47 -04009731 { echo "$as_me:$LINENO: checking for iconv" >&5
9732echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009733if test "${am_cv_func_iconv+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009736
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009737 am_cv_func_iconv="no, consider installing GNU libiconv"
9738 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009739 cat >conftest.$ac_ext <<_ACEOF
9740/* confdefs.h. */
9741_ACEOF
9742cat confdefs.h >>conftest.$ac_ext
9743cat >>conftest.$ac_ext <<_ACEOF
9744/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009745#include <stdlib.h>
9746#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009747int
9748main ()
9749{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009750iconv_t cd = iconv_open("","");
9751 iconv(cd,NULL,NULL,NULL,NULL);
9752 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009753 ;
9754 return 0;
9755}
9756_ACEOF
9757rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009758if { (ac_try="$ac_link"
9759case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762esac
9763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest$ac_exeext &&
9774 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009775 am_cv_func_iconv=yes
9776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777 echo "$as_me: failed program was:" >&5
9778sed 's/^/| /' conftest.$ac_ext >&5
9779
Theodore Ts'oe1052142006-10-21 21:46:47 -04009780
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009782
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009784 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009785 if test "$am_cv_func_iconv" != yes; then
9786 am_save_LIBS="$LIBS"
9787 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009788 cat >conftest.$ac_ext <<_ACEOF
9789/* confdefs.h. */
9790_ACEOF
9791cat confdefs.h >>conftest.$ac_ext
9792cat >>conftest.$ac_ext <<_ACEOF
9793/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009794#include <stdlib.h>
9795#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796int
9797main ()
9798{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009799iconv_t cd = iconv_open("","");
9800 iconv(cd,NULL,NULL,NULL,NULL);
9801 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009802 ;
9803 return 0;
9804}
9805_ACEOF
9806rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807if { (ac_try="$ac_link"
9808case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811esac
9812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest$ac_exeext &&
9823 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009824 am_cv_lib_iconv=yes
9825 am_cv_func_iconv=yes
9826else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009827 echo "$as_me: failed program was:" >&5
9828sed 's/^/| /' conftest.$ac_ext >&5
9829
Theodore Ts'oe1052142006-10-21 21:46:47 -04009830
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009832
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009834 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009835 LIBS="$am_save_LIBS"
9836 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009837
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9840echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009841 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009842
9843cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009844#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009846
9847 fi
9848 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009849 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9850echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9851 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9852echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009853 else
9854 CPPFLAGS="$am_save_CPPFLAGS"
9855 LIBICONV=
9856 LTLIBICONV=
9857 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009858
9859
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009860
9861 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009862 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9863echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009864 if test "${am_cv_proto_iconv+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009866else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867
9868 cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009874
9875#include <stdlib.h>
9876#include <iconv.h>
9877extern
9878#ifdef __cplusplus
9879"C"
9880#endif
9881#if defined(__STDC__) || defined(__cplusplus)
9882size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9883#else
9884size_t iconv();
9885#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009887int
9888main ()
9889{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009891 ;
9892 return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009896if { (ac_try="$ac_compile"
9897case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009912 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009913else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
Theodore Ts'oe1052142006-10-21 21:46:47 -04009917 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009919
9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009921 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 +00009922fi
9923
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009924 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009925 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926 }$am_cv_proto_iconv" >&5
9927echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009928 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009929
9930cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009931#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009932_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009933
9934 fi
9935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936
Theodore Ts'oe1052142006-10-21 21:46:47 -04009937 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9938echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939if test "${am_cv_langinfo_codeset+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009941else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942 cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009948#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009949int
9950main ()
9951{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009952char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009953 ;
9954 return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009958if { (ac_try="$ac_link"
9959case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest$ac_exeext &&
9974 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009975 am_cv_langinfo_codeset=yes
9976else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009979
Theodore Ts'oe1052142006-10-21 21:46:47 -04009980 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009982
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984 conftest$ac_exeext conftest.$ac_ext
9985
9986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009987{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9988echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009989 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990
9991cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009992#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009994
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009995 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009996
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009997 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009998
Theodore Ts'oe1052142006-10-21 21:46:47 -04009999 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10000echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004 cat >conftest.$ac_ext <<_ACEOF
10005/* confdefs.h. */
10006_ACEOF
10007cat confdefs.h >>conftest.$ac_ext
10008cat >>conftest.$ac_ext <<_ACEOF
10009/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010010#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010011int
10012main ()
10013{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010014return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015 ;
10016 return 0;
10017}
10018_ACEOF
10019rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010020if { (ac_try="$ac_link"
10021case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024esac
10025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest$ac_exeext &&
10036 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010037 am_cv_val_LC_MESSAGES=yes
10038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010039 echo "$as_me: failed program was:" >&5
10040sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010041
Theodore Ts'oe1052142006-10-21 21:46:47 -040010042 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010044
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010046 conftest$ac_exeext conftest.$ac_ext
10047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010048{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10049echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010050 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010051
10052cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010053#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010054_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010055
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010056 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010057
10058 fi
10059
10060 for ac_prog in bison
10061do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010062 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010063set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010066if test "${ac_cv_prog_INTLBISON+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010068else
10069 if test -n "$INTLBISON"; then
10070 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073for as_dir in $PATH
10074do
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010078 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 -050010079 ac_cv_prog_INTLBISON="$ac_prog"
10080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 break 2
10082 fi
10083done
10084done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010085IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010086
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010087fi
10088fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010089INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010090if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010091 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10092echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010093else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010094 { echo "$as_me:$LINENO: result: no" >&5
10095echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010096fi
10097
Theodore Ts'oe1052142006-10-21 21:46:47 -040010098
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010100done
10101
10102 if test -z "$INTLBISON"; then
10103 ac_verc_fail=yes
10104 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010105 { echo "$as_me:$LINENO: checking version of bison" >&5
10106echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010107 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10108 case $ac_prog_version in
10109 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10110 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10111 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10112 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10113 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010114 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10115echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010116 fi
10117 if test $ac_verc_fail = yes; then
10118 INTLBISON=:
10119 fi
10120
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010121
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010122
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010123
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010124
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126
10127
10128
10129
10130
10131
10132
10133
10134
10135
Theodore Ts'oe1052142006-10-21 21:46:47 -040010136 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10137echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10138 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010139if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010140 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010141else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010142 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010143fi
10144
10145 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10146echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010147
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149
10150
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010151 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010152 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010153
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010154 LIBINTL=
10155 LTLIBINTL=
10156 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010157
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010158 if test "$USE_NLS" = "yes"; then
10159 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010160
Theodore Ts'oe1052142006-10-21 21:46:47 -040010161 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10162echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010163
Theodore Ts'oe1052142006-10-21 21:46:47 -040010164# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010165if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010166 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010167else
10168 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010169fi
10170
10171 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10172echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010173
10174 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10175 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177
10178
10179
10180
10181
Theodore Ts'oe1052142006-10-21 21:46:47 -040010182 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10183echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010187 cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010193#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010194extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010195extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196int
10197main ()
10198{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010199bindtextdomain ("", "");
10200return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201 ;
10202 return 0;
10203}
10204_ACEOF
10205rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010206if { (ac_try="$ac_link"
10207case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210esac
10211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010223 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010224else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010225 echo "$as_me: failed program was:" >&5
10226sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010227
Theodore Ts'oe1052142006-10-21 21:46:47 -040010228 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010230
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010232 conftest$ac_exeext conftest.$ac_ext
10233fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010234{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10235echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010236
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010237 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238
10239
10240
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010241 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010242
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010243 acl_save_prefix="$prefix"
10244 prefix="$acl_final_prefix"
10245 acl_save_exec_prefix="$exec_prefix"
10246 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010247
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010248 eval additional_includedir=\"$includedir\"
10249 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010250
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010251 exec_prefix="$acl_save_exec_prefix"
10252 prefix="$acl_save_prefix"
10253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254
Theodore Ts'oe1052142006-10-21 21:46:47 -040010255# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010256if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010257 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010258 if test "X$withval" = "Xno"; then
10259 use_additional=no
10260 else
10261 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010262
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010263 acl_save_prefix="$prefix"
10264 prefix="$acl_final_prefix"
10265 acl_save_exec_prefix="$exec_prefix"
10266 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010268 eval additional_includedir=\"$includedir\"
10269 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010270
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010271 exec_prefix="$acl_save_exec_prefix"
10272 prefix="$acl_save_prefix"
10273
10274 else
10275 additional_includedir="$withval/include"
10276 additional_libdir="$withval/lib"
10277 fi
10278 fi
10279
Theodore Ts'oe1052142006-10-21 21:46:47 -040010280fi
10281
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010282 LIBINTL=
10283 LTLIBINTL=
10284 INCINTL=
10285 rpathdirs=
10286 ltrpathdirs=
10287 names_already_handled=
10288 names_next_round='intl '
10289 while test -n "$names_next_round"; do
10290 names_this_round="$names_next_round"
10291 names_next_round=
10292 for name in $names_this_round; do
10293 already_handled=
10294 for n in $names_already_handled; do
10295 if test "$n" = "$name"; then
10296 already_handled=yes
10297 break
10298 fi
10299 done
10300 if test -z "$already_handled"; then
10301 names_already_handled="$names_already_handled $name"
10302 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10303 eval value=\"\$HAVE_LIB$uppername\"
10304 if test -n "$value"; then
10305 if test "$value" = yes; then
10306 eval value=\"\$LIB$uppername\"
10307 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10308 eval value=\"\$LTLIB$uppername\"
10309 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10310 else
10311 :
10312 fi
10313 else
10314 found_dir=
10315 found_la=
10316 found_so=
10317 found_a=
10318 if test $use_additional = yes; then
10319 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10320 found_dir="$additional_libdir"
10321 found_so="$additional_libdir/lib$name.$shlibext"
10322 if test -f "$additional_libdir/lib$name.la"; then
10323 found_la="$additional_libdir/lib$name.la"
10324 fi
10325 else
10326 if test -f "$additional_libdir/lib$name.$libext"; then
10327 found_dir="$additional_libdir"
10328 found_a="$additional_libdir/lib$name.$libext"
10329 if test -f "$additional_libdir/lib$name.la"; then
10330 found_la="$additional_libdir/lib$name.la"
10331 fi
10332 fi
10333 fi
10334 fi
10335 if test "X$found_dir" = "X"; then
10336 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010337
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010338 acl_save_prefix="$prefix"
10339 prefix="$acl_final_prefix"
10340 acl_save_exec_prefix="$exec_prefix"
10341 exec_prefix="$acl_final_exec_prefix"
10342 eval x=\"$x\"
10343 exec_prefix="$acl_save_exec_prefix"
10344 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010345
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010346 case "$x" in
10347 -L*)
10348 dir=`echo "X$x" | sed -e 's/^X-L//'`
10349 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10350 found_dir="$dir"
10351 found_so="$dir/lib$name.$shlibext"
10352 if test -f "$dir/lib$name.la"; then
10353 found_la="$dir/lib$name.la"
10354 fi
10355 else
10356 if test -f "$dir/lib$name.$libext"; then
10357 found_dir="$dir"
10358 found_a="$dir/lib$name.$libext"
10359 if test -f "$dir/lib$name.la"; then
10360 found_la="$dir/lib$name.la"
10361 fi
10362 fi
10363 fi
10364 ;;
10365 esac
10366 if test "X$found_dir" != "X"; then
10367 break
10368 fi
10369 done
10370 fi
10371 if test "X$found_dir" != "X"; then
10372 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10373 if test "X$found_so" != "X"; then
10374 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10375 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10376 else
10377 haveit=
10378 for x in $ltrpathdirs; do
10379 if test "X$x" = "X$found_dir"; then
10380 haveit=yes
10381 break
10382 fi
10383 done
10384 if test -z "$haveit"; then
10385 ltrpathdirs="$ltrpathdirs $found_dir"
10386 fi
10387 if test "$hardcode_direct" = yes; then
10388 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10389 else
10390 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10391 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10392 haveit=
10393 for x in $rpathdirs; do
10394 if test "X$x" = "X$found_dir"; then
10395 haveit=yes
10396 break
10397 fi
10398 done
10399 if test -z "$haveit"; then
10400 rpathdirs="$rpathdirs $found_dir"
10401 fi
10402 else
10403 haveit=
10404 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010405
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010406 acl_save_prefix="$prefix"
10407 prefix="$acl_final_prefix"
10408 acl_save_exec_prefix="$exec_prefix"
10409 exec_prefix="$acl_final_exec_prefix"
10410 eval x=\"$x\"
10411 exec_prefix="$acl_save_exec_prefix"
10412 prefix="$acl_save_prefix"
10413
10414 if test "X$x" = "X-L$found_dir"; then
10415 haveit=yes
10416 break
10417 fi
10418 done
10419 if test -z "$haveit"; then
10420 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10421 fi
10422 if test "$hardcode_minus_L" != no; then
10423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10424 else
10425 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10426 fi
10427 fi
10428 fi
10429 fi
10430 else
10431 if test "X$found_a" != "X"; then
10432 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10433 else
10434 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10435 fi
10436 fi
10437 additional_includedir=
10438 case "$found_dir" in
10439 */lib | */lib/)
10440 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10441 additional_includedir="$basedir/include"
10442 ;;
10443 esac
10444 if test "X$additional_includedir" != "X"; then
10445 if test "X$additional_includedir" != "X/usr/include"; then
10446 haveit=
10447 if test "X$additional_includedir" = "X/usr/local/include"; then
10448 if test -n "$GCC"; then
10449 case $host_os in
10450 linux*) haveit=yes;;
10451 esac
10452 fi
10453 fi
10454 if test -z "$haveit"; then
10455 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010456
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010457 acl_save_prefix="$prefix"
10458 prefix="$acl_final_prefix"
10459 acl_save_exec_prefix="$exec_prefix"
10460 exec_prefix="$acl_final_exec_prefix"
10461 eval x=\"$x\"
10462 exec_prefix="$acl_save_exec_prefix"
10463 prefix="$acl_save_prefix"
10464
10465 if test "X$x" = "X-I$additional_includedir"; then
10466 haveit=yes
10467 break
10468 fi
10469 done
10470 if test -z "$haveit"; then
10471 if test -d "$additional_includedir"; then
10472 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10473 fi
10474 fi
10475 fi
10476 fi
10477 fi
10478 if test -n "$found_la"; then
10479 save_libdir="$libdir"
10480 case "$found_la" in
10481 */* | *\\*) . "$found_la" ;;
10482 *) . "./$found_la" ;;
10483 esac
10484 libdir="$save_libdir"
10485 for dep in $dependency_libs; do
10486 case "$dep" in
10487 -L*)
10488 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10489 if test "X$additional_libdir" != "X/usr/lib"; then
10490 haveit=
10491 if test "X$additional_libdir" = "X/usr/local/lib"; then
10492 if test -n "$GCC"; then
10493 case $host_os in
10494 linux*) haveit=yes;;
10495 esac
10496 fi
10497 fi
10498 if test -z "$haveit"; then
10499 haveit=
10500 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010501
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010502 acl_save_prefix="$prefix"
10503 prefix="$acl_final_prefix"
10504 acl_save_exec_prefix="$exec_prefix"
10505 exec_prefix="$acl_final_exec_prefix"
10506 eval x=\"$x\"
10507 exec_prefix="$acl_save_exec_prefix"
10508 prefix="$acl_save_prefix"
10509
10510 if test "X$x" = "X-L$additional_libdir"; then
10511 haveit=yes
10512 break
10513 fi
10514 done
10515 if test -z "$haveit"; then
10516 if test -d "$additional_libdir"; then
10517 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10518 fi
10519 fi
10520 haveit=
10521 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010523 acl_save_prefix="$prefix"
10524 prefix="$acl_final_prefix"
10525 acl_save_exec_prefix="$exec_prefix"
10526 exec_prefix="$acl_final_exec_prefix"
10527 eval x=\"$x\"
10528 exec_prefix="$acl_save_exec_prefix"
10529 prefix="$acl_save_prefix"
10530
10531 if test "X$x" = "X-L$additional_libdir"; then
10532 haveit=yes
10533 break
10534 fi
10535 done
10536 if test -z "$haveit"; then
10537 if test -d "$additional_libdir"; then
10538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10539 fi
10540 fi
10541 fi
10542 fi
10543 ;;
10544 -R*)
10545 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10546 if test "$enable_rpath" != no; then
10547 haveit=
10548 for x in $rpathdirs; do
10549 if test "X$x" = "X$dir"; then
10550 haveit=yes
10551 break
10552 fi
10553 done
10554 if test -z "$haveit"; then
10555 rpathdirs="$rpathdirs $dir"
10556 fi
10557 haveit=
10558 for x in $ltrpathdirs; do
10559 if test "X$x" = "X$dir"; then
10560 haveit=yes
10561 break
10562 fi
10563 done
10564 if test -z "$haveit"; then
10565 ltrpathdirs="$ltrpathdirs $dir"
10566 fi
10567 fi
10568 ;;
10569 -l*)
10570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10571 ;;
10572 *.la)
10573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10574 ;;
10575 *)
10576 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10577 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10578 ;;
10579 esac
10580 done
10581 fi
10582 else
10583 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10584 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10585 fi
10586 fi
10587 fi
10588 done
10589 done
10590 if test "X$rpathdirs" != "X"; then
10591 if test -n "$hardcode_libdir_separator"; then
10592 alldirs=
10593 for found_dir in $rpathdirs; do
10594 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10595 done
10596 acl_save_libdir="$libdir"
10597 libdir="$alldirs"
10598 eval flag=\"$hardcode_libdir_flag_spec\"
10599 libdir="$acl_save_libdir"
10600 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10601 else
10602 for found_dir in $rpathdirs; do
10603 acl_save_libdir="$libdir"
10604 libdir="$found_dir"
10605 eval flag=\"$hardcode_libdir_flag_spec\"
10606 libdir="$acl_save_libdir"
10607 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10608 done
10609 fi
10610 fi
10611 if test "X$ltrpathdirs" != "X"; then
10612 for found_dir in $ltrpathdirs; do
10613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10614 done
10615 fi
10616
Theodore Ts'oe1052142006-10-21 21:46:47 -040010617 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10618echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010619if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010621else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010622 gt_save_CPPFLAGS="$CPPFLAGS"
10623 CPPFLAGS="$CPPFLAGS $INCINTL"
10624 gt_save_LIBS="$LIBS"
10625 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626 cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h. */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010632#include <libintl.h>
10633extern int _nl_msg_cat_cntr;
10634extern
10635#ifdef __cplusplus
10636"C"
10637#endif
10638const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010639int
10640main ()
10641{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010642bindtextdomain ("", "");
10643return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010644 ;
10645 return 0;
10646}
10647_ACEOF
10648rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010649if { (ac_try="$ac_link"
10650case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653esac
10654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest$ac_exeext &&
10665 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010666 gt_cv_func_gnugettext1_libintl=yes
10667else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668 echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
Theodore Ts'oe1052142006-10-21 21:46:47 -040010671 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010673
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010675 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010676 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10677 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678 cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h. */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010684#include <libintl.h>
10685extern int _nl_msg_cat_cntr;
10686extern
10687#ifdef __cplusplus
10688"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010689#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010690const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010691int
10692main ()
10693{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010694bindtextdomain ("", "");
10695return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010696 ;
10697 return 0;
10698}
10699_ACEOF
10700rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010701if { (ac_try="$ac_link"
10702case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705esac
10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest$ac_exeext &&
10717 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010718 LIBINTL="$LIBINTL $LIBICONV"
10719 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10720 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010722else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010723 echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
Theodore Ts'oe1052142006-10-21 21:46:47 -040010726
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010728
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010731 fi
10732 CPPFLAGS="$gt_save_CPPFLAGS"
10733 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010735{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10736echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010737 fi
10738
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010739 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10740 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741 && test "$PACKAGE" != gettext-runtime \
10742 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010743 gt_use_preinstalled_gnugettext=yes
10744 else
10745 LIBINTL=
10746 LTLIBINTL=
10747 INCINTL=
10748 fi
10749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010750
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010751 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10752 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010753 fi
10754 fi
10755
10756 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010758 USE_INCLUDED_LIBINTL=yes
10759 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10760 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10761 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010762 fi
10763
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010764 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10765 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10766 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010767 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010769
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010770 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10771 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772
10773cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010774#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010775_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010776
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010777 else
10778 USE_NLS=no
10779 fi
10780 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010781
Theodore Ts'oe1052142006-10-21 21:46:47 -040010782 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10783echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10784 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10785echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010786 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010787 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10788echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010789 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10790 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10791 gt_source="external libintl"
10792 else
10793 gt_source="libc"
10794 fi
10795 else
10796 gt_source="included intl directory"
10797 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010798 { echo "$as_me:$LINENO: result: $gt_source" >&5
10799echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010800 fi
10801
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010802 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010803
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010804 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10805 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010806 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10807echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10808 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10809echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010810
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010811 for element in $INCINTL; do
10812 haveit=
10813 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010814
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010815 acl_save_prefix="$prefix"
10816 prefix="$acl_final_prefix"
10817 acl_save_exec_prefix="$exec_prefix"
10818 exec_prefix="$acl_final_exec_prefix"
10819 eval x=\"$x\"
10820 exec_prefix="$acl_save_exec_prefix"
10821 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010822
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010823 if test "X$x" = "X$element"; then
10824 haveit=yes
10825 break
10826 fi
10827 done
10828 if test -z "$haveit"; then
10829 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10830 fi
10831 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010832
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010833 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010834
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836cat >>confdefs.h <<\_ACEOF
10837#define HAVE_GETTEXT 1
10838_ACEOF
10839
10840
10841cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010842#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010843_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010844
10845 fi
10846
10847 POSUB=po
10848 fi
10849
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010850
10851 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010852 BUILD_INCLUDED_LIBINTL=yes
10853 fi
10854
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855
10856
10857
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010858
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010859 nls_cv_header_intl=
10860 nls_cv_header_libgt=
10861
10862 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010864
10865 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010866
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010867
10868 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869
10870
10871 if test "$USE_INCLUDED_LIBINTL" = yes; then
10872 INTLOBJS="\$(GETTOBJS)"
10873 fi
10874
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010875
10876 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010877
10878
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010879
10880 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010881
10882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010883
10884
10885
10886
10887
Theodore Ts'oe1052142006-10-21 21:46:47 -040010888{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10889echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10890set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10891if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010892 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010893else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010894 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010895SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010896all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010897 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010898_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010899# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010900case `${MAKE-make} -f conftest.make 2>/dev/null` in
10901 *@@@%%%=?*=@@@%%%*)
10902 eval ac_cv_prog_make_${ac_make}_set=yes;;
10903 *)
10904 eval ac_cv_prog_make_${ac_make}_set=no;;
10905esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010906rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010907fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010908if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10909 { echo "$as_me:$LINENO: result: yes" >&5
10910echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010911 SET_MAKE=
10912else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010913 { echo "$as_me:$LINENO: result: no" >&5
10914echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010915 SET_MAKE="MAKE=${MAKE-make}"
10916fi
10917
10918# Extract the first word of "ln", so it can be a program name with args.
10919set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010922if test "${ac_cv_path_LN+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010924else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010925 case $LN in
10926 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010927 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10928 ;;
10929 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010936 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 -050010937 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941done
10942done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010943IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010944
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010945 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10946 ;;
10947esac
10948fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010949LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010950if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010951 { echo "$as_me:$LINENO: result: $LN" >&5
10952echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010953else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010954 { echo "$as_me:$LINENO: result: no" >&5
10955echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010956fi
10957
Theodore Ts'oe1052142006-10-21 21:46:47 -040010958
10959{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10960echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010961LN_S=$as_ln_s
10962if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010963 { echo "$as_me:$LINENO: result: yes" >&5
10964echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010965else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010966 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10967echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010968fi
10969
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010970# Extract the first word of "mv", so it can be a program name with args.
10971set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010974if test "${ac_cv_path_MV+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010976else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010977 case $MV in
10978 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010979 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10980 ;;
10981 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $PATH
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010988 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 -050010989 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10992 fi
10993done
10994done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010995IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010996
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010997 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10998 ;;
10999esac
11000fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011001MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011002if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011003 { echo "$as_me:$LINENO: result: $MV" >&5
11004echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011005else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011006 { echo "$as_me:$LINENO: result: no" >&5
11007echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011008fi
11009
Theodore Ts'oe1052142006-10-21 21:46:47 -040011010
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011011# Extract the first word of "cp", so it can be a program name with args.
11012set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011015if test "${ac_cv_path_CP+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011018 case $CP in
11019 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011020 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11021 ;;
11022 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011029 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 -050011030 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011036IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011037
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011038 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11039 ;;
11040esac
11041fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011042CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011043if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011044 { echo "$as_me:$LINENO: result: $CP" >&5
11045echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011046else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011047 { echo "$as_me:$LINENO: result: no" >&5
11048echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011049fi
11050
Theodore Ts'oe1052142006-10-21 21:46:47 -040011051
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011052# Extract the first word of "rm", so it can be a program name with args.
11053set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011056if test "${ac_cv_path_RM+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011058else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011059 case $RM in
11060 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011061 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11062 ;;
11063 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $PATH
11066do
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011070 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 -050011071 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11074 fi
11075done
11076done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011077IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011078
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011079 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11080 ;;
11081esac
11082fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011083RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011084if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011085 { echo "$as_me:$LINENO: result: $RM" >&5
11086echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011087else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011088 { echo "$as_me:$LINENO: result: no" >&5
11089echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011090fi
11091
Theodore Ts'oe1052142006-10-21 21:46:47 -040011092
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011093# Extract the first word of "chmod", so it can be a program name with args.
11094set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011097if test "${ac_cv_path_CHMOD+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011099else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011100 case $CHMOD in
11101 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011102 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11103 ;;
11104 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011111 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 -050011112 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 break 2
11115 fi
11116done
11117done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011118IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011119
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011120 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11121 ;;
11122esac
11123fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011124CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011125if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011126 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11127echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011128else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011129 { echo "$as_me:$LINENO: result: no" >&5
11130echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011131fi
11132
Theodore Ts'oe1052142006-10-21 21:46:47 -040011133
Theodore Ts'o32237012005-01-17 19:13:39 -050011134for ac_prog in gawk mawk nawk awk
11135do
11136 # Extract the first word of "$ac_prog", so it can be a program name with args.
11137set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011140if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011141 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011142else
Theodore Ts'o32237012005-01-17 19:13:39 -050011143 if test -n "$AWK"; then
11144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11145else
11146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011147for as_dir in $PATH
11148do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011152 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 -050011153 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157done
11158done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011159IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011160
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011161fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011162fi
11163AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011164if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011165 { echo "$as_me:$LINENO: result: $AWK" >&5
11166echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011167else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011168 { echo "$as_me:$LINENO: result: no" >&5
11169echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011170fi
11171
Theodore Ts'oe1052142006-10-21 21:46:47 -040011172
Theodore Ts'o32237012005-01-17 19:13:39 -050011173 test -n "$AWK" && break
11174done
11175
Theodore Ts'oe1052142006-10-21 21:46:47 -040011176{ echo "$as_me:$LINENO: checking for egrep" >&5
11177echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11178if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11182 then ac_cv_path_EGREP="$GREP -E"
11183 else
11184 # Extract the first word of "egrep" to use in msg output
11185if test -z "$EGREP"; then
11186set dummy egrep; ac_prog_name=$2
11187if test "${ac_cv_path_EGREP+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189else
11190 ac_path_EGREP_found=false
11191# Loop through the user's path and test for each of PROGNAME-LIST
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_prog in egrep; do
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011200 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011201 # Check for GNU ac_path_EGREP and select it if it is found.
11202 # Check for GNU $ac_path_EGREP
11203case `"$ac_path_EGREP" --version 2>&1` in
11204*GNU*)
11205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11206*)
11207 ac_count=0
11208 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11209 while :
11210 do
11211 cat "conftest.in" "conftest.in" >"conftest.tmp"
11212 mv "conftest.tmp" "conftest.in"
11213 cp "conftest.in" "conftest.nl"
11214 echo 'EGREP' >> "conftest.nl"
11215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11217 ac_count=`expr $ac_count + 1`
11218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11219 # Best one so far, save it but keep looking for a better one
11220 ac_cv_path_EGREP="$ac_path_EGREP"
11221 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011222 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011223 # 10*(2^10) chars as input seems more than enough
11224 test $ac_count -gt 10 && break
11225 done
11226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11227esac
11228
11229
11230 $ac_path_EGREP_found && break 3
11231 done
11232done
11233
11234done
11235IFS=$as_save_IFS
11236
11237
Theodore Ts'o32237012005-01-17 19:13:39 -050011238fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011239
11240EGREP="$ac_cv_path_EGREP"
11241if test -z "$EGREP"; then
11242 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11243echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11244 { (exit 1); exit 1; }; }
11245fi
11246
11247else
11248 ac_cv_path_EGREP=$EGREP
11249fi
11250
11251
11252 fi
11253fi
11254{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11255echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11256 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011257
11258
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011259# Extract the first word of "sed", so it can be a program name with args.
11260set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011263if test "${ac_cv_path_SED+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011266 case $SED in
11267 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011268 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11269 ;;
11270 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274 IFS=$as_save_IFS
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011277 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 -050011278 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 break 2
11281 fi
11282done
11283done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011284IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011285
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011286 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11287 ;;
11288esac
11289fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011290SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011291if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011292 { echo "$as_me:$LINENO: result: $SED" >&5
11293echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011294else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011295 { echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011297fi
11298
Theodore Ts'oe1052142006-10-21 21:46:47 -040011299
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011300# Extract the first word of "perl", so it can be a program name with args.
11301set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011304if test "${ac_cv_path_PERL+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011306else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011307 case $PERL in
11308 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011309 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11310 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011311 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313for as_dir in $PATH
11314do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011318 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 -050011319 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11322 fi
11323done
11324done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011325IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011326
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011327 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11328 ;;
11329esac
11330fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011331PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011332if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011333 { echo "$as_me:$LINENO: result: $PERL" >&5
11334echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011335else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011336 { echo "$as_me:$LINENO: result: no" >&5
11337echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011338fi
11339
Theodore Ts'oe1052142006-10-21 21:46:47 -040011340
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011341# Extract the first word of "ldconfig", so it can be a program name with args.
11342set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345if test "${ac_cv_path_LDCONFIG+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011347else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348 case $LDCONFIG in
11349 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011350 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11351 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011352 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011359 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 -050011360 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11362 break 2
11363 fi
11364done
11365done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011366IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011367
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011368 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11369 ;;
11370esac
11371fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011372LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011373if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011374 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11375echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011376else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011377 { echo "$as_me:$LINENO: result: no" >&5
11378echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011379fi
11380
Theodore Ts'oe1052142006-10-21 21:46:47 -040011381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011382if test -n "$ac_tool_prefix"; then
11383 # 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 +000011384set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387if test "${ac_cv_prog_AR+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011389else
11390 if test -n "$AR"; then
11391 ac_cv_prog_AR="$AR" # Let the user override the test.
11392else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394for as_dir in $PATH
11395do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011399 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 -050011400 ac_cv_prog_AR="${ac_tool_prefix}ar"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404done
11405done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011406IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011407
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011408fi
11409fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011410AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011411if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011412 { echo "$as_me:$LINENO: result: $AR" >&5
11413echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011414else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011415 { echo "$as_me:$LINENO: result: no" >&5
11416echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011417fi
11418
Theodore Ts'oe1052142006-10-21 21:46:47 -040011419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011420fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011421if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011422 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011423 # Extract the first word of "ar", so it can be a program name with args.
11424set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011429else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011430 if test -n "$ac_ct_AR"; then
11431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011439 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 -050011440 ac_cv_prog_ac_ct_AR="ar"
11441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444done
11445done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011446IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011448fi
11449fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011450ac_ct_AR=$ac_cv_prog_ac_ct_AR
11451if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011452 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11453echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011454else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011455 { echo "$as_me:$LINENO: result: no" >&5
11456echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011457fi
11458
Theodore Ts'oe1052142006-10-21 21:46:47 -040011459 if test "x$ac_ct_AR" = x; then
11460 AR="ar"
11461 else
11462 case $cross_compiling:$ac_tool_warned in
11463yes:)
11464{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11465whose name does not start with the host triplet. If you think this
11466configuration is useful to you, please write to autoconf@gnu.org." >&5
11467echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11468whose name does not start with the host triplet. If you think this
11469configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11470ac_tool_warned=yes ;;
11471esac
11472 AR=$ac_ct_AR
11473 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011474else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011475 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011476fi
11477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011478if test -n "$ac_tool_prefix"; then
11479 # 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 +000011480set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483if test "${ac_cv_prog_RANLIB+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011485else
11486 if test -n "$RANLIB"; then
11487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11488else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011495 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 -050011496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 break 2
11499 fi
11500done
11501done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011502IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011504fi
11505fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011506RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011507if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011508 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11509echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011511 { echo "$as_me:$LINENO: result: no" >&5
11512echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011513fi
11514
Theodore Ts'oe1052142006-10-21 21:46:47 -040011515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011516fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011517if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011518 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011519 # Extract the first word of "ranlib", so it can be a program name with args.
11520set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011525else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526 if test -n "$ac_ct_RANLIB"; then
11527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011535 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 -050011536 ac_cv_prog_ac_ct_RANLIB="ranlib"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540done
11541done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011542IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011544fi
11545fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011546ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11547if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011548 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11549echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011550else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011551 { echo "$as_me:$LINENO: result: no" >&5
11552echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011553fi
11554
Theodore Ts'oe1052142006-10-21 21:46:47 -040011555 if test "x$ac_ct_RANLIB" = x; then
11556 RANLIB=":"
11557 else
11558 case $cross_compiling:$ac_tool_warned in
11559yes:)
11560{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11561whose name does not start with the host triplet. If you think this
11562configuration is useful to you, please write to autoconf@gnu.org." >&5
11563echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11564whose name does not start with the host triplet. If you think this
11565configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11566ac_tool_warned=yes ;;
11567esac
11568 RANLIB=$ac_ct_RANLIB
11569 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011570else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572fi
11573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011574if test -n "$ac_tool_prefix"; then
11575 # 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 +000011576set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579if test "${ac_cv_prog_STRIP+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011581else
11582 if test -n "$STRIP"; then
11583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11584else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586for as_dir in $PATH
11587do
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011591 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 -050011592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 break 2
11595 fi
11596done
11597done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011598IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011600fi
11601fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011602STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011604 { echo "$as_me:$LINENO: result: $STRIP" >&5
11605echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011607 { echo "$as_me:$LINENO: result: no" >&5
11608echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011609fi
11610
Theodore Ts'oe1052142006-10-21 21:46:47 -040011611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011612fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011613if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011614 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011615 # Extract the first word of "strip", so it can be a program name with args.
11616set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011619if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011621else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011622 if test -n "$ac_ct_STRIP"; then
11623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH
11627do
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
11630 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011631 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 -050011632 ac_cv_prog_ac_ct_STRIP="strip"
11633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11634 break 2
11635 fi
11636done
11637done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011638IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011639
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011640fi
11641fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011642ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11643if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011644 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11645echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011646else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011647 { echo "$as_me:$LINENO: result: no" >&5
11648echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011649fi
11650
Theodore Ts'oe1052142006-10-21 21:46:47 -040011651 if test "x$ac_ct_STRIP" = x; then
11652 STRIP=":"
11653 else
11654 case $cross_compiling:$ac_tool_warned in
11655yes:)
11656{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11657whose name does not start with the host triplet. If you think this
11658configuration is useful to you, please write to autoconf@gnu.org." >&5
11659echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11660whose name does not start with the host triplet. If you think this
11661configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11662ac_tool_warned=yes ;;
11663esac
11664 STRIP=$ac_ct_STRIP
11665 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011666else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011667 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011668fi
11669
Manish Katiyar7321d942008-04-14 17:20:03 +053011670# Extract the first word of "makeinfo", so it can be a program name with args.
11671set dummy makeinfo; ac_word=$2
11672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11674if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676else
11677 if test -n "$MAKEINFO"; then
11678 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11679else
11680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681for as_dir in $PATH
11682do
11683 IFS=$as_save_IFS
11684 test -z "$as_dir" && as_dir=.
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687 ac_cv_prog_MAKEINFO="makeinfo"
11688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 break 2
11690 fi
11691done
11692done
11693IFS=$as_save_IFS
11694
11695fi
11696fi
11697MAKEINFO=$ac_cv_prog_MAKEINFO
11698if test -n "$MAKEINFO"; then
11699 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11700echo "${ECHO_T}$MAKEINFO" >&6; }
11701else
11702 { echo "$as_me:$LINENO: result: no" >&5
11703echo "${ECHO_T}no" >&6; }
11704fi
11705
11706
11707if test "_$MAKEINFO" = "_"; then
11708 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11709else
11710 case "$MAKEINFO" in
11711 */missing.*)
11712 { echo "$as_me:$LINENO: WARNING:
11713*** Makeinfo is missing. Info documentation will not be built." >&5
11714echo "$as_me: WARNING:
11715*** Makeinfo is missing. Info documentation will not be built." >&2;}
11716 ;;
11717 *)
11718 ;;
11719 esac
11720fi
11721
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011722# Find a good install program. We prefer a C program (faster),
11723# so one script is as good as another. But avoid the broken or
11724# incompatible versions:
11725# SysV /etc/install, /usr/sbin/install
11726# SunOS /usr/etc/install
11727# IRIX /sbin/install
11728# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011729# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011730# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011731# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11732# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011734# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011735{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11736echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011737if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011738if test "${ac_cv_path_install+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011740else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 # Account for people who put trailing slashes in PATH elements.
11747case $as_dir/ in
11748 ./ | .// | /cC/* | \
11749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11750 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11751 /usr/ucb/* ) ;;
11752 *)
11753 # OSF1 and SCO ODT 3.0 have their own names for install.
11754 # Don't use installbsd from OSF since it installs stuff as root
11755 # by default.
11756 for ac_prog in ginstall scoinst install; do
11757 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011758 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 +000011759 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011760 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011761 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763 elif test $ac_prog = install &&
11764 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11765 # program-specific install script used by HP pwplus--don't use.
11766 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011767 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011768 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11769 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011770 fi
11771 fi
11772 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011773 done
11774 ;;
11775esac
11776done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011777IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011778
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011779
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011780fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011781 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011782 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011783 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784 # As a last resort, use the slow shell script. Don't cache a
11785 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011786 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011787 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011788 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011789 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011791{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11792echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011793
11794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11795# It thinks the first close brace ends the variable substitution.
11796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11797
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011799
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11801
Theodore Ts'o6c133521999-07-03 20:37:03 +000011802# See if we need a separate native compiler.
11803if test $cross_compiling = no; then
11804 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011805
Theodore Ts'o6c133521999-07-03 20:37:03 +000011806else
11807 for ac_prog in gcc cc
11808do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011809 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011810set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011813if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011815else
11816 if test -n "$BUILD_CC"; then
11817 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11818else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011821do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011825 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 -050011826 ac_cv_prog_BUILD_CC="$ac_prog"
11827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011831done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011834fi
11835fi
11836BUILD_CC=$ac_cv_prog_BUILD_CC
11837if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11839echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011840else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841 { echo "$as_me:$LINENO: result: no" >&5
11842echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011843fi
11844
Theodore Ts'oe1052142006-10-21 21:46:47 -040011845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011846 test -n "$BUILD_CC" && break
11847done
11848
11849fi
11850
Theodore Ts'o740837d2007-12-16 17:21:38 -050011851
11852
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011881
Theodore Ts'o106ad962007-04-04 21:26:37 -040011882
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011883
11884
Theodore Ts'o3d058022008-07-12 22:06:30 -040011885
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040011886
11887for 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 -050011888do
11889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895fi
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'ob0cacab2004-11-30 19:00:19 -050011899else
11900 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903cat >conftest.$ac_ext <<_ACEOF
11904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909$ac_includes_default
11910#include <$ac_header>
11911_ACEOF
11912rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011913if { (ac_try="$ac_compile"
11914case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011929 ac_header_compiler=yes
11930else
11931 echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
Theodore Ts'oe1052142006-10-21 21:46:47 -040011934 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011936
11937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11939echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011940
11941# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011942{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011944cat >conftest.$ac_ext <<_ACEOF
11945/* confdefs.h. */
11946_ACEOF
11947cat confdefs.h >>conftest.$ac_ext
11948cat >>conftest.$ac_ext <<_ACEOF
11949/* end confdefs.h. */
11950#include <$ac_header>
11951_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011952if { (ac_try="$ac_cpp conftest.$ac_ext"
11953case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956esac
11957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011964 (exit $ac_status); } >/dev/null && {
11965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011968 ac_header_preproc=yes
11969else
11970 echo "$as_me: failed program was:" >&5
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_header_preproc=no
11974fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011976rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11978echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979
11980# So? What about this header?
11981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11982 yes:no: )
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11987 ac_header_preproc=yes
11988 ;;
11989 no:yes:* )
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012003 ;;
12004esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012005{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
12010 eval "$as_ac_Header=\$ac_header_preproc"
12011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012012ac_res=`eval echo '${'$as_ac_Header'}'`
12013 { echo "$as_me:$LINENO: result: $ac_res" >&5
12014echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015
12016fi
12017if test `eval echo '${'$as_ac_Header'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12020_ACEOF
12021
12022fi
12023
12024done
12025
12026
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012027
12028for ac_header in sys/disk.h sys/mount.h
12029do
12030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012031{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042
12043#if HAVE_SYS_QUEUE_H
12044#include <sys/queue.h>
12045#endif
12046
12047
12048#include <$ac_header>
12049_ACEOF
12050rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012051if { (ac_try="$ac_compile"
12052case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055esac
12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012063 (exit $ac_status); } && {
12064 test -z "$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012067 eval "$as_ac_Header=yes"
12068else
12069 echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
Theodore Ts'oe1052142006-10-21 21:46:47 -040012072 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012073fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012074
12075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012077ac_res=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012080if test `eval echo '${'$as_ac_Header'}'` = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083_ACEOF
12084
12085fi
12086
12087done
12088
12089
12090for ac_header in net/if.h
12091do
12092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012093{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097else
12098 cat >conftest.$ac_ext <<_ACEOF
12099/* confdefs.h. */
12100_ACEOF
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
12103/* end confdefs.h. */
12104
12105#if HAVE_SYS_TYPES_H
12106#include <sys/types.h>
12107#endif
12108#if HAVE_SYS_SOCKET
12109#include <sys/socket.h>
12110#endif
12111
12112
12113#include <$ac_header>
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'oda76d6b2005-01-18 23:29:01 -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'oda76d6b2005-01-18 23:29:01 -050012132 eval "$as_ac_Header=yes"
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012138fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012139
12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012141fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012142ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012145if test `eval echo '${'$as_ac_Header'}'` = yes; then
12146 cat >>confdefs.h <<_ACEOF
12147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12148_ACEOF
12149
12150fi
12151
12152done
12153
12154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155for ac_func in vprintf
12156do
12157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162else
12163 cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12171#define $ac_func innocuous_$ac_func
12172
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012173/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012174 which can conflict with char $ac_func (); below.
12175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12176 <limits.h> exists even on freestanding compilers. */
12177
12178#ifdef __STDC__
12179# include <limits.h>
12180#else
12181# include <assert.h>
12182#endif
12183
12184#undef $ac_func
12185
Theodore Ts'oe1052142006-10-21 21:46:47 -040012186/* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189#ifdef __cplusplus
12190extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012192char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012193/* The GNU C library defines this for functions which it implements
12194 to always fail with ENOSYS. Some functions are actually named
12195 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012196#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012197choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012198#endif
12199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200int
12201main ()
12202{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012203return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204 ;
12205 return 0;
12206}
12207_ACEOF
12208rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012209if { (ac_try="$ac_link"
12210case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213esac
12214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012221 (exit $ac_status); } && {
12222 test -z "$ac_c_werror_flag" ||
12223 test ! -s conftest.err
12224 } && test -s conftest$ac_exeext &&
12225 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012227else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012230
Theodore Ts'oe1052142006-10-21 21:46:47 -040012231 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012233
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235 conftest$ac_exeext conftest.$ac_ext
12236fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237ac_res=`eval echo '${'$as_ac_var'}'`
12238 { echo "$as_me:$LINENO: result: $ac_res" >&5
12239echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012240if test `eval echo '${'$as_ac_var'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012244
Theodore Ts'oe1052142006-10-21 21:46:47 -040012245{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12246echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247if test "${ac_cv_func__doprnt+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012249else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012250 cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h. */
12256/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12258#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012259
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012260/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012261 which can conflict with char _doprnt (); below.
12262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12263 <limits.h> exists even on freestanding compilers. */
12264
12265#ifdef __STDC__
12266# include <limits.h>
12267#else
12268# include <assert.h>
12269#endif
12270
12271#undef _doprnt
12272
Theodore Ts'oe1052142006-10-21 21:46:47 -040012273/* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276#ifdef __cplusplus
12277extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012279char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012280/* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012283#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012284choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012285#endif
12286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287int
12288main ()
12289{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012290return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012296if { (ac_try="$ac_link"
12297case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300esac
12301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest$ac_exeext &&
12312 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012314else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012315 echo "$as_me: failed program was:" >&5
12316sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012317
Theodore Ts'oe1052142006-10-21 21:46:47 -040012318 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012319fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012320
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012322 conftest$ac_exeext conftest.$ac_ext
12323fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012324{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12325echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012326if test $ac_cv_func__doprnt = yes; then
12327
12328cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012329#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012331
12332fi
12333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012334fi
12335done
12336
12337
Theodore Ts'oe1052142006-10-21 21:46:47 -040012338{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12339echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012340if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012349#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012351int
12352main ()
12353{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012354static struct dirent ac_aggr;
12355if (ac_aggr.d_reclen)
12356return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012362if { (ac_try="$ac_compile"
12363case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366esac
12367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012378 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012379else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012380 echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
Theodore Ts'oe1052142006-10-21 21:46:47 -040012383 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012384/* confdefs.h. */
12385_ACEOF
12386cat confdefs.h >>conftest.$ac_ext
12387cat >>conftest.$ac_ext <<_ACEOF
12388/* end confdefs.h. */
12389#include <dirent.h>
12390
12391int
12392main ()
12393{
12394static struct dirent ac_aggr;
12395if (sizeof ac_aggr.d_reclen)
12396return 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'o6c65d252005-01-19 12:59:48 -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'o6c65d252005-01-19 12:59:48 -050012418 ac_cv_member_struct_dirent_d_reclen=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_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012425
12426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012428
12429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012430fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012431{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12432echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012433if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12434 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012435#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012436_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012437
12438fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012439
Theodore Ts'oe1052142006-10-21 21:46:47 -040012440{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12441echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012442if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012443 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012444else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012445 cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h. */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012451#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012452
Theodore Ts'oe1052142006-10-21 21:46:47 -040012453typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012454int
12455main ()
12456{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012457if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012458 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012459if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012460 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012466if { (ac_try="$ac_compile"
12467case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12470esac
12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012478 (exit $ac_status); } && {
12479 test -z "$ac_c_werror_flag" ||
12480 test ! -s conftest.err
12481 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012482 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012483else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
Theodore Ts'oe1052142006-10-21 21:46:47 -040012487 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489
12490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012491fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012492{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12493echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012494if test $ac_cv_type_ssize_t = yes; then
12495 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012496#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012497_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012498
12499fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012500
Theodore Ts'oe1052142006-10-21 21:46:47 -040012501{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12502echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012503if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012504 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012505else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012506 cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012512#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514int
12515main ()
12516{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012517#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012518 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012519#endif
12520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012526if { (ac_try="$ac_compile"
12527case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012538 (exit $ac_status); } && {
12539 test -z "$ac_c_werror_flag" ||
12540 test ! -s conftest.err
12541 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012542 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012543else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544 echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
Theodore Ts'oe1052142006-10-21 21:46:47 -040012547 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012549
12550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012552{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12553echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012554if test $ac_cv_have_decl_llseek = yes; then
12555 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012556#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012558
12559fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012560
Theodore Ts'oe1052142006-10-21 21:46:47 -040012561{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12562echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012563if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012564 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012565else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012566 cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012572#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012573 #define _LARGEFILE64_SOURCE
12574 #include <unistd.h>
12575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576int
12577main ()
12578{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012579#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012580 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012581#endif
12582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012583 ;
12584 return 0;
12585}
12586_ACEOF
12587rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012588if { (ac_try="$ac_compile"
12589case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12592esac
12593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012600 (exit $ac_status); } && {
12601 test -z "$ac_c_werror_flag" ||
12602 test ! -s conftest.err
12603 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012604 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012605else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012606 echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
Theodore Ts'oe1052142006-10-21 21:46:47 -040012609 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012611
12612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012613fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012614{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12615echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012616if test $ac_cv_have_decl_lseek64 = yes; then
12617 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012618#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012619_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012620
12621fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012622
Theodore Ts'oe1052142006-10-21 21:46:47 -040012623{ echo "$as_me:$LINENO: checking for short" >&5
12624echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012625if test "${ac_cv_type_short+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627else
12628 cat >conftest.$ac_ext <<_ACEOF
12629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
12634$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012635typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012636int
12637main ()
12638{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012639if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012640 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012641if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012642 return 0;
12643 ;
12644 return 0;
12645}
12646_ACEOF
12647rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012648if { (ac_try="$ac_compile"
12649case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652esac
12653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012660 (exit $ac_status); } && {
12661 test -z "$ac_c_werror_flag" ||
12662 test ! -s conftest.err
12663 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012664 ac_cv_type_short=yes
12665else
12666 echo "$as_me: failed program was:" >&5
12667sed 's/^/| /' conftest.$ac_ext >&5
12668
Theodore Ts'oe1052142006-10-21 21:46:47 -040012669 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012670fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012671
Theodore Ts'oe1052142006-10-21 21:46:47 -040012672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673fi
12674{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12675echo "${ECHO_T}$ac_cv_type_short" >&6; }
12676
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012677# The cast to long int works around a bug in the HP C Compiler
12678# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12679# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12680# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012681{ echo "$as_me:$LINENO: checking size of short" >&5
12682echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012683if test "${ac_cv_sizeof_short+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012686 if test "$cross_compiling" = yes; then
12687 # Depending upon the size, compute the lo and hi bounds.
12688cat >conftest.$ac_ext <<_ACEOF
12689/* confdefs.h. */
12690_ACEOF
12691cat confdefs.h >>conftest.$ac_ext
12692cat >>conftest.$ac_ext <<_ACEOF
12693/* end confdefs.h. */
12694$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012695 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012696int
12697main ()
12698{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012699static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700test_array [0] = 0
12701
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012707if { (ac_try="$ac_compile"
12708case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12711esac
12712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012723 ac_lo=0 ac_mid=0
12724 while :; do
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012732 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012733int
12734main ()
12735{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012736static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012737test_array [0] = 0
12738
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012744if { (ac_try="$ac_compile"
12745case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748esac
12749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012760 ac_hi=$ac_mid; break
12761else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
Theodore Ts'oe1052142006-10-21 21:46:47 -040012765 ac_lo=`expr $ac_mid + 1`
12766 if test $ac_lo -le $ac_mid; then
12767 ac_lo= ac_hi=
12768 break
12769 fi
12770 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012772
12773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774 done
12775else
12776 echo "$as_me: failed program was:" >&5
12777sed 's/^/| /' conftest.$ac_ext >&5
12778
Theodore Ts'oe1052142006-10-21 21:46:47 -040012779 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
12785$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012786 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012787int
12788main ()
12789{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012790static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012791test_array [0] = 0
12792
12793 ;
12794 return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012798if { (ac_try="$ac_compile"
12799case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012810 (exit $ac_status); } && {
12811 test -z "$ac_c_werror_flag" ||
12812 test ! -s conftest.err
12813 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814 ac_hi=-1 ac_mid=-1
12815 while :; do
12816 cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012823 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012824int
12825main ()
12826{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012827static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012828test_array [0] = 0
12829
12830 ;
12831 return 0;
12832}
12833_ACEOF
12834rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012835if { (ac_try="$ac_compile"
12836case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839esac
12840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012847 (exit $ac_status); } && {
12848 test -z "$ac_c_werror_flag" ||
12849 test ! -s conftest.err
12850 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012851 ac_lo=$ac_mid; break
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
Theodore Ts'oe1052142006-10-21 21:46:47 -040012856 ac_hi=`expr '(' $ac_mid ')' - 1`
12857 if test $ac_mid -le $ac_hi; then
12858 ac_lo= ac_hi=
12859 break
12860 fi
12861 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012863
12864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865 done
12866else
12867 echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
Theodore Ts'oe1052142006-10-21 21:46:47 -040012870 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012871fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012872
12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012874fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012875
12876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012877# Binary search between lo and hi bounds.
12878while test "x$ac_lo" != "x$ac_hi"; do
12879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12880 cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
12885/* end confdefs.h. */
12886$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012887 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888int
12889main ()
12890{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012891static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892test_array [0] = 0
12893
12894 ;
12895 return 0;
12896}
12897_ACEOF
12898rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012899if { (ac_try="$ac_compile"
12900case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903esac
12904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012911 (exit $ac_status); } && {
12912 test -z "$ac_c_werror_flag" ||
12913 test ! -s conftest.err
12914 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915 ac_hi=$ac_mid
12916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
Theodore Ts'oe1052142006-10-21 21:46:47 -040012920 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012922
12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012924done
12925case $ac_lo in
12926?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012927'') if test "$ac_cv_type_short" = yes; then
12928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012930echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012931See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012932 { (exit 77); exit 77; }; }
12933 else
12934 ac_cv_sizeof_short=0
12935 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012937else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938 cat >conftest.$ac_ext <<_ACEOF
12939/* 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 short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012946static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12947static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012948#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012949#include <stdlib.h>
12950int
12951main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012952{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953
12954 FILE *f = fopen ("conftest.val", "w");
12955 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012956 return 1;
12957 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012958 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012959 long int i = longval ();
12960 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12961 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012962 fprintf (f, "%ld\n", i);
12963 }
12964 else
12965 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012966 unsigned long int i = ulongval ();
12967 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12968 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012969 fprintf (f, "%lu\n", i);
12970 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012971 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972
12973 ;
12974 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012975}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012976_ACEOF
12977rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012978if { (ac_try="$ac_link"
12979case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982esac
12983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012998else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012999 echo "$as_me: program exited with status $ac_status" >&5
13000echo "$as_me: failed program was:" >&5
13001sed 's/^/| /' conftest.$ac_ext >&5
13002
13003( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013004if test "$ac_cv_type_short" = yes; then
13005 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013006See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013007echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013009 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013010 else
13011 ac_cv_sizeof_short=0
13012 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013013fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013014rm -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 -050013015fi
13016rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013017fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013018{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13019echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013020
13021
13022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013023cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013024#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013026
13027
Theodore Ts'oe1052142006-10-21 21:46:47 -040013028{ echo "$as_me:$LINENO: checking for int" >&5
13029echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013030if test "${ac_cv_type_int+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032else
13033 cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h. */
13039$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013040typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013041int
13042main ()
13043{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013044if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013045 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013046if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013047 return 0;
13048 ;
13049 return 0;
13050}
13051_ACEOF
13052rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013053if { (ac_try="$ac_compile"
13054case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057esac
13058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013069 ac_cv_type_int=yes
13070else
13071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
Theodore Ts'oe1052142006-10-21 21:46:47 -040013074 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013075fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013076
Theodore Ts'oe1052142006-10-21 21:46:47 -040013077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078fi
13079{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13080echo "${ECHO_T}$ac_cv_type_int" >&6; }
13081
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013082# The cast to long int works around a bug in the HP C Compiler
13083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13085# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013086{ echo "$as_me:$LINENO: checking size of int" >&5
13087echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088if test "${ac_cv_sizeof_int+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013091 if test "$cross_compiling" = yes; then
13092 # Depending upon the size, compute the lo and hi bounds.
13093cat >conftest.$ac_ext <<_ACEOF
13094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
13098/* end confdefs.h. */
13099$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013100 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013101int
13102main ()
13103{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013104static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105test_array [0] = 0
13106
13107 ;
13108 return 0;
13109}
13110_ACEOF
13111rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013112if { (ac_try="$ac_compile"
13113case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116esac
13117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013119 ac_status=$?
13120 grep -v '^ *+' conftest.er1 >conftest.err
13121 rm -f conftest.er1
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013124 (exit $ac_status); } && {
13125 test -z "$ac_c_werror_flag" ||
13126 test ! -s conftest.err
13127 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013128 ac_lo=0 ac_mid=0
13129 while :; do
13130 cat >conftest.$ac_ext <<_ACEOF
13131/* confdefs.h. */
13132_ACEOF
13133cat confdefs.h >>conftest.$ac_ext
13134cat >>conftest.$ac_ext <<_ACEOF
13135/* end confdefs.h. */
13136$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013137 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013138int
13139main ()
13140{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013141static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013142test_array [0] = 0
13143
13144 ;
13145 return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013149if { (ac_try="$ac_compile"
13150case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153esac
13154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013165 ac_hi=$ac_mid; break
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
Theodore Ts'oe1052142006-10-21 21:46:47 -040013170 ac_lo=`expr $ac_mid + 1`
13171 if test $ac_lo -le $ac_mid; then
13172 ac_lo= ac_hi=
13173 break
13174 fi
13175 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013176fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013177
13178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013179 done
13180else
13181 echo "$as_me: failed program was:" >&5
13182sed 's/^/| /' conftest.$ac_ext >&5
13183
Theodore Ts'oe1052142006-10-21 21:46:47 -040013184 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013185/* confdefs.h. */
13186_ACEOF
13187cat confdefs.h >>conftest.$ac_ext
13188cat >>conftest.$ac_ext <<_ACEOF
13189/* end confdefs.h. */
13190$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013191 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013192int
13193main ()
13194{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013195static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013196test_array [0] = 0
13197
13198 ;
13199 return 0;
13200}
13201_ACEOF
13202rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013203if { (ac_try="$ac_compile"
13204case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
13208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013219 ac_hi=-1 ac_mid=-1
13220 while :; do
13221 cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
13227$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013228 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013229int
13230main ()
13231{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013232static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013233test_array [0] = 0
13234
13235 ;
13236 return 0;
13237}
13238_ACEOF
13239rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013240if { (ac_try="$ac_compile"
13241case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013252 (exit $ac_status); } && {
13253 test -z "$ac_c_werror_flag" ||
13254 test ! -s conftest.err
13255 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013256 ac_lo=$ac_mid; break
13257else
13258 echo "$as_me: failed program was:" >&5
13259sed 's/^/| /' conftest.$ac_ext >&5
13260
Theodore Ts'oe1052142006-10-21 21:46:47 -040013261 ac_hi=`expr '(' $ac_mid ')' - 1`
13262 if test $ac_mid -le $ac_hi; then
13263 ac_lo= ac_hi=
13264 break
13265 fi
13266 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013268
13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013270 done
13271else
13272 echo "$as_me: failed program was:" >&5
13273sed 's/^/| /' conftest.$ac_ext >&5
13274
Theodore Ts'oe1052142006-10-21 21:46:47 -040013275 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013277
13278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013279fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013280
13281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013282# Binary search between lo and hi bounds.
13283while test "x$ac_lo" != "x$ac_hi"; do
13284 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13285 cat >conftest.$ac_ext <<_ACEOF
13286/* confdefs.h. */
13287_ACEOF
13288cat confdefs.h >>conftest.$ac_ext
13289cat >>conftest.$ac_ext <<_ACEOF
13290/* end confdefs.h. */
13291$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013292 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013293int
13294main ()
13295{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013296static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013297test_array [0] = 0
13298
13299 ;
13300 return 0;
13301}
13302_ACEOF
13303rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013304if { (ac_try="$ac_compile"
13305case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013316 (exit $ac_status); } && {
13317 test -z "$ac_c_werror_flag" ||
13318 test ! -s conftest.err
13319 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013320 ac_hi=$ac_mid
13321else
13322 echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
Theodore Ts'oe1052142006-10-21 21:46:47 -040013325 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013326fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013327
13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013329done
13330case $ac_lo in
13331?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013332'') if test "$ac_cv_type_int" = yes; then
13333 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013334See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013335echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013336See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013337 { (exit 77); exit 77; }; }
13338 else
13339 ac_cv_sizeof_int=0
13340 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013341esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013343 cat >conftest.$ac_ext <<_ACEOF
13344/* 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 int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013351static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13352static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013353#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013354#include <stdlib.h>
13355int
13356main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013357{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358
13359 FILE *f = fopen ("conftest.val", "w");
13360 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013361 return 1;
13362 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013363 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013364 long int i = longval ();
13365 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13366 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013367 fprintf (f, "%ld\n", i);
13368 }
13369 else
13370 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013371 unsigned long int i = ulongval ();
13372 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13373 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013374 fprintf (f, "%lu\n", i);
13375 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013376 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013377
13378 ;
13379 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013380}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013381_ACEOF
13382rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013383if { (ac_try="$ac_link"
13384case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396esac
13397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013403else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013404 echo "$as_me: program exited with status $ac_status" >&5
13405echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013409if test "$ac_cv_type_int" = yes; then
13410 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013412echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013413See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013414 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013415 else
13416 ac_cv_sizeof_int=0
13417 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013419rm -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 -050013420fi
13421rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013423{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13424echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013425
13426
13427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013428cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013429#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013430_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013431
13432
Theodore Ts'oe1052142006-10-21 21:46:47 -040013433{ echo "$as_me:$LINENO: checking for long" >&5
13434echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013435if test "${ac_cv_type_long+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437else
13438 cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h. */
13444$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013445typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013446int
13447main ()
13448{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013449if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013450 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013451if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013452 return 0;
13453 ;
13454 return 0;
13455}
13456_ACEOF
13457rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013458if { (ac_try="$ac_compile"
13459case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013470 (exit $ac_status); } && {
13471 test -z "$ac_c_werror_flag" ||
13472 test ! -s conftest.err
13473 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013474 ac_cv_type_long=yes
13475else
13476 echo "$as_me: failed program was:" >&5
13477sed 's/^/| /' conftest.$ac_ext >&5
13478
Theodore Ts'oe1052142006-10-21 21:46:47 -040013479 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013480fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013481
Theodore Ts'oe1052142006-10-21 21:46:47 -040013482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483fi
13484{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13485echo "${ECHO_T}$ac_cv_type_long" >&6; }
13486
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013487# The cast to long int works around a bug in the HP C Compiler
13488# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13489# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13490# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013491{ echo "$as_me:$LINENO: checking size of long" >&5
13492echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013493if test "${ac_cv_sizeof_long+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013496 if test "$cross_compiling" = yes; then
13497 # Depending upon the size, compute the lo and hi bounds.
13498cat >conftest.$ac_ext <<_ACEOF
13499/* confdefs.h. */
13500_ACEOF
13501cat confdefs.h >>conftest.$ac_ext
13502cat >>conftest.$ac_ext <<_ACEOF
13503/* end confdefs.h. */
13504$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013505 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013506int
13507main ()
13508{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013509static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013510test_array [0] = 0
13511
13512 ;
13513 return 0;
13514}
13515_ACEOF
13516rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013517if { (ac_try="$ac_compile"
13518case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013529 (exit $ac_status); } && {
13530 test -z "$ac_c_werror_flag" ||
13531 test ! -s conftest.err
13532 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013533 ac_lo=0 ac_mid=0
13534 while :; do
13535 cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013542 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543int
13544main ()
13545{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013546static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013547test_array [0] = 0
13548
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013554if { (ac_try="$ac_compile"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013566 (exit $ac_status); } && {
13567 test -z "$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13569 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013570 ac_hi=$ac_mid; break
13571else
13572 echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
Theodore Ts'oe1052142006-10-21 21:46:47 -040013575 ac_lo=`expr $ac_mid + 1`
13576 if test $ac_lo -le $ac_mid; then
13577 ac_lo= ac_hi=
13578 break
13579 fi
13580 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013581fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013582
13583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013584 done
13585else
13586 echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
Theodore Ts'oe1052142006-10-21 21:46:47 -040013589 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013590/* confdefs.h. */
13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
13595$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013596 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013597int
13598main ()
13599{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013600static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013601test_array [0] = 0
13602
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013608if { (ac_try="$ac_compile"
13609case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624 ac_hi=-1 ac_mid=-1
13625 while :; do
13626 cat >conftest.$ac_ext <<_ACEOF
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
13632$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013633 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013634int
13635main ()
13636{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013637static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013638test_array [0] = 0
13639
13640 ;
13641 return 0;
13642}
13643_ACEOF
13644rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013645if { (ac_try="$ac_compile"
13646case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013657 (exit $ac_status); } && {
13658 test -z "$ac_c_werror_flag" ||
13659 test ! -s conftest.err
13660 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013661 ac_lo=$ac_mid; break
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
Theodore Ts'oe1052142006-10-21 21:46:47 -040013666 ac_hi=`expr '(' $ac_mid ')' - 1`
13667 if test $ac_mid -le $ac_hi; then
13668 ac_lo= ac_hi=
13669 break
13670 fi
13671 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013673
13674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675 done
13676else
13677 echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
Theodore Ts'oe1052142006-10-21 21:46:47 -040013680 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013682
13683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013684fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013685
13686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013687# Binary search between lo and hi bounds.
13688while test "x$ac_lo" != "x$ac_hi"; do
13689 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13690 cat >conftest.$ac_ext <<_ACEOF
13691/* confdefs.h. */
13692_ACEOF
13693cat confdefs.h >>conftest.$ac_ext
13694cat >>conftest.$ac_ext <<_ACEOF
13695/* end confdefs.h. */
13696$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013697 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698int
13699main ()
13700{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013701static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013702test_array [0] = 0
13703
13704 ;
13705 return 0;
13706}
13707_ACEOF
13708rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013709if { (ac_try="$ac_compile"
13710case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013721 (exit $ac_status); } && {
13722 test -z "$ac_c_werror_flag" ||
13723 test ! -s conftest.err
13724 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013725 ac_hi=$ac_mid
13726else
13727 echo "$as_me: failed program was:" >&5
13728sed 's/^/| /' conftest.$ac_ext >&5
13729
Theodore Ts'oe1052142006-10-21 21:46:47 -040013730 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013731fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013732
13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013734done
13735case $ac_lo in
13736?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013737'') if test "$ac_cv_type_long" = yes; then
13738 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013740echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013741See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013742 { (exit 77); exit 77; }; }
13743 else
13744 ac_cv_sizeof_long=0
13745 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013746esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013747else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013748 cat >conftest.$ac_ext <<_ACEOF
13749/* 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 ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013756static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13757static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013758#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013759#include <stdlib.h>
13760int
13761main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013762{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763
13764 FILE *f = fopen ("conftest.val", "w");
13765 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013766 return 1;
13767 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013768 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013769 long int i = longval ();
13770 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13771 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013772 fprintf (f, "%ld\n", i);
13773 }
13774 else
13775 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013776 unsigned long int i = ulongval ();
13777 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13778 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013779 fprintf (f, "%lu\n", i);
13780 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013781 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013782
13783 ;
13784 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013785}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013786_ACEOF
13787rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013788if { (ac_try="$ac_link"
13789case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792esac
13793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013798 { (case "(($ac_try" in
13799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13801esac
13802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13807 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013808else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013809 echo "$as_me: program exited with status $ac_status" >&5
13810echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013814if test "$ac_cv_type_long" = yes; then
13815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013816See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013817echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013818See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013819 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013820 else
13821 ac_cv_sizeof_long=0
13822 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013824rm -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 -050013825fi
13826rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013827fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013828{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13829echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013830
13831
13832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013833cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013834#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013835_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013836
13837
Theodore Ts'oe1052142006-10-21 21:46:47 -040013838{ echo "$as_me:$LINENO: checking for long long" >&5
13839echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840if test "${ac_cv_type_long_long+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13842else
13843 cat >conftest.$ac_ext <<_ACEOF
13844/* confdefs.h. */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
13848/* end confdefs.h. */
13849$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013850typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851int
13852main ()
13853{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013854if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013855 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013856if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013857 return 0;
13858 ;
13859 return 0;
13860}
13861_ACEOF
13862rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013863if { (ac_try="$ac_compile"
13864case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867esac
13868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013875 (exit $ac_status); } && {
13876 test -z "$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013879 ac_cv_type_long_long=yes
13880else
13881 echo "$as_me: failed program was:" >&5
13882sed 's/^/| /' conftest.$ac_ext >&5
13883
Theodore Ts'oe1052142006-10-21 21:46:47 -040013884 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013885fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013886
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888fi
13889{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13890echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13891
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013892# The cast to long int works around a bug in the HP C Compiler
13893# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13894# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13895# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013896{ echo "$as_me:$LINENO: checking size of long long" >&5
13897echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898if test "${ac_cv_sizeof_long_long+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013901 if test "$cross_compiling" = yes; then
13902 # Depending upon the size, compute the lo and hi bounds.
13903cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013910 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013911int
13912main ()
13913{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013914static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013915test_array [0] = 0
13916
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013922if { (ac_try="$ac_compile"
13923case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926esac
13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013934 (exit $ac_status); } && {
13935 test -z "$ac_c_werror_flag" ||
13936 test ! -s conftest.err
13937 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938 ac_lo=0 ac_mid=0
13939 while :; do
13940 cat >conftest.$ac_ext <<_ACEOF
13941/* confdefs.h. */
13942_ACEOF
13943cat confdefs.h >>conftest.$ac_ext
13944cat >>conftest.$ac_ext <<_ACEOF
13945/* end confdefs.h. */
13946$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013947 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013948int
13949main ()
13950{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013951static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013952test_array [0] = 0
13953
13954 ;
13955 return 0;
13956}
13957_ACEOF
13958rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013959if { (ac_try="$ac_compile"
13960case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13963esac
13964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013966 ac_status=$?
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013971 (exit $ac_status); } && {
13972 test -z "$ac_c_werror_flag" ||
13973 test ! -s conftest.err
13974 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013975 ac_hi=$ac_mid; break
13976else
13977 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
Theodore Ts'oe1052142006-10-21 21:46:47 -040013980 ac_lo=`expr $ac_mid + 1`
13981 if test $ac_lo -le $ac_mid; then
13982 ac_lo= ac_hi=
13983 break
13984 fi
13985 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013987
13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989 done
13990else
13991 echo "$as_me: failed program was:" >&5
13992sed 's/^/| /' conftest.$ac_ext >&5
13993
Theodore Ts'oe1052142006-10-21 21:46:47 -040013994 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013995/* confdefs.h. */
13996_ACEOF
13997cat confdefs.h >>conftest.$ac_ext
13998cat >>conftest.$ac_ext <<_ACEOF
13999/* end confdefs.h. */
14000$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014001 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014002int
14003main ()
14004{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014005static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014006test_array [0] = 0
14007
14008 ;
14009 return 0;
14010}
14011_ACEOF
14012rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014013if { (ac_try="$ac_compile"
14014case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017esac
14018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014025 (exit $ac_status); } && {
14026 test -z "$ac_c_werror_flag" ||
14027 test ! -s conftest.err
14028 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029 ac_hi=-1 ac_mid=-1
14030 while :; do
14031 cat >conftest.$ac_ext <<_ACEOF
14032/* confdefs.h. */
14033_ACEOF
14034cat confdefs.h >>conftest.$ac_ext
14035cat >>conftest.$ac_ext <<_ACEOF
14036/* end confdefs.h. */
14037$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014038 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014039int
14040main ()
14041{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014042static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014043test_array [0] = 0
14044
14045 ;
14046 return 0;
14047}
14048_ACEOF
14049rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014050if { (ac_try="$ac_compile"
14051case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14054esac
14055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014062 (exit $ac_status); } && {
14063 test -z "$ac_c_werror_flag" ||
14064 test ! -s conftest.err
14065 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014066 ac_lo=$ac_mid; break
14067else
14068 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
Theodore Ts'oe1052142006-10-21 21:46:47 -040014071 ac_hi=`expr '(' $ac_mid ')' - 1`
14072 if test $ac_mid -le $ac_hi; then
14073 ac_lo= ac_hi=
14074 break
14075 fi
14076 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014078
14079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080 done
14081else
14082 echo "$as_me: failed program was:" >&5
14083sed 's/^/| /' conftest.$ac_ext >&5
14084
Theodore Ts'oe1052142006-10-21 21:46:47 -040014085 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014086fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014087
14088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014090
14091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014092# Binary search between lo and hi bounds.
14093while test "x$ac_lo" != "x$ac_hi"; do
14094 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14095 cat >conftest.$ac_ext <<_ACEOF
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h. */
14101$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014102 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103int
14104main ()
14105{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014106static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107test_array [0] = 0
14108
14109 ;
14110 return 0;
14111}
14112_ACEOF
14113rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014114if { (ac_try="$ac_compile"
14115case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118esac
14119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121 ac_status=$?
14122 grep -v '^ *+' conftest.er1 >conftest.err
14123 rm -f conftest.er1
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014126 (exit $ac_status); } && {
14127 test -z "$ac_c_werror_flag" ||
14128 test ! -s conftest.err
14129 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014130 ac_hi=$ac_mid
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
Theodore Ts'oe1052142006-10-21 21:46:47 -040014135 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014136fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014137
14138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014139done
14140case $ac_lo in
14141?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014142'') if test "$ac_cv_type_long_long" = yes; then
14143 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014144See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014145echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014146See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014147 { (exit 77); exit 77; }; }
14148 else
14149 ac_cv_sizeof_long_long=0
14150 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014151esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014152else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153 cat >conftest.$ac_ext <<_ACEOF
14154/* confdefs.h. */
14155_ACEOF
14156cat confdefs.h >>conftest.$ac_ext
14157cat >>conftest.$ac_ext <<_ACEOF
14158/* end confdefs.h. */
14159$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014160 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014161static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14162static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014163#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014164#include <stdlib.h>
14165int
14166main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014167{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014168
14169 FILE *f = fopen ("conftest.val", "w");
14170 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014171 return 1;
14172 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014173 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014174 long int i = longval ();
14175 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14176 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014177 fprintf (f, "%ld\n", i);
14178 }
14179 else
14180 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014181 unsigned long int i = ulongval ();
14182 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14183 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184 fprintf (f, "%lu\n", i);
14185 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014186 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014187
14188 ;
14189 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014190}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014191_ACEOF
14192rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014193if { (ac_try="$ac_link"
14194case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014203 { (case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206esac
14207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014213else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014214 echo "$as_me: program exited with status $ac_status" >&5
14215echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014219if test "$ac_cv_type_long_long" = yes; then
14220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014221See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014222echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014223See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014224 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014225 else
14226 ac_cv_sizeof_long_long=0
14227 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014229rm -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 -050014230fi
14231rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014232fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014233{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14234echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014235
14236
14237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014238cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014239#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014240_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014241
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014242
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014243SIZEOF_SHORT=$ac_cv_sizeof_short
14244SIZEOF_INT=$ac_cv_sizeof_int
14245SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014246SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14247
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014248
14249
14250
Theodore Ts'oe1052142006-10-21 21:46:47 -040014251{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14252echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014253if test "${ac_cv_c_bigendian+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014255else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014256 # See if sys/param.h defines the BYTE_ORDER macro.
14257cat >conftest.$ac_ext <<_ACEOF
14258/* confdefs.h. */
14259_ACEOF
14260cat confdefs.h >>conftest.$ac_ext
14261cat >>conftest.$ac_ext <<_ACEOF
14262/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014263#include <sys/types.h>
14264#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014266int
14267main ()
14268{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014269#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14270 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014271 bogus endian macros
14272#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014273
14274 ;
14275 return 0;
14276}
14277_ACEOF
14278rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014279if { (ac_try="$ac_compile"
14280case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14283esac
14284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014291 (exit $ac_status); } && {
14292 test -z "$ac_c_werror_flag" ||
14293 test ! -s conftest.err
14294 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014295 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014296cat >conftest.$ac_ext <<_ACEOF
14297/* confdefs.h. */
14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014302#include <sys/types.h>
14303#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014304
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014305int
14306main ()
14307{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014308#if BYTE_ORDER != BIG_ENDIAN
14309 not big endian
14310#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014311
14312 ;
14313 return 0;
14314}
14315_ACEOF
14316rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014317if { (ac_try="$ac_compile"
14318case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321esac
14322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014333 ac_cv_c_bigendian=yes
14334else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335 echo "$as_me: failed program was:" >&5
14336sed 's/^/| /' conftest.$ac_ext >&5
14337
Theodore Ts'oe1052142006-10-21 21:46:47 -040014338 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014340
14341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
Theodore Ts'oe1052142006-10-21 21:46:47 -040014346 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014347if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014348 # try to guess the endianness by grepping values into an object file
14349 ac_cv_c_bigendian=unknown
14350 cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014356short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14357short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014358void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014359short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14360short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014361void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14362int
14363main ()
14364{
14365 _ascii (); _ebcdic ();
14366 ;
14367 return 0;
14368}
14369_ACEOF
14370rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014371if { (ac_try="$ac_compile"
14372case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014387 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14388 ac_cv_c_bigendian=yes
14389fi
14390if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14391 if test "$ac_cv_c_bigendian" = unknown; then
14392 ac_cv_c_bigendian=no
14393 else
14394 # finding both strings is unlikely to happen, but who knows?
14395 ac_cv_c_bigendian=unknown
14396 fi
14397fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014398else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014399 echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
Theodore Ts'oe1052142006-10-21 21:46:47 -040014402
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014403fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014404
14405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014406else
14407 cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014413$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014414int
14415main ()
14416{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014418 /* Are we little or big endian? From Harbison&Steele. */
14419 union
14420 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014421 long int l;
14422 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014423 } u;
14424 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014425 return u.c[sizeof (long int) - 1] == 1;
14426
14427 ;
14428 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014429}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014430_ACEOF
14431rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014432if { (ac_try="$ac_link"
14433case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14436esac
14437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014451 ac_cv_c_bigendian=no
14452else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014453 echo "$as_me: program exited with status $ac_status" >&5
14454echo "$as_me: failed program was:" >&5
14455sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014457( exit $ac_status )
14458ac_cv_c_bigendian=yes
14459fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014460rm -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 -040014461fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014462
14463
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014465
14466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014468{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14469echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470case $ac_cv_c_bigendian in
14471 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014473cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014474#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014475_ACEOF
14476 ;;
14477 no)
14478 ;;
14479 *)
14480 { { echo "$as_me:$LINENO: error: unknown endianness
14481presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14482echo "$as_me: error: unknown endianness
14483presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14484 { (exit 1); exit 1; }; } ;;
14485esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014486
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014487BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014488ASM_TYPES_HEADER=./asm_types.h
14489
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014490echo "/* These defines are needed for the public ext2fs.h header file */" \
14491 > public_config.h
14492if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14493 uniq tmp_config.$$ >> public_config.h
14494else
14495 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14496fi
14497if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14498 uniq tmp_config.$$ >> public_config.h
14499else
14500 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14501fi
14502rm -f tmp_config.$$
14503PUBLIC_CONFIG_HEADER=./public_config.h
14504
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014506for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014507do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014513 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014514fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014515ac_res=`eval echo '${'$as_ac_Header'}'`
14516 { echo "$as_me:$LINENO: result: $ac_res" >&5
14517echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014518else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014519 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014522cat >conftest.$ac_ext <<_ACEOF
14523/* confdefs.h. */
14524_ACEOF
14525cat confdefs.h >>conftest.$ac_ext
14526cat >>conftest.$ac_ext <<_ACEOF
14527/* end confdefs.h. */
14528$ac_includes_default
14529#include <$ac_header>
14530_ACEOF
14531rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014532if { (ac_try="$ac_compile"
14533case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536esac
14537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014544 (exit $ac_status); } && {
14545 test -z "$ac_c_werror_flag" ||
14546 test ! -s conftest.err
14547 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014548 ac_header_compiler=yes
14549else
14550 echo "$as_me: failed program was:" >&5
14551sed 's/^/| /' conftest.$ac_ext >&5
14552
Theodore Ts'oe1052142006-10-21 21:46:47 -040014553 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014554fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014555
14556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14558echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014559
14560# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563cat >conftest.$ac_ext <<_ACEOF
14564/* confdefs.h. */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
14568/* end confdefs.h. */
14569#include <$ac_header>
14570_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014571if { (ac_try="$ac_cpp conftest.$ac_ext"
14572case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14575esac
14576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014578 ac_status=$?
14579 grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014583 (exit $ac_status); } >/dev/null && {
14584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014587 ac_header_preproc=yes
14588else
14589 echo "$as_me: failed program was:" >&5
14590sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 ac_header_preproc=no
14593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014595rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14597echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598
14599# So? What about this header?
14600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14601 yes:no: )
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14606 ac_header_preproc=yes
14607 ;;
14608 no:yes:* )
14609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014621
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014622 ;;
14623esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014624{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628else
14629 eval "$as_ac_Header=\$ac_header_preproc"
14630fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014631ac_res=`eval echo '${'$as_ac_Header'}'`
14632 { echo "$as_me:$LINENO: result: $ac_res" >&5
14633echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634
14635fi
14636if test `eval echo '${'$as_ac_Header'}'` = yes; then
14637 cat >>confdefs.h <<_ACEOF
14638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14639_ACEOF
14640
14641fi
14642
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014643done
14644
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14646echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014647if test "${ac_cv_type_intptr_t+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014649else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014650 cat >conftest.$ac_ext <<_ACEOF
14651/* confdefs.h. */
14652_ACEOF
14653cat confdefs.h >>conftest.$ac_ext
14654cat >>conftest.$ac_ext <<_ACEOF
14655/* end confdefs.h. */
14656$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014657typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014658int
14659main ()
14660{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014661if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014662 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014663if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014664 return 0;
14665 ;
14666 return 0;
14667}
14668_ACEOF
14669rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014670if { (ac_try="$ac_compile"
14671case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674esac
14675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014682 (exit $ac_status); } && {
14683 test -z "$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014686 ac_cv_type_intptr_t=yes
14687else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014690
Theodore Ts'oe1052142006-10-21 21:46:47 -040014691 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014692fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014693
14694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014696{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14697echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014698if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014699
14700cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014701#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014702_ACEOF
14703
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014704
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014705fi
14706
Theodore Ts'oe1052142006-10-21 21:46:47 -040014707{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14708echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014709if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14711else
14712 cat >conftest.$ac_ext <<_ACEOF
14713/* confdefs.h. */
14714_ACEOF
14715cat confdefs.h >>conftest.$ac_ext
14716cat >>conftest.$ac_ext <<_ACEOF
14717/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014718#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719int
14720main ()
14721{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014722struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014723 ;
14724 return 0;
14725}
14726_ACEOF
14727rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014728if { (ac_try="$ac_compile"
14729case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14732esac
14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014735 ac_status=$?
14736 grep -v '^ *+' conftest.er1 >conftest.err
14737 rm -f conftest.er1
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014740 (exit $ac_status); } && {
14741 test -z "$ac_c_werror_flag" ||
14742 test ! -s conftest.err
14743 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014744 e2fsprogs_cv_struct_st_flags=yes
14745else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
Theodore Ts'oe1052142006-10-21 21:46:47 -040014749 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014750fi
14751
Theodore Ts'oe1052142006-10-21 21:46:47 -040014752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753fi
14754
14755{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14756echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014757if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014758 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14759echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014760 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014762else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014763 cat >conftest.$ac_ext <<_ACEOF
14764/* confdefs.h. */
14765_ACEOF
14766cat confdefs.h >>conftest.$ac_ext
14767cat >>conftest.$ac_ext <<_ACEOF
14768/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014769#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014770int
14771main ()
14772{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014773struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014774 ;
14775 return 0;
14776}
14777_ACEOF
14778rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014779if { (ac_try="$ac_compile"
14780case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783esac
14784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014795 e2fsprogs_cv_struct_st_flags_immut=yes
14796else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797 echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
Theodore Ts'oe1052142006-10-21 21:46:47 -040014800 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014801fi
14802
Theodore Ts'oe1052142006-10-21 21:46:47 -040014803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804fi
14805
14806 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14807echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014808 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014809 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014810#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014811_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014812
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014813 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014814fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014815{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14816echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014817if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014818 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014819else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014820 cat >conftest.$ac_ext <<_ACEOF
14821/* confdefs.h. */
14822_ACEOF
14823cat confdefs.h >>conftest.$ac_ext
14824cat >>conftest.$ac_ext <<_ACEOF
14825/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014826#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014827 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014829int
14830main ()
14831{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014832static struct sockaddr ac_aggr;
14833if (ac_aggr.sa_len)
14834return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014835 ;
14836 return 0;
14837}
14838_ACEOF
14839rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014840if { (ac_try="$ac_compile"
14841case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844esac
14845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014847 ac_status=$?
14848 grep -v '^ *+' conftest.er1 >conftest.err
14849 rm -f conftest.er1
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014852 (exit $ac_status); } && {
14853 test -z "$ac_c_werror_flag" ||
14854 test ! -s conftest.err
14855 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014856 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014857else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
Theodore Ts'oe1052142006-10-21 21:46:47 -040014861 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014862/* confdefs.h. */
14863_ACEOF
14864cat confdefs.h >>conftest.$ac_ext
14865cat >>conftest.$ac_ext <<_ACEOF
14866/* end confdefs.h. */
14867#include <sys/types.h>
14868 #include <sys/socket.h>
14869
14870int
14871main ()
14872{
14873static struct sockaddr ac_aggr;
14874if (sizeof ac_aggr.sa_len)
14875return 0;
14876 ;
14877 return 0;
14878}
14879_ACEOF
14880rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014881if { (ac_try="$ac_compile"
14882case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14885esac
14886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014893 (exit $ac_status); } && {
14894 test -z "$ac_c_werror_flag" ||
14895 test ! -s conftest.err
14896 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014897 ac_cv_member_struct_sockaddr_sa_len=yes
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
Theodore Ts'oe1052142006-10-21 21:46:47 -040014902 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014903fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014904
14905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014906fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014907
14908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014909fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014910{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14911echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014912if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014913
14914cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014915#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014916_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014917
14918fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014938
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014939
14940
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014941
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014942
Theodore Ts'o106ad962007-04-04 21:26:37 -040014943
14944
14945
Theodore Ts'o740837d2007-12-16 17:21:38 -050014946
14947
Theodore Ts'o261cd392008-01-21 13:45:00 -050014948
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014949
14950
14951for 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 +000014952do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014954{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14956if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014957 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014959 cat >conftest.$ac_ext <<_ACEOF
14960/* confdefs.h. */
14961_ACEOF
14962cat confdefs.h >>conftest.$ac_ext
14963cat >>conftest.$ac_ext <<_ACEOF
14964/* end confdefs.h. */
14965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14967#define $ac_func innocuous_$ac_func
14968
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014969/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014970 which can conflict with char $ac_func (); below.
14971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14972 <limits.h> exists even on freestanding compilers. */
14973
14974#ifdef __STDC__
14975# include <limits.h>
14976#else
14977# include <assert.h>
14978#endif
14979
14980#undef $ac_func
14981
Theodore Ts'oe1052142006-10-21 21:46:47 -040014982/* Override any GCC internal prototype to avoid an error.
14983 Use char because int might match the return type of a GCC
14984 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014985#ifdef __cplusplus
14986extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014988char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014989/* The GNU C library defines this for functions which it implements
14990 to always fail with ENOSYS. Some functions are actually named
14991 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014992#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014993choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014994#endif
14995
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014996int
14997main ()
14998{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014999return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015000 ;
15001 return 0;
15002}
15003_ACEOF
15004rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015005if { (ac_try="$ac_link"
15006case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009esac
15010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015017 (exit $ac_status); } && {
15018 test -z "$ac_c_werror_flag" ||
15019 test ! -s conftest.err
15020 } && test -s conftest$ac_exeext &&
15021 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015022 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015023else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015024 echo "$as_me: failed program was:" >&5
15025sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015026
Theodore Ts'oe1052142006-10-21 21:46:47 -040015027 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015028fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015029
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015031 conftest$ac_exeext conftest.$ac_ext
15032fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015033ac_res=`eval echo '${'$as_ac_var'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015036if test `eval echo '${'$as_ac_var'}'` = yes; then
15037 cat >>confdefs.h <<_ACEOF
15038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15039_ACEOF
15040
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015041fi
15042done
15043
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015044SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015045{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15046echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015047if test "${ac_cv_lib_socket_socket+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015050 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015051LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015052cat >conftest.$ac_ext <<_ACEOF
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h. */
15058
Theodore Ts'oe1052142006-10-21 21:46:47 -040015059/* Override any GCC internal prototype to avoid an error.
15060 Use char because int might match the return type of a GCC
15061 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015062#ifdef __cplusplus
15063extern "C"
15064#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015065char socket ();
15066int
15067main ()
15068{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015069return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015070 ;
15071 return 0;
15072}
15073_ACEOF
15074rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015075if { (ac_try="$ac_link"
15076case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079esac
15080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest$ac_exeext &&
15091 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015092 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015096
Theodore Ts'oe1052142006-10-21 21:46:47 -040015097 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015099
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015101 conftest$ac_exeext conftest.$ac_ext
15102LIBS=$ac_check_lib_save_LIBS
15103fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015104{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15105echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015106if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015107 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015108fi
15109
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015110
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015111DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015112{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15113echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015114if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015116else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015117 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015118LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015119cat >conftest.$ac_ext <<_ACEOF
15120/* confdefs.h. */
15121_ACEOF
15122cat confdefs.h >>conftest.$ac_ext
15123cat >>conftest.$ac_ext <<_ACEOF
15124/* end confdefs.h. */
15125
Theodore Ts'oe1052142006-10-21 21:46:47 -040015126/* Override any GCC internal prototype to avoid an error.
15127 Use char because int might match the return type of a GCC
15128 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015129#ifdef __cplusplus
15130extern "C"
15131#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015132char dlopen ();
15133int
15134main ()
15135{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015136return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015137 ;
15138 return 0;
15139}
15140_ACEOF
15141rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015142if { (ac_try="$ac_link"
15143case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146esac
15147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015149 ac_status=$?
15150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015154 (exit $ac_status); } && {
15155 test -z "$ac_c_werror_flag" ||
15156 test ! -s conftest.err
15157 } && test -s conftest$ac_exeext &&
15158 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015159 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015160else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015161 echo "$as_me: failed program was:" >&5
15162sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015163
Theodore Ts'oe1052142006-10-21 21:46:47 -040015164 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015166
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015168 conftest$ac_exeext conftest.$ac_ext
15169LIBS=$ac_check_lib_save_LIBS
15170fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015171{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15172echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015173if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015174 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015175cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015176#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015177_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015178
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015179fi
15180
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015181
Theodore Ts'oe1052142006-10-21 21:46:47 -040015182{ echo "$as_me:$LINENO: checking for optreset" >&5
15183echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015184if test "${ac_cv_have_optreset+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015186else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015187 cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
15192/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015193#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015194
15195_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015197 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015198 ac_cv_have_optreset=yes
15199else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015200 ac_cv_have_optreset=no
15201fi
15202rm -f conftest*
15203
15204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015205{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15206echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015207if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015208 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015209#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015210_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015211
15212fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015213{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15214echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015215if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015216 UNI_DIFF_OPTS=-u
15217else
15218 UNI_DIFF_OPTS=-c
15219fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015220{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15221echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015222
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015223case "$host_os" in
15224linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015225 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015226#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015227_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015228
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015229 ;;
15230esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015231LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015232CYGWIN_CMT="#"
15233UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015234case "$host_os" in
15235linux*)
15236 LINUX_CMT=
15237 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015238cygwin)
15239 CYGWIN_CMT=
15240 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015241 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015242esac
15243
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015244
15245
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015246case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015247linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015248 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15249 root_prefix="";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015250 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15251echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015252 fi
15253 ;;
15254esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015255case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015256linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015257 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015258 prefix="/usr";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015259 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15260echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015261 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015262 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15263echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015264 mandir=/usr/share/man
15265 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015266 fi
15267;;
15268esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015269if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015270 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015271 root_prefix="$ac_default_prefix"
15272 else
15273 root_prefix="$prefix"
15274 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015275 root_bindir=$bindir
15276 root_sbindir=$sbindir
15277 root_libdir=$libdir
15278 root_sysconfdir=$sysconfdir
15279else
15280 root_bindir='${root_prefix}/bin'
15281 root_sbindir='${root_prefix}/sbin'
15282 root_libdir='${root_prefix}/lib'
15283 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015284fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015285if test "$bindir" != '${exec_prefix}/bin'; then
15286 root_bindir=$bindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015287 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15288echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015289fi
15290if test "$sbindir" != '${exec_prefix}/sbin'; then
15291 root_sbindir=$sbindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015292 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15293echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015294fi
15295if test "$libdir" != '${exec_prefix}/lib'; then
15296 root_libdir=$libdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015297 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15298echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015299fi
15300if test "$sysconfdir" != '${prefix}/etc'; then
15301 root_sysconfdir=$sysconfdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015302 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15303echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015304fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015305
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015306
15307
15308
15309
Theodore Ts'oe1052142006-10-21 21:46:47 -040015310{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15311echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015312if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015314else
15315 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015316cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015322#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015323int
15324main ()
15325{
Theodore Ts'oae851481997-04-29 18:13:24 +000015326fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015327 ;
15328 return 0;
15329}
15330_ACEOF
15331rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015332if { (ac_try="$ac_link"
15333case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest$ac_exeext &&
15348 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015349 ac_cv_e2fsprogs_use_static=yes
15350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015351 echo "$as_me: failed program was:" >&5
15352sed 's/^/| /' conftest.$ac_ext >&5
15353
Theodore Ts'oe1052142006-10-21 21:46:47 -040015354 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015356
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015358 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015359LDFLAGS=$SAVE_LDFLAGS
15360fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015361
Theodore Ts'odefde781999-01-04 07:39:19 +000015362case "$host_os" in
15363solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015364 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015365;;
15366esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015367{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15368echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015369LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015370if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015371 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015372fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015373
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015374case "$host_os" in
15375darwin*)
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015376 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15377echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015378 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015379#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015380_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015381
15382 ;;
15383esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015384SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15385ET_DIR=`cd ${srcdir}/lib/et; pwd`
15386
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015387
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015388if test "$cross_compiling" = yes ; then
15389 DO_TEST_SUITE=
15390else
15391 DO_TEST_SUITE=check
15392fi
15393
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015394INTL_FLAGS=
15395if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15396 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15397fi
15398
Theodore Ts'odd947da2005-11-09 18:37:07 -040015399if test $cross_compiling = no; then
15400 BUILD_CFLAGS="$CFLAGS"
15401 BUILD_LDFLAGS="$LDFLAGS"
15402else
15403 BUILD_CFLAGS=
15404 BUILD_LDFLAGS=
15405fi
15406
15407
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015408test -d lib || mkdir lib
15409test -d include || mkdir include
15410test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015411test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015412for i in MCONFIG Makefile e2fsprogs.spec \
15413 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015414 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15415 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015416 lib/uuid/Makefile lib/uuid/uuid_types.h \
15417 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015418 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15419 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015420 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015421 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15422 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15423 if test -d `dirname ${srcdir}/$i` ; then
15424 outlist="$outlist $i"
15425 fi
15426done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015427ac_config_files="$ac_config_files $outlist"
15428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015429cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015430# This file is a shell script that caches the results of configure
15431# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015432# scripts and configure runs, see configure's option --config-cache.
15433# It is not useful on other systems. If it contains results you don't
15434# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015435#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015436# config.status only pays attention to the cache file if you give it
15437# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015438#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015439# `ac_cv_env_foo' variables (set or unset) will be overridden when
15440# loading this file, other *unset* `ac_cv_foo' will be assigned the
15441# following values.
15442
15443_ACEOF
15444
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015445# The following way of writing the cache mishandles newlines in values,
15446# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015447# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015448# Ultrix sh set writes to stderr and can't be redirected directly,
15449# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015450(
15451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15452 eval ac_val=\$$ac_var
15453 case $ac_val in #(
15454 *${as_nl}*)
15455 case $ac_var in #(
15456 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15457echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15458 esac
15459 case $ac_var in #(
15460 _ | IFS | as_nl) ;; #(
15461 *) $as_unset $ac_var ;;
15462 esac ;;
15463 esac
15464 done
15465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015466 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15468 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015469 # `set' does not quote correctly, so add quotes (double-quote
15470 # substitution turns \\\\ into \\, and sed turns \\ into \).
15471 sed -n \
15472 "s/'/'\\\\''/g;
15473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015474 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015475 *)
15476 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015478 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015479 esac |
15480 sort
15481) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015482 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015483 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015484 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015485 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15487 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15489 :end' >>confcache
15490if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15491 if test -w "$cache_file"; then
15492 test "x$cache_file" != "x/dev/null" &&
15493 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15494echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015496 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015497 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15498echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015499 fi
15500fi
15501rm -f confcache
15502
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015503test "x$prefix" = xNONE && prefix=$ac_default_prefix
15504# Let make expand exec_prefix.
15505test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15506
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015507# Transform confdefs.h into DEFS.
15508# Protect against shell expansion while executing Makefile rules.
15509# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510#
15511# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015512# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015513# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015514ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015516:clear
15517s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015518t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015519s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015520t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015521b any
15522:quote
15523s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15524s/\[/\\&/g
15525s/\]/\\&/g
15526s/\$/$$/g
15527H
15528:any
15529${
15530 g
15531 s/^\n//
15532 s/\n/ /g
15533 p
15534}
15535'
15536DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015537
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015539ac_libobjs=
15540ac_ltlibobjs=
15541for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15542 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15544 ac_i=`echo "$ac_i" | sed "$ac_script"`
15545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15546 # will be set to the directory where LIBOBJS objects are built.
15547 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15548 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015549done
15550LIBOBJS=$ac_libobjs
15551
15552LTLIBOBJS=$ac_ltlibobjs
15553
15554
15555
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015556: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015557ac_clean_files_save=$ac_clean_files
15558ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15559{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15560echo "$as_me: creating $CONFIG_STATUS" >&6;}
15561cat >$CONFIG_STATUS <<_ACEOF
15562#! $SHELL
15563# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015564# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015565# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015566# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015568debug=false
15569ac_cs_recheck=false
15570ac_cs_silent=false
15571SHELL=\${CONFIG_SHELL-$SHELL}
15572_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015574cat >>$CONFIG_STATUS <<\_ACEOF
15575## --------------------- ##
15576## M4sh Initialization. ##
15577## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015578
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015579# Be more Bourne compatible
15580DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015581if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15582 emulate sh
15583 NULLCMD=:
15584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15585 # is contrary to our usage. Disable this feature.
15586 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015587 setopt NO_GLOB_SUBST
15588else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015589 case `(set -o) 2>/dev/null` in
15590 *posix*) set -o posix ;;
15591esac
15592
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015593fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015594
15595
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015596
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015597
Theodore Ts'oe1052142006-10-21 21:46:47 -040015598# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015599# Avoid depending upon Character Ranges.
15600as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15601as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15602as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15603as_cr_digits='0123456789'
15604as_cr_alnum=$as_cr_Letters$as_cr_digits
15605
15606# The user is always right.
15607if test "${PATH_SEPARATOR+set}" != set; then
15608 echo "#! /bin/sh" >conf$$.sh
15609 echo "exit 0" >>conf$$.sh
15610 chmod +x conf$$.sh
15611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15612 PATH_SEPARATOR=';'
15613 else
15614 PATH_SEPARATOR=:
15615 fi
15616 rm -f conf$$.sh
15617fi
15618
Theodore Ts'oe1052142006-10-21 21:46:47 -040015619# Support unset when possible.
15620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15621 as_unset=unset
15622else
15623 as_unset=false
15624fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015625
Theodore Ts'oe1052142006-10-21 21:46:47 -040015626
15627# IFS
15628# We need space, tab and new line, in precisely that order. Quoting is
15629# there to prevent editors from complaining about space-tab.
15630# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15631# splitting by setting IFS to empty value.)
15632as_nl='
15633'
15634IFS=" "" $as_nl"
15635
15636# Find who we are. Look in the path if we contain no directory separator.
15637case $0 in
15638 *[\\/]* ) as_myself=$0 ;;
15639 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015640for as_dir in $PATH
15641do
15642 IFS=$as_save_IFS
15643 test -z "$as_dir" && as_dir=.
15644 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15645done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015646IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015647
Theodore Ts'oe1052142006-10-21 21:46:47 -040015648 ;;
15649esac
15650# We did not find ourselves, most probably we were run as `sh COMMAND'
15651# in which case we are not to be found in the path.
15652if test "x$as_myself" = x; then
15653 as_myself=$0
15654fi
15655if test ! -f "$as_myself"; then
15656 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15657 { (exit 1); exit 1; }
15658fi
15659
15660# Work around bugs in pre-3.0 UWIN ksh.
15661for as_var in ENV MAIL MAILPATH
15662do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15663done
15664PS1='$ '
15665PS2='> '
15666PS4='+ '
15667
15668# NLS nuisances.
15669for as_var in \
15670 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15671 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15672 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015673do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015674 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15675 eval $as_var=C; export $as_var
15676 else
15677 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15678 fi
15679done
15680
15681# Required to use basename.
15682if expr a : '\(a\)' >/dev/null 2>&1 &&
15683 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15684 as_expr=expr
15685else
15686 as_expr=false
15687fi
15688
15689if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15690 as_basename=basename
15691else
15692 as_basename=false
15693fi
15694
15695
15696# Name of the executable.
15697as_me=`$as_basename -- "$0" ||
15698$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15699 X"$0" : 'X\(//\)$' \| \
15700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15701echo X/"$0" |
15702 sed '/^.*\/\([^/][^/]*\)\/*$/{
15703 s//\1/
15704 q
15705 }
15706 /^X\/\(\/\/\)$/{
15707 s//\1/
15708 q
15709 }
15710 /^X\/\(\/\).*/{
15711 s//\1/
15712 q
15713 }
15714 s/.*/./; q'`
15715
15716# CDPATH.
15717$as_unset CDPATH
15718
15719
15720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015721 as_lineno_1=$LINENO
15722 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015723 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015724 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015726 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15727 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015728 # line-number line after each line using $LINENO; the second 'sed'
15729 # does the real work. The second script uses 'N' to pair each
15730 # line-number line with the line containing $LINENO, and appends
15731 # trailing '-' during substitution so that $LINENO is not a special
15732 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015733 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015734 # scripts with optimization help from Paolo Bonzini. Blame Lee
15735 # E. McMahon (1931-1989) for sed's syntax. :-)
15736 sed -n '
15737 p
15738 /[$]LINENO/=
15739 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015740 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015741 s/[$]LINENO.*/&-/
15742 t lineno
15743 b
15744 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015745 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015746 :loop
15747 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015748 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015749 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015750 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015751 chmod +x "$as_me.lineno" ||
15752 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015753 { (exit 1); exit 1; }; }
15754
15755 # Don't try to exec as it changes $[0], causing all sort of problems
15756 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015757 # original and so on. Autoconf is especially sensitive to this).
15758 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015759 # Exit status is that of the last command.
15760 exit
15761}
15762
15763
Theodore Ts'oe1052142006-10-21 21:46:47 -040015764if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15765 as_dirname=dirname
15766else
15767 as_dirname=false
15768fi
15769
15770ECHO_C= ECHO_N= ECHO_T=
15771case `echo -n x` in
15772-n*)
15773 case `echo 'x\c'` in
15774 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15775 *) ECHO_C='\c';;
15776 esac;;
15777*)
15778 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015779esac
15780
Theodore Ts'oe1052142006-10-21 21:46:47 -040015781if expr a : '\(a\)' >/dev/null 2>&1 &&
15782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015783 as_expr=expr
15784else
15785 as_expr=false
15786fi
15787
15788rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015789if test -d conf$$.dir; then
15790 rm -f conf$$.dir/conf$$.file
15791else
15792 rm -f conf$$.dir
15793 mkdir conf$$.dir
15794fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015795echo >conf$$.file
15796if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015797 as_ln_s='ln -s'
15798 # ... but there are two gotchas:
15799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15801 # In both cases, we have to default to `cp -p'.
15802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015803 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015804elif ln conf$$.file conf$$ 2>/dev/null; then
15805 as_ln_s=ln
15806else
15807 as_ln_s='cp -p'
15808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015809rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15810rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015811
15812if mkdir -p . 2>/dev/null; then
15813 as_mkdir_p=:
15814else
15815 test -d ./-p && rmdir ./-p
15816 as_mkdir_p=false
15817fi
15818
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015819if test -x / >/dev/null 2>&1; then
15820 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015821else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015822 if ls -dL / >/dev/null 2>&1; then
15823 as_ls_L_option=L
15824 else
15825 as_ls_L_option=
15826 fi
15827 as_test_x='
15828 eval sh -c '\''
15829 if test -d "$1"; then
15830 test -d "$1/.";
15831 else
15832 case $1 in
15833 -*)set "./$1";;
15834 esac;
15835 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15836 ???[sx]*):;;*)false;;esac;fi
15837 '\'' sh
15838 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015839fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015840as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015841
15842# Sed expression to map a string onto a valid CPP name.
15843as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15844
15845# Sed expression to map a string onto a valid variable name.
15846as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15847
15848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015849exec 6>&1
15850
Theodore Ts'oe1052142006-10-21 21:46:47 -040015851# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015852# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015853# values after options handling.
15854ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015855This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015856generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015857
15858 CONFIG_FILES = $CONFIG_FILES
15859 CONFIG_HEADERS = $CONFIG_HEADERS
15860 CONFIG_LINKS = $CONFIG_LINKS
15861 CONFIG_COMMANDS = $CONFIG_COMMANDS
15862 $ $0 $@
15863
Theodore Ts'oe1052142006-10-21 21:46:47 -040015864on `(hostname || uname -n) 2>/dev/null | sed 1q`
15865"
15866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015867_ACEOF
15868
Theodore Ts'oe1052142006-10-21 21:46:47 -040015869cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015870# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015871config_files="$ac_config_files"
15872config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015873
Theodore Ts'oe1052142006-10-21 21:46:47 -040015874_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015875
15876cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015877ac_cs_usage="\
15878\`$as_me' instantiates files from templates according to the
15879current configuration.
15880
15881Usage: $0 [OPTIONS] [FILE]...
15882
15883 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015884 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015885 -q, --quiet do not print progress messages
15886 -d, --debug don't remove temporary files
15887 --recheck update $as_me by reconfiguring in the same conditions
15888 --file=FILE[:TEMPLATE]
15889 instantiate the configuration file FILE
15890
15891Configuration files:
15892$config_files
15893
15894Configuration commands:
15895$config_commands
15896
15897Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015898
Theodore Ts'oe1052142006-10-21 21:46:47 -040015899_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015900cat >>$CONFIG_STATUS <<_ACEOF
15901ac_cs_version="\\
15902config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015903configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015904 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015905
Theodore Ts'oe1052142006-10-21 21:46:47 -040015906Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015907This config.status script is free software; the Free Software Foundation
15908gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015909
15910ac_pwd='$ac_pwd'
15911srcdir='$srcdir'
15912INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015913_ACEOF
15914
15915cat >>$CONFIG_STATUS <<\_ACEOF
15916# If no file are specified by the user, then we need to provide default
15917# value. By we need to know if files were specified by the user.
15918ac_need_defaults=:
15919while test $# != 0
15920do
15921 case $1 in
15922 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015923 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15924 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015925 ac_shift=:
15926 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015927 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015928 ac_option=$1
15929 ac_optarg=$2
15930 ac_shift=shift
15931 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015932 esac
15933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015934 case $ac_option in
15935 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15937 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15939 echo "$ac_cs_version"; exit ;;
15940 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015941 debug=: ;;
15942 --file | --fil | --fi | --f )
15943 $ac_shift
15944 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15945 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015946 --he | --h | --help | --hel | -h )
15947 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15950 ac_cs_silent=: ;;
15951
15952 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015953 -*) { echo "$as_me: error: unrecognized option: $1
15954Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015955 { (exit 1); exit 1; }; } ;;
15956
Theodore Ts'oe1052142006-10-21 21:46:47 -040015957 *) ac_config_targets="$ac_config_targets $1"
15958 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015959
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015960 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015961 shift
15962done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015964ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015965
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015966if $ac_cs_silent; then
15967 exec 6>/dev/null
15968 ac_configure_extra_args="$ac_configure_extra_args --silent"
15969fi
15970
15971_ACEOF
15972cat >>$CONFIG_STATUS <<_ACEOF
15973if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015974 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15975 CONFIG_SHELL=$SHELL
15976 export CONFIG_SHELL
15977 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015978fi
15979
15980_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015981cat >>$CONFIG_STATUS <<\_ACEOF
15982exec 5>>config.log
15983{
15984 echo
15985 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15986## Running $as_me. ##
15987_ASBOX
15988 echo "$ac_log"
15989} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015990
Theodore Ts'oe1052142006-10-21 21:46:47 -040015991_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015992cat >>$CONFIG_STATUS <<_ACEOF
15993#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015994# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015995#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015996# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015997 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015998 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015999 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016000 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16001 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016002
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016003
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016004_ACEOF
16005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016006cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016007
16008# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016009for ac_config_target in $ac_config_targets
16010do
Theodore Ts'oe1052142006-10-21 21:46:47 -040016011 case $ac_config_target in
16012 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16013 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016015 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16016echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16017 { (exit 1); exit 1; }; };;
16018 esac
16019done
16020
Theodore Ts'oe1052142006-10-21 21:46:47 -040016021
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016022# If the user did not use the arguments to specify the items to instantiate,
16023# then the envvar interface is used. Set only those that are not.
16024# We use the long form for the default assignment because of an extremely
16025# bizarre bug on SunOS 4.1.3.
16026if $ac_need_defaults; then
16027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16029fi
16030
16031# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040016032# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016033# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016034# Hook for its removal unless debugging.
16035# Note that there is a small window in which the directory will not be cleaned:
16036# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016037$debug ||
16038{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016039 tmp=
16040 trap 'exit_status=$?
16041 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16042' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016043 trap '{ (exit 1); exit 1; }' 1 2 13 15
16044}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016045# Create a (secure) tmp directory for tmp files.
16046
16047{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016049 test -n "$tmp" && test -d "$tmp"
16050} ||
16051{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016052 tmp=./conf$$-$RANDOM
16053 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016054} ||
16055{
16056 echo "$me: cannot create a temporary directory in ." >&2
16057 { (exit 1); exit 1; }
16058}
16059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016060#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016061# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016062#
16063
16064# No need to generate the scripts if there are no CONFIG_FILES.
16065# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040016066if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016067
16068_ACEOF
16069
Theodore Ts'oe1052142006-10-21 21:46:47 -040016070# Create sed commands to just substitute file output variables.
16071
16072# Remaining file output variables are in a fragment that also has non-file
16073# output varibles.
16074
16075
16076
16077ac_delim='%!_!# '
16078for ac_last_try in false false false false false :; do
16079 cat >conf$$subs.sed <<_ACEOF
16080SHELL!$SHELL$ac_delim
16081PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16082PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16083PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16084PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16085PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16086PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16087exec_prefix!$exec_prefix$ac_delim
16088prefix!$prefix$ac_delim
16089program_transform_name!$program_transform_name$ac_delim
16090bindir!$bindir$ac_delim
16091sbindir!$sbindir$ac_delim
16092libexecdir!$libexecdir$ac_delim
16093datarootdir!$datarootdir$ac_delim
16094datadir!$datadir$ac_delim
16095sysconfdir!$sysconfdir$ac_delim
16096sharedstatedir!$sharedstatedir$ac_delim
16097localstatedir!$localstatedir$ac_delim
16098includedir!$includedir$ac_delim
16099oldincludedir!$oldincludedir$ac_delim
16100docdir!$docdir$ac_delim
16101infodir!$infodir$ac_delim
16102htmldir!$htmldir$ac_delim
16103dvidir!$dvidir$ac_delim
16104pdfdir!$pdfdir$ac_delim
16105psdir!$psdir$ac_delim
16106libdir!$libdir$ac_delim
16107localedir!$localedir$ac_delim
16108mandir!$mandir$ac_delim
16109DEFS!$DEFS$ac_delim
16110ECHO_C!$ECHO_C$ac_delim
16111ECHO_N!$ECHO_N$ac_delim
16112ECHO_T!$ECHO_T$ac_delim
16113LIBS!$LIBS$ac_delim
16114build_alias!$build_alias$ac_delim
16115host_alias!$host_alias$ac_delim
16116target_alias!$target_alias$ac_delim
16117E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16118E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16119E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16120E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016121E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016122build!$build$ac_delim
16123build_cpu!$build_cpu$ac_delim
16124build_vendor!$build_vendor$ac_delim
16125build_os!$build_os$ac_delim
16126host!$host$ac_delim
16127host_cpu!$host_cpu$ac_delim
16128host_vendor!$host_vendor$ac_delim
16129host_os!$host_os$ac_delim
16130CC!$CC$ac_delim
16131CFLAGS!$CFLAGS$ac_delim
16132LDFLAGS!$LDFLAGS$ac_delim
16133CPPFLAGS!$CPPFLAGS$ac_delim
16134ac_ct_CC!$ac_ct_CC$ac_delim
16135EXEEXT!$EXEEXT$ac_delim
16136OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016137CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016138LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016139GREP!$GREP$ac_delim
16140EGREP!$EGREP$ac_delim
16141LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16142MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16143HTREE_CMT!$HTREE_CMT$ac_delim
16144ELF_CMT!$ELF_CMT$ac_delim
16145BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16146PROFILE_CMT!$PROFILE_CMT$ac_delim
16147CHECKER_CMT!$CHECKER_CMT$ac_delim
16148LIB_EXT!$LIB_EXT$ac_delim
16149STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16150PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016151DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16152IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016153_ACEOF
16154
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016155 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 -040016156 break
16157 elif $ac_last_try; then
16158 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16159echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16160 { (exit 1); exit 1; }; }
16161 else
16162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016163 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016164done
16165
16166ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16167if test -n "$ac_eof"; then
16168 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16169 ac_eof=`expr $ac_eof + 1`
16170fi
16171
16172cat >>$CONFIG_STATUS <<_ACEOF
16173cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16175/^[ ]*@MCONFIG@[ ]*$/{
16176r $MCONFIG
16177d
16178}
16179/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16180r $MAKEFILE_ELF
16181d
16182}
16183/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16184r $MAKEFILE_BSDLIB
16185d
16186}
16187/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16188r $MAKEFILE_PROFILE
16189d
16190}
16191/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16192r $MAKEFILE_CHECKER
16193d
16194}
16195/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16196r $MAKEFILE_LIBRARY
16197d
16198}
16199/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16200r $ASM_TYPES_HEADER
16201d
16202}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016203/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16204r $PUBLIC_CONFIG_HEADER
16205d
16206}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016207_ACEOF
16208sed '
16209s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16210s/^/s,@/; s/!/@,|#_!!_#|/
16211:n
16212t n
16213s/'"$ac_delim"'$/,g/; t
16214s/$/\\/; p
16215N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16216' >>$CONFIG_STATUS <conf$$subs.sed
16217rm -f conf$$subs.sed
16218cat >>$CONFIG_STATUS <<_ACEOF
16219CEOF$ac_eof
16220_ACEOF
16221
16222
16223ac_delim='%!_!# '
16224for ac_last_try in false false false false false :; do
16225 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016226RESIZER_CMT!$RESIZER_CMT$ac_delim
16227FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016228FSCK_MAN!$FSCK_MAN$ac_delim
16229E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16230E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016231PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016232DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16233DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16234DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16235STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016236STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016237UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016238GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16239PACKAGE!$PACKAGE$ac_delim
16240VERSION!$VERSION$ac_delim
16241SET_MAKE!$SET_MAKE$ac_delim
16242INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16243INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16244INSTALL_DATA!$INSTALL_DATA$ac_delim
16245MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16246USE_NLS!$USE_NLS$ac_delim
16247MSGFMT!$MSGFMT$ac_delim
16248GMSGFMT!$GMSGFMT$ac_delim
16249XGETTEXT!$XGETTEXT$ac_delim
16250MSGMERGE!$MSGMERGE$ac_delim
16251RANLIB!$RANLIB$ac_delim
16252ALLOCA!$ALLOCA$ac_delim
16253GLIBC21!$GLIBC21$ac_delim
16254HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16255HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16256HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16257HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16258LIBICONV!$LIBICONV$ac_delim
16259LTLIBICONV!$LTLIBICONV$ac_delim
16260INTLBISON!$INTLBISON$ac_delim
16261BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16262USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16263CATOBJEXT!$CATOBJEXT$ac_delim
16264DATADIRNAME!$DATADIRNAME$ac_delim
16265INSTOBJEXT!$INSTOBJEXT$ac_delim
16266GENCAT!$GENCAT$ac_delim
16267INTLOBJS!$INTLOBJS$ac_delim
16268INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16269INTLLIBS!$INTLLIBS$ac_delim
16270LIBINTL!$LIBINTL$ac_delim
16271LTLIBINTL!$LTLIBINTL$ac_delim
16272POSUB!$POSUB$ac_delim
16273BINARY_TYPE!$BINARY_TYPE$ac_delim
16274LN!$LN$ac_delim
16275LN_S!$LN_S$ac_delim
16276MV!$MV$ac_delim
16277CP!$CP$ac_delim
16278RM!$RM$ac_delim
16279CHMOD!$CHMOD$ac_delim
16280AWK!$AWK$ac_delim
16281SED!$SED$ac_delim
16282PERL!$PERL$ac_delim
16283LDCONFIG!$LDCONFIG$ac_delim
16284AR!$AR$ac_delim
16285STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016286MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016287BUILD_CC!$BUILD_CC$ac_delim
16288SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16289SIZEOF_INT!$SIZEOF_INT$ac_delim
16290SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16291SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16292SOCKET_LIB!$SOCKET_LIB$ac_delim
16293DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16294UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16295LINUX_CMT!$LINUX_CMT$ac_delim
16296CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16297UNIX_CMT!$UNIX_CMT$ac_delim
16298root_prefix!$root_prefix$ac_delim
16299root_bindir!$root_bindir$ac_delim
16300root_sbindir!$root_sbindir$ac_delim
16301root_libdir!$root_libdir$ac_delim
16302root_sysconfdir!$root_sysconfdir$ac_delim
16303LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16304SS_DIR!$SS_DIR$ac_delim
16305ET_DIR!$ET_DIR$ac_delim
16306DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16307INTL_FLAGS!$INTL_FLAGS$ac_delim
16308BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16309BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16310LIBOBJS!$LIBOBJS$ac_delim
16311LTLIBOBJS!$LTLIBOBJS$ac_delim
16312_ACEOF
16313
Theodore Ts'odc9345a2008-06-07 10:08:48 -040016314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016315 break
16316 elif $ac_last_try; then
16317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16318echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16319 { (exit 1); exit 1; }; }
16320 else
16321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16322 fi
16323done
16324
16325ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16326if test -n "$ac_eof"; then
16327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16328 ac_eof=`expr $ac_eof + 1`
16329fi
16330
16331cat >>$CONFIG_STATUS <<_ACEOF
16332cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16333/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16334_ACEOF
16335sed '
16336s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16337s/^/s,@/; s/!/@,|#_!!_#|/
16338:n
16339t n
16340s/'"$ac_delim"'$/,g/; t
16341s/$/\\/; p
16342N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16343' >>$CONFIG_STATUS <conf$$subs.sed
16344rm -f conf$$subs.sed
16345cat >>$CONFIG_STATUS <<_ACEOF
16346:end
16347s/|#_!!_#|//g
16348CEOF$ac_eof
16349_ACEOF
16350
16351
16352# VPATH may cause trouble with some makes, so we remove $(srcdir),
16353# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16354# trailing colons and then remove the whole line if VPATH becomes empty
16355# (actually we leave an empty line to preserve line numbers).
16356if test "x$srcdir" = x.; then
16357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16358s/:*\$(srcdir):*/:/
16359s/:*\${srcdir}:*/:/
16360s/:*@srcdir@:*/:/
16361s/^\([^=]*=[ ]*\):*/\1/
16362s/:*$//
16363s/^[^=]*=[ ]*$//
16364}'
16365fi
16366
16367cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016368fi # test -n "$CONFIG_FILES"
16369
Theodore Ts'oe1052142006-10-21 21:46:47 -040016370
16371for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16372do
16373 case $ac_tag in
16374 :[FHLC]) ac_mode=$ac_tag; continue;;
16375 esac
16376 case $ac_mode$ac_tag in
16377 :[FHL]*:*);;
16378 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16379echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16380 { (exit 1); exit 1; }; };;
16381 :[FH]-) ac_tag=-:-;;
16382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16383 esac
16384 ac_save_IFS=$IFS
16385 IFS=:
16386 set x $ac_tag
16387 IFS=$ac_save_IFS
16388 shift
16389 ac_file=$1
16390 shift
16391
16392 case $ac_mode in
16393 :L) ac_source=$1;;
16394 :[FH])
16395 ac_file_inputs=
16396 for ac_f
16397 do
16398 case $ac_f in
16399 -) ac_f="$tmp/stdin";;
16400 *) # Look for the file first in the build tree, then in the source tree
16401 # (if the path is not absolute). The absolute path cannot be DOS-style,
16402 # because $ac_f cannot contain `:'.
16403 test -f "$ac_f" ||
16404 case $ac_f in
16405 [\\/$]*) false;;
16406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16407 esac ||
16408 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16409echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16410 { (exit 1); exit 1; }; };;
16411 esac
16412 ac_file_inputs="$ac_file_inputs $ac_f"
16413 done
16414
16415 # Let's still pretend it is `configure' which instantiates (i.e., don't
16416 # use $as_me), people would be surprised to read:
16417 # /* config.h. Generated by config.status. */
16418 configure_input="Generated from "`IFS=:
16419 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16420 if test x"$ac_file" != x-; then
16421 configure_input="$ac_file. $configure_input"
16422 { echo "$as_me:$LINENO: creating $ac_file" >&5
16423echo "$as_me: creating $ac_file" >&6;}
16424 fi
16425
16426 case $ac_tag in
16427 *:-:* | *:-) cat >"$tmp/stdin";;
16428 esac
16429 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016430 esac
16431
Theodore Ts'oe1052142006-10-21 21:46:47 -040016432 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016433$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16434 X"$ac_file" : 'X\(//\)[^/]' \| \
16435 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016437echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16439 s//\1/
16440 q
16441 }
16442 /^X\(\/\/\)[^/].*/{
16443 s//\1/
16444 q
16445 }
16446 /^X\(\/\/\)$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\(\/\).*/{
16451 s//\1/
16452 q
16453 }
16454 s/.*/./; q'`
16455 { as_dir="$ac_dir"
16456 case $as_dir in #(
16457 -*) as_dir=./$as_dir;;
16458 esac
16459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016460 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016461 while :; do
16462 case $as_dir in #(
16463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16464 *) as_qdir=$as_dir;;
16465 esac
16466 as_dirs="'$as_qdir' $as_dirs"
16467 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16469 X"$as_dir" : 'X\(//\)[^/]' \| \
16470 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016472echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16474 s//\1/
16475 q
16476 }
16477 /^X\(\/\/\)[^/].*/{
16478 s//\1/
16479 q
16480 }
16481 /^X\(\/\/\)$/{
16482 s//\1/
16483 q
16484 }
16485 /^X\(\/\).*/{
16486 s//\1/
16487 q
16488 }
16489 s/.*/./; q'`
16490 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016491 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016492 test -z "$as_dirs" || eval "mkdir $as_dirs"
16493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16494echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016495 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016496 ac_builddir=.
16497
Theodore Ts'oe1052142006-10-21 21:46:47 -040016498case "$ac_dir" in
16499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16500*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016502 # A ".." for each directory in $ac_dir_suffix.
16503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16504 case $ac_top_builddir_sub in
16505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16507 esac ;;
16508esac
16509ac_abs_top_builddir=$ac_pwd
16510ac_abs_builddir=$ac_pwd$ac_dir_suffix
16511# for backward compatibility:
16512ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016513
16514case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016515 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016516 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016517 ac_top_srcdir=$ac_top_builddir_sub
16518 ac_abs_top_srcdir=$ac_pwd ;;
16519 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016520 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016521 ac_top_srcdir=$srcdir
16522 ac_abs_top_srcdir=$srcdir ;;
16523 *) # Relative name.
16524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16525 ac_top_srcdir=$ac_top_build_prefix$srcdir
16526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016527esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016529
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016530
Theodore Ts'oe1052142006-10-21 21:46:47 -040016531 case $ac_mode in
16532 :F)
16533 #
16534 # CONFIG_FILE
16535 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016536
16537 case $INSTALL in
16538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016540 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016541_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016542
16543cat >>$CONFIG_STATUS <<\_ACEOF
16544# If the template does not know about datarootdir, expand it.
16545# FIXME: This hack should be removed a few years after 2.60.
16546ac_datarootdir_hack=; ac_datarootdir_seen=
16547
16548case `sed -n '/datarootdir/ {
16549 p
16550 q
16551}
16552/@datadir@/p
16553/@docdir@/p
16554/@infodir@/p
16555/@localedir@/p
16556/@mandir@/p
16557' $ac_file_inputs` in
16558*datarootdir*) ac_datarootdir_seen=yes;;
16559*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16560 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16561echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16562_ACEOF
16563cat >>$CONFIG_STATUS <<_ACEOF
16564 ac_datarootdir_hack='
16565 s&@datadir@&$datadir&g
16566 s&@docdir@&$docdir&g
16567 s&@infodir@&$infodir&g
16568 s&@localedir@&$localedir&g
16569 s&@mandir@&$mandir&g
16570 s&\\\${datarootdir}&$datarootdir&g' ;;
16571esac
16572_ACEOF
16573
16574# Neutralize VPATH when `$srcdir' = `.'.
16575# Shell code in configure.ac might set extrasub.
16576# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016577cat >>$CONFIG_STATUS <<_ACEOF
16578 sed "$ac_vpsub
16579$extrasub
16580_ACEOF
16581cat >>$CONFIG_STATUS <<\_ACEOF
16582:t
16583/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016584s&@configure_input@&$configure_input&;t t
16585s&@top_builddir@&$ac_top_builddir_sub&;t t
16586s&@srcdir@&$ac_srcdir&;t t
16587s&@abs_srcdir@&$ac_abs_srcdir&;t t
16588s&@top_srcdir@&$ac_top_srcdir&;t t
16589s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16590s&@builddir@&$ac_builddir&;t t
16591s&@abs_builddir@&$ac_abs_builddir&;t t
16592s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16593s&@INSTALL@&$ac_INSTALL&;t t
16594$ac_datarootdir_hack
16595" $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 -050016596
Theodore Ts'oe1052142006-10-21 21:46:47 -040016597test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16600 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16601which seems to be undefined. Please make sure it is defined." >&5
16602echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16603which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016604
Theodore Ts'oe1052142006-10-21 21:46:47 -040016605 rm -f "$tmp/stdin"
16606 case $ac_file in
16607 -) cat "$tmp/out"; rm -f "$tmp/out";;
16608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16609 esac
16610 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016611
16612
Theodore Ts'oe1052142006-10-21 21:46:47 -040016613 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16614echo "$as_me: executing $ac_file commands" >&6;}
16615 ;;
16616 esac
16617
16618
16619 case $ac_file$ac_mode in
16620 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016621 for ac_file in $CONFIG_FILES; do
16622 # Support "outfile[:infile[:infile...]]"
16623 case "$ac_file" in
16624 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016625 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016626 # PO directories have a Makefile.in generated from Makefile.in.in.
16627 case "$ac_file" in */Makefile.in)
16628 # Adjust a relative srcdir.
16629 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16630 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16631 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16632 # In autoconf-2.13 it is called $ac_given_srcdir.
16633 # In autoconf-2.50 it is called $srcdir.
16634 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16635 case "$ac_given_srcdir" in
16636 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16637 /*) top_srcdir="$ac_given_srcdir" ;;
16638 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16639 esac
16640 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16641 rm -f "$ac_dir/POTFILES"
16642 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16643 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 -050016644 POMAKEFILEDEPS="POTFILES.in"
16645 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016646 # on $ac_dir but don't depend on user-specified configuration
16647 # parameters.
16648 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16649 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016650 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016651 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16652 fi
16653 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16654 # Hide the ALL_LINGUAS assigment from automake.
16655 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016656 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16657 else
16658 # The set of available languages was given in configure.in.
16659 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016660 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016661 # Compute POFILES
16662 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16663 # Compute UPDATEPOFILES
16664 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16665 # Compute DUMMYPOFILES
16666 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16667 # Compute GMOFILES
16668 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016669 case "$ac_given_srcdir" in
16670 .) srcdirpre= ;;
16671 *) srcdirpre='$(srcdir)/' ;;
16672 esac
16673 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016674 UPDATEPOFILES=
16675 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016676 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016677 for lang in $ALL_LINGUAS; do
16678 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016679 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16680 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016681 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016682 done
16683 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16684 # environment variable.
16685 INST_LINGUAS=
16686 if test -n "$ALL_LINGUAS"; then
16687 for presentlang in $ALL_LINGUAS; do
16688 useit=no
16689 if test "%UNSET%" != "$LINGUAS"; then
16690 desiredlanguages="$LINGUAS"
16691 else
16692 desiredlanguages="$ALL_LINGUAS"
16693 fi
16694 for desiredlang in $desiredlanguages; do
16695 # Use the presentlang catalog if desiredlang is
16696 # a. equal to presentlang, or
16697 # b. a variant of presentlang (because in this case,
16698 # presentlang can be used as a fallback for messages
16699 # which are not translated in the desiredlang catalog).
16700 case "$desiredlang" in
16701 "$presentlang"*) useit=yes;;
16702 esac
16703 done
16704 if test $useit = yes; then
16705 INST_LINGUAS="$INST_LINGUAS $presentlang"
16706 fi
16707 done
16708 fi
16709 CATALOGS=
16710 if test -n "$INST_LINGUAS"; then
16711 for lang in $INST_LINGUAS; do
16712 CATALOGS="$CATALOGS $lang.gmo"
16713 done
16714 fi
16715 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016716 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 -040016717 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16718 if test -f "$f"; then
16719 case "$f" in
16720 *.orig | *.bak | *~) ;;
16721 *) cat "$f" >> "$ac_dir/Makefile" ;;
16722 esac
16723 fi
16724 done
16725 fi
16726 ;;
16727 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016728 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016729
Theodore Ts'oe1052142006-10-21 21:46:47 -040016730 esac
16731done # for ac_tag
16732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016733
16734{ (exit 0); exit 0; }
16735_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016736chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016737ac_clean_files=$ac_clean_files_save
16738
16739
16740# configure is writing to config.log, and then calls config.status.
16741# config.status does its own redirection, appending to config.log.
16742# Unfortunately, on DOS this fails, as config.log is still kept open
16743# by configure, so config.status won't be able to write to it; its
16744# output is simply discarded. So we exec the FD to /dev/null,
16745# effectively closing config.log, so it can be properly (re)opened and
16746# appended to by config.status. When coming back to configure, we
16747# need to make the FD available again.
16748if test "$no_create" != yes; then
16749 ac_cs_success=:
16750 ac_config_status_args=
16751 test "$silent" = yes &&
16752 ac_config_status_args="$ac_config_status_args --quiet"
16753 exec 5>/dev/null
16754 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16755 exec 5>>config.log
16756 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16757 # would make configure fail if this is the last instruction.
16758 $ac_cs_success || { (exit 1); exit 1; }
16759fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016760
Theodore Ts'oee683a12005-02-05 15:53:56 -050016761if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16762