blob: 74ec761806ea404706f19561be32687addea7c62 [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
11886for 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/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 -050011887do
11888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011895ac_res=`eval echo '${'$as_ac_Header'}'`
11896 { echo "$as_me:$LINENO: result: $ac_res" >&5
11897echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011898else
11899 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902cat >conftest.$ac_ext <<_ACEOF
11903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
11908$ac_includes_default
11909#include <$ac_header>
11910_ACEOF
11911rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011912if { (ac_try="$ac_compile"
11913case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928 ac_header_compiler=yes
11929else
11930 echo "$as_me: failed program was:" >&5
11931sed 's/^/| /' conftest.$ac_ext >&5
11932
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011934fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011935
11936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011939
11940# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011941{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943cat >conftest.$ac_ext <<_ACEOF
11944/* confdefs.h. */
11945_ACEOF
11946cat confdefs.h >>conftest.$ac_ext
11947cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h. */
11949#include <$ac_header>
11950_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011951if { (ac_try="$ac_cpp conftest.$ac_ext"
11952case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011963 (exit $ac_status); } >/dev/null && {
11964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011967 ac_header_preproc=yes
11968else
11969 echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 ac_header_preproc=no
11973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011975rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011976{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011978
11979# So? What about this header?
11980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 yes:no: )
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11983echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11985echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc=yes
11987 ;;
11988 no:yes:* )
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11990echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11992echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11994echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11996echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12000echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012001
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012002 ;;
12003esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012004{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008else
12009 eval "$as_ac_Header=\$ac_header_preproc"
12010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012011ac_res=`eval echo '${'$as_ac_Header'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012014
12015fi
12016if test `eval echo '${'$as_ac_Header'}'` = yes; then
12017 cat >>confdefs.h <<_ACEOF
12018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12019_ACEOF
12020
12021fi
12022
12023done
12024
12025
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012026
12027for ac_header in sys/disk.h sys/mount.h
12028do
12029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 cat >conftest.$ac_ext <<_ACEOF
12036/* confdefs.h. */
12037_ACEOF
12038cat confdefs.h >>conftest.$ac_ext
12039cat >>conftest.$ac_ext <<_ACEOF
12040/* end confdefs.h. */
12041
12042#if HAVE_SYS_QUEUE_H
12043#include <sys/queue.h>
12044#endif
12045
12046
12047#include <$ac_header>
12048_ACEOF
12049rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012050if { (ac_try="$ac_compile"
12051case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012066 eval "$as_ac_Header=yes"
12067else
12068 echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
Theodore Ts'oe1052142006-10-21 21:46:47 -040012071 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012072fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012073
12074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012075fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076ac_res=`eval echo '${'$as_ac_Header'}'`
12077 { echo "$as_me:$LINENO: result: $ac_res" >&5
12078echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012079if test `eval echo '${'$as_ac_Header'}'` = yes; then
12080 cat >>confdefs.h <<_ACEOF
12081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12082_ACEOF
12083
12084fi
12085
12086done
12087
12088
12089for ac_header in net/if.h
12090do
12091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012095 echo $ECHO_N "(cached) $ECHO_C" >&6
12096else
12097 cat >conftest.$ac_ext <<_ACEOF
12098/* confdefs.h. */
12099_ACEOF
12100cat confdefs.h >>conftest.$ac_ext
12101cat >>conftest.$ac_ext <<_ACEOF
12102/* end confdefs.h. */
12103
12104#if HAVE_SYS_TYPES_H
12105#include <sys/types.h>
12106#endif
12107#if HAVE_SYS_SOCKET
12108#include <sys/socket.h>
12109#endif
12110
12111
12112#include <$ac_header>
12113_ACEOF
12114rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012115if { (ac_try="$ac_compile"
12116case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119esac
12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012131 eval "$as_ac_Header=yes"
12132else
12133 echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
Theodore Ts'oe1052142006-10-21 21:46:47 -040012136 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012137fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012138
12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012140fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012141ac_res=`eval echo '${'$as_ac_Header'}'`
12142 { echo "$as_me:$LINENO: result: $ac_res" >&5
12143echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012144if test `eval echo '${'$as_ac_Header'}'` = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147_ACEOF
12148
12149fi
12150
12151done
12152
12153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154for ac_func in vprintf
12155do
12156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012157{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12159if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12170#define $ac_func innocuous_$ac_func
12171
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012172/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012173 which can conflict with char $ac_func (); below.
12174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12175 <limits.h> exists even on freestanding compilers. */
12176
12177#ifdef __STDC__
12178# include <limits.h>
12179#else
12180# include <assert.h>
12181#endif
12182
12183#undef $ac_func
12184
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185/* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188#ifdef __cplusplus
12189extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012192/* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012196choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012197#endif
12198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199int
12200main ()
12201{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012202return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203 ;
12204 return 0;
12205}
12206_ACEOF
12207rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012208if { (ac_try="$ac_link"
12209case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest$ac_exeext &&
12224 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012226else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012227 echo "$as_me: failed program was:" >&5
12228sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012229
Theodore Ts'oe1052142006-10-21 21:46:47 -040012230 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012231fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012232
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234 conftest$ac_exeext conftest.$ac_ext
12235fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012236ac_res=`eval echo '${'$as_ac_var'}'`
12237 { echo "$as_me:$LINENO: result: $ac_res" >&5
12238echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012239if test `eval echo '${'$as_ac_var'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012243
Theodore Ts'oe1052142006-10-21 21:46:47 -040012244{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12245echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012246if test "${ac_cv_func__doprnt+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012248else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249 cat >conftest.$ac_ext <<_ACEOF
12250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
12255/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12257#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012258
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012259/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260 which can conflict with char _doprnt (); below.
12261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262 <limits.h> exists even on freestanding compilers. */
12263
12264#ifdef __STDC__
12265# include <limits.h>
12266#else
12267# include <assert.h>
12268#endif
12269
12270#undef _doprnt
12271
Theodore Ts'oe1052142006-10-21 21:46:47 -040012272/* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275#ifdef __cplusplus
12276extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012277#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012279/* The GNU C library defines this for functions which it implements
12280 to always fail with ENOSYS. Some functions are actually named
12281 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012282#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012283choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012284#endif
12285
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286int
12287main ()
12288{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012289return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290 ;
12291 return 0;
12292}
12293_ACEOF
12294rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012295if { (ac_try="$ac_link"
12296case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299esac
12300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest$ac_exeext &&
12311 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012312 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012313else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012314 echo "$as_me: failed program was:" >&5
12315sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012316
Theodore Ts'oe1052142006-10-21 21:46:47 -040012317 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012318fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012319
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012321 conftest$ac_exeext conftest.$ac_ext
12322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012323{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12324echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325if test $ac_cv_func__doprnt = yes; then
12326
12327cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012328#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012329_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012330
12331fi
12332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012333fi
12334done
12335
12336
Theodore Ts'oe1052142006-10-21 21:46:47 -040012337{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12338echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012339if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012340 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012342 cat >conftest.$ac_ext <<_ACEOF
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012348#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012350int
12351main ()
12352{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012353static struct dirent ac_aggr;
12354if (ac_aggr.d_reclen)
12355return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012356 ;
12357 return 0;
12358}
12359_ACEOF
12360rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012361if { (ac_try="$ac_compile"
12362case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12365esac
12366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012368 ac_status=$?
12369 grep -v '^ *+' conftest.er1 >conftest.err
12370 rm -f conftest.er1
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012377 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012378else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012379 echo "$as_me: failed program was:" >&5
12380sed 's/^/| /' conftest.$ac_ext >&5
12381
Theodore Ts'oe1052142006-10-21 21:46:47 -040012382 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
12388#include <dirent.h>
12389
12390int
12391main ()
12392{
12393static struct dirent ac_aggr;
12394if (sizeof ac_aggr.d_reclen)
12395return 0;
12396 ;
12397 return 0;
12398}
12399_ACEOF
12400rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012401if { (ac_try="$ac_compile"
12402case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405esac
12406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012417 ac_cv_member_struct_dirent_d_reclen=yes
12418else
12419 echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012424
12425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012427
12428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012430{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12431echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012432if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12433 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012434#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012435_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012436
12437fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012438
Theodore Ts'oe1052142006-10-21 21:46:47 -040012439{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12440echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012441if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012442 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012443else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012444 cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012450#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012451
Theodore Ts'oe1052142006-10-21 21:46:47 -040012452typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453int
12454main ()
12455{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012456if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012457 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012458if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012459 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012465if { (ac_try="$ac_compile"
12466case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469esac
12470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012477 (exit $ac_status); } && {
12478 test -z "$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12480 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012481 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012482else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012483 echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
Theodore Ts'oe1052142006-10-21 21:46:47 -040012486 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012488
12489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012491{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12492echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012493if test $ac_cv_type_ssize_t = yes; then
12494 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012495#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012496_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012497
12498fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012499
Theodore Ts'oe1052142006-10-21 21:46:47 -040012500{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12501echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012502if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012503 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012504else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505 cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012511#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513int
12514main ()
12515{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012516#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012517 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012518#endif
12519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520 ;
12521 return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012525if { (ac_try="$ac_compile"
12526case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529esac
12530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012537 (exit $ac_status); } && {
12538 test -z "$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12540 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012541 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012543 echo "$as_me: failed program was:" >&5
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
Theodore Ts'oe1052142006-10-21 21:46:47 -040012546 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012548
12549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012550fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012551{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12552echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012553if test $ac_cv_have_decl_llseek = yes; then
12554 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012555#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012556_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012557
12558fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012559
Theodore Ts'oe1052142006-10-21 21:46:47 -040012560{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12561echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012562if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012563 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012564else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012565 cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012571#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012572 #define _LARGEFILE64_SOURCE
12573 #include <unistd.h>
12574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575int
12576main ()
12577{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012578#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012579 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012580#endif
12581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012582 ;
12583 return 0;
12584}
12585_ACEOF
12586rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012587if { (ac_try="$ac_compile"
12588case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012603 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012604else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
12607
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012610
12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012613{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12614echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012615if test $ac_cv_have_decl_lseek64 = yes; then
12616 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012617#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012619
12620fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012621
Theodore Ts'oe1052142006-10-21 21:46:47 -040012622{ echo "$as_me:$LINENO: checking for short" >&5
12623echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012624if test "${ac_cv_type_short+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626else
12627 cat >conftest.$ac_ext <<_ACEOF
12628/* confdefs.h. */
12629_ACEOF
12630cat confdefs.h >>conftest.$ac_ext
12631cat >>conftest.$ac_ext <<_ACEOF
12632/* end confdefs.h. */
12633$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012634typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635int
12636main ()
12637{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012638if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012639 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012640if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012641 return 0;
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012647if { (ac_try="$ac_compile"
12648case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651esac
12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663 ac_cv_type_short=yes
12664else
12665 echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
Theodore Ts'oe1052142006-10-21 21:46:47 -040012668 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012669fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012670
Theodore Ts'oe1052142006-10-21 21:46:47 -040012671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672fi
12673{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12674echo "${ECHO_T}$ac_cv_type_short" >&6; }
12675
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012676# The cast to long int works around a bug in the HP C Compiler
12677# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12679# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012680{ echo "$as_me:$LINENO: checking size of short" >&5
12681echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012682if test "${ac_cv_sizeof_short+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012685 if test "$cross_compiling" = yes; then
12686 # Depending upon the size, compute the lo and hi bounds.
12687cat >conftest.$ac_ext <<_ACEOF
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
12693$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012694 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012695int
12696main ()
12697{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012698static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012699test_array [0] = 0
12700
12701 ;
12702 return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012706if { (ac_try="$ac_compile"
12707case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710esac
12711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012722 ac_lo=0 ac_mid=0
12723 while :; do
12724 cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h. */
12730$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012731 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012732int
12733main ()
12734{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012735static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736test_array [0] = 0
12737
12738 ;
12739 return 0;
12740}
12741_ACEOF
12742rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012743if { (ac_try="$ac_compile"
12744case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12747esac
12748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012755 (exit $ac_status); } && {
12756 test -z "$ac_c_werror_flag" ||
12757 test ! -s conftest.err
12758 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012759 ac_hi=$ac_mid; break
12760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
Theodore Ts'oe1052142006-10-21 21:46:47 -040012764 ac_lo=`expr $ac_mid + 1`
12765 if test $ac_lo -le $ac_mid; then
12766 ac_lo= ac_hi=
12767 break
12768 fi
12769 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012771
12772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012773 done
12774else
12775 echo "$as_me: failed program was:" >&5
12776sed 's/^/| /' conftest.$ac_ext >&5
12777
Theodore Ts'oe1052142006-10-21 21:46:47 -040012778 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779/* confdefs.h. */
12780_ACEOF
12781cat confdefs.h >>conftest.$ac_ext
12782cat >>conftest.$ac_ext <<_ACEOF
12783/* end confdefs.h. */
12784$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012785 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012786int
12787main ()
12788{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012789static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012790test_array [0] = 0
12791
12792 ;
12793 return 0;
12794}
12795_ACEOF
12796rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012797if { (ac_try="$ac_compile"
12798case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801esac
12802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012809 (exit $ac_status); } && {
12810 test -z "$ac_c_werror_flag" ||
12811 test ! -s conftest.err
12812 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012813 ac_hi=-1 ac_mid=-1
12814 while :; do
12815 cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012822 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012823int
12824main ()
12825{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012826static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012827test_array [0] = 0
12828
12829 ;
12830 return 0;
12831}
12832_ACEOF
12833rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012834if { (ac_try="$ac_compile"
12835case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838esac
12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850 ac_lo=$ac_mid; break
12851else
12852 echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
Theodore Ts'oe1052142006-10-21 21:46:47 -040012855 ac_hi=`expr '(' $ac_mid ')' - 1`
12856 if test $ac_mid -le $ac_hi; then
12857 ac_lo= ac_hi=
12858 break
12859 fi
12860 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012862
12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012864 done
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
Theodore Ts'oe1052142006-10-21 21:46:47 -040012869 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012870fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012871
12872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012874
12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012876# Binary search between lo and hi bounds.
12877while test "x$ac_lo" != "x$ac_hi"; do
12878 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12879 cat >conftest.$ac_ext <<_ACEOF
12880/* confdefs.h. */
12881_ACEOF
12882cat confdefs.h >>conftest.$ac_ext
12883cat >>conftest.$ac_ext <<_ACEOF
12884/* end confdefs.h. */
12885$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012886 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887int
12888main ()
12889{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012890static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012891test_array [0] = 0
12892
12893 ;
12894 return 0;
12895}
12896_ACEOF
12897rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012898if { (ac_try="$ac_compile"
12899case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914 ac_hi=$ac_mid
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
Theodore Ts'oe1052142006-10-21 21:46:47 -040012919 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012921
12922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012923done
12924case $ac_lo in
12925?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012926'') if test "$ac_cv_type_short" = yes; then
12927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012928See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012929echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012930See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012931 { (exit 77); exit 77; }; }
12932 else
12933 ac_cv_sizeof_short=0
12934 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012935esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012936else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937 cat >conftest.$ac_ext <<_ACEOF
12938/* confdefs.h. */
12939_ACEOF
12940cat confdefs.h >>conftest.$ac_ext
12941cat >>conftest.$ac_ext <<_ACEOF
12942/* end confdefs.h. */
12943$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012944 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012945static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12946static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012947#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012948#include <stdlib.h>
12949int
12950main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012951{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012952
12953 FILE *f = fopen ("conftest.val", "w");
12954 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012955 return 1;
12956 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012957 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012958 long int i = longval ();
12959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12960 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012961 fprintf (f, "%ld\n", i);
12962 }
12963 else
12964 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012965 unsigned long int i = ulongval ();
12966 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12967 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012968 fprintf (f, "%lu\n", i);
12969 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012970 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971
12972 ;
12973 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012974}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975_ACEOF
12976rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012977if { (ac_try="$ac_link"
12978case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981esac
12982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012998 echo "$as_me: program exited with status $ac_status" >&5
12999echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013003if test "$ac_cv_type_short" = yes; then
13004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013005See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013006echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013007See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013008 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013009 else
13010 ac_cv_sizeof_short=0
13011 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013013rm -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 -050013014fi
13015rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013016fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013017{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13018echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013019
13020
13021
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013022cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013023#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013024_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013025
13026
Theodore Ts'oe1052142006-10-21 21:46:47 -040013027{ echo "$as_me:$LINENO: checking for int" >&5
13028echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013029if test "${ac_cv_type_int+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031else
13032 cat >conftest.$ac_ext <<_ACEOF
13033/* confdefs.h. */
13034_ACEOF
13035cat confdefs.h >>conftest.$ac_ext
13036cat >>conftest.$ac_ext <<_ACEOF
13037/* end confdefs.h. */
13038$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013039typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040int
13041main ()
13042{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013043if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013044 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013045if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013046 return 0;
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013052if { (ac_try="$ac_compile"
13053case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056esac
13057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013064 (exit $ac_status); } && {
13065 test -z "$ac_c_werror_flag" ||
13066 test ! -s conftest.err
13067 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013068 ac_cv_type_int=yes
13069else
13070 echo "$as_me: failed program was:" >&5
13071sed 's/^/| /' conftest.$ac_ext >&5
13072
Theodore Ts'oe1052142006-10-21 21:46:47 -040013073 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013074fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013075
Theodore Ts'oe1052142006-10-21 21:46:47 -040013076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077fi
13078{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13079echo "${ECHO_T}$ac_cv_type_int" >&6; }
13080
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013081# The cast to long int works around a bug in the HP C Compiler
13082# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13083# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13084# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013085{ echo "$as_me:$LINENO: checking size of int" >&5
13086echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013087if test "${ac_cv_sizeof_int+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090 if test "$cross_compiling" = yes; then
13091 # Depending upon the size, compute the lo and hi bounds.
13092cat >conftest.$ac_ext <<_ACEOF
13093/* confdefs.h. */
13094_ACEOF
13095cat confdefs.h >>conftest.$ac_ext
13096cat >>conftest.$ac_ext <<_ACEOF
13097/* end confdefs.h. */
13098$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013099 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013100int
13101main ()
13102{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013103static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013104test_array [0] = 0
13105
13106 ;
13107 return 0;
13108}
13109_ACEOF
13110rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013111if { (ac_try="$ac_compile"
13112case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013127 ac_lo=0 ac_mid=0
13128 while :; do
13129 cat >conftest.$ac_ext <<_ACEOF
13130/* confdefs.h. */
13131_ACEOF
13132cat confdefs.h >>conftest.$ac_ext
13133cat >>conftest.$ac_ext <<_ACEOF
13134/* end confdefs.h. */
13135$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013136 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013137int
13138main ()
13139{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013140static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013141test_array [0] = 0
13142
13143 ;
13144 return 0;
13145}
13146_ACEOF
13147rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013148if { (ac_try="$ac_compile"
13149case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152esac
13153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013160 (exit $ac_status); } && {
13161 test -z "$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013164 ac_hi=$ac_mid; break
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
Theodore Ts'oe1052142006-10-21 21:46:47 -040013169 ac_lo=`expr $ac_mid + 1`
13170 if test $ac_lo -le $ac_mid; then
13171 ac_lo= ac_hi=
13172 break
13173 fi
13174 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013176
13177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013178 done
13179else
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
Theodore Ts'oe1052142006-10-21 21:46:47 -040013183 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013190 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013191int
13192main ()
13193{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013194static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013195test_array [0] = 0
13196
13197 ;
13198 return 0;
13199}
13200_ACEOF
13201rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013202if { (ac_try="$ac_compile"
13203case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13206esac
13207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013209 ac_status=$?
13210 grep -v '^ *+' conftest.er1 >conftest.err
13211 rm -f conftest.er1
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013214 (exit $ac_status); } && {
13215 test -z "$ac_c_werror_flag" ||
13216 test ! -s conftest.err
13217 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013218 ac_hi=-1 ac_mid=-1
13219 while :; do
13220 cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013227 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013228int
13229main ()
13230{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013231static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013232test_array [0] = 0
13233
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013239if { (ac_try="$ac_compile"
13240case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243esac
13244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255 ac_lo=$ac_mid; break
13256else
13257 echo "$as_me: failed program was:" >&5
13258sed 's/^/| /' conftest.$ac_ext >&5
13259
Theodore Ts'oe1052142006-10-21 21:46:47 -040013260 ac_hi=`expr '(' $ac_mid ')' - 1`
13261 if test $ac_mid -le $ac_hi; then
13262 ac_lo= ac_hi=
13263 break
13264 fi
13265 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013266fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013267
13268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013269 done
13270else
13271 echo "$as_me: failed program was:" >&5
13272sed 's/^/| /' conftest.$ac_ext >&5
13273
Theodore Ts'oe1052142006-10-21 21:46:47 -040013274 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013276
13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013278fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013279
13280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013281# Binary search between lo and hi bounds.
13282while test "x$ac_lo" != "x$ac_hi"; do
13283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13284 cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
13290$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013291 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013292int
13293main ()
13294{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013295static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013296test_array [0] = 0
13297
13298 ;
13299 return 0;
13300}
13301_ACEOF
13302rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013303if { (ac_try="$ac_compile"
13304case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307esac
13308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013315 (exit $ac_status); } && {
13316 test -z "$ac_c_werror_flag" ||
13317 test ! -s conftest.err
13318 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013319 ac_hi=$ac_mid
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
Theodore Ts'oe1052142006-10-21 21:46:47 -040013324 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013325fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013326
13327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013328done
13329case $ac_lo in
13330?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013331'') if test "$ac_cv_type_int" = yes; then
13332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013333See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013334echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013335See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013336 { (exit 77); exit 77; }; }
13337 else
13338 ac_cv_sizeof_int=0
13339 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013340esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013342 cat >conftest.$ac_ext <<_ACEOF
13343/* confdefs.h. */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h. */
13348$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013349 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013350static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13351static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013352#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013353#include <stdlib.h>
13354int
13355main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013356{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013357
13358 FILE *f = fopen ("conftest.val", "w");
13359 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013360 return 1;
13361 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013362 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013363 long int i = longval ();
13364 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13365 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013366 fprintf (f, "%ld\n", i);
13367 }
13368 else
13369 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013370 unsigned long int i = ulongval ();
13371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13372 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013373 fprintf (f, "%lu\n", i);
13374 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013375 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013376
13377 ;
13378 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013379}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013380_ACEOF
13381rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013382if { (ac_try="$ac_link"
13383case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13386esac
13387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13395esac
13396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013402else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013403 echo "$as_me: program exited with status $ac_status" >&5
13404echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013408if test "$ac_cv_type_int" = yes; then
13409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013410See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013411echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013412See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013413 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013414 else
13415 ac_cv_sizeof_int=0
13416 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013418rm -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 -050013419fi
13420rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013422{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13423echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013424
13425
13426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013427cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013428#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013429_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013430
13431
Theodore Ts'oe1052142006-10-21 21:46:47 -040013432{ echo "$as_me:$LINENO: checking for long" >&5
13433echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013434if test "${ac_cv_type_long+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13436else
13437 cat >conftest.$ac_ext <<_ACEOF
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
13443$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013444typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013445int
13446main ()
13447{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013448if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013449 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013450if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013451 return 0;
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013457if { (ac_try="$ac_compile"
13458case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461esac
13462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013473 ac_cv_type_long=yes
13474else
13475 echo "$as_me: failed program was:" >&5
13476sed 's/^/| /' conftest.$ac_ext >&5
13477
Theodore Ts'oe1052142006-10-21 21:46:47 -040013478 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013479fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013480
Theodore Ts'oe1052142006-10-21 21:46:47 -040013481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482fi
13483{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13484echo "${ECHO_T}$ac_cv_type_long" >&6; }
13485
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013486# The cast to long int works around a bug in the HP C Compiler
13487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13489# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013490{ echo "$as_me:$LINENO: checking size of long" >&5
13491echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013492if test "${ac_cv_sizeof_long+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013495 if test "$cross_compiling" = yes; then
13496 # Depending upon the size, compute the lo and hi bounds.
13497cat >conftest.$ac_ext <<_ACEOF
13498/* confdefs.h. */
13499_ACEOF
13500cat confdefs.h >>conftest.$ac_ext
13501cat >>conftest.$ac_ext <<_ACEOF
13502/* end confdefs.h. */
13503$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013504 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013505int
13506main ()
13507{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013508static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013509test_array [0] = 0
13510
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013516if { (ac_try="$ac_compile"
13517case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013532 ac_lo=0 ac_mid=0
13533 while :; do
13534 cat >conftest.$ac_ext <<_ACEOF
13535/* confdefs.h. */
13536_ACEOF
13537cat confdefs.h >>conftest.$ac_ext
13538cat >>conftest.$ac_ext <<_ACEOF
13539/* end confdefs.h. */
13540$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013541 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013542int
13543main ()
13544{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013545static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013546test_array [0] = 0
13547
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013553if { (ac_try="$ac_compile"
13554case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557esac
13558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013569 ac_hi=$ac_mid; break
13570else
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
Theodore Ts'oe1052142006-10-21 21:46:47 -040013574 ac_lo=`expr $ac_mid + 1`
13575 if test $ac_lo -le $ac_mid; then
13576 ac_lo= ac_hi=
13577 break
13578 fi
13579 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013581
13582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013583 done
13584else
13585 echo "$as_me: failed program was:" >&5
13586sed 's/^/| /' conftest.$ac_ext >&5
13587
Theodore Ts'oe1052142006-10-21 21:46:47 -040013588 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013589/* confdefs.h. */
13590_ACEOF
13591cat confdefs.h >>conftest.$ac_ext
13592cat >>conftest.$ac_ext <<_ACEOF
13593/* end confdefs.h. */
13594$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013595 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013596int
13597main ()
13598{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013599static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600test_array [0] = 0
13601
13602 ;
13603 return 0;
13604}
13605_ACEOF
13606rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013607if { (ac_try="$ac_compile"
13608case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611esac
13612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013619 (exit $ac_status); } && {
13620 test -z "$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013623 ac_hi=-1 ac_mid=-1
13624 while :; do
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013632 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013633int
13634main ()
13635{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013636static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013637test_array [0] = 0
13638
13639 ;
13640 return 0;
13641}
13642_ACEOF
13643rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013644if { (ac_try="$ac_compile"
13645case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013656 (exit $ac_status); } && {
13657 test -z "$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660 ac_lo=$ac_mid; break
13661else
13662 echo "$as_me: failed program was:" >&5
13663sed 's/^/| /' conftest.$ac_ext >&5
13664
Theodore Ts'oe1052142006-10-21 21:46:47 -040013665 ac_hi=`expr '(' $ac_mid ')' - 1`
13666 if test $ac_mid -le $ac_hi; then
13667 ac_lo= ac_hi=
13668 break
13669 fi
13670 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013671fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013672
13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013674 done
13675else
13676 echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
Theodore Ts'oe1052142006-10-21 21:46:47 -040013679 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013680fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013681
13682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013684
13685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013686# Binary search between lo and hi bounds.
13687while test "x$ac_lo" != "x$ac_hi"; do
13688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13689 cat >conftest.$ac_ext <<_ACEOF
13690/* confdefs.h. */
13691_ACEOF
13692cat confdefs.h >>conftest.$ac_ext
13693cat >>conftest.$ac_ext <<_ACEOF
13694/* end confdefs.h. */
13695$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013696 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013697int
13698main ()
13699{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013700static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013701test_array [0] = 0
13702
13703 ;
13704 return 0;
13705}
13706_ACEOF
13707rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013708if { (ac_try="$ac_compile"
13709case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013715 ac_status=$?
13716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013720 (exit $ac_status); } && {
13721 test -z "$ac_c_werror_flag" ||
13722 test ! -s conftest.err
13723 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724 ac_hi=$ac_mid
13725else
13726 echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
Theodore Ts'oe1052142006-10-21 21:46:47 -040013729 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013731
13732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013733done
13734case $ac_lo in
13735?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013736'') if test "$ac_cv_type_long" = yes; then
13737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013738See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013739echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013741 { (exit 77); exit 77; }; }
13742 else
13743 ac_cv_sizeof_long=0
13744 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013745esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013746else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013747 cat >conftest.$ac_ext <<_ACEOF
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
13753$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013754 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013755static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13756static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013757#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013758#include <stdlib.h>
13759int
13760main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013761{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762
13763 FILE *f = fopen ("conftest.val", "w");
13764 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013765 return 1;
13766 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013767 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013768 long int i = longval ();
13769 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13770 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013771 fprintf (f, "%ld\n", i);
13772 }
13773 else
13774 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013775 unsigned long int i = ulongval ();
13776 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13777 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013778 fprintf (f, "%lu\n", i);
13779 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013780 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013781
13782 ;
13783 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013784}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013785_ACEOF
13786rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013787if { (ac_try="$ac_link"
13788case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791esac
13792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800esac
13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013807else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013808 echo "$as_me: program exited with status $ac_status" >&5
13809echo "$as_me: failed program was:" >&5
13810sed 's/^/| /' conftest.$ac_ext >&5
13811
13812( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013813if test "$ac_cv_type_long" = yes; then
13814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013815See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013816echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013817See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013818 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013819 else
13820 ac_cv_sizeof_long=0
13821 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013823rm -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 -050013824fi
13825rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013827{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13828echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013829
13830
13831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013832cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013833#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013834_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013835
13836
Theodore Ts'oe1052142006-10-21 21:46:47 -040013837{ echo "$as_me:$LINENO: checking for long long" >&5
13838echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013839if test "${ac_cv_type_long_long+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841else
13842 cat >conftest.$ac_ext <<_ACEOF
13843/* confdefs.h. */
13844_ACEOF
13845cat confdefs.h >>conftest.$ac_ext
13846cat >>conftest.$ac_ext <<_ACEOF
13847/* end confdefs.h. */
13848$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013849typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850int
13851main ()
13852{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013853if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013854 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013855if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013856 return 0;
13857 ;
13858 return 0;
13859}
13860_ACEOF
13861rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013862if { (ac_try="$ac_compile"
13863case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013878 ac_cv_type_long_long=yes
13879else
13880 echo "$as_me: failed program was:" >&5
13881sed 's/^/| /' conftest.$ac_ext >&5
13882
Theodore Ts'oe1052142006-10-21 21:46:47 -040013883 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013884fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013885
Theodore Ts'oe1052142006-10-21 21:46:47 -040013886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887fi
13888{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13889echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13890
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013891# The cast to long int works around a bug in the HP C Compiler
13892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13894# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013895{ echo "$as_me:$LINENO: checking size of long long" >&5
13896echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013897if test "${ac_cv_sizeof_long_long+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013900 if test "$cross_compiling" = yes; then
13901 # Depending upon the size, compute the lo and hi bounds.
13902cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h. */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h. */
13908$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013909 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013910int
13911main ()
13912{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013913static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013914test_array [0] = 0
13915
13916 ;
13917 return 0;
13918}
13919_ACEOF
13920rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013921if { (ac_try="$ac_compile"
13922case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13925esac
13926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013937 ac_lo=0 ac_mid=0
13938 while :; do
13939 cat >conftest.$ac_ext <<_ACEOF
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
13945$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013946 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013947int
13948main ()
13949{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013950static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951test_array [0] = 0
13952
13953 ;
13954 return 0;
13955}
13956_ACEOF
13957rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013958if { (ac_try="$ac_compile"
13959case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013974 ac_hi=$ac_mid; break
13975else
13976 echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
Theodore Ts'oe1052142006-10-21 21:46:47 -040013979 ac_lo=`expr $ac_mid + 1`
13980 if test $ac_lo -le $ac_mid; then
13981 ac_lo= ac_hi=
13982 break
13983 fi
13984 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013986
13987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013988 done
13989else
13990 echo "$as_me: failed program was:" >&5
13991sed 's/^/| /' conftest.$ac_ext >&5
13992
Theodore Ts'oe1052142006-10-21 21:46:47 -040013993 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
13999$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014000 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001int
14002main ()
14003{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014004static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014005test_array [0] = 0
14006
14007 ;
14008 return 0;
14009}
14010_ACEOF
14011rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014012if { (ac_try="$ac_compile"
14013case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016esac
14017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028 ac_hi=-1 ac_mid=-1
14029 while :; do
14030 cat >conftest.$ac_ext <<_ACEOF
14031/* confdefs.h. */
14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
14036$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014037 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014038int
14039main ()
14040{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014041static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014042test_array [0] = 0
14043
14044 ;
14045 return 0;
14046}
14047_ACEOF
14048rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014049if { (ac_try="$ac_compile"
14050case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14053esac
14054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014056 ac_status=$?
14057 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014061 (exit $ac_status); } && {
14062 test -z "$ac_c_werror_flag" ||
14063 test ! -s conftest.err
14064 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014065 ac_lo=$ac_mid; break
14066else
14067 echo "$as_me: failed program was:" >&5
14068sed 's/^/| /' conftest.$ac_ext >&5
14069
Theodore Ts'oe1052142006-10-21 21:46:47 -040014070 ac_hi=`expr '(' $ac_mid ')' - 1`
14071 if test $ac_mid -le $ac_hi; then
14072 ac_lo= ac_hi=
14073 break
14074 fi
14075 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014077
14078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014079 done
14080else
14081 echo "$as_me: failed program was:" >&5
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
Theodore Ts'oe1052142006-10-21 21:46:47 -040014084 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014086
14087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014089
14090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014091# Binary search between lo and hi bounds.
14092while test "x$ac_lo" != "x$ac_hi"; do
14093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14094 cat >conftest.$ac_ext <<_ACEOF
14095/* confdefs.h. */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h. */
14100$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014101 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014102int
14103main ()
14104{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014105static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014106test_array [0] = 0
14107
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014113if { (ac_try="$ac_compile"
14114case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117esac
14118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014129 ac_hi=$ac_mid
14130else
14131 echo "$as_me: failed program was:" >&5
14132sed 's/^/| /' conftest.$ac_ext >&5
14133
Theodore Ts'oe1052142006-10-21 21:46:47 -040014134 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014136
14137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138done
14139case $ac_lo in
14140?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014141'') if test "$ac_cv_type_long_long" = yes; then
14142 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014143See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014144echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014145See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014146 { (exit 77); exit 77; }; }
14147 else
14148 ac_cv_sizeof_long_long=0
14149 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014150esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014151else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014152 cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014159 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014160static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14161static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014162#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014163#include <stdlib.h>
14164int
14165main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014166{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014167
14168 FILE *f = fopen ("conftest.val", "w");
14169 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014170 return 1;
14171 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014172 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014173 long int i = longval ();
14174 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14175 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014176 fprintf (f, "%ld\n", i);
14177 }
14178 else
14179 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014180 unsigned long int i = ulongval ();
14181 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14182 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014183 fprintf (f, "%lu\n", i);
14184 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014185 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014186
14187 ;
14188 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014189}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014190_ACEOF
14191rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014192if { (ac_try="$ac_link"
14193case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196esac
14197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014202 { (case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205esac
14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014212else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014213 echo "$as_me: program exited with status $ac_status" >&5
14214echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014218if test "$ac_cv_type_long_long" = yes; then
14219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014220See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014221echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014222See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014223 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014224 else
14225 ac_cv_sizeof_long_long=0
14226 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014227fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014228rm -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 -050014229fi
14230rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014231fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014232{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14233echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014234
14235
14236
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014238#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014240
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014241
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014242SIZEOF_SHORT=$ac_cv_sizeof_short
14243SIZEOF_INT=$ac_cv_sizeof_int
14244SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014245SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14246
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014247
14248
14249
Theodore Ts'oe1052142006-10-21 21:46:47 -040014250{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14251echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014252if test "${ac_cv_c_bigendian+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014255 # See if sys/param.h defines the BYTE_ORDER macro.
14256cat >conftest.$ac_ext <<_ACEOF
14257/* confdefs.h. */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
14261/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014262#include <sys/types.h>
14263#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014265int
14266main ()
14267{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014268#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14269 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014270 bogus endian macros
14271#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272
14273 ;
14274 return 0;
14275}
14276_ACEOF
14277rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014278if { (ac_try="$ac_compile"
14279case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14282esac
14283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014294 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014295cat >conftest.$ac_ext <<_ACEOF
14296/* confdefs.h. */
14297_ACEOF
14298cat confdefs.h >>conftest.$ac_ext
14299cat >>conftest.$ac_ext <<_ACEOF
14300/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014301#include <sys/types.h>
14302#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014304int
14305main ()
14306{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014307#if BYTE_ORDER != BIG_ENDIAN
14308 not big endian
14309#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310
14311 ;
14312 return 0;
14313}
14314_ACEOF
14315rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316if { (ac_try="$ac_compile"
14317case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014332 ac_cv_c_bigendian=yes
14333else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014334 echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
Theodore Ts'oe1052142006-10-21 21:46:47 -040014337 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014338fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014339
14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014341else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342 echo "$as_me: failed program was:" >&5
14343sed 's/^/| /' conftest.$ac_ext >&5
14344
Theodore Ts'oe1052142006-10-21 21:46:47 -040014345 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014346if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014347 # try to guess the endianness by grepping values into an object file
14348 ac_cv_c_bigendian=unknown
14349 cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014355short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14356short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014357void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014358short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14359short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14361int
14362main ()
14363{
14364 _ascii (); _ebcdic ();
14365 ;
14366 return 0;
14367}
14368_ACEOF
14369rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014370if { (ac_try="$ac_compile"
14371case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014382 (exit $ac_status); } && {
14383 test -z "$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14385 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14387 ac_cv_c_bigendian=yes
14388fi
14389if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14390 if test "$ac_cv_c_bigendian" = unknown; then
14391 ac_cv_c_bigendian=no
14392 else
14393 # finding both strings is unlikely to happen, but who knows?
14394 ac_cv_c_bigendian=unknown
14395 fi
14396fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014397else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014398 echo "$as_me: failed program was:" >&5
14399sed 's/^/| /' conftest.$ac_ext >&5
14400
Theodore Ts'oe1052142006-10-21 21:46:47 -040014401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014402fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014403
14404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014405else
14406 cat >conftest.$ac_ext <<_ACEOF
14407/* confdefs.h. */
14408_ACEOF
14409cat confdefs.h >>conftest.$ac_ext
14410cat >>conftest.$ac_ext <<_ACEOF
14411/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014412$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413int
14414main ()
14415{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014416
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014417 /* Are we little or big endian? From Harbison&Steele. */
14418 union
14419 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014420 long int l;
14421 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014422 } u;
14423 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424 return u.c[sizeof (long int) - 1] == 1;
14425
14426 ;
14427 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014428}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014429_ACEOF
14430rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014431if { (ac_try="$ac_link"
14432case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435esac
14436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014450 ac_cv_c_bigendian=no
14451else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452 echo "$as_me: program exited with status $ac_status" >&5
14453echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456( exit $ac_status )
14457ac_cv_c_bigendian=yes
14458fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014459rm -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 -040014460fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014461
14462
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014463fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014464
14465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014467{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14468echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014469case $ac_cv_c_bigendian in
14470 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014473#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014474_ACEOF
14475 ;;
14476 no)
14477 ;;
14478 *)
14479 { { echo "$as_me:$LINENO: error: unknown endianness
14480presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14481echo "$as_me: error: unknown endianness
14482presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14483 { (exit 1); exit 1; }; } ;;
14484esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014485
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014486BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014487ASM_TYPES_HEADER=./asm_types.h
14488
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014489echo "/* These defines are needed for the public ext2fs.h header file */" \
14490 > public_config.h
14491if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14492 uniq tmp_config.$$ >> public_config.h
14493else
14494 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14495fi
14496if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14497 uniq tmp_config.$$ >> public_config.h
14498else
14499 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14500fi
14501rm -f tmp_config.$$
14502PUBLIC_CONFIG_HEADER=./public_config.h
14503
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014505for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014506do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014512 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014514ac_res=`eval echo '${'$as_ac_Header'}'`
14515 { echo "$as_me:$LINENO: result: $ac_res" >&5
14516echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014517else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014518 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014521cat >conftest.$ac_ext <<_ACEOF
14522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
14527$ac_includes_default
14528#include <$ac_header>
14529_ACEOF
14530rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014531if { (ac_try="$ac_compile"
14532case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014543 (exit $ac_status); } && {
14544 test -z "$ac_c_werror_flag" ||
14545 test ! -s conftest.err
14546 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014547 ac_header_compiler=yes
14548else
14549 echo "$as_me: failed program was:" >&5
14550sed 's/^/| /' conftest.$ac_ext >&5
14551
Theodore Ts'oe1052142006-10-21 21:46:47 -040014552 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014554
14555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14557echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014558
14559# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568#include <$ac_header>
14569_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014570if { (ac_try="$ac_cpp conftest.$ac_ext"
14571case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574esac
14575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014582 (exit $ac_status); } >/dev/null && {
14583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014586 ac_header_preproc=yes
14587else
14588 echo "$as_me: failed program was:" >&5
14589sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 ac_header_preproc=no
14592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014594rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014595{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14596echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014597
14598# So? What about this header?
14599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14600 yes:no: )
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14605 ac_header_preproc=yes
14606 ;;
14607 no:yes:* )
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14611echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14615echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014621 ;;
14622esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014623{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627else
14628 eval "$as_ac_Header=\$ac_header_preproc"
14629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014630ac_res=`eval echo '${'$as_ac_Header'}'`
14631 { echo "$as_me:$LINENO: result: $ac_res" >&5
14632echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014633
14634fi
14635if test `eval echo '${'$as_ac_Header'}'` = yes; then
14636 cat >>confdefs.h <<_ACEOF
14637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14638_ACEOF
14639
14640fi
14641
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014642done
14643
Theodore Ts'oe1052142006-10-21 21:46:47 -040014644{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14645echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014646if test "${ac_cv_type_intptr_t+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014648else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014649 cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
14655$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014656typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657int
14658main ()
14659{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014660if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014661 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014662if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014663 return 0;
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014669if { (ac_try="$ac_compile"
14670case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014681 (exit $ac_status); } && {
14682 test -z "$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014685 ac_cv_type_intptr_t=yes
14686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014687 echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014689
Theodore Ts'oe1052142006-10-21 21:46:47 -040014690 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014691fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014692
14693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014694fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014695{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14696echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014697if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014698
14699cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014700#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014701_ACEOF
14702
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014704fi
14705
Theodore Ts'oe1052142006-10-21 21:46:47 -040014706{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14707echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014708if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710else
14711 cat >conftest.$ac_ext <<_ACEOF
14712/* confdefs.h. */
14713_ACEOF
14714cat confdefs.h >>conftest.$ac_ext
14715cat >>conftest.$ac_ext <<_ACEOF
14716/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014717#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014718int
14719main ()
14720{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014721struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014722 ;
14723 return 0;
14724}
14725_ACEOF
14726rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014727if { (ac_try="$ac_compile"
14728case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014743 e2fsprogs_cv_struct_st_flags=yes
14744else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
Theodore Ts'oe1052142006-10-21 21:46:47 -040014748 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014749fi
14750
Theodore Ts'oe1052142006-10-21 21:46:47 -040014751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi
14753
14754{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14755echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014756if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014757 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14758echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014759 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014761else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014762 cat >conftest.$ac_ext <<_ACEOF
14763/* confdefs.h. */
14764_ACEOF
14765cat confdefs.h >>conftest.$ac_ext
14766cat >>conftest.$ac_ext <<_ACEOF
14767/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014768#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769int
14770main ()
14771{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014772struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014773 ;
14774 return 0;
14775}
14776_ACEOF
14777rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014778if { (ac_try="$ac_compile"
14779case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014790 (exit $ac_status); } && {
14791 test -z "$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014794 e2fsprogs_cv_struct_st_flags_immut=yes
14795else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
Theodore Ts'oe1052142006-10-21 21:46:47 -040014799 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014800fi
14801
Theodore Ts'oe1052142006-10-21 21:46:47 -040014802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803fi
14804
14805 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14806echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014807 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014808 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014809#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014810_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014811
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014812 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014813fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014814{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14815echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014816if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014817 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014818else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014819 cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h. */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014825#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014826 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014828int
14829main ()
14830{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014831static struct sockaddr ac_aggr;
14832if (ac_aggr.sa_len)
14833return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014834 ;
14835 return 0;
14836}
14837_ACEOF
14838rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014839if { (ac_try="$ac_compile"
14840case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14843esac
14844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014855 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014856else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014857 echo "$as_me: failed program was:" >&5
14858sed 's/^/| /' conftest.$ac_ext >&5
14859
Theodore Ts'oe1052142006-10-21 21:46:47 -040014860 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014861/* confdefs.h. */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h. */
14866#include <sys/types.h>
14867 #include <sys/socket.h>
14868
14869int
14870main ()
14871{
14872static struct sockaddr ac_aggr;
14873if (sizeof ac_aggr.sa_len)
14874return 0;
14875 ;
14876 return 0;
14877}
14878_ACEOF
14879rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014880if { (ac_try="$ac_compile"
14881case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884esac
14885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014896 ac_cv_member_struct_sockaddr_sa_len=yes
14897else
14898 echo "$as_me: failed program was:" >&5
14899sed 's/^/| /' conftest.$ac_ext >&5
14900
Theodore Ts'oe1052142006-10-21 21:46:47 -040014901 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014903
14904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014905fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014906
14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014908fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014909{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14910echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014911if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014912
14913cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014914#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014915_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014916
14917fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014937
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014938
14939
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014940
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014941
Theodore Ts'o106ad962007-04-04 21:26:37 -040014942
14943
14944
Theodore Ts'o740837d2007-12-16 17:21:38 -050014945
14946
Theodore Ts'o261cd392008-01-21 13:45:00 -050014947
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014948
14949
14950for 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 +000014951do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014953{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14955if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014956 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014958 cat >conftest.$ac_ext <<_ACEOF
14959/* confdefs.h. */
14960_ACEOF
14961cat confdefs.h >>conftest.$ac_ext
14962cat >>conftest.$ac_ext <<_ACEOF
14963/* end confdefs.h. */
14964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14966#define $ac_func innocuous_$ac_func
14967
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014968/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014969 which can conflict with char $ac_func (); below.
14970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14971 <limits.h> exists even on freestanding compilers. */
14972
14973#ifdef __STDC__
14974# include <limits.h>
14975#else
14976# include <assert.h>
14977#endif
14978
14979#undef $ac_func
14980
Theodore Ts'oe1052142006-10-21 21:46:47 -040014981/* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984#ifdef __cplusplus
14985extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014986#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014988/* The GNU C library defines this for functions which it implements
14989 to always fail with ENOSYS. Some functions are actually named
14990 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014991#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014992choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014993#endif
14994
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014995int
14996main ()
14997{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014998return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014999 ;
15000 return 0;
15001}
15002_ACEOF
15003rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015004if { (ac_try="$ac_link"
15005case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015016 (exit $ac_status); } && {
15017 test -z "$ac_c_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest$ac_exeext &&
15020 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015022else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015023 echo "$as_me: failed program was:" >&5
15024sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015025
Theodore Ts'oe1052142006-10-21 21:46:47 -040015026 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015027fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015028
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015030 conftest$ac_exeext conftest.$ac_ext
15031fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015032ac_res=`eval echo '${'$as_ac_var'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015035if test `eval echo '${'$as_ac_var'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15038_ACEOF
15039
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015040fi
15041done
15042
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015043SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015044{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15045echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015046if test "${ac_cv_lib_socket_socket+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015048else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015050LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015051cat >conftest.$ac_ext <<_ACEOF
15052/* confdefs.h. */
15053_ACEOF
15054cat confdefs.h >>conftest.$ac_ext
15055cat >>conftest.$ac_ext <<_ACEOF
15056/* end confdefs.h. */
15057
Theodore Ts'oe1052142006-10-21 21:46:47 -040015058/* Override any GCC internal prototype to avoid an error.
15059 Use char because int might match the return type of a GCC
15060 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061#ifdef __cplusplus
15062extern "C"
15063#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015064char socket ();
15065int
15066main ()
15067{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015068return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015069 ;
15070 return 0;
15071}
15072_ACEOF
15073rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015074if { (ac_try="$ac_link"
15075case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015086 (exit $ac_status); } && {
15087 test -z "$ac_c_werror_flag" ||
15088 test ! -s conftest.err
15089 } && test -s conftest$ac_exeext &&
15090 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015091 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015093 echo "$as_me: failed program was:" >&5
15094sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015095
Theodore Ts'oe1052142006-10-21 21:46:47 -040015096 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015098
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015100 conftest$ac_exeext conftest.$ac_ext
15101LIBS=$ac_check_lib_save_LIBS
15102fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015103{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15104echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015105if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015106 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015107fi
15108
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015109
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015110DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015111{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15112echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015113if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015115else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015116 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015117LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015118cat >conftest.$ac_ext <<_ACEOF
15119/* confdefs.h. */
15120_ACEOF
15121cat confdefs.h >>conftest.$ac_ext
15122cat >>conftest.$ac_ext <<_ACEOF
15123/* end confdefs.h. */
15124
Theodore Ts'oe1052142006-10-21 21:46:47 -040015125/* Override any GCC internal prototype to avoid an error.
15126 Use char because int might match the return type of a GCC
15127 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015128#ifdef __cplusplus
15129extern "C"
15130#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015131char dlopen ();
15132int
15133main ()
15134{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015135return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015136 ;
15137 return 0;
15138}
15139_ACEOF
15140rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015141if { (ac_try="$ac_link"
15142case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15145esac
15146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015148 ac_status=$?
15149 grep -v '^ *+' conftest.er1 >conftest.err
15150 rm -f conftest.er1
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015153 (exit $ac_status); } && {
15154 test -z "$ac_c_werror_flag" ||
15155 test ! -s conftest.err
15156 } && test -s conftest$ac_exeext &&
15157 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015158 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015159else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015162
Theodore Ts'oe1052142006-10-21 21:46:47 -040015163 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015165
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015167 conftest$ac_exeext conftest.$ac_ext
15168LIBS=$ac_check_lib_save_LIBS
15169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015170{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15171echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015172if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015173 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015174cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015175#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015176_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015177
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015178fi
15179
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015180
Theodore Ts'oe1052142006-10-21 21:46:47 -040015181{ echo "$as_me:$LINENO: checking for optreset" >&5
15182echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015183if test "${ac_cv_have_optreset+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015185else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015186 cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015192#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015193
15194_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015196 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015197 ac_cv_have_optreset=yes
15198else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015199 ac_cv_have_optreset=no
15200fi
15201rm -f conftest*
15202
15203fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015204{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15205echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015206if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015207 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015208#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015209_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015210
15211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015212{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15213echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015214if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015215 UNI_DIFF_OPTS=-u
15216else
15217 UNI_DIFF_OPTS=-c
15218fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015219{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15220echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015221
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015222case "$host_os" in
15223linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015224 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015225#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015226_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015227
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015228 ;;
15229esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015230LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015231CYGWIN_CMT="#"
15232UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015233case "$host_os" in
15234linux*)
15235 LINUX_CMT=
15236 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015237cygwin)
15238 CYGWIN_CMT=
15239 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015240 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015241esac
15242
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015243
15244
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015245case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015246linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015247 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15248 root_prefix="";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015249 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15250echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015251 fi
15252 ;;
15253esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015254case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015255linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015256 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015257 prefix="/usr";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015258 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15259echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015260 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015261 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15262echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015263 mandir=/usr/share/man
15264 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015265 fi
15266;;
15267esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015268if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015269 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015270 root_prefix="$ac_default_prefix"
15271 else
15272 root_prefix="$prefix"
15273 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015274 root_bindir=$bindir
15275 root_sbindir=$sbindir
15276 root_libdir=$libdir
15277 root_sysconfdir=$sysconfdir
15278else
15279 root_bindir='${root_prefix}/bin'
15280 root_sbindir='${root_prefix}/sbin'
15281 root_libdir='${root_prefix}/lib'
15282 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015283fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015284if test "$bindir" != '${exec_prefix}/bin'; then
15285 root_bindir=$bindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015286 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15287echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015288fi
15289if test "$sbindir" != '${exec_prefix}/sbin'; then
15290 root_sbindir=$sbindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015291 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15292echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015293fi
15294if test "$libdir" != '${exec_prefix}/lib'; then
15295 root_libdir=$libdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015296 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15297echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015298fi
15299if test "$sysconfdir" != '${prefix}/etc'; then
15300 root_sysconfdir=$sysconfdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015301 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15302echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015303fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015304
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015305
15306
15307
15308
Theodore Ts'oe1052142006-10-21 21:46:47 -040015309{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15310echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015311if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015313else
15314 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015315cat >conftest.$ac_ext <<_ACEOF
15316/* confdefs.h. */
15317_ACEOF
15318cat confdefs.h >>conftest.$ac_ext
15319cat >>conftest.$ac_ext <<_ACEOF
15320/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015321#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015322int
15323main ()
15324{
Theodore Ts'oae851481997-04-29 18:13:24 +000015325fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015326 ;
15327 return 0;
15328}
15329_ACEOF
15330rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015331if { (ac_try="$ac_link"
15332case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
15336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest$ac_exeext &&
15347 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015348 ac_cv_e2fsprogs_use_static=yes
15349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
Theodore Ts'oe1052142006-10-21 21:46:47 -040015353 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015354fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015355
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015357 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015358LDFLAGS=$SAVE_LDFLAGS
15359fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015360
Theodore Ts'odefde781999-01-04 07:39:19 +000015361case "$host_os" in
15362solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015363 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015364;;
15365esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015366{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15367echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015368LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015369if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015370 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015371fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015372
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015373case "$host_os" in
15374darwin*)
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015375 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15376echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015377 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015378#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015379_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015380
15381 ;;
15382esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015383SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15384ET_DIR=`cd ${srcdir}/lib/et; pwd`
15385
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015386
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015387if test "$cross_compiling" = yes ; then
15388 DO_TEST_SUITE=
15389else
15390 DO_TEST_SUITE=check
15391fi
15392
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015393INTL_FLAGS=
15394if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15395 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15396fi
15397
Theodore Ts'odd947da2005-11-09 18:37:07 -040015398if test $cross_compiling = no; then
15399 BUILD_CFLAGS="$CFLAGS"
15400 BUILD_LDFLAGS="$LDFLAGS"
15401else
15402 BUILD_CFLAGS=
15403 BUILD_LDFLAGS=
15404fi
15405
15406
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015407test -d lib || mkdir lib
15408test -d include || mkdir include
15409test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015410test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015411for i in MCONFIG Makefile e2fsprogs.spec \
15412 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015413 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15414 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015415 lib/uuid/Makefile lib/uuid/uuid_types.h \
15416 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015417 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15418 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015419 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015420 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15421 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15422 if test -d `dirname ${srcdir}/$i` ; then
15423 outlist="$outlist $i"
15424 fi
15425done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015426ac_config_files="$ac_config_files $outlist"
15427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015428cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015429# This file is a shell script that caches the results of configure
15430# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015431# scripts and configure runs, see configure's option --config-cache.
15432# It is not useful on other systems. If it contains results you don't
15433# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015434#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015435# config.status only pays attention to the cache file if you give it
15436# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015437#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015438# `ac_cv_env_foo' variables (set or unset) will be overridden when
15439# loading this file, other *unset* `ac_cv_foo' will be assigned the
15440# following values.
15441
15442_ACEOF
15443
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015444# The following way of writing the cache mishandles newlines in values,
15445# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015446# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015447# Ultrix sh set writes to stderr and can't be redirected directly,
15448# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015449(
15450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15451 eval ac_val=\$$ac_var
15452 case $ac_val in #(
15453 *${as_nl}*)
15454 case $ac_var in #(
15455 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15456echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15457 esac
15458 case $ac_var in #(
15459 _ | IFS | as_nl) ;; #(
15460 *) $as_unset $ac_var ;;
15461 esac ;;
15462 esac
15463 done
15464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015465 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15467 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015468 # `set' does not quote correctly, so add quotes (double-quote
15469 # substitution turns \\\\ into \\, and sed turns \\ into \).
15470 sed -n \
15471 "s/'/'\\\\''/g;
15472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015473 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015474 *)
15475 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015477 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015478 esac |
15479 sort
15480) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015481 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015482 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015483 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015484 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15486 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15488 :end' >>confcache
15489if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15490 if test -w "$cache_file"; then
15491 test "x$cache_file" != "x/dev/null" &&
15492 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15493echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015494 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015495 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015496 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15497echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015498 fi
15499fi
15500rm -f confcache
15501
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015502test "x$prefix" = xNONE && prefix=$ac_default_prefix
15503# Let make expand exec_prefix.
15504test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15505
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015506# Transform confdefs.h into DEFS.
15507# Protect against shell expansion while executing Makefile rules.
15508# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015509#
15510# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015511# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015512# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015513ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015514t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015515:clear
15516s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015517t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015518s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015519t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015520b any
15521:quote
15522s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15523s/\[/\\&/g
15524s/\]/\\&/g
15525s/\$/$$/g
15526H
15527:any
15528${
15529 g
15530 s/^\n//
15531 s/\n/ /g
15532 p
15533}
15534'
15535DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015536
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015538ac_libobjs=
15539ac_ltlibobjs=
15540for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15541 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15543 ac_i=`echo "$ac_i" | sed "$ac_script"`
15544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15545 # will be set to the directory where LIBOBJS objects are built.
15546 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15547 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015548done
15549LIBOBJS=$ac_libobjs
15550
15551LTLIBOBJS=$ac_ltlibobjs
15552
15553
15554
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015555: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015556ac_clean_files_save=$ac_clean_files
15557ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15558{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15559echo "$as_me: creating $CONFIG_STATUS" >&6;}
15560cat >$CONFIG_STATUS <<_ACEOF
15561#! $SHELL
15562# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015563# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015564# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015565# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015567debug=false
15568ac_cs_recheck=false
15569ac_cs_silent=false
15570SHELL=\${CONFIG_SHELL-$SHELL}
15571_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015573cat >>$CONFIG_STATUS <<\_ACEOF
15574## --------------------- ##
15575## M4sh Initialization. ##
15576## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015577
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015578# Be more Bourne compatible
15579DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15581 emulate sh
15582 NULLCMD=:
15583 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15584 # is contrary to our usage. Disable this feature.
15585 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015586 setopt NO_GLOB_SUBST
15587else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015588 case `(set -o) 2>/dev/null` in
15589 *posix*) set -o posix ;;
15590esac
15591
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015592fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015593
15594
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015595
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015596
Theodore Ts'oe1052142006-10-21 21:46:47 -040015597# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015598# Avoid depending upon Character Ranges.
15599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15602as_cr_digits='0123456789'
15603as_cr_alnum=$as_cr_Letters$as_cr_digits
15604
15605# The user is always right.
15606if test "${PATH_SEPARATOR+set}" != set; then
15607 echo "#! /bin/sh" >conf$$.sh
15608 echo "exit 0" >>conf$$.sh
15609 chmod +x conf$$.sh
15610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15611 PATH_SEPARATOR=';'
15612 else
15613 PATH_SEPARATOR=:
15614 fi
15615 rm -f conf$$.sh
15616fi
15617
Theodore Ts'oe1052142006-10-21 21:46:47 -040015618# Support unset when possible.
15619if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15620 as_unset=unset
15621else
15622 as_unset=false
15623fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015624
Theodore Ts'oe1052142006-10-21 21:46:47 -040015625
15626# IFS
15627# We need space, tab and new line, in precisely that order. Quoting is
15628# there to prevent editors from complaining about space-tab.
15629# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15630# splitting by setting IFS to empty value.)
15631as_nl='
15632'
15633IFS=" "" $as_nl"
15634
15635# Find who we are. Look in the path if we contain no directory separator.
15636case $0 in
15637 *[\\/]* ) as_myself=$0 ;;
15638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015639for as_dir in $PATH
15640do
15641 IFS=$as_save_IFS
15642 test -z "$as_dir" && as_dir=.
15643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15644done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015645IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015646
Theodore Ts'oe1052142006-10-21 21:46:47 -040015647 ;;
15648esac
15649# We did not find ourselves, most probably we were run as `sh COMMAND'
15650# in which case we are not to be found in the path.
15651if test "x$as_myself" = x; then
15652 as_myself=$0
15653fi
15654if test ! -f "$as_myself"; then
15655 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15656 { (exit 1); exit 1; }
15657fi
15658
15659# Work around bugs in pre-3.0 UWIN ksh.
15660for as_var in ENV MAIL MAILPATH
15661do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15662done
15663PS1='$ '
15664PS2='> '
15665PS4='+ '
15666
15667# NLS nuisances.
15668for as_var in \
15669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15671 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015672do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15674 eval $as_var=C; export $as_var
15675 else
15676 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15677 fi
15678done
15679
15680# Required to use basename.
15681if expr a : '\(a\)' >/dev/null 2>&1 &&
15682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15683 as_expr=expr
15684else
15685 as_expr=false
15686fi
15687
15688if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15689 as_basename=basename
15690else
15691 as_basename=false
15692fi
15693
15694
15695# Name of the executable.
15696as_me=`$as_basename -- "$0" ||
15697$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15698 X"$0" : 'X\(//\)$' \| \
15699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15700echo X/"$0" |
15701 sed '/^.*\/\([^/][^/]*\)\/*$/{
15702 s//\1/
15703 q
15704 }
15705 /^X\/\(\/\/\)$/{
15706 s//\1/
15707 q
15708 }
15709 /^X\/\(\/\).*/{
15710 s//\1/
15711 q
15712 }
15713 s/.*/./; q'`
15714
15715# CDPATH.
15716$as_unset CDPATH
15717
15718
15719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015720 as_lineno_1=$LINENO
15721 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015722 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015723 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015724
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15726 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015727 # line-number line after each line using $LINENO; the second 'sed'
15728 # does the real work. The second script uses 'N' to pair each
15729 # line-number line with the line containing $LINENO, and appends
15730 # trailing '-' during substitution so that $LINENO is not a special
15731 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015732 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015733 # scripts with optimization help from Paolo Bonzini. Blame Lee
15734 # E. McMahon (1931-1989) for sed's syntax. :-)
15735 sed -n '
15736 p
15737 /[$]LINENO/=
15738 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015739 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015740 s/[$]LINENO.*/&-/
15741 t lineno
15742 b
15743 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015744 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015745 :loop
15746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015747 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015748 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015749 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015750 chmod +x "$as_me.lineno" ||
15751 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015752 { (exit 1); exit 1; }; }
15753
15754 # Don't try to exec as it changes $[0], causing all sort of problems
15755 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015756 # original and so on. Autoconf is especially sensitive to this).
15757 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015758 # Exit status is that of the last command.
15759 exit
15760}
15761
15762
Theodore Ts'oe1052142006-10-21 21:46:47 -040015763if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15764 as_dirname=dirname
15765else
15766 as_dirname=false
15767fi
15768
15769ECHO_C= ECHO_N= ECHO_T=
15770case `echo -n x` in
15771-n*)
15772 case `echo 'x\c'` in
15773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15774 *) ECHO_C='\c';;
15775 esac;;
15776*)
15777 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015778esac
15779
Theodore Ts'oe1052142006-10-21 21:46:47 -040015780if expr a : '\(a\)' >/dev/null 2>&1 &&
15781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015782 as_expr=expr
15783else
15784 as_expr=false
15785fi
15786
15787rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015788if test -d conf$$.dir; then
15789 rm -f conf$$.dir/conf$$.file
15790else
15791 rm -f conf$$.dir
15792 mkdir conf$$.dir
15793fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015794echo >conf$$.file
15795if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015796 as_ln_s='ln -s'
15797 # ... but there are two gotchas:
15798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15800 # In both cases, we have to default to `cp -p'.
15801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015802 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015803elif ln conf$$.file conf$$ 2>/dev/null; then
15804 as_ln_s=ln
15805else
15806 as_ln_s='cp -p'
15807fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015808rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15809rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015810
15811if mkdir -p . 2>/dev/null; then
15812 as_mkdir_p=:
15813else
15814 test -d ./-p && rmdir ./-p
15815 as_mkdir_p=false
15816fi
15817
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015818if test -x / >/dev/null 2>&1; then
15819 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015820else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015821 if ls -dL / >/dev/null 2>&1; then
15822 as_ls_L_option=L
15823 else
15824 as_ls_L_option=
15825 fi
15826 as_test_x='
15827 eval sh -c '\''
15828 if test -d "$1"; then
15829 test -d "$1/.";
15830 else
15831 case $1 in
15832 -*)set "./$1";;
15833 esac;
15834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15835 ???[sx]*):;;*)false;;esac;fi
15836 '\'' sh
15837 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015838fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015839as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015840
15841# Sed expression to map a string onto a valid CPP name.
15842as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15843
15844# Sed expression to map a string onto a valid variable name.
15845as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15846
15847
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015848exec 6>&1
15849
Theodore Ts'oe1052142006-10-21 21:46:47 -040015850# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015851# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015852# values after options handling.
15853ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015854This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015855generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015856
15857 CONFIG_FILES = $CONFIG_FILES
15858 CONFIG_HEADERS = $CONFIG_HEADERS
15859 CONFIG_LINKS = $CONFIG_LINKS
15860 CONFIG_COMMANDS = $CONFIG_COMMANDS
15861 $ $0 $@
15862
Theodore Ts'oe1052142006-10-21 21:46:47 -040015863on `(hostname || uname -n) 2>/dev/null | sed 1q`
15864"
15865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015866_ACEOF
15867
Theodore Ts'oe1052142006-10-21 21:46:47 -040015868cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015869# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015870config_files="$ac_config_files"
15871config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015872
Theodore Ts'oe1052142006-10-21 21:46:47 -040015873_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015874
15875cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015876ac_cs_usage="\
15877\`$as_me' instantiates files from templates according to the
15878current configuration.
15879
15880Usage: $0 [OPTIONS] [FILE]...
15881
15882 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015883 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015884 -q, --quiet do not print progress messages
15885 -d, --debug don't remove temporary files
15886 --recheck update $as_me by reconfiguring in the same conditions
15887 --file=FILE[:TEMPLATE]
15888 instantiate the configuration file FILE
15889
15890Configuration files:
15891$config_files
15892
15893Configuration commands:
15894$config_commands
15895
15896Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015897
Theodore Ts'oe1052142006-10-21 21:46:47 -040015898_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015899cat >>$CONFIG_STATUS <<_ACEOF
15900ac_cs_version="\\
15901config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015902configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015903 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015904
Theodore Ts'oe1052142006-10-21 21:46:47 -040015905Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015906This config.status script is free software; the Free Software Foundation
15907gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015908
15909ac_pwd='$ac_pwd'
15910srcdir='$srcdir'
15911INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015912_ACEOF
15913
15914cat >>$CONFIG_STATUS <<\_ACEOF
15915# If no file are specified by the user, then we need to provide default
15916# value. By we need to know if files were specified by the user.
15917ac_need_defaults=:
15918while test $# != 0
15919do
15920 case $1 in
15921 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15923 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015924 ac_shift=:
15925 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015926 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015927 ac_option=$1
15928 ac_optarg=$2
15929 ac_shift=shift
15930 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015931 esac
15932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015933 case $ac_option in
15934 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15936 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15938 echo "$ac_cs_version"; exit ;;
15939 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015940 debug=: ;;
15941 --file | --fil | --fi | --f )
15942 $ac_shift
15943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15944 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015945 --he | --h | --help | --hel | -h )
15946 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15949 ac_cs_silent=: ;;
15950
15951 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015952 -*) { echo "$as_me: error: unrecognized option: $1
15953Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015954 { (exit 1); exit 1; }; } ;;
15955
Theodore Ts'oe1052142006-10-21 21:46:47 -040015956 *) ac_config_targets="$ac_config_targets $1"
15957 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015958
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015959 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015960 shift
15961done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015963ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015965if $ac_cs_silent; then
15966 exec 6>/dev/null
15967 ac_configure_extra_args="$ac_configure_extra_args --silent"
15968fi
15969
15970_ACEOF
15971cat >>$CONFIG_STATUS <<_ACEOF
15972if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015973 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15974 CONFIG_SHELL=$SHELL
15975 export CONFIG_SHELL
15976 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015977fi
15978
15979_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015980cat >>$CONFIG_STATUS <<\_ACEOF
15981exec 5>>config.log
15982{
15983 echo
15984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15985## Running $as_me. ##
15986_ASBOX
15987 echo "$ac_log"
15988} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015989
Theodore Ts'oe1052142006-10-21 21:46:47 -040015990_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015991cat >>$CONFIG_STATUS <<_ACEOF
15992#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015993# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015994#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015995# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015996 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015997 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015998 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015999 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16000 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016001
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016003_ACEOF
16004
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016005cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016006
16007# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016008for ac_config_target in $ac_config_targets
16009do
Theodore Ts'oe1052142006-10-21 21:46:47 -040016010 case $ac_config_target in
16011 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16012 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16013
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16015echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16016 { (exit 1); exit 1; }; };;
16017 esac
16018done
16019
Theodore Ts'oe1052142006-10-21 21:46:47 -040016020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016021# If the user did not use the arguments to specify the items to instantiate,
16022# then the envvar interface is used. Set only those that are not.
16023# We use the long form for the default assignment because of an extremely
16024# bizarre bug on SunOS 4.1.3.
16025if $ac_need_defaults; then
16026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16027 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16028fi
16029
16030# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040016031# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016032# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016033# Hook for its removal unless debugging.
16034# Note that there is a small window in which the directory will not be cleaned:
16035# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016036$debug ||
16037{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016038 tmp=
16039 trap 'exit_status=$?
16040 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16041' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016042 trap '{ (exit 1); exit 1; }' 1 2 13 15
16043}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016044# Create a (secure) tmp directory for tmp files.
16045
16046{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016048 test -n "$tmp" && test -d "$tmp"
16049} ||
16050{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016051 tmp=./conf$$-$RANDOM
16052 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016053} ||
16054{
16055 echo "$me: cannot create a temporary directory in ." >&2
16056 { (exit 1); exit 1; }
16057}
16058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016059#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016060# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016061#
16062
16063# No need to generate the scripts if there are no CONFIG_FILES.
16064# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040016065if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016066
16067_ACEOF
16068
Theodore Ts'oe1052142006-10-21 21:46:47 -040016069# Create sed commands to just substitute file output variables.
16070
16071# Remaining file output variables are in a fragment that also has non-file
16072# output varibles.
16073
16074
16075
16076ac_delim='%!_!# '
16077for ac_last_try in false false false false false :; do
16078 cat >conf$$subs.sed <<_ACEOF
16079SHELL!$SHELL$ac_delim
16080PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16081PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16082PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16083PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16084PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16085PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16086exec_prefix!$exec_prefix$ac_delim
16087prefix!$prefix$ac_delim
16088program_transform_name!$program_transform_name$ac_delim
16089bindir!$bindir$ac_delim
16090sbindir!$sbindir$ac_delim
16091libexecdir!$libexecdir$ac_delim
16092datarootdir!$datarootdir$ac_delim
16093datadir!$datadir$ac_delim
16094sysconfdir!$sysconfdir$ac_delim
16095sharedstatedir!$sharedstatedir$ac_delim
16096localstatedir!$localstatedir$ac_delim
16097includedir!$includedir$ac_delim
16098oldincludedir!$oldincludedir$ac_delim
16099docdir!$docdir$ac_delim
16100infodir!$infodir$ac_delim
16101htmldir!$htmldir$ac_delim
16102dvidir!$dvidir$ac_delim
16103pdfdir!$pdfdir$ac_delim
16104psdir!$psdir$ac_delim
16105libdir!$libdir$ac_delim
16106localedir!$localedir$ac_delim
16107mandir!$mandir$ac_delim
16108DEFS!$DEFS$ac_delim
16109ECHO_C!$ECHO_C$ac_delim
16110ECHO_N!$ECHO_N$ac_delim
16111ECHO_T!$ECHO_T$ac_delim
16112LIBS!$LIBS$ac_delim
16113build_alias!$build_alias$ac_delim
16114host_alias!$host_alias$ac_delim
16115target_alias!$target_alias$ac_delim
16116E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16117E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16118E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16119E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016120E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016121build!$build$ac_delim
16122build_cpu!$build_cpu$ac_delim
16123build_vendor!$build_vendor$ac_delim
16124build_os!$build_os$ac_delim
16125host!$host$ac_delim
16126host_cpu!$host_cpu$ac_delim
16127host_vendor!$host_vendor$ac_delim
16128host_os!$host_os$ac_delim
16129CC!$CC$ac_delim
16130CFLAGS!$CFLAGS$ac_delim
16131LDFLAGS!$LDFLAGS$ac_delim
16132CPPFLAGS!$CPPFLAGS$ac_delim
16133ac_ct_CC!$ac_ct_CC$ac_delim
16134EXEEXT!$EXEEXT$ac_delim
16135OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016136CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016137LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016138GREP!$GREP$ac_delim
16139EGREP!$EGREP$ac_delim
16140LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16141MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16142HTREE_CMT!$HTREE_CMT$ac_delim
16143ELF_CMT!$ELF_CMT$ac_delim
16144BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16145PROFILE_CMT!$PROFILE_CMT$ac_delim
16146CHECKER_CMT!$CHECKER_CMT$ac_delim
16147LIB_EXT!$LIB_EXT$ac_delim
16148STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16149PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016150DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16151IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016152_ACEOF
16153
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016154 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 -040016155 break
16156 elif $ac_last_try; then
16157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16158echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16159 { (exit 1); exit 1; }; }
16160 else
16161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016162 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016163done
16164
16165ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16166if test -n "$ac_eof"; then
16167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16168 ac_eof=`expr $ac_eof + 1`
16169fi
16170
16171cat >>$CONFIG_STATUS <<_ACEOF
16172cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16174/^[ ]*@MCONFIG@[ ]*$/{
16175r $MCONFIG
16176d
16177}
16178/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16179r $MAKEFILE_ELF
16180d
16181}
16182/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16183r $MAKEFILE_BSDLIB
16184d
16185}
16186/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16187r $MAKEFILE_PROFILE
16188d
16189}
16190/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16191r $MAKEFILE_CHECKER
16192d
16193}
16194/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16195r $MAKEFILE_LIBRARY
16196d
16197}
16198/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16199r $ASM_TYPES_HEADER
16200d
16201}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016202/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16203r $PUBLIC_CONFIG_HEADER
16204d
16205}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016206_ACEOF
16207sed '
16208s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16209s/^/s,@/; s/!/@,|#_!!_#|/
16210:n
16211t n
16212s/'"$ac_delim"'$/,g/; t
16213s/$/\\/; p
16214N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16215' >>$CONFIG_STATUS <conf$$subs.sed
16216rm -f conf$$subs.sed
16217cat >>$CONFIG_STATUS <<_ACEOF
16218CEOF$ac_eof
16219_ACEOF
16220
16221
16222ac_delim='%!_!# '
16223for ac_last_try in false false false false false :; do
16224 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016225RESIZER_CMT!$RESIZER_CMT$ac_delim
16226FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016227FSCK_MAN!$FSCK_MAN$ac_delim
16228E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16229E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016230PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016231DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16232DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16233DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16234STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016235STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016236UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016237GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16238PACKAGE!$PACKAGE$ac_delim
16239VERSION!$VERSION$ac_delim
16240SET_MAKE!$SET_MAKE$ac_delim
16241INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16242INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16243INSTALL_DATA!$INSTALL_DATA$ac_delim
16244MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16245USE_NLS!$USE_NLS$ac_delim
16246MSGFMT!$MSGFMT$ac_delim
16247GMSGFMT!$GMSGFMT$ac_delim
16248XGETTEXT!$XGETTEXT$ac_delim
16249MSGMERGE!$MSGMERGE$ac_delim
16250RANLIB!$RANLIB$ac_delim
16251ALLOCA!$ALLOCA$ac_delim
16252GLIBC21!$GLIBC21$ac_delim
16253HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16254HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16255HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16256HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16257LIBICONV!$LIBICONV$ac_delim
16258LTLIBICONV!$LTLIBICONV$ac_delim
16259INTLBISON!$INTLBISON$ac_delim
16260BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16261USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16262CATOBJEXT!$CATOBJEXT$ac_delim
16263DATADIRNAME!$DATADIRNAME$ac_delim
16264INSTOBJEXT!$INSTOBJEXT$ac_delim
16265GENCAT!$GENCAT$ac_delim
16266INTLOBJS!$INTLOBJS$ac_delim
16267INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16268INTLLIBS!$INTLLIBS$ac_delim
16269LIBINTL!$LIBINTL$ac_delim
16270LTLIBINTL!$LTLIBINTL$ac_delim
16271POSUB!$POSUB$ac_delim
16272BINARY_TYPE!$BINARY_TYPE$ac_delim
16273LN!$LN$ac_delim
16274LN_S!$LN_S$ac_delim
16275MV!$MV$ac_delim
16276CP!$CP$ac_delim
16277RM!$RM$ac_delim
16278CHMOD!$CHMOD$ac_delim
16279AWK!$AWK$ac_delim
16280SED!$SED$ac_delim
16281PERL!$PERL$ac_delim
16282LDCONFIG!$LDCONFIG$ac_delim
16283AR!$AR$ac_delim
16284STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016285MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016286BUILD_CC!$BUILD_CC$ac_delim
16287SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16288SIZEOF_INT!$SIZEOF_INT$ac_delim
16289SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16290SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16291SOCKET_LIB!$SOCKET_LIB$ac_delim
16292DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16293UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16294LINUX_CMT!$LINUX_CMT$ac_delim
16295CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16296UNIX_CMT!$UNIX_CMT$ac_delim
16297root_prefix!$root_prefix$ac_delim
16298root_bindir!$root_bindir$ac_delim
16299root_sbindir!$root_sbindir$ac_delim
16300root_libdir!$root_libdir$ac_delim
16301root_sysconfdir!$root_sysconfdir$ac_delim
16302LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16303SS_DIR!$SS_DIR$ac_delim
16304ET_DIR!$ET_DIR$ac_delim
16305DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16306INTL_FLAGS!$INTL_FLAGS$ac_delim
16307BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16308BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16309LIBOBJS!$LIBOBJS$ac_delim
16310LTLIBOBJS!$LTLIBOBJS$ac_delim
16311_ACEOF
16312
Theodore Ts'odc9345a2008-06-07 10:08:48 -040016313 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 -040016314 break
16315 elif $ac_last_try; then
16316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16317echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16318 { (exit 1); exit 1; }; }
16319 else
16320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16321 fi
16322done
16323
16324ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16325if test -n "$ac_eof"; then
16326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16327 ac_eof=`expr $ac_eof + 1`
16328fi
16329
16330cat >>$CONFIG_STATUS <<_ACEOF
16331cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16333_ACEOF
16334sed '
16335s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16336s/^/s,@/; s/!/@,|#_!!_#|/
16337:n
16338t n
16339s/'"$ac_delim"'$/,g/; t
16340s/$/\\/; p
16341N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16342' >>$CONFIG_STATUS <conf$$subs.sed
16343rm -f conf$$subs.sed
16344cat >>$CONFIG_STATUS <<_ACEOF
16345:end
16346s/|#_!!_#|//g
16347CEOF$ac_eof
16348_ACEOF
16349
16350
16351# VPATH may cause trouble with some makes, so we remove $(srcdir),
16352# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16353# trailing colons and then remove the whole line if VPATH becomes empty
16354# (actually we leave an empty line to preserve line numbers).
16355if test "x$srcdir" = x.; then
16356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16357s/:*\$(srcdir):*/:/
16358s/:*\${srcdir}:*/:/
16359s/:*@srcdir@:*/:/
16360s/^\([^=]*=[ ]*\):*/\1/
16361s/:*$//
16362s/^[^=]*=[ ]*$//
16363}'
16364fi
16365
16366cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016367fi # test -n "$CONFIG_FILES"
16368
Theodore Ts'oe1052142006-10-21 21:46:47 -040016369
16370for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16371do
16372 case $ac_tag in
16373 :[FHLC]) ac_mode=$ac_tag; continue;;
16374 esac
16375 case $ac_mode$ac_tag in
16376 :[FHL]*:*);;
16377 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16378echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16379 { (exit 1); exit 1; }; };;
16380 :[FH]-) ac_tag=-:-;;
16381 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16382 esac
16383 ac_save_IFS=$IFS
16384 IFS=:
16385 set x $ac_tag
16386 IFS=$ac_save_IFS
16387 shift
16388 ac_file=$1
16389 shift
16390
16391 case $ac_mode in
16392 :L) ac_source=$1;;
16393 :[FH])
16394 ac_file_inputs=
16395 for ac_f
16396 do
16397 case $ac_f in
16398 -) ac_f="$tmp/stdin";;
16399 *) # Look for the file first in the build tree, then in the source tree
16400 # (if the path is not absolute). The absolute path cannot be DOS-style,
16401 # because $ac_f cannot contain `:'.
16402 test -f "$ac_f" ||
16403 case $ac_f in
16404 [\\/$]*) false;;
16405 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16406 esac ||
16407 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16408echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16409 { (exit 1); exit 1; }; };;
16410 esac
16411 ac_file_inputs="$ac_file_inputs $ac_f"
16412 done
16413
16414 # Let's still pretend it is `configure' which instantiates (i.e., don't
16415 # use $as_me), people would be surprised to read:
16416 # /* config.h. Generated by config.status. */
16417 configure_input="Generated from "`IFS=:
16418 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16419 if test x"$ac_file" != x-; then
16420 configure_input="$ac_file. $configure_input"
16421 { echo "$as_me:$LINENO: creating $ac_file" >&5
16422echo "$as_me: creating $ac_file" >&6;}
16423 fi
16424
16425 case $ac_tag in
16426 *:-:* | *:-) cat >"$tmp/stdin";;
16427 esac
16428 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016429 esac
16430
Theodore Ts'oe1052142006-10-21 21:46:47 -040016431 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016432$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16433 X"$ac_file" : 'X\(//\)[^/]' \| \
16434 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016436echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16438 s//\1/
16439 q
16440 }
16441 /^X\(\/\/\)[^/].*/{
16442 s//\1/
16443 q
16444 }
16445 /^X\(\/\/\)$/{
16446 s//\1/
16447 q
16448 }
16449 /^X\(\/\).*/{
16450 s//\1/
16451 q
16452 }
16453 s/.*/./; q'`
16454 { as_dir="$ac_dir"
16455 case $as_dir in #(
16456 -*) as_dir=./$as_dir;;
16457 esac
16458 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016459 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016460 while :; do
16461 case $as_dir in #(
16462 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16463 *) as_qdir=$as_dir;;
16464 esac
16465 as_dirs="'$as_qdir' $as_dirs"
16466 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016467$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468 X"$as_dir" : 'X\(//\)[^/]' \| \
16469 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016470 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016471echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16473 s//\1/
16474 q
16475 }
16476 /^X\(\/\/\)[^/].*/{
16477 s//\1/
16478 q
16479 }
16480 /^X\(\/\/\)$/{
16481 s//\1/
16482 q
16483 }
16484 /^X\(\/\).*/{
16485 s//\1/
16486 q
16487 }
16488 s/.*/./; q'`
16489 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016490 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016491 test -z "$as_dirs" || eval "mkdir $as_dirs"
16492 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16493echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016494 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016495 ac_builddir=.
16496
Theodore Ts'oe1052142006-10-21 21:46:47 -040016497case "$ac_dir" in
16498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16499*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016501 # A ".." for each directory in $ac_dir_suffix.
16502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16503 case $ac_top_builddir_sub in
16504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16506 esac ;;
16507esac
16508ac_abs_top_builddir=$ac_pwd
16509ac_abs_builddir=$ac_pwd$ac_dir_suffix
16510# for backward compatibility:
16511ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016512
16513case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016514 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016515 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016516 ac_top_srcdir=$ac_top_builddir_sub
16517 ac_abs_top_srcdir=$ac_pwd ;;
16518 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016519 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016520 ac_top_srcdir=$srcdir
16521 ac_abs_top_srcdir=$srcdir ;;
16522 *) # Relative name.
16523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16524 ac_top_srcdir=$ac_top_build_prefix$srcdir
16525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016526esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016529
Theodore Ts'oe1052142006-10-21 21:46:47 -040016530 case $ac_mode in
16531 :F)
16532 #
16533 # CONFIG_FILE
16534 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016535
16536 case $INSTALL in
16537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016538 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016539 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016540_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016541
16542cat >>$CONFIG_STATUS <<\_ACEOF
16543# If the template does not know about datarootdir, expand it.
16544# FIXME: This hack should be removed a few years after 2.60.
16545ac_datarootdir_hack=; ac_datarootdir_seen=
16546
16547case `sed -n '/datarootdir/ {
16548 p
16549 q
16550}
16551/@datadir@/p
16552/@docdir@/p
16553/@infodir@/p
16554/@localedir@/p
16555/@mandir@/p
16556' $ac_file_inputs` in
16557*datarootdir*) ac_datarootdir_seen=yes;;
16558*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16559 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16560echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16561_ACEOF
16562cat >>$CONFIG_STATUS <<_ACEOF
16563 ac_datarootdir_hack='
16564 s&@datadir@&$datadir&g
16565 s&@docdir@&$docdir&g
16566 s&@infodir@&$infodir&g
16567 s&@localedir@&$localedir&g
16568 s&@mandir@&$mandir&g
16569 s&\\\${datarootdir}&$datarootdir&g' ;;
16570esac
16571_ACEOF
16572
16573# Neutralize VPATH when `$srcdir' = `.'.
16574# Shell code in configure.ac might set extrasub.
16575# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016576cat >>$CONFIG_STATUS <<_ACEOF
16577 sed "$ac_vpsub
16578$extrasub
16579_ACEOF
16580cat >>$CONFIG_STATUS <<\_ACEOF
16581:t
16582/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016583s&@configure_input@&$configure_input&;t t
16584s&@top_builddir@&$ac_top_builddir_sub&;t t
16585s&@srcdir@&$ac_srcdir&;t t
16586s&@abs_srcdir@&$ac_abs_srcdir&;t t
16587s&@top_srcdir@&$ac_top_srcdir&;t t
16588s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16589s&@builddir@&$ac_builddir&;t t
16590s&@abs_builddir@&$ac_abs_builddir&;t t
16591s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16592s&@INSTALL@&$ac_INSTALL&;t t
16593$ac_datarootdir_hack
16594" $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 -050016595
Theodore Ts'oe1052142006-10-21 21:46:47 -040016596test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16597 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16599 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16600which seems to be undefined. Please make sure it is defined." >&5
16601echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16602which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016603
Theodore Ts'oe1052142006-10-21 21:46:47 -040016604 rm -f "$tmp/stdin"
16605 case $ac_file in
16606 -) cat "$tmp/out"; rm -f "$tmp/out";;
16607 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16608 esac
16609 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016610
16611
Theodore Ts'oe1052142006-10-21 21:46:47 -040016612 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16613echo "$as_me: executing $ac_file commands" >&6;}
16614 ;;
16615 esac
16616
16617
16618 case $ac_file$ac_mode in
16619 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016620 for ac_file in $CONFIG_FILES; do
16621 # Support "outfile[:infile[:infile...]]"
16622 case "$ac_file" in
16623 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016624 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016625 # PO directories have a Makefile.in generated from Makefile.in.in.
16626 case "$ac_file" in */Makefile.in)
16627 # Adjust a relative srcdir.
16628 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16629 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16630 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16631 # In autoconf-2.13 it is called $ac_given_srcdir.
16632 # In autoconf-2.50 it is called $srcdir.
16633 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16634 case "$ac_given_srcdir" in
16635 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16636 /*) top_srcdir="$ac_given_srcdir" ;;
16637 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16638 esac
16639 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16640 rm -f "$ac_dir/POTFILES"
16641 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16642 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 -050016643 POMAKEFILEDEPS="POTFILES.in"
16644 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016645 # on $ac_dir but don't depend on user-specified configuration
16646 # parameters.
16647 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16648 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016649 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016650 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16651 fi
16652 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16653 # Hide the ALL_LINGUAS assigment from automake.
16654 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016655 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16656 else
16657 # The set of available languages was given in configure.in.
16658 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016659 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016660 # Compute POFILES
16661 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16662 # Compute UPDATEPOFILES
16663 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16664 # Compute DUMMYPOFILES
16665 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16666 # Compute GMOFILES
16667 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016668 case "$ac_given_srcdir" in
16669 .) srcdirpre= ;;
16670 *) srcdirpre='$(srcdir)/' ;;
16671 esac
16672 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016673 UPDATEPOFILES=
16674 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016675 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016676 for lang in $ALL_LINGUAS; do
16677 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016678 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16679 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016680 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016681 done
16682 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16683 # environment variable.
16684 INST_LINGUAS=
16685 if test -n "$ALL_LINGUAS"; then
16686 for presentlang in $ALL_LINGUAS; do
16687 useit=no
16688 if test "%UNSET%" != "$LINGUAS"; then
16689 desiredlanguages="$LINGUAS"
16690 else
16691 desiredlanguages="$ALL_LINGUAS"
16692 fi
16693 for desiredlang in $desiredlanguages; do
16694 # Use the presentlang catalog if desiredlang is
16695 # a. equal to presentlang, or
16696 # b. a variant of presentlang (because in this case,
16697 # presentlang can be used as a fallback for messages
16698 # which are not translated in the desiredlang catalog).
16699 case "$desiredlang" in
16700 "$presentlang"*) useit=yes;;
16701 esac
16702 done
16703 if test $useit = yes; then
16704 INST_LINGUAS="$INST_LINGUAS $presentlang"
16705 fi
16706 done
16707 fi
16708 CATALOGS=
16709 if test -n "$INST_LINGUAS"; then
16710 for lang in $INST_LINGUAS; do
16711 CATALOGS="$CATALOGS $lang.gmo"
16712 done
16713 fi
16714 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016715 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 -040016716 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16717 if test -f "$f"; then
16718 case "$f" in
16719 *.orig | *.bak | *~) ;;
16720 *) cat "$f" >> "$ac_dir/Makefile" ;;
16721 esac
16722 fi
16723 done
16724 fi
16725 ;;
16726 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016727 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016728
Theodore Ts'oe1052142006-10-21 21:46:47 -040016729 esac
16730done # for ac_tag
16731
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016732
16733{ (exit 0); exit 0; }
16734_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016735chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016736ac_clean_files=$ac_clean_files_save
16737
16738
16739# configure is writing to config.log, and then calls config.status.
16740# config.status does its own redirection, appending to config.log.
16741# Unfortunately, on DOS this fails, as config.log is still kept open
16742# by configure, so config.status won't be able to write to it; its
16743# output is simply discarded. So we exec the FD to /dev/null,
16744# effectively closing config.log, so it can be properly (re)opened and
16745# appended to by config.status. When coming back to configure, we
16746# need to make the FD available again.
16747if test "$no_create" != yes; then
16748 ac_cs_success=:
16749 ac_config_status_args=
16750 test "$silent" = yes &&
16751 ac_config_status_args="$ac_config_status_args --quiet"
16752 exec 5>/dev/null
16753 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16754 exec 5>>config.log
16755 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16756 # would make configure fail if this is the last instruction.
16757 $ac_cs_success || { (exit 1); exit 1; }
16758fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016759
Theodore Ts'oee683a12005-02-05 15:53:56 -050016760if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16761