blob: 13c55e13c37806f6d929f243ed5eeb579376b06c [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
687SWAPFS_CMT
688DEBUGFS_CMT
689IMAGER_CMT
690RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400691FSCK_PROG
692FSCK_MAN
693E2INITRD_PROG
694E2INITRD_MAN
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500695PKG_CONFIG
Theodore Ts'oe1052142006-10-21 21:46:47 -0400696DEVMAPPER_REQ
697DEVMAPPER_PC_LIBS
698DEVMAPPER_LIBS
699STATIC_DEVMAPPER_LIBS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500700STATIC_BLKID_DEVMAPPER_LIBS
Theodore Ts'o5610f992007-12-31 11:16:56 -0500701UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400702GETTEXT_PACKAGE
703PACKAGE
704VERSION
705SET_MAKE
706INSTALL_PROGRAM
707INSTALL_SCRIPT
708INSTALL_DATA
709MKINSTALLDIRS
710USE_NLS
711MSGFMT
712GMSGFMT
713XGETTEXT
714MSGMERGE
715RANLIB
716ALLOCA
717GLIBC21
718HAVE_POSIX_PRINTF
719HAVE_ASPRINTF
720HAVE_SNPRINTF
721HAVE_WPRINTF
722LIBICONV
723LTLIBICONV
724INTLBISON
725BUILD_INCLUDED_LIBINTL
726USE_INCLUDED_LIBINTL
727CATOBJEXT
728DATADIRNAME
729INSTOBJEXT
730GENCAT
731INTLOBJS
732INTL_LIBTOOL_SUFFIX_PREFIX
733INTLLIBS
734LIBINTL
735LTLIBINTL
736POSUB
737BINARY_TYPE
738LN
739LN_S
740MV
741CP
742RM
743CHMOD
744AWK
745SED
746PERL
747LDCONFIG
748AR
749STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530750MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400751BUILD_CC
752SIZEOF_SHORT
753SIZEOF_INT
754SIZEOF_LONG
755SIZEOF_LONG_LONG
756SOCKET_LIB
757DLOPEN_LIB
758UNI_DIFF_OPTS
759LINUX_CMT
760CYGWIN_CMT
761UNIX_CMT
762root_prefix
763root_bindir
764root_sbindir
765root_libdir
766root_sysconfdir
767LDFLAG_STATIC
768SS_DIR
769ET_DIR
770DO_TEST_SUITE
771INTL_FLAGS
772BUILD_CFLAGS
773BUILD_LDFLAGS
774LIBOBJS
775LTLIBOBJS'
776ac_subst_files='MCONFIG
777MAKEFILE_ELF
778MAKEFILE_BSDLIB
779MAKEFILE_PROFILE
780MAKEFILE_CHECKER
781MAKEFILE_LIBRARY
782ASM_TYPES_HEADER'
783 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
1375 --disable-swapfs disable support of legacy byte-swapped filesystems
1376 --disable-debugfs disable support of debugfs program
1377 --disable-imager disable support of e2image program
1378 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001379 --enable-fsck build fsck wrapper program
1380 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001381 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001382 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001383 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001384 --disable-nls do not use Native Language Support
1385 --disable-rpath do not hardcode runtime library paths
1386
1387Optional Packages:
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001390 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001391 --with-cc=COMPILER select compiler to use
1392 --with-linker=LINKER select linker to use
1393 --with-ccopts=CCOPTS select compiler command line options
1394 --with-ldopts=LDOPTS select linker command line options
1395 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1396 --with-gnu-ld assume the C compiler uses GNU ld default=no
1397 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1398 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1399 --with-included-gettext use the GNU gettext library included here
1400 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1401 --without-libintl-prefix don't search for libintl in includedir and libdir
1402
1403Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001408 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001411 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001412 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001413
1414Use these variables to override the choices made by `configure' or to help
1415it to find libraries and programs with nonstandard names/locations.
1416
1417_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001419fi
1420
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001424 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001425 ac_builddir=.
1426
Theodore Ts'oe1052142006-10-21 21:46:47 -04001427case "$ac_dir" in
1428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437esac
1438ac_abs_top_builddir=$ac_pwd
1439ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440# for backward compatibility:
1441ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001442
1443case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001444 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001445 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001449 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001456esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001458
Theodore Ts'oe1052142006-10-21 21:46:47 -04001459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467 else
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001471 done
1472fi
1473
Theodore Ts'oe1052142006-10-21 21:46:47 -04001474test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475if $ac_init_version; then
1476 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001477configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001478generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479
Theodore Ts'oe1052142006-10-21 21:46:47 -04001480Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001485 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001486fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001487cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488This file contains any messages produced by compilers while
1489running configure, to aid debugging if configure makes a mistake.
1490
1491It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001492generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493
1494 $ $0 $@
1495
1496_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001497exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001498{
1499cat <<_ASUNAME
1500## --------- ##
1501## Platform. ##
1502## --------- ##
1503
1504hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1505uname -m = `(uname -m) 2>/dev/null || echo unknown`
1506uname -r = `(uname -r) 2>/dev/null || echo unknown`
1507uname -s = `(uname -s) 2>/dev/null || echo unknown`
1508uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509
1510/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1511/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512
1513/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1514/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1515/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001516/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001517/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1518/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1519/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520
1521_ASUNAME
1522
1523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524for as_dir in $PATH
1525do
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 echo "PATH: $as_dir"
1529done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001530IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001531
1532} >&5
1533
1534cat >&5 <<_ACEOF
1535
1536
1537## ----------- ##
1538## Core tests. ##
1539## ----------- ##
1540
1541_ACEOF
1542
1543
1544# Keep a trace of the command line.
1545# Strip out --no-create and --no-recursion so they do not pile up.
1546# Strip out --silent because we don't want to record it for future runs.
1547# Also quote any args containing shell meta-characters.
1548# Make two passes to allow for proper duplicate-argument suppression.
1549ac_configure_args=
1550ac_configure_args0=
1551ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001552ac_must_keep_next=false
1553for ac_pass in 1 2
1554do
1555 for ac_arg
1556 do
1557 case $ac_arg in
1558 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1560 | -silent | --silent | --silen | --sile | --sil)
1561 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001562 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001563 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 esac
1565 case $ac_pass in
1566 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 2)
1568 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1569 if test $ac_must_keep_next = true; then
1570 ac_must_keep_next=false # Got value, back to normal.
1571 else
1572 case $ac_arg in
1573 *=* | --config-cache | -C | -disable-* | --disable-* \
1574 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1575 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1576 | -with-* | --with-* | -without-* | --without-* | --x)
1577 case "$ac_configure_args0 " in
1578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 esac
1580 ;;
1581 -* ) ac_must_keep_next=true ;;
1582 esac
1583 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001584 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585 ;;
1586 esac
1587 done
1588done
1589$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1590$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591
1592# When interrupted or exit'd, cleanup temporary files, and complete
1593# config.log. We remove comments because anyway the quotes in there
1594# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001595# WARNING: Use '\'' to represent an apostrophe within the trap.
1596# 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 -05001597trap 'exit_status=$?
1598 # Save into config.log some information that might help in debugging.
1599 {
1600 echo
1601
1602 cat <<\_ASBOX
1603## ---------------- ##
1604## Cache variables. ##
1605## ---------------- ##
1606_ASBOX
1607 echo
1608 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001609(
1610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in #(
1613 *${as_nl}*)
1614 case $ac_var in #(
1615 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1616echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617 esac
1618 case $ac_var in #(
1619 _ | IFS | as_nl) ;; #(
1620 *) $as_unset $ac_var ;;
1621 esac ;;
1622 esac
1623 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1626 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001627 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001628 "s/'\''/'\''\\\\'\'''\''/g;
1629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634 esac |
1635 sort
1636)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637 echo
1638
1639 cat <<\_ASBOX
1640## ----------------- ##
1641## Output variables. ##
1642## ----------------- ##
1643_ASBOX
1644 echo
1645 for ac_var in $ac_subst_vars
1646 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647 eval ac_val=\$$ac_var
1648 case $ac_val in
1649 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 esac
1651 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001652 done | sort
1653 echo
1654
1655 if test -n "$ac_subst_files"; then
1656 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657## ------------------- ##
1658## File substitutions. ##
1659## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001660_ASBOX
1661 echo
1662 for ac_var in $ac_subst_files
1663 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001664 eval ac_val=\$$ac_var
1665 case $ac_val in
1666 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 esac
1668 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001669 done | sort
1670 echo
1671 fi
1672
1673 if test -s confdefs.h; then
1674 cat <<\_ASBOX
1675## ----------- ##
1676## confdefs.h. ##
1677## ----------- ##
1678_ASBOX
1679 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001680 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001681 echo
1682 fi
1683 test "$ac_signal" != 0 &&
1684 echo "$as_me: caught signal $ac_signal"
1685 echo "$as_me: exit $exit_status"
1686 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001687 rm -f core *.core core.conftest.* &&
1688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001689 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001690' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001691for ac_signal in 1 2 13 15; do
1692 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693done
1694ac_signal=0
1695
1696# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001697rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001698
1699# Predefined preprocessor variables.
1700
1701cat >>confdefs.h <<_ACEOF
1702#define PACKAGE_NAME "$PACKAGE_NAME"
1703_ACEOF
1704
1705
1706cat >>confdefs.h <<_ACEOF
1707#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708_ACEOF
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712#define PACKAGE_VERSION "$PACKAGE_VERSION"
1713_ACEOF
1714
1715
1716cat >>confdefs.h <<_ACEOF
1717#define PACKAGE_STRING "$PACKAGE_STRING"
1718_ACEOF
1719
1720
1721cat >>confdefs.h <<_ACEOF
1722#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723_ACEOF
1724
1725
1726# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001727# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001728if test -n "$CONFIG_SITE"; then
1729 set x "$CONFIG_SITE"
1730elif test "x$prefix" != xNONE; then
1731 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732else
1733 set x "$ac_default_prefix/share/config.site" \
1734 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001736shift
1737for ac_site_file
1738do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001739 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001740 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741echo "$as_me: loading site script $ac_site_file" >&6;}
1742 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001743 . "$ac_site_file"
1744 fi
1745done
1746
1747if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001748 # Some versions of bash will fail to source /dev/null (special
1749 # files actually), so we avoid doing that.
1750 if test -f "$cache_file"; then
1751 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752echo "$as_me: loading cache $cache_file" >&6;}
1753 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001754 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001756 esac
1757 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001758else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001759 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760echo "$as_me: creating cache $cache_file" >&6;}
1761 >$cache_file
1762fi
1763
1764# Check that the precious variables saved in the cache have kept the same
1765# value.
1766ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001767for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001768 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001770 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001772 case $ac_old_set,$ac_new_set in
1773 set,)
1774 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1777 ,set)
1778 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1781 ,);;
1782 *)
1783 if test "x$ac_old_val" != "x$ac_new_val"; then
1784 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1787echo "$as_me: former value: $ac_old_val" >&2;}
1788 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1789echo "$as_me: current value: $ac_new_val" >&2;}
1790 ac_cache_corrupted=:
1791 fi;;
1792 esac
1793 # Pass precious variables to config.status.
1794 if test "$ac_new_set" = set; then
1795 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001796 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001797 *) ac_arg=$ac_var=$ac_new_val ;;
1798 esac
1799 case " $ac_configure_args " in
1800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1801 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 esac
1803 fi
1804done
1805if $ac_cache_corrupted; then
1806 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1807echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1808 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1809echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1810 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001811fi
1812
Theodore Ts'oe1052142006-10-21 21:46:47 -04001813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001830ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001834
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001835
1836
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001837ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001838for ac_dir in config "$srcdir"/config; do
1839 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001840 ac_aux_dir=$ac_dir
1841 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001843 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001844 ac_aux_dir=$ac_dir
1845 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001847 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001848 ac_aux_dir=$ac_dir
1849 ac_install_sh="$ac_aux_dir/shtool install -c"
1850 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001851 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001852done
1853if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001854 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1855echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001856 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001857fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001858
1859# These three variables are undocumented and unsupported,
1860# and are intended to be withdrawn in a future Autoconf release.
1861# They can cause serious problems if a builder's source tree is in a directory
1862# whose full name contains unusual characters.
1863ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1864ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1865ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001867
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001868MCONFIG=./MCONFIG
1869
Theodore Ts'o74becf31997-04-26 14:37:06 +00001870BINARY_TYPE=bin
1871E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1872 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1873DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1874 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001875E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001876MONTH=`echo $DATE | awk -F- '{print $2}'`
1877YEAR=`echo $DATE | awk -F- '{print $3}'`
1878
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001879if expr $YEAR ">" 1900 > /dev/null ; then
1880 E2FSPROGS_YEAR=$YEAR
1881elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001882 E2FSPROGS_YEAR=19$YEAR
1883else
1884 E2FSPROGS_YEAR=20$YEAR
1885fi
1886
1887case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001888Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1889Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1890Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1891Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1892May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1893Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1894Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1895Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1896Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1897Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1898Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1899Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001900*) echo "Unknown month $MONTH??" ;;
1901esac
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'od69e7e22008-02-15 21:28:48 -05001910 pre_vers=`echo $base_ver 0.01 - p | dc`
Andreas Dilger927566a2006-11-12 19:41:25 -05001911 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1912 ;;
1913*)
1914 E2FSPROGS_PKGVER="$base_ver"
1915 ;;
1916esac
1917
1918unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001919echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1920echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1921
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001922
1923
1924
Andreas Dilger927566a2006-11-12 19:41:25 -05001925
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001926# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001927$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1928 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1929echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001930 { (exit 1); exit 1; }; }
1931
Theodore Ts'oe1052142006-10-21 21:46:47 -04001932{ echo "$as_me:$LINENO: checking build system type" >&5
1933echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001934if test "${ac_cv_build+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001937 ac_build_alias=$build_alias
1938test "x$ac_build_alias" = x &&
1939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1940test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001941 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1942echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1943 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001944ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1945 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1946echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001947 { (exit 1); exit 1; }; }
1948
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001949fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001950{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1951echo "${ECHO_T}$ac_cv_build" >&6; }
1952case $ac_cv_build in
1953*-*-*) ;;
1954*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1955echo "$as_me: error: invalid value of canonical build" >&2;}
1956 { (exit 1); exit 1; }; };;
1957esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001958build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001959ac_save_IFS=$IFS; IFS='-'
1960set x $ac_cv_build
1961shift
1962build_cpu=$1
1963build_vendor=$2
1964shift; shift
1965# Remember, the first character of IFS is used to create $*,
1966# except with old shells:
1967build_os=$*
1968IFS=$ac_save_IFS
1969case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001970
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001971
Theodore Ts'oe1052142006-10-21 21:46:47 -04001972{ echo "$as_me:$LINENO: checking host system type" >&5
1973echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001974if test "${ac_cv_host+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001977 if test "x$host_alias" = x; then
1978 ac_cv_host=$ac_cv_build
1979else
1980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1982echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001983 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001984fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001987{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988echo "${ECHO_T}$ac_cv_host" >&6; }
1989case $ac_cv_host in
1990*-*-*) ;;
1991*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1992echo "$as_me: error: invalid value of canonical host" >&2;}
1993 { (exit 1); exit 1; }; };;
1994esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001995host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001996ac_save_IFS=$IFS; IFS='-'
1997set x $ac_cv_host
1998shift
1999host_cpu=$1
2000host_vendor=$2
2001shift; shift
2002# Remember, the first character of IFS is used to create $*,
2003# except with old shells:
2004host_os=$*
2005IFS=$ac_save_IFS
2006case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002007
2008
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002009
Theodore Ts'oe1052142006-10-21 21:46:47 -04002010# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002011if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002012 withval=$with_diet_libc; CC="diet cc -nostdinc"
2013{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2014echo "${ECHO_T}CC=$CC" >&6; }
2015fi
2016
2017# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002018if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002019 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2020echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002021CC=$withval
2022else
2023 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002024{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2025echo "${ECHO_T}CC defaults to $CC" >&6; }
2026fi
2027export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002029ac_ext=c
2030ac_cpp='$CPP $CPPFLAGS'
2031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002039if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002041else
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002051 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 -05002052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2055 fi
2056done
2057done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002060fi
2061fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002062CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002063if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002064 { echo "$as_me:$LINENO: result: $CC" >&5
2065echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002066else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002067 { echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069fi
2070
Theodore Ts'oe1052142006-10-21 21:46:47 -04002071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002072fi
2073if test -z "$ac_cv_prog_CC"; then
2074 ac_ct_CC=$CC
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002091 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 -05002092 ac_cv_prog_ac_ct_CC="gcc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096done
2097done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002098IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002099
2100fi
2101fi
2102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002106else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002107 { echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002109fi
2110
Theodore Ts'oe1052142006-10-21 21:46:47 -04002111 if test "x$ac_ct_CC" = x; then
2112 CC=""
2113 else
2114 case $cross_compiling:$ac_tool_warned in
2115yes:)
2116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117whose name does not start with the host triplet. If you think this
2118configuration is useful to you, please write to autoconf@gnu.org." >&5
2119echo "$as_me: 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." >&2;}
2122ac_tool_warned=yes ;;
2123esac
2124 CC=$ac_ct_CC
2125 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002126else
2127 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002128fi
2129
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002130if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002131 if test -n "$ac_tool_prefix"; then
2132 # 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 -05002133set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002138else
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002148 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 -05002149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153done
2154done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002155IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002156
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002161 { echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002163else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002164 { echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002166fi
2167
Theodore Ts'oe1052142006-10-21 21:46:47 -04002168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002169 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002170fi
2171if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002176if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002182 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002189 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 -05002190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2192 continue
2193 fi
2194 ac_cv_prog_CC="cc"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
2199done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002200IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002201
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002202if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002206 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002212 fi
2213fi
2214fi
2215fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002216CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002217if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002218 { echo "$as_me:$LINENO: result: $CC" >&5
2219echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002220else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002221 { echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002223fi
2224
Theodore Ts'oe1052142006-10-21 21:46:47 -04002225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002226fi
2227if test -z "$CC"; then
2228 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002229 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002230 do
2231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002237else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002247 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 -05002248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2251 fi
2252done
2253done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002254IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002255
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256fi
2257fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002258CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002260 { echo "$as_me:$LINENO: result: $CC" >&5
2261echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002262else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002263 { echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002265fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002266
Theodore Ts'oe1052142006-10-21 21:46:47 -04002267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002268 test -n "$CC" && break
2269 done
2270fi
2271if test -z "$CC"; then
2272 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002273 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002274do
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002279if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284else
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002291 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 -05002292 ac_cv_prog_ac_ct_CC="$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002295 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002296done
2297done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002298IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002299
2300fi
2301fi
2302ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002307 { echo "$as_me:$LINENO: result: no" >&5
2308echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002309fi
2310
Theodore Ts'oe1052142006-10-21 21:46:47 -04002311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002312 test -n "$ac_ct_CC" && break
2313done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002314
Theodore Ts'oe1052142006-10-21 21:46:47 -04002315 if test "x$ac_ct_CC" = x; then
2316 CC=""
2317 else
2318 case $cross_compiling:$ac_tool_warned in
2319yes:)
2320{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321whose name does not start with the host triplet. If you think this
2322configuration is useful to you, please write to autoconf@gnu.org." >&5
2323echo "$as_me: 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." >&2;}
2326ac_tool_warned=yes ;;
2327esac
2328 CC=$ac_ct_CC
2329 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002332fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002333
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002335test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: no acceptable C compiler found in \$PATH
2338See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2340
2341# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002342echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002343ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002344{ (ac_try="$ac_compiler --version >&5"
2345case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
2349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002354{ (ac_try="$ac_compiler -v >&5"
2355case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358esac
2359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002364{ (ac_try="$ac_compiler -V >&5"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2374
2375cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381
2382int
2383main ()
2384{
2385
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390ac_clean_files_save=$ac_clean_files
2391ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392# Try to create an executable without -o first, disregard a.out.
2393# It will help us diagnose broken compilers, and finding out an intuition
2394# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2396echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002397ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002398#
2399# List of possible output files, starting from the most likely.
2400# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2401# only as a last resort. b.out is created by i960 compilers.
2402ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2403#
2404# The IRIX 6 linker writes into existing files which may not be
2405# executable, retaining their permissions. Remove them first so a
2406# subsequent execution test works.
2407ac_rmfiles=
2408for ac_file in $ac_files
2409do
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2413 esac
2414done
2415rm -f $ac_rmfiles
2416
2417if { (ac_try="$ac_link_default"
2418case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421esac
2422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2429# in a Makefile. We should not override ac_cv_exeext if it was cached,
2430# so that the user can short-circuit this test for compilers unknown to
2431# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002432for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433do
2434 test -f "$ac_file" || continue
2435 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437 ;;
2438 [ab].out )
2439 # We found the default executable, but exeext='' is most
2440 # certainly right.
2441 break;;
2442 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2444 then :; else
2445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446 fi
2447 # We set ac_cv_exeext here because the later test for it is not
2448 # safe: cross compilers may not add the suffix if given an `-o'
2449 # argument, so we may need to know it at that point already.
2450 # Even if this section looks crufty: it has the advantage of
2451 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452 break;;
2453 * )
2454 break;;
2455 esac
2456done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002457test "$ac_cv_exeext" = no && ac_cv_exeext=
2458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002460 ac_file=''
2461fi
2462
2463{ echo "$as_me:$LINENO: result: $ac_file" >&5
2464echo "${ECHO_T}$ac_file" >&6; }
2465if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466 echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470See \`config.log' for more details." >&5
2471echo "$as_me: error: C compiler cannot create executables
2472See \`config.log' for more details." >&2;}
2473 { (exit 77); exit 77; }; }
2474fi
2475
2476ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477
Theodore Ts'oe1052142006-10-21 21:46:47 -04002478# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2481echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2483# If not cross compiling, check that we can run a simple program.
2484if test "$cross_compiling" != yes; then
2485 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002496 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 if test "$cross_compiling" = maybe; then
2498 cross_compiling=yes
2499 else
2500 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2501If you meant to cross compile, use \`--host'.
2502See \`config.log' for more details." >&5
2503echo "$as_me: error: cannot run C compiled programs.
2504If you meant to cross compile, use \`--host'.
2505See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2507 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002508 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510{ echo "$as_me:$LINENO: result: yes" >&5
2511echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513rm -f a.out a.exe conftest$ac_cv_exeext b.out
2514ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002517{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2518echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2519{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2520echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002521
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2523echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2524if { (ac_try="$ac_link"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536# work properly (i.e., refer to `conftest.exe'), while it won't with
2537# `rm'.
2538for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 break;;
2544 * ) break;;
2545 esac
2546done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002547else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2549See \`config.log' for more details." >&5
2550echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2551See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2553fi
2554
2555rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2557echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558
2559rm -f conftest.$ac_ext
2560EXEEXT=$ac_cv_exeext
2561ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564if test "${ac_cv_objext+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 cat >conftest.$ac_ext <<_ACEOF
2568/* confdefs.h. */
2569_ACEOF
2570cat confdefs.h >>conftest.$ac_ext
2571cat >>conftest.$ac_ext <<_ACEOF
2572/* end confdefs.h. */
2573
2574int
2575main ()
2576{
2577
2578 ;
2579 return 0;
2580}
2581_ACEOF
2582rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002583if { (ac_try="$ac_compile"
2584case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002593 for ac_file in conftest.o conftest.obj conftest.*; do
2594 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598 break;;
2599 esac
2600done
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606See \`config.log' for more details." >&5
2607echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610fi
2611
2612rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002614{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002616OBJEXT=$ac_cv_objext
2617ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002618{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623 cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629
2630int
2631main ()
2632{
2633#ifndef __GNUC__
2634 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002635#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002642if { (ac_try="$ac_compile"
2643case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646esac
2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002659else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660 echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
Theodore Ts'oe1052142006-10-21 21:46:47 -04002663 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002670{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672GCC=`test $ac_compiler_gnu = yes && echo yes`
2673ac_test_CFLAGS=${CFLAGS+set}
2674ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002675{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002677if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002679else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002680 ac_save_c_werror_flag=$ac_c_werror_flag
2681 ac_c_werror_flag=yes
2682 ac_cv_prog_cc_g=no
2683 CFLAGS="-g"
2684 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002685/* confdefs.h. */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h. */
2690
2691int
2692main ()
2693{
2694
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002700if { (ac_try="$ac_compile"
2701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707 ac_status=$?
2708 grep -v '^ *+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002716 ac_cv_prog_cc_g=yes
2717else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002718 echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002720
Theodore Ts'oe1052142006-10-21 21:46:47 -04002721 CFLAGS=""
2722 cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h. */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h. */
2728
2729int
2730main ()
2731{
2732
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (ac_try="$ac_compile"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002754 :
2755else
2756 echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 ac_c_werror_flag=$ac_save_c_werror_flag
2760 CFLAGS="-g"
2761 cat >conftest.$ac_ext <<_ACEOF
2762/* confdefs.h. */
2763_ACEOF
2764cat confdefs.h >>conftest.$ac_ext
2765cat >>conftest.$ac_ext <<_ACEOF
2766/* end confdefs.h. */
2767
2768int
2769main ()
2770{
2771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (ac_try="$ac_compile"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002793 ac_cv_prog_cc_g=yes
2794else
2795 echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002803
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805fi
2806
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2809fi
2810{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002812if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002813 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002814elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2816 CFLAGS="-g -O2"
2817 else
2818 CFLAGS="-g"
2819 fi
2820else
2821 if test "$GCC" = yes; then
2822 CFLAGS="-O2"
2823 else
2824 CFLAGS=
2825 fi
2826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2828echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2829if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002833ac_save_CC=$CC
2834cat >conftest.$ac_ext <<_ACEOF
2835/* confdefs.h. */
2836_ACEOF
2837cat confdefs.h >>conftest.$ac_ext
2838cat >>conftest.$ac_ext <<_ACEOF
2839/* end confdefs.h. */
2840#include <stdarg.h>
2841#include <stdio.h>
2842#include <sys/types.h>
2843#include <sys/stat.h>
2844/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845struct buf { int x; };
2846FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847static char *e (p, i)
2848 char **p;
2849 int i;
2850{
2851 return p[i];
2852}
2853static char *f (char * (*g) (char **, int), char **p, ...)
2854{
2855 char *s;
2856 va_list v;
2857 va_start (v,p);
2858 s = g (p, va_arg (v,int));
2859 va_end (v);
2860 return s;
2861}
2862
2863/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873 inside strings and character constants. */
2874#define FOO(x) 'x'
2875int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877int test (int i, double x);
2878struct s1 {int (*f) (int a);};
2879struct s2 {int (*f) (double a);};
2880int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881int argc;
2882char **argv;
2883int
2884main ()
2885{
2886return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2887 ;
2888 return 0;
2889}
2890_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002891for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893do
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002896if { (ac_try="$ac_compile"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002903 ac_status=$?
2904 grep -v '^ *+' conftest.er1 >conftest.err
2905 rm -f conftest.er1
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002908 (exit $ac_status); } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002912 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913else
2914 echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002919
2920rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002923rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924CC=$ac_save_CC
2925
2926fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002927# AC_CACHE_VAL
2928case "x$ac_cv_prog_cc_c89" in
2929 x)
2930 { echo "$as_me:$LINENO: result: none needed" >&5
2931echo "${ECHO_T}none needed" >&6; } ;;
2932 xno)
2933 { echo "$as_me:$LINENO: result: unsupported" >&5
2934echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002936 CC="$CC $ac_cv_prog_cc_c89"
2937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939esac
2940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948ac_ext=c
2949ac_cpp='$CPP $CPPFLAGS'
2950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002953{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2954echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002955# On Suns, sometimes $CPP names a directory.
2956if test -n "$CPP" && test -d "$CPP"; then
2957 CPP=
2958fi
2959if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960 if test "${ac_cv_prog_CPP+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963 # Double quotes because CPP needs to be expanded
2964 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965 do
2966 ac_preproc_ok=false
2967for ac_c_preproc_warn_flag in '' yes
2968do
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002973 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002974 # not just through cpp. "Syntax error" is here to catch this case.
2975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h. */
2981#ifdef __STDC__
2982# include <limits.h>
2983#else
2984# include <assert.h>
2985#endif
2986 Syntax error
2987_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002988if { (ac_try="$ac_cpp conftest.$ac_ext"
2989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003000 (exit $ac_status); } >/dev/null && {
3001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003004 :
3005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003008
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003009 # Broken: fails on valid input.
3010continue
3011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013rm -f conftest.err conftest.$ac_ext
3014
Theodore Ts'oe1052142006-10-21 21:46:47 -04003015 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016 # can be detected and how.
3017 cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023#include <ac_nonexistent.h>
3024_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003025if { (ac_try="$ac_cpp conftest.$ac_ext"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003037 (exit $ac_status); } >/dev/null && {
3038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 # Broken: success on invalid input.
3042continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 # Passes both tests.
3048ac_preproc_ok=:
3049break
3050fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003052rm -f conftest.err conftest.$ac_ext
3053
3054done
3055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056rm -f conftest.err conftest.$ac_ext
3057if $ac_preproc_ok; then
3058 break
3059fi
3060
3061 done
3062 ac_cv_prog_CPP=$CPP
3063
3064fi
3065 CPP=$ac_cv_prog_CPP
3066else
3067 ac_cv_prog_CPP=$CPP
3068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003069{ echo "$as_me:$LINENO: result: $CPP" >&5
3070echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071ac_preproc_ok=false
3072for ac_c_preproc_warn_flag in '' yes
3073do
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091 Syntax error
3092_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003093if { (ac_try="$ac_cpp conftest.$ac_ext"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109 :
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 # Broken: fails on valid input.
3115continue
3116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118rm -f conftest.err conftest.$ac_ext
3119
Theodore Ts'oe1052142006-10-21 21:46:47 -04003120 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <ac_nonexistent.h>
3129_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003130if { (ac_try="$ac_cpp conftest.$ac_ext"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003146 # Broken: success on invalid input.
3147continue
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Passes both tests.
3153ac_preproc_ok=:
3154break
3155fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157rm -f conftest.err conftest.$ac_ext
3158
3159done
3160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161rm -f conftest.err conftest.$ac_ext
3162if $ac_preproc_ok; then
3163 :
3164else
3165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166See \`config.log' for more details." >&5
3167echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3170fi
3171
3172ac_ext=c
3173ac_cpp='$CPP $CPPFLAGS'
3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003179# Check whether --with-linker was given.
3180if test "${with_linker+set}" = set; then
3181 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3182echo "${ECHO_T}LD=$withval" >&6; }
3183LD=$withval
3184else
3185 if test -z "$LD" ; then LD=$CC; fi
3186{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3187echo "${ECHO_T}LD defaults to $LD" >&6; }
3188fi
3189export LD
3190
3191
3192# Check whether --with-ccopts was given.
3193if test "${with_ccopts+set}" = set; then
3194 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3195echo "${ECHO_T}CCOPTS is $withval" >&6; }
3196CFLAGS=$withval
3197fi
3198
3199
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003205 # Extract the first word of "grep ggrep" to use in msg output
3206if test -z "$GREP"; then
3207set dummy grep ggrep; ac_prog_name=$2
3208if test "${ac_cv_path_GREP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 ac_path_GREP_found=false
3212# Loop through the user's path and test for each of PROGNAME-LIST
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_prog in grep ggrep; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003222 # Check for GNU ac_path_GREP and select it if it is found.
3223 # Check for GNU $ac_path_GREP
3224case `"$ac_path_GREP" --version 2>&1` in
3225*GNU*)
3226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227*)
3228 ac_count=0
3229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230 while :
3231 do
3232 cat "conftest.in" "conftest.in" >"conftest.tmp"
3233 mv "conftest.tmp" "conftest.in"
3234 cp "conftest.in" "conftest.nl"
3235 echo 'GREP' >> "conftest.nl"
3236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238 ac_count=`expr $ac_count + 1`
3239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240 # Best one so far, save it but keep looking for a better one
3241 ac_cv_path_GREP="$ac_path_GREP"
3242 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003243 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003244 # 10*(2^10) chars as input seems more than enough
3245 test $ac_count -gt 10 && break
3246 done
3247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248esac
3249
3250
3251 $ac_path_GREP_found && break 3
3252 done
3253done
3254
3255done
3256IFS=$as_save_IFS
3257
3258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260
3261GREP="$ac_cv_path_GREP"
3262if test -z "$GREP"; then
3263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265 { (exit 1); exit 1; }; }
3266fi
3267
3268else
3269 ac_cv_path_GREP=$GREP
3270fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271
3272
Theodore Ts'oe1052142006-10-21 21:46:47 -04003273fi
3274{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
3277
3278
3279{ echo "$as_me:$LINENO: checking for egrep" >&5
3280echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281if test "${ac_cv_path_EGREP+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285 then ac_cv_path_EGREP="$GREP -E"
3286 else
3287 # Extract the first word of "egrep" to use in msg output
3288if test -z "$EGREP"; then
3289set dummy egrep; ac_prog_name=$2
3290if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293 ac_path_EGREP_found=false
3294# Loop through the user's path and test for each of PROGNAME-LIST
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_prog in egrep; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003304 # Check for GNU ac_path_EGREP and select it if it is found.
3305 # Check for GNU $ac_path_EGREP
3306case `"$ac_path_EGREP" --version 2>&1` in
3307*GNU*)
3308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309*)
3310 ac_count=0
3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 while :
3313 do
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
3317 echo 'EGREP' >> "conftest.nl"
3318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_EGREP="$ac_path_EGREP"
3324 ac_path_EGREP_max=$ac_count
3325 fi
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3328 done
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330esac
3331
3332
3333 $ac_path_EGREP_found && break 3
3334 done
3335done
3336
3337done
3338IFS=$as_save_IFS
3339
3340
3341fi
3342
3343EGREP="$ac_cv_path_EGREP"
3344if test -z "$EGREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347 { (exit 1); exit 1; }; }
3348fi
3349
3350else
3351 ac_cv_path_EGREP=$EGREP
3352fi
3353
3354
3355 fi
3356fi
3357{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359 EGREP="$ac_cv_path_EGREP"
3360
3361
3362{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003364if test "${ac_cv_header_stdc+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367 cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#include <stdlib.h>
3374#include <stdarg.h>
3375#include <string.h>
3376#include <float.h>
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003387if { (ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403 ac_cv_header_stdc=yes
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
Theodore Ts'oe1052142006-10-21 21:46:47 -04003408 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003410
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412
3413if test $ac_cv_header_stdc = yes; then
3414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#include <string.h>
3422
3423_ACEOF
3424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "memchr" >/dev/null 2>&1; then
3426 :
3427else
3428 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003429fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003430rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003432fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433
3434if test $ac_cv_header_stdc = yes; then
3435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#include <stdlib.h>
3443
3444_ACEOF
3445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "free" >/dev/null 2>&1; then
3447 :
3448else
3449 ac_cv_header_stdc=no
3450fi
3451rm -f conftest*
3452
3453fi
3454
3455if test $ac_cv_header_stdc = yes; then
3456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457 if test "$cross_compiling" = yes; then
3458 :
3459else
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003467#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468#if ((' ' & 0x0FF) == 0x020)
3469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471#else
3472# define ISLOWER(c) \
3473 (('a' <= (c) && (c) <= 'i') \
3474 || ('j' <= (c) && (c) <= 'r') \
3475 || ('s' <= (c) && (c) <= 'z'))
3476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477#endif
3478
3479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480int
3481main ()
3482{
3483 int i;
3484 for (i = 0; i < 256; i++)
3485 if (XOR (islower (i), ISLOWER (i))
3486 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487 return 2;
3488 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489}
3490_ACEOF
3491rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003492if { (ac_try="$ac_link"
3493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 :
3512else
3513 echo "$as_me: program exited with status $ac_status" >&5
3514echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517( exit $ac_status )
3518ac_cv_header_stdc=no
3519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521fi
3522
3523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524fi
3525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528if test $ac_cv_header_stdc = yes; then
3529
3530cat >>confdefs.h <<\_ACEOF
3531#define STDC_HEADERS 1
3532_ACEOF
3533
3534fi
3535
3536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547 inttypes.h stdint.h unistd.h
3548do
3549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h. */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h. */
3561$ac_includes_default
3562
3563#include <$ac_header>
3564_ACEOF
3565rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003566if { (ac_try="$ac_compile"
3567case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003578 (exit $ac_status); } && {
3579 test -z "$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582 eval "$as_ac_Header=yes"
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003589
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003592ac_res=`eval echo '${'$as_ac_Header'}'`
3593 { echo "$as_me:$LINENO: result: $ac_res" >&5
3594echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003595if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598_ACEOF
3599
3600fi
3601
3602done
3603
3604
3605if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003606 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3607echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003611{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3612echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003613else
3614 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3616echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003617cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h. */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h. */
3623$ac_includes_default
3624#include <linux/fs.h>
3625_ACEOF
3626rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003627if { (ac_try="$ac_compile"
3628case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631esac
3632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643 ac_header_compiler=yes
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
Theodore Ts'oe1052142006-10-21 21:46:47 -04003648 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3653echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003654
3655# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3657echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003658cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
3664#include <linux/fs.h>
3665_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003666if { (ac_try="$ac_cpp conftest.$ac_ext"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682 ac_header_preproc=yes
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_header_preproc=no
3688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003690rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003691{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003693
3694# So? What about this header?
3695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3696 yes:no: )
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3698echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3700echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3701 ac_header_preproc=yes
3702 ;;
3703 no:yes:* )
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3705echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3707echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3709echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3711echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3713echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3715echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003717 ;;
3718esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003719{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3720echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003721if test "${ac_cv_header_linux_fs_h+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724 ac_cv_header_linux_fs_h=$ac_header_preproc
3725fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003726{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3727echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003728
3729fi
3730if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003731 linux_headers=yes
3732else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003734fi
3735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003736
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003737if test "$linux_headers" != yes; then
3738 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003739fi
3740
Theodore Ts'oe1052142006-10-21 21:46:47 -04003741{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3742echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003743if test "$GCC" = yes
3744then
3745 case "$host_cpu" in
3746 alpha) addcflags="-mieee" ;;
3747 esac
3748fi
3749if test "x$addcflags" != x
3750then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003751 { echo "$as_me:$LINENO: result: $addcflags" >&5
3752echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003753 CFLAGS="$addcflags $CFLAGS"
3754else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003755 { echo "$as_me:$LINENO: result: (none)" >&5
3756echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003757fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003758LIB_EXT=.a
3759STATIC_LIB_EXT=.a
3760PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003761
Theodore Ts'oe1052142006-10-21 21:46:47 -04003762# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003763if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003764 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3765echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003766LDFLAGS=$withval
3767else
3768 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003770
Theodore Ts'oe1052142006-10-21 21:46:47 -04003771
3772# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003773if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003774 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003775else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003776 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003777fi
3778# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003779if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003780 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003781then
3782 MAINTAINER_CMT=#
3783 echo "Disabling maintainer mode"
3784else
3785 MAINTAINER_CMT=
3786 echo "Enabling maintainer mode"
3787fi
3788
3789else
3790 MAINTAINER_CMT=#
3791echo "Disabling maintainer mode by default"
3792
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003794
Theodore Ts'oe1052142006-10-21 21:46:47 -04003795
3796# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003797if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003798 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003799then
3800 echo "Disabling compression support"
3801else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003802 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003803#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003804_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003805
3806 echo "Enabling compression support"
3807 echo "WARNING: Compression support is experimental"
3808fi
3809
3810else
3811 echo "Disabling compression support by default"
3812
Theodore Ts'oe1052142006-10-21 21:46:47 -04003813fi
3814
3815# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003816if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003817 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003818then
3819 HTREE_CMT=#
3820 echo "Disabling htree directory support"
3821else
3822 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003823 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003824#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003825_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003826
3827 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003828fi
3829
3830else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003831 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003832cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003833#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003834_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003835
3836echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003837
Theodore Ts'oe1052142006-10-21 21:46:47 -04003838fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003839
Theodore Ts'oe1052142006-10-21 21:46:47 -04003840
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003841E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003842# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003843if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003844 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003845then
3846 ELF_CMT=#
3847 MAKEFILE_ELF=/dev/null
3848 echo "Disabling ELF shared libraries"
3849else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003850 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003851 ELF_CMT=
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003853 case "$host_os" in
3854 solaris2.*)
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3856 ;;
3857 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003858 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003859 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003860 echo "Enabling ELF shared libraries"
3861fi
3862
3863else
3864 MAKEFILE_ELF=/dev/null
3865ELF_CMT=#
3866echo "Disabling ELF shared libraries by default"
3867
Theodore Ts'oe1052142006-10-21 21:46:47 -04003868fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003869
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003870
Theodore Ts'oe1052142006-10-21 21:46:47 -04003871
3872# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003873if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003874 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003875then
3876 BSDLIB_CMT=#
3877 MAKEFILE_BSDLIB=/dev/null
3878 echo "Disabling BSD shared libraries"
3879else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003880 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003881 BSDLIB_CMT=
3882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003883 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003884 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003885 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3887 LIB_EXT=.dylib
3888 ;;
3889 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003890 echo "Enabling BSD shared libraries"
3891fi
3892
3893else
3894 MAKEFILE_BSDLIB=/dev/null
3895BSDLIB_CMT=#
3896echo "Disabling BSD shared libraries by default"
3897
Theodore Ts'oe1052142006-10-21 21:46:47 -04003898fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003899
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003900
Theodore Ts'oe1052142006-10-21 21:46:47 -04003901
3902# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003903if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003904 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003905then
3906 PROFILE_CMT=#
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries"
3909else
3910 PROFILE_CMT=
3911 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3912 PROFILED_LIB_EXT=_p.a
3913 echo "Building profiling libraries"
3914fi
3915
3916else
3917 PROFILE_CMT=#
3918MAKEFILE_PROFILE=/dev/null
3919echo "Disabling profiling libraries by default"
3920
Theodore Ts'oe1052142006-10-21 21:46:47 -04003921fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003922
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003923
Theodore Ts'oe1052142006-10-21 21:46:47 -04003924
3925# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003926if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003927 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003928then
3929 CHECKER_CMT=#
3930 MAKEFILE_CHECKER=/dev/null
3931 echo "Disabling checker libraries"
3932else
3933 CHECKER_CMT=
3934 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3935 echo "Building checker libraries"
3936fi
3937
3938else
3939 CHECKER_CMT=#
3940MAKEFILE_CHECKER=/dev/null
3941echo "Disabling checker libraries by default"
3942
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003944
3945
3946
3947
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003948
Theodore Ts'oe1052142006-10-21 21:46:47 -04003949
3950# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003951if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003952 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003953then
3954 echo "Disabling journal debugging"
3955else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003956 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003957#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003958_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003959
3960 echo "Enabling journal debugging"
3961fi
3962
3963else
3964 echo "Disabling journal debugging by default"
3965
Theodore Ts'oe1052142006-10-21 21:46:47 -04003966fi
3967
3968# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003969if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003970 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003971then
3972 echo "Disabling blkid debugging"
3973else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003974 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003975#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003976_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003977
3978 echo "Enabling blkid debugging"
3979fi
3980
3981else
3982 echo "Disabling blkid debugging by default"
3983
Theodore Ts'oe1052142006-10-21 21:46:47 -04003984fi
3985
3986# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003987if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003988 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003989then
3990 echo "Disabling testio debugging"
3991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003992 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003993#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003994_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003995
3996 echo "Enabling testio debugging"
3997fi
3998
3999else
4000 echo "Disabling testio debugging by default"
4001
Theodore Ts'oe1052142006-10-21 21:46:47 -04004002fi
4003
4004# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004005if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004006 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004007then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004008 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004009 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004010else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004011 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004012 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004013#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004014_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004015
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004016 echo "Enabling swapfs support"
4017fi
4018
4019else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004020 SWAPFS_CMT=
4021echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004022cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004023#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004024_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004025
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004026
Theodore Ts'oe1052142006-10-21 21:46:47 -04004027fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004028
Theodore Ts'oe1052142006-10-21 21:46:47 -04004029
4030# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004031if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004032 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004033then
4034 echo "Disabling debugfs support"
4035 DEBUGFS_CMT="#"
4036else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004037 DEBUGFS_CMT=
4038 echo "Enabling debugfs support"
4039fi
4040
4041else
4042 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004043DEBUGFS_CMT=
4044
Theodore Ts'oe1052142006-10-21 21:46:47 -04004045fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046
Theodore Ts'oe1052142006-10-21 21:46:47 -04004047
4048# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004049if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004050 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004051then
4052 echo "Disabling e2image support"
4053 IMAGER_CMT="#"
4054else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004055 IMAGER_CMT=
4056 echo "Enabling e2image support"
4057fi
4058
4059else
4060 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004061IMAGER_CMT=
4062
Theodore Ts'oe1052142006-10-21 21:46:47 -04004063fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004064
Theodore Ts'oe1052142006-10-21 21:46:47 -04004065
4066# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004067if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004068 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004069then
4070 echo "Disabling e2resize support"
4071 RESIZER_CMT="#"
4072else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004073 RESIZER_CMT=
4074 echo "Enabling e2resize support"
4075fi
4076
4077else
4078 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004079RESIZER_CMT=
4080
Theodore Ts'oe1052142006-10-21 21:46:47 -04004081fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004082
Theodore Ts'oe1052142006-10-21 21:46:47 -04004083
Theodore Ts'oe1052142006-10-21 21:46:47 -04004084# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004085if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004086 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004087then
4088 FSCK_PROG='' FSCK_MAN=''
4089 echo "Not building fsck wrapper"
4090else
4091 FSCK_PROG=fsck FSCK_MAN=fsck.8
4092 echo "Building fsck wrapper"
4093fi
4094
4095else
4096 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004097 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004098 FSCK_PROG='' FSCK_MAN=''
4099 echo "Not building fsck wrapper by default"
4100 ;;
4101 *)
4102 FSCK_PROG=fsck FSCK_MAN=fsck.8
4103 echo "Building fsck wrapper by default"
4104esac
4105
Theodore Ts'oe1052142006-10-21 21:46:47 -04004106fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004107
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004108
Theodore Ts'oe1052142006-10-21 21:46:47 -04004109
4110# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004111if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004112 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004113then
4114 E2INITRD_PROG='' E2INITRD_MAN=''
4115 echo "Not building e2initrd helper"
4116else
4117 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4118 echo "Building e2initrd helper"
4119fi
4120
4121else
4122 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4123echo "Building e2initrd helper by default"
4124
Theodore Ts'oe1052142006-10-21 21:46:47 -04004125fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004126
4127
Theodore Ts'oe1052142006-10-21 21:46:47 -04004128
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004129STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004130# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004131if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004132 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004133then
4134 echo "Disabling device-mapper support"
4135 DEVMAPPER_REQ=''
4136 DEVMAPPER_LIBS=''
4137 STATIC_DEVMAPPER_LIBS=''
4138else
4139 cat >>confdefs.h <<\_ACEOF
4140#define HAVE_DEVMAPPER 1
4141_ACEOF
4142
4143 echo "Enabling device-mapper support"
4144
Karel Zak4db2f592006-03-08 14:17:28 -05004145
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004146
4147if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156 case $PKG_CONFIG in
4157 [\\/]* | ?:[\\/]*)
4158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4159 ;;
4160 *)
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172done
4173done
4174IFS=$as_save_IFS
4175
4176 ;;
4177esac
4178fi
4179PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4180if test -n "$PKG_CONFIG"; then
4181 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4182echo "${ECHO_T}$PKG_CONFIG" >&6; }
4183else
4184 { echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6; }
4186fi
4187
4188
4189fi
4190if test -z "$ac_cv_path_PKG_CONFIG"; then
4191 ac_pt_PKG_CONFIG=$PKG_CONFIG
4192 # Extract the first word of "pkg-config", so it can be a program name with args.
4193set dummy pkg-config; ac_word=$2
4194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199 case $ac_pt_PKG_CONFIG in
4200 [\\/]* | ?:[\\/]*)
4201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4202 ;;
4203 *)
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216done
4217IFS=$as_save_IFS
4218
4219 ;;
4220esac
4221fi
4222ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4223if test -n "$ac_pt_PKG_CONFIG"; then
4224 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4225echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4226else
4227 { echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6; }
4229fi
4230
4231 if test "x$ac_pt_PKG_CONFIG" = x; then
4232 PKG_CONFIG=""
4233 else
4234 case $cross_compiling:$ac_tool_warned in
4235yes:)
4236{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4237whose name does not start with the host triplet. If you think this
4238configuration is useful to you, please write to autoconf@gnu.org." >&5
4239echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4240whose name does not start with the host triplet. If you think this
4241configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4242ac_tool_warned=yes ;;
4243esac
4244 PKG_CONFIG=$ac_pt_PKG_CONFIG
4245 fi
4246else
4247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4248fi
4249
4250fi
4251if test -n "$PKG_CONFIG"; then
4252 _pkg_min_version=0.9.0
4253 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4254echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4256 { echo "$as_me:$LINENO: result: yes" >&5
4257echo "${ECHO_T}yes" >&6; }
4258 else
4259 { echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6; }
4261 PKG_CONFIG=""
4262 fi
4263
4264fi
4265
4266 if test -z "$PKG_CONFIG"; then
4267 echo "pkg-config not installed; please install it."
4268 exit 1;
4269 fi
4270
4271 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4272echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4273if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276 ac_check_lib_save_LIBS=$LIBS
4277LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4278cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
4284
4285/* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4288#ifdef __cplusplus
4289extern "C"
4290#endif
4291char dm_tree_create ();
4292int
4293main ()
4294{
4295return dm_tree_create ();
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext conftest$ac_exeext
4301if { (ac_try="$ac_link"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_link") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest$ac_exeext &&
4317 $as_test_x conftest$ac_exeext; then
4318 ac_cv_lib_devmapper_dm_tree_create=yes
4319else
4320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 ac_cv_lib_devmapper_dm_tree_create=no
4324fi
4325
4326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327 conftest$ac_exeext conftest.$ac_ext
4328LIBS=$ac_check_lib_save_LIBS
4329fi
4330{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4331echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4332if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4333 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4334 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4335 DEVMAPPER_REQ="devmapper";
4336 DEVMAPPER_PC_LIBS="-ldevmapper"
4337else
4338 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4339echo "$as_me: error: device-mapper library not found" >&2;}
4340 { (exit 1); exit 1; }; }
4341fi
4342
4343 # work around stupid devmapper.pc bug in Debian
4344 case "$STATIC_DEVMAPPER_LIBS" in
4345 *pthread*)
4346 ;;
4347 *)
4348 echo "Working around Debian bug #390243..."
4349 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4350 ;;
4351 esac
4352 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4353 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4354 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4355 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004356fi
4357
4358else
4359 echo "Disabling device-mapper support by default"
4360
Theodore Ts'oe1052142006-10-21 21:46:47 -04004361fi
4362
Karel Zak4db2f592006-03-08 14:17:28 -05004363
4364
4365
4366
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004367
Theodore Ts'o32493942007-12-31 10:45:01 -05004368# Check whether --enable-tls was given.
4369if test "${enable_tls+set}" = set; then
4370 enableval=$enable_tls; if test "$enableval" = "no"
4371then
4372 try_tls=""
4373 echo "Disabling thread local support"
4374else
4375 try_tls="yes"
4376 echo "Enabling thread local support"
4377fi
4378
4379else
4380 try_tls="yes"
4381echo "Try using thread local support by default"
4382
4383fi
4384
4385if test "$try_tls" = "yes"
4386then
4387
4388 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4389echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4390 if test "${ac_cv_tls+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393
4394 ax_tls_keywords="__thread __declspec(thread) none"
4395 for ax_tls_keyword in $ax_tls_keywords; do
4396 case $ax_tls_keyword in
4397 none) ac_cv_tls=none ; break ;;
4398 *)
4399 cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405#include <stdlib.h>
4406 static void
4407 foo(void) {
4408 static $ax_tls_keyword int bar;
4409 exit(1);
4410 }
4411int
4412main ()
4413{
4414
4415 ;
4416 return 0;
4417}
4418_ACEOF
4419rm -f conftest.$ac_objext
4420if { (ac_try="$ac_compile"
4421case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424esac
4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest.$ac_objext; then
4436 ac_cv_tls=$ax_tls_keyword ; break
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 ac_cv_tls=none
4442
4443fi
4444
4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 esac
4447 done
4448
4449fi
4450
4451
4452 if test "$ac_cv_tls" != "none"; then
4453
4454cat >>confdefs.h <<_ACEOF
4455#define TLS $ac_cv_tls
4456_ACEOF
4457
4458 fi
4459 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4460echo "${ECHO_T}$ac_cv_tls" >&6; }
4461
4462fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004463# Check whether --enable-uuidd was given.
4464if test "${enable_uuidd+set}" = set; then
4465 enableval=$enable_uuidd; if test "$enableval" = "no"
4466then
4467 echo "Not building uuidd"
4468 UUIDD_CMT="#"
4469else
4470 cat >>confdefs.h <<\_ACEOF
4471#define USE_UUIDD 1
4472_ACEOF
4473
4474 UUIDD_CMT=""
4475 echo "Building uuidd"
4476fi
4477
4478else
4479 cat >>confdefs.h <<\_ACEOF
4480#define USE_UUIDD 1
4481_ACEOF
4482
4483UUIDD_CMT=""
4484echo "Building uuidd by default"
4485
4486fi
4487
4488
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004489MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004491GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004492PACKAGE=e2fsprogs
4493VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004494VERSION=0.14.1
4495cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004496#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004497_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004499cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004500#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004501_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004502
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004503
4504
4505
4506
Theodore Ts'oe1052142006-10-21 21:46:47 -04004507{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4508echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4509set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4510if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004511 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004512else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004513 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004514SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004515all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004516 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004517_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004518# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004519case `${MAKE-make} -f conftest.make 2>/dev/null` in
4520 *@@@%%%=?*=@@@%%%*)
4521 eval ac_cv_prog_make_${ac_make}_set=yes;;
4522 *)
4523 eval ac_cv_prog_make_${ac_make}_set=no;;
4524esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004525rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4528 { echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004530 SET_MAKE=
4531else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004532 { echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004534 SET_MAKE="MAKE=${MAKE-make}"
4535fi
4536
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004537# Find a good install program. We prefer a C program (faster),
4538# so one script is as good as another. But avoid the broken or
4539# incompatible versions:
4540# SysV /etc/install, /usr/sbin/install
4541# SunOS /usr/etc/install
4542# IRIX /sbin/install
4543# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004544# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004545# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004548# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004549# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004550{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4551echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004552if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004553if test "${ac_cv_path_install+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004555else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 # Account for people who put trailing slashes in PATH elements.
4562case $as_dir/ in
4563 ./ | .// | /cC/* | \
4564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4565 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4566 /usr/ucb/* ) ;;
4567 *)
4568 # OSF1 and SCO ODT 3.0 have their own names for install.
4569 # Don't use installbsd from OSF since it installs stuff as root
4570 # by default.
4571 for ac_prog in ginstall scoinst install; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004573 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 -04004574 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004576 # AIX install. It has an incompatible calling convention.
4577 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004578 elif test $ac_prog = install &&
4579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4580 # program-specific install script used by HP pwplus--don't use.
4581 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004582 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4584 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004585 fi
4586 fi
4587 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004588 done
4589 ;;
4590esac
4591done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004592IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004594
4595fi
4596 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004597 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004598 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004599 # As a last resort, use the slow shell script. Don't cache a
4600 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004601 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004602 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004603 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004604 fi
4605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004606{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4607echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004608
4609# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4610# It thinks the first close brace ends the variable substitution.
4611test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004613test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004614
4615test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4616
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004617
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004618 MKINSTALLDIRS=
4619 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004620 case "$ac_aux_dir" in
4621 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4622 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4623 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004624 fi
4625 if test -z "$MKINSTALLDIRS"; then
4626 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4627 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004629
4630
Theodore Ts'oe1052142006-10-21 21:46:47 -04004631 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4632echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4633 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004634if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004635 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004636else
4637 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004638fi
4639
4640 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4641echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004642
4643
4644
4645
4646
4647
4648# Prepare PATH_SEPARATOR.
4649# The user is always right.
4650if test "${PATH_SEPARATOR+set}" != set; then
4651 echo "#! /bin/sh" >conf$$.sh
4652 echo "exit 0" >>conf$$.sh
4653 chmod +x conf$$.sh
4654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4655 PATH_SEPARATOR=';'
4656 else
4657 PATH_SEPARATOR=:
4658 fi
4659 rm -f conf$$.sh
4660fi
4661
4662# Find out how to test for executable files. Don't use a zero-byte file,
4663# as systems may use methods other than mode bits to determine executability.
4664cat >conf$$.file <<_ASEOF
4665#! /bin/sh
4666exit 0
4667_ASEOF
4668chmod +x conf$$.file
4669if test -x conf$$.file >/dev/null 2>&1; then
4670 ac_executable_p="test -x"
4671else
4672 ac_executable_p="test -f"
4673fi
4674rm -f conf$$.file
4675
4676# Extract the first word of "msgfmt", so it can be a program name with args.
4677set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004680if test "${ac_cv_path_MSGFMT+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683 case "$MSGFMT" in
4684 [\\/]* | ?:[\\/]*)
4685 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4686 ;;
4687 *)
4688 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4689 for ac_dir in $PATH; do
4690 IFS="$ac_save_IFS"
4691 test -z "$ac_dir" && ac_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4694 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4695 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4696 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4697 break 2
4698 fi
4699 fi
4700 done
4701 done
4702 IFS="$ac_save_IFS"
4703 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4704 ;;
4705esac
4706fi
4707MSGFMT="$ac_cv_path_MSGFMT"
4708if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4710echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004711else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004712 { echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004714fi
4715
4716 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4717set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004720if test "${ac_cv_path_GMSGFMT+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 case $GMSGFMT in
4724 [\\/]* | ?:[\\/]*)
4725 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4726 ;;
4727 *)
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004734 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 -05004735 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739done
4740done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004741IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004742
4743 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4744 ;;
4745esac
4746fi
4747GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004748if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004749 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4750echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004751else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004752 { echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004754fi
4755
4756
4757
Theodore Ts'oe1052142006-10-21 21:46:47 -04004758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004759# Prepare PATH_SEPARATOR.
4760# The user is always right.
4761if test "${PATH_SEPARATOR+set}" != set; then
4762 echo "#! /bin/sh" >conf$$.sh
4763 echo "exit 0" >>conf$$.sh
4764 chmod +x conf$$.sh
4765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4766 PATH_SEPARATOR=';'
4767 else
4768 PATH_SEPARATOR=:
4769 fi
4770 rm -f conf$$.sh
4771fi
4772
4773# Find out how to test for executable files. Don't use a zero-byte file,
4774# as systems may use methods other than mode bits to determine executability.
4775cat >conf$$.file <<_ASEOF
4776#! /bin/sh
4777exit 0
4778_ASEOF
4779chmod +x conf$$.file
4780if test -x conf$$.file >/dev/null 2>&1; then
4781 ac_executable_p="test -x"
4782else
4783 ac_executable_p="test -f"
4784fi
4785rm -f conf$$.file
4786
4787# Extract the first word of "xgettext", so it can be a program name with args.
4788set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004791if test "${ac_cv_path_XGETTEXT+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794 case "$XGETTEXT" in
4795 [\\/]* | ?:[\\/]*)
4796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4797 ;;
4798 *)
4799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4800 for ac_dir in $PATH; do
4801 IFS="$ac_save_IFS"
4802 test -z "$ac_dir" && ac_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4805 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4806 (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
4807 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4808 break 2
4809 fi
4810 fi
4811 done
4812 done
4813 IFS="$ac_save_IFS"
4814 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4815 ;;
4816esac
4817fi
4818XGETTEXT="$ac_cv_path_XGETTEXT"
4819if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004820 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4821echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004822else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004823 { echo "$as_me:$LINENO: result: no" >&5
4824echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004825fi
4826
4827 rm -f messages.po
4828
4829
4830# Prepare PATH_SEPARATOR.
4831# The user is always right.
4832if test "${PATH_SEPARATOR+set}" != set; then
4833 echo "#! /bin/sh" >conf$$.sh
4834 echo "exit 0" >>conf$$.sh
4835 chmod +x conf$$.sh
4836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4837 PATH_SEPARATOR=';'
4838 else
4839 PATH_SEPARATOR=:
4840 fi
4841 rm -f conf$$.sh
4842fi
4843
4844# Find out how to test for executable files. Don't use a zero-byte file,
4845# as systems may use methods other than mode bits to determine executability.
4846cat >conf$$.file <<_ASEOF
4847#! /bin/sh
4848exit 0
4849_ASEOF
4850chmod +x conf$$.file
4851if test -x conf$$.file >/dev/null 2>&1; then
4852 ac_executable_p="test -x"
4853else
4854 ac_executable_p="test -f"
4855fi
4856rm -f conf$$.file
4857
4858# Extract the first word of "msgmerge", so it can be a program name with args.
4859set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004862if test "${ac_cv_path_MSGMERGE+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 case "$MSGMERGE" in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4871 for ac_dir in $PATH; do
4872 IFS="$ac_save_IFS"
4873 test -z "$ac_dir" && ac_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4876 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4877 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4878 break 2
4879 fi
4880 fi
4881 done
4882 done
4883 IFS="$ac_save_IFS"
4884 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4885 ;;
4886esac
4887fi
4888MSGMERGE="$ac_cv_path_MSGMERGE"
4889if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004890 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4891echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004892else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004893 { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004895fi
4896
4897
4898 if test "$GMSGFMT" != ":"; then
4899 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4900 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4901 : ;
4902 else
4903 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004904 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4905echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004906 GMSGFMT=":"
4907 fi
4908 fi
4909
4910 if test "$XGETTEXT" != ":"; then
4911 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4912 (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
4913 : ;
4914 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004915 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4916echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004917 XGETTEXT=":"
4918 fi
4919 rm -f messages.po
4920 fi
4921
Theodore Ts'oe1052142006-10-21 21:46:47 -04004922 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004923
4924
4925if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4927set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004930if test "${ac_cv_prog_RANLIB+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004932else
4933 if test -n "$RANLIB"; then
4934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004942 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 -05004943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004948done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004950
4951fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004952fi
4953RANLIB=$ac_cv_prog_RANLIB
4954if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004955 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4956echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004957else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004958 { echo "$as_me:$LINENO: result: no" >&5
4959echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004960fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004961
Theodore Ts'oe1052142006-10-21 21:46:47 -04004962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004963fi
4964if test -z "$ac_cv_prog_RANLIB"; then
4965 ac_ct_RANLIB=$RANLIB
4966 # Extract the first word of "ranlib", so it can be a program name with args.
4967set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004970if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973 if test -n "$ac_ct_RANLIB"; then
4974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004982 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 -05004983 ac_cv_prog_ac_ct_RANLIB="ranlib"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987done
4988done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004989IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004991fi
4992fi
4993ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4994if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004995 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4996echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004997else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004998 { echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005000fi
5001
Theodore Ts'oe1052142006-10-21 21:46:47 -04005002 if test "x$ac_ct_RANLIB" = x; then
5003 RANLIB=":"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006yes:)
5007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5008whose name does not start with the host triplet. If you think this
5009configuration is useful to you, please write to autoconf@gnu.org." >&5
5010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5011whose name does not start with the host triplet. If you think this
5012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5013ac_tool_warned=yes ;;
5014esac
5015 RANLIB=$ac_ct_RANLIB
5016 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005017else
5018 RANLIB="$ac_cv_prog_RANLIB"
5019fi
5020
5021
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5023echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005024if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 ac_check_lib_save_LIBS=$LIBS
5028LIBS="-lcposix $LIBS"
5029cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
5035
Theodore Ts'oe1052142006-10-21 21:46:47 -04005036/* Override any GCC internal prototype to avoid an error.
5037 Use char because int might match the return type of a GCC
5038 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005039#ifdef __cplusplus
5040extern "C"
5041#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005042char strerror ();
5043int
5044main ()
5045{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005046return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005047 ;
5048 return 0;
5049}
5050_ACEOF
5051rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005052if { (ac_try="$ac_link"
5053case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056esac
5057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest$ac_exeext &&
5068 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005069 ac_cv_lib_cposix_strerror=yes
5070else
5071 echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
Theodore Ts'oe1052142006-10-21 21:46:47 -04005074 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005075fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005076
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005078 conftest$ac_exeext conftest.$ac_ext
5079LIBS=$ac_check_lib_save_LIBS
5080fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005081{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5082echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005083if test $ac_cv_lib_cposix_strerror = yes; then
5084 LIBS="$LIBS -lcposix"
5085fi
5086
5087
5088
Theodore Ts'oe1052142006-10-21 21:46:47 -04005089{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5090echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005091if test "${ac_cv_c_const+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
5100
5101int
5102main ()
5103{
5104/* FIXME: Include the comments suggested by Paul. */
5105#ifndef __cplusplus
5106 /* Ultrix mips cc rejects this. */
5107 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005108 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005109 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005110 char const *const *pcpcc;
5111 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005112 /* NEC SVR4.0.2 mips cc rejects this. */
5113 struct point {int x, y;};
5114 static struct point const zero = {0,0};
5115 /* AIX XL C 1.02.0.0 rejects this.
5116 It does not let you subtract one const X* pointer from another in
5117 an arm of an if-expression whose if-part is not a constant
5118 expression */
5119 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005120 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005121 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005122 ++pcpcc;
5123 ppc = (char**) pcpcc;
5124 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005125 { /* SCO 3.2v4 cc rejects this. */
5126 char *t;
5127 char const *s = 0 ? (char *) 0 : (char const *) 0;
5128
5129 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005130 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005131 }
5132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5133 int x[] = {25, 17};
5134 const int *foo = &x[0];
5135 ++foo;
5136 }
5137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5138 typedef const int *iptr;
5139 iptr p = 0;
5140 ++p;
5141 }
5142 { /* AIX XL C 1.02.0.0 rejects this saying
5143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5144 struct s { int j; const int *ap[3]; };
5145 struct s *b; b->j = 5;
5146 }
5147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5148 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005149 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005150 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005151 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005152#endif
5153
5154 ;
5155 return 0;
5156}
5157_ACEOF
5158rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005159if { (ac_try="$ac_compile"
5160case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163esac
5164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005175 ac_cv_c_const=yes
5176else
5177 echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
Theodore Ts'oe1052142006-10-21 21:46:47 -04005180 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005182
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005185{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5186echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005187if test $ac_cv_c_const = no; then
5188
5189cat >>confdefs.h <<\_ACEOF
5190#define const
5191_ACEOF
5192
5193fi
5194
5195
Theodore Ts'oe1052142006-10-21 21:46:47 -04005196 { echo "$as_me:$LINENO: checking for signed" >&5
5197echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005198if test "${bh_cv_c_signed+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207
5208int
5209main ()
5210{
5211signed char x;
5212 ;
5213 return 0;
5214}
5215_ACEOF
5216rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005217if { (ac_try="$ac_compile"
5218case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221esac
5222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005229 (exit $ac_status); } && {
5230 test -z "$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005233 bh_cv_c_signed=yes
5234else
5235 echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
Theodore Ts'oe1052142006-10-21 21:46:47 -04005238 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005240
5241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005242fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005243{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5244echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005245 if test $bh_cv_c_signed = no; then
5246
5247cat >>confdefs.h <<\_ACEOF
5248#define signed
5249_ACEOF
5250
5251 fi
5252
Theodore Ts'oe1052142006-10-21 21:46:47 -04005253{ echo "$as_me:$LINENO: checking for inline" >&5
5254echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005255if test "${ac_cv_c_inline+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 ac_cv_c_inline=no
5259for ac_kw in inline __inline__ __inline; do
5260 cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h. */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h. */
5266#ifndef __cplusplus
5267typedef int foo_t;
5268static $ac_kw foo_t static_foo () {return 0; }
5269$ac_kw foo_t foo () {return 0; }
5270#endif
5271
5272_ACEOF
5273rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005274if { (ac_try="$ac_compile"
5275case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278esac
5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005290 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005291else
5292 echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
Theodore Ts'oe1052142006-10-21 21:46:47 -04005295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005297
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005300done
5301
5302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005303{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5304echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005305
5306
5307case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005308 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005309 *)
5310 case $ac_cv_c_inline in
5311 no) ac_val=;;
5312 *) ac_val=$ac_cv_c_inline;;
5313 esac
5314 cat >>confdefs.h <<_ACEOF
5315#ifndef __cplusplus
5316#define inline $ac_val
5317#endif
5318_ACEOF
5319 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005320esac
5321
Theodore Ts'oe1052142006-10-21 21:46:47 -04005322{ echo "$as_me:$LINENO: checking for off_t" >&5
5323echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005324if test "${ac_cv_type_off_t+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005327 cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005334typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005335int
5336main ()
5337{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005338if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005339 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005340if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005341 return 0;
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005347if { (ac_try="$ac_compile"
5348case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005363 ac_cv_type_off_t=yes
5364else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005367
Theodore Ts'oe1052142006-10-21 21:46:47 -04005368 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005369fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005370
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005373{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5374echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005375if test $ac_cv_type_off_t = yes; then
5376 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005377else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005378
5379cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005381_ACEOF
5382
5383fi
5384
Theodore Ts'oe1052142006-10-21 21:46:47 -04005385{ echo "$as_me:$LINENO: checking for size_t" >&5
5386echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005387if test "${ac_cv_type_size_t+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390 cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005397typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005398int
5399main ()
5400{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005402 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005403if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005404 return 0;
5405 ;
5406 return 0;
5407}
5408_ACEOF
5409rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005410if { (ac_try="$ac_compile"
5411case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005422 (exit $ac_status); } && {
5423 test -z "$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5425 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005426 ac_cv_type_size_t=yes
5427else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005428 echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
Theodore Ts'oe1052142006-10-21 21:46:47 -04005431 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005432fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005433
5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005435fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005436{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5437echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005438if test $ac_cv_type_size_t = yes; then
5439 :
5440else
5441
5442cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005443#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005444_ACEOF
5445
5446fi
5447
5448
Theodore Ts'oe1052142006-10-21 21:46:47 -04005449 { echo "$as_me:$LINENO: checking for long long" >&5
5450echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005451if test "${ac_cv_type_long_long+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454 cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
5460long long ll = 1LL; int i = 63;
5461int
5462main ()
5463{
5464long long llmax = (long long) -1;
5465 return ll << i | ll >> i | llmax / ll | llmax % ll;
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471if { (ac_try="$ac_link"
5472case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest$ac_exeext &&
5487 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005488 ac_cv_type_long_long=yes
5489else
5490 echo "$as_me: failed program was:" >&5
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
Theodore Ts'oe1052142006-10-21 21:46:47 -04005493 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005494fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005495
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005497 conftest$ac_exeext conftest.$ac_ext
5498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005499{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5500echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005501 if test $ac_cv_type_long_long = yes; then
5502
5503cat >>confdefs.h <<\_ACEOF
5504#define HAVE_LONG_LONG 1
5505_ACEOF
5506
5507 fi
5508
5509
Theodore Ts'oe1052142006-10-21 21:46:47 -04005510 { echo "$as_me:$LINENO: checking for long double" >&5
5511echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005512if test "${gt_cv_c_long_double+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515 if test "$GCC" = yes; then
5516 gt_cv_c_long_double=yes
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
5524
5525 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5526 long double foo = 0.0;
5527 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5528 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5529
5530int
5531main ()
5532{
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005539if { (ac_try="$ac_compile"
5540case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005555 gt_cv_c_long_double=yes
5556else
5557 echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
Theodore Ts'oe1052142006-10-21 21:46:47 -04005560 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005562
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005564 fi
5565fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005566{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5567echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005568 if test $gt_cv_c_long_double = yes; then
5569
5570cat >>confdefs.h <<\_ACEOF
5571#define HAVE_LONG_DOUBLE 1
5572_ACEOF
5573
5574 fi
5575
5576
Theodore Ts'oe1052142006-10-21 21:46:47 -04005577 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5578echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005579if test "${gt_cv_c_wchar_t+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588#include <stddef.h>
5589 wchar_t foo = (wchar_t)'\0';
5590int
5591main ()
5592{
5593
5594 ;
5595 return 0;
5596}
5597_ACEOF
5598rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005599if { (ac_try="$ac_compile"
5600case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603esac
5604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005615 gt_cv_c_wchar_t=yes
5616else
5617 echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
Theodore Ts'oe1052142006-10-21 21:46:47 -04005620 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005622
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005625{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5626echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005627 if test $gt_cv_c_wchar_t = yes; then
5628
5629cat >>confdefs.h <<\_ACEOF
5630#define HAVE_WCHAR_T 1
5631_ACEOF
5632
5633 fi
5634
5635
Theodore Ts'oe1052142006-10-21 21:46:47 -04005636 { echo "$as_me:$LINENO: checking for wint_t" >&5
5637echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005638if test "${gt_cv_c_wint_t+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 cat >conftest.$ac_ext <<_ACEOF
5642/* confdefs.h. */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h. */
5647#include <wchar.h>
5648 wint_t foo = (wchar_t)'\0';
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005658if { (ac_try="$ac_compile"
5659case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674 gt_cv_c_wint_t=yes
5675else
5676 echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
Theodore Ts'oe1052142006-10-21 21:46:47 -04005679 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005680fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005681
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005684{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5685echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005686 if test $gt_cv_c_wint_t = yes; then
5687
5688cat >>confdefs.h <<\_ACEOF
5689#define HAVE_WINT_T 1
5690_ACEOF
5691
5692 fi
5693
5694
Theodore Ts'oe1052142006-10-21 21:46:47 -04005695 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5696echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005697if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h. */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h. */
5706#include <sys/types.h>
5707#include <inttypes.h>
5708int
5709main ()
5710{
5711uintmax_t i = (uintmax_t) -1;
5712 ;
5713 return 0;
5714}
5715_ACEOF
5716rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005717if { (ac_try="$ac_compile"
5718case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005729 (exit $ac_status); } && {
5730 test -z "$ac_c_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005733 jm_ac_cv_header_inttypes_h=yes
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
Theodore Ts'oe1052142006-10-21 21:46:47 -04005738 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005743{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5744echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745 if test $jm_ac_cv_header_inttypes_h = yes; then
5746
5747cat >>confdefs.h <<_ACEOF
5748#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5749_ACEOF
5750
5751 fi
5752
5753
Theodore Ts'oe1052142006-10-21 21:46:47 -04005754 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5755echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
5765#include <sys/types.h>
5766#include <stdint.h>
5767int
5768main ()
5769{
5770uintmax_t i = (uintmax_t) -1;
5771 ;
5772 return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005776if { (ac_try="$ac_compile"
5777case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005792 jm_ac_cv_header_stdint_h=yes
5793else
5794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
Theodore Ts'oe1052142006-10-21 21:46:47 -04005797 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005799
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005802{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5803echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005804 if test $jm_ac_cv_header_stdint_h = yes; then
5805
5806cat >>confdefs.h <<_ACEOF
5807#define HAVE_STDINT_H_WITH_UINTMAX 1
5808_ACEOF
5809
5810 fi
5811
5812
5813
5814
Theodore Ts'oe1052142006-10-21 21:46:47 -04005815 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5816echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005817if test "${gt_cv_c_intmax_t+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820 cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826
5827#include <stddef.h>
5828#include <stdlib.h>
5829#if HAVE_STDINT_H_WITH_UINTMAX
5830#include <stdint.h>
5831#endif
5832#if HAVE_INTTYPES_H_WITH_UINTMAX
5833#include <inttypes.h>
5834#endif
5835
5836int
5837main ()
5838{
5839intmax_t x = -1;
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005845if { (ac_try="$ac_compile"
5846case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849esac
5850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005861 gt_cv_c_intmax_t=yes
5862else
5863 echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
Theodore Ts'oe1052142006-10-21 21:46:47 -04005866 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005868
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005870fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005871{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5872echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005873 if test $gt_cv_c_intmax_t = yes; then
5874
5875cat >>confdefs.h <<\_ACEOF
5876#define HAVE_INTMAX_T 1
5877_ACEOF
5878
5879 fi
5880
5881
5882
Theodore Ts'oe1052142006-10-21 21:46:47 -04005883 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5884echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005885if test "${gt_cv_func_printf_posix+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888
5889 if test "$cross_compiling" = yes; then
5890
5891 cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
5897
5898#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5899 notposix
5900#endif
5901
5902_ACEOF
5903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "notposix" >/dev/null 2>&1; then
5905 gt_cv_func_printf_posix="guessing no"
5906else
5907 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005908fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005909rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911
5912else
5913 cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h. */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h. */
5919
5920#include <stdio.h>
5921#include <string.h>
5922/* The string "%2$d %1$d", with dollar characters protected from the shell's
5923 dollar expansion (possibly an autoconf bug). */
5924static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5925static char buf[100];
5926int main ()
5927{
5928 sprintf (buf, format, 33, 55);
5929 return (strcmp (buf, "55 33") != 0);
5930}
5931_ACEOF
5932rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005933if { (ac_try="$ac_link"
5934case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 gt_cv_func_printf_posix=yes
5953else
5954 echo "$as_me: program exited with status $ac_status" >&5
5955echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958( exit $ac_status )
5959gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005960fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005961rm -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 -05005962fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005963
Theodore Ts'oe1052142006-10-21 21:46:47 -04005964
5965
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005966fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005967{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5968echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005969 case $gt_cv_func_printf_posix in
5970 *yes)
5971
5972cat >>confdefs.h <<\_ACEOF
5973#define HAVE_POSIX_PRINTF 1
5974_ACEOF
5975
5976 ;;
5977 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005978
5979# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5980# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005981{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5982echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005983if test "${ac_cv_working_alloca_h+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005985else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005992#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993int
5994main ()
5995{
5996char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998 ;
5999 return 0;
6000}
6001_ACEOF
6002rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006003if { (ac_try="$ac_link"
6004case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest$ac_exeext &&
6019 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006020 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006021else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022 echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024
Theodore Ts'oe1052142006-10-21 21:46:47 -04006025 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006027
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029 conftest$ac_exeext conftest.$ac_ext
6030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006031{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6032echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033if test $ac_cv_working_alloca_h = yes; then
6034
6035cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006036#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006038
6039fi
6040
Theodore Ts'oe1052142006-10-21 21:46:47 -04006041{ echo "$as_me:$LINENO: checking for alloca" >&5
6042echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043if test "${ac_cv_func_alloca_works+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006045else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006046 cat >conftest.$ac_ext <<_ACEOF
6047/* confdefs.h. */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006052#ifdef __GNUC__
6053# define alloca __builtin_alloca
6054#else
6055# ifdef _MSC_VER
6056# include <malloc.h>
6057# define alloca _alloca
6058# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006059# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006060# include <alloca.h>
6061# else
6062# ifdef _AIX
6063 #pragma alloca
6064# else
6065# ifndef alloca /* predefined by HP cc +Olibcalls */
6066char *alloca ();
6067# endif
6068# endif
6069# endif
6070# endif
6071#endif
6072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073int
6074main ()
6075{
6076char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006077 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078 ;
6079 return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006083if { (ac_try="$ac_link"
6084case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087esac
6088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest$ac_exeext &&
6099 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006100 ac_cv_func_alloca_works=yes
6101else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102 echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006104
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006107
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109 conftest$ac_exeext conftest.$ac_ext
6110fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006111{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6112echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006113
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006114if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115
6116cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006117#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006119
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006120else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6122# that cause trouble. Some versions do not even contain alloca or
6123# contain a buggy version. If you still want to use their alloca,
6124# use ar to extract alloca.o from them instead of compiling alloca.c.
6125
Theodore Ts'oe1052142006-10-21 21:46:47 -04006126ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127
6128cat >>confdefs.h <<\_ACEOF
6129#define C_ALLOCA 1
6130_ACEOF
6131
6132
Theodore Ts'oe1052142006-10-21 21:46:47 -04006133{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6134echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135if test "${ac_cv_os_cray+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006144#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006145webecray
6146#else
6147wenotbecray
6148#endif
6149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006153 ac_cv_os_cray=yes
6154else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006155 ac_cv_os_cray=no
6156fi
6157rm -f conftest*
6158
6159fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006160{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6161echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006162if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006163 for ac_func in _getb67 GETB67 getb67; do
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006169else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170 cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
6176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6178#define $ac_func innocuous_$ac_func
6179
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006180/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006181 which can conflict with char $ac_func (); below.
6182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183 <limits.h> exists even on freestanding compilers. */
6184
6185#ifdef __STDC__
6186# include <limits.h>
6187#else
6188# include <assert.h>
6189#endif
6190
6191#undef $ac_func
6192
Theodore Ts'oe1052142006-10-21 21:46:47 -04006193/* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196#ifdef __cplusplus
6197extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006198#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006200/* The GNU C library defines this for functions which it implements
6201 to always fail with ENOSYS. Some functions are actually named
6202 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006203#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006204choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006205#endif
6206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006207int
6208main ()
6209{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006210return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211 ;
6212 return 0;
6213}
6214_ACEOF
6215rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006216if { (ac_try="$ac_link"
6217case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220esac
6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest$ac_exeext &&
6232 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006235 echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006237
Theodore Ts'oe1052142006-10-21 21:46:47 -04006238 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006240
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006242 conftest$ac_exeext conftest.$ac_ext
6243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006244ac_res=`eval echo '${'$as_ac_var'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006247if test `eval echo '${'$as_ac_var'}'` = yes; then
6248
6249cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006250#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006253 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006254fi
6255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006256 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006257fi
6258
Theodore Ts'oe1052142006-10-21 21:46:47 -04006259{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6260echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261if test "${ac_cv_c_stack_direction+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006263else
6264 if test "$cross_compiling" = yes; then
6265 ac_cv_c_stack_direction=0
6266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006267 cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006273$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006274int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006275find_stack_direction ()
6276{
6277 static char *addr = 0;
6278 auto char dummy;
6279 if (addr == 0)
6280 {
6281 addr = &dummy;
6282 return find_stack_direction ();
6283 }
6284 else
6285 return (&dummy > addr) ? 1 : -1;
6286}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287
6288int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006289main ()
6290{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006291 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006292}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293_ACEOF
6294rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006295if { (ac_try="$ac_link"
6296case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006305 { (case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
6309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006314 ac_cv_c_stack_direction=1
6315else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006316 echo "$as_me: program exited with status $ac_status" >&5
6317echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006320( exit $ac_status )
6321ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006323rm -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 -05006324fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006325
6326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006328{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6329echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006331cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006332#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333_ACEOF
6334
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006335
6336fi
6337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338
6339
6340for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006341do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006347 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006349ac_res=`eval echo '${'$as_ac_Header'}'`
6350 { echo "$as_me:$LINENO: result: $ac_res" >&5
6351echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006352else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h. */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h. */
6362$ac_includes_default
6363#include <$ac_header>
6364_ACEOF
6365rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006366if { (ac_try="$ac_compile"
6367case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370esac
6371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382 ac_header_compiler=yes
6383else
6384 echo "$as_me: failed program was:" >&5
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
Theodore Ts'oe1052142006-10-21 21:46:47 -04006387 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006388fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006389
6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6392echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393
6394# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006397cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */
6403#include <$ac_header>
6404_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006405if { (ac_try="$ac_cpp conftest.$ac_ext"
6406case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409esac
6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006417 (exit $ac_status); } >/dev/null && {
6418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421 ac_header_preproc=yes
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_header_preproc=no
6427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006429rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6431echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006432
6433# So? What about this header?
6434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6435 yes:no: )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6440 ac_header_preproc=yes
6441 ;;
6442 no:yes:* )
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456 ;;
6457esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 eval "$as_ac_Header=\$ac_header_preproc"
6464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006465ac_res=`eval echo '${'$as_ac_Header'}'`
6466 { echo "$as_me:$LINENO: result: $ac_res" >&5
6467echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468
6469fi
6470if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473_ACEOF
6474
6475fi
6476
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006477done
6478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006480for ac_func in getpagesize
6481do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006483{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6485if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006487else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488 cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h. */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h. */
6494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6496#define $ac_func innocuous_$ac_func
6497
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006498/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499 which can conflict with char $ac_func (); below.
6500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501 <limits.h> exists even on freestanding compilers. */
6502
6503#ifdef __STDC__
6504# include <limits.h>
6505#else
6506# include <assert.h>
6507#endif
6508
6509#undef $ac_func
6510
Theodore Ts'oe1052142006-10-21 21:46:47 -04006511/* Override any GCC internal prototype to avoid an error.
6512 Use char because int might match the return type of a GCC
6513 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514#ifdef __cplusplus
6515extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006518/* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006521#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006522choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006523#endif
6524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525int
6526main ()
6527{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006528return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529 ;
6530 return 0;
6531}
6532_ACEOF
6533rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006534if { (ac_try="$ac_link"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest$ac_exeext &&
6550 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006551 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553 echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006555
Theodore Ts'oe1052142006-10-21 21:46:47 -04006556 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006558
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560 conftest$ac_exeext conftest.$ac_ext
6561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006562ac_res=`eval echo '${'$as_ac_var'}'`
6563 { echo "$as_me:$LINENO: result: $ac_res" >&5
6564echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565if test `eval echo '${'$as_ac_var'}'` = yes; then
6566 cat >>confdefs.h <<_ACEOF
6567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6568_ACEOF
6569
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006570fi
6571done
6572
Theodore Ts'oe1052142006-10-21 21:46:47 -04006573{ echo "$as_me:$LINENO: checking for working mmap" >&5
6574echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006577else
6578 if test "$cross_compiling" = yes; then
6579 ac_cv_func_mmap_fixed_mapped=no
6580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006581 cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h. */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h. */
6587$ac_includes_default
6588/* malloc might have been renamed as rpl_malloc. */
6589#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006590
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006591/* Thanks to Mike Haertel and Jim Avera for this test.
6592 Here is a matrix of mmap possibilities:
6593 mmap private not fixed
6594 mmap private fixed at somewhere currently unmapped
6595 mmap private fixed at somewhere already mapped
6596 mmap shared not fixed
6597 mmap shared fixed at somewhere currently unmapped
6598 mmap shared fixed at somewhere already mapped
6599 For private mappings, we should verify that changes cannot be read()
6600 back from the file, nor mmap's back from the file at a different
6601 address. (There have been systems where private was not correctly
6602 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006604 like early versions of FreeBSD and possibly contemporary NetBSD.)
6605 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006607
6608 Grep wants private fixed already mapped.
6609 The main things grep needs to know about mmap are:
6610 * does it exist and is it safe to write into the mmap'd area
6611 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006613#include <fcntl.h>
6614#include <sys/mman.h>
6615
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006616#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617char *malloc ();
6618#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006621#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006622/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006623# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006624# define HAVE_SYS_PARAM_H 1
6625# endif
6626
6627# ifdef _SC_PAGESIZE
6628# define getpagesize() sysconf(_SC_PAGESIZE)
6629# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006630# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006631# include <sys/param.h>
6632# ifdef EXEC_PAGESIZE
6633# define getpagesize() EXEC_PAGESIZE
6634# else /* no EXEC_PAGESIZE */
6635# ifdef NBPG
6636# define getpagesize() NBPG * CLSIZE
6637# ifndef CLSIZE
6638# define CLSIZE 1
6639# endif /* no CLSIZE */
6640# else /* no NBPG */
6641# ifdef NBPC
6642# define getpagesize() NBPC
6643# else /* no NBPC */
6644# ifdef PAGESIZE
6645# define getpagesize() PAGESIZE
6646# endif /* PAGESIZE */
6647# endif /* no NBPC */
6648# endif /* no NBPG */
6649# endif /* no EXEC_PAGESIZE */
6650# else /* no HAVE_SYS_PARAM_H */
6651# define getpagesize() 8192 /* punt totally */
6652# endif /* no HAVE_SYS_PARAM_H */
6653# endif /* no _SC_PAGESIZE */
6654
6655#endif /* no HAVE_GETPAGESIZE */
6656
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006657int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006659{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006660 char *data, *data2, *data3;
6661 int i, pagesize;
6662 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 /* First, make a file with some known garbage in it. */
6667 data = (char *) malloc (pagesize);
6668 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006669 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670 for (i = 0; i < pagesize; ++i)
6671 *(data + i) = rand ();
6672 umask (0);
6673 fd = creat ("conftest.mmap", 0600);
6674 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006677 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680 /* Next, try to mmap the file at a fixed address which already has
6681 something else allocated at it. If we can, also make sure that
6682 we see the same garbage. */
6683 fd = open ("conftest.mmap", O_RDWR);
6684 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006685 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686 data2 = (char *) malloc (2 * pagesize);
6687 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688 return 1;
6689 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006692 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693 for (i = 0; i < pagesize; ++i)
6694 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006696
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697 /* Finally, make sure that changes to the mapped area do not
6698 percolate back to the file as seen by read(). (This is a bug on
6699 some variants of i386 svr4.0.) */
6700 for (i = 0; i < pagesize; ++i)
6701 *(data2 + i) = *(data2 + i) + 1;
6702 data3 = (char *) malloc (pagesize);
6703 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006704 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006706 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006707 for (i = 0; i < pagesize; ++i)
6708 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006709 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006710 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006711 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006712}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006713_ACEOF
6714rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006715if { (ac_try="$ac_link"
6716case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006725 { (case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728esac
6729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006734 ac_cv_func_mmap_fixed_mapped=yes
6735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736 echo "$as_me: program exited with status $ac_status" >&5
6737echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740( exit $ac_status )
6741ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006743rm -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 -05006744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006745
6746
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006748{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6749echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006750if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751
6752cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006753#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006755
6756fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006758
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006759
Theodore Ts'oe1052142006-10-21 21:46:47 -04006760 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6761echo $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 -05006762if test "${ac_cv_gnu_library_2_1+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006764else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765 cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h. */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006771
6772#include <features.h>
6773#ifdef __GNU_LIBRARY__
6774 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6775 Lucky GNU user
6776 #endif
6777#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778
6779_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006782 ac_cv_gnu_library_2_1=yes
6783else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006784 ac_cv_gnu_library_2_1=no
6785fi
6786rm -f conftest*
6787
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788
6789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006791{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6792echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006795
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797
6798
Theodore Ts'oe1052142006-10-21 21:46:47 -04006799 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6800echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006805 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006807 # Guess based on the CPU.
6808 case "$host_cpu" in
6809 alpha* | i3456786 | m68k | s390*)
6810 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6811 *)
6812 gt_cv_int_divbyzero_sigfpe="guessing no";;
6813 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006815else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816 cat >conftest.$ac_ext <<_ACEOF
6817/* confdefs.h. */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006822
6823#include <stdlib.h>
6824#include <signal.h>
6825
6826static void
6827#ifdef __cplusplus
6828sigfpe_handler (int sig)
6829#else
6830sigfpe_handler (sig) int sig;
6831#endif
6832{
6833 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6834 exit (sig != SIGFPE);
6835}
6836
6837int x = 1;
6838int y = 0;
6839int z;
6840int nan;
6841
6842int main ()
6843{
6844 signal (SIGFPE, sigfpe_handler);
6845/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6846#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6847 signal (SIGTRAP, sigfpe_handler);
6848#endif
6849/* Linux/SPARC yields signal SIGILL. */
6850#if defined (__sparc__) && defined (__linux__)
6851 signal (SIGILL, sigfpe_handler);
6852#endif
6853
6854 z = x / y;
6855 nan = y / y;
6856 exit (1);
6857}
6858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859_ACEOF
6860rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
6866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874esac
6875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006880 gt_cv_int_divbyzero_sigfpe=yes
6881else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882 echo "$as_me: program exited with status $ac_status" >&5
6883echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886( exit $ac_status )
6887gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006889rm -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 -04006890fi
6891
Theodore Ts'oe1052142006-10-21 21:46:47 -04006892
6893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006895{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6896echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006897 case "$gt_cv_int_divbyzero_sigfpe" in
6898 *yes) value=1;;
6899 *) value=0;;
6900 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901
6902cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006903#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006905
6906
6907
Theodore Ts'oe1052142006-10-21 21:46:47 -04006908 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6909echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912else
6913 cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
6919unsigned long long ull = 1ULL; int i = 63;
6920int
6921main ()
6922{
6923unsigned long long ullmax = (unsigned long long) -1;
6924 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006930if { (ac_try="$ac_link"
6931case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934esac
6935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947 ac_cv_type_unsigned_long_long=yes
6948else
6949 echo "$as_me: failed program was:" >&5
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
Theodore Ts'oe1052142006-10-21 21:46:47 -04006952 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006954
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956 conftest$ac_exeext conftest.$ac_ext
6957fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006958{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6959echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960 if test $ac_cv_type_unsigned_long_long = yes; then
6961
6962cat >>confdefs.h <<\_ACEOF
6963#define HAVE_UNSIGNED_LONG_LONG 1
6964_ACEOF
6965
6966 fi
6967
6968
6969
6970
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006971 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 -05006972
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006973 test $ac_cv_type_unsigned_long_long = yes \
6974 && ac_type='unsigned long long' \
6975 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976
6977cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006978#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979_ACEOF
6980
6981 else
6982
6983cat >>confdefs.h <<\_ACEOF
6984#define HAVE_UINTMAX_T 1
6985_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006986
6987 fi
6988
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006989
Theodore Ts'oe1052142006-10-21 21:46:47 -04006990 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6991echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992if test "${gt_cv_header_inttypes_h+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995
6996 cat >conftest.$ac_ext <<_ACEOF
6997/* confdefs.h. */
6998_ACEOF
6999cat confdefs.h >>conftest.$ac_ext
7000cat >>conftest.$ac_ext <<_ACEOF
7001/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007002#include <sys/types.h>
7003#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004int
7005main ()
7006{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008 ;
7009 return 0;
7010}
7011_ACEOF
7012rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013if { (ac_try="$ac_compile"
7014case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017esac
7018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007029 gt_cv_header_inttypes_h=yes
7030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031 echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007033
Theodore Ts'oe1052142006-10-21 21:46:47 -04007034 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007036
7037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038
7039fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007040{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7041echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007042 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043
7044cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007045#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007047
7048 fi
7049
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007052 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007053 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7054echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007055if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058
7059 cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h. */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007065#include <inttypes.h>
7066#ifdef PRId32
7067char *p = PRId32;
7068#endif
7069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070int
7071main ()
7072{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074 ;
7075 return 0;
7076}
7077_ACEOF
7078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007079if { (ac_try="$ac_compile"
7080case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083esac
7084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007095 gt_cv_inttypes_pri_broken=no
7096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097 echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007099
Theodore Ts'oe1052142006-10-21 21:46:47 -04007100 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007102
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104
7105fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007106{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7107echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007108 fi
7109 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007110
7111cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007112#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007113_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007114
7115 fi
7116
7117
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007118
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007119for ac_header in stdint.h
7120do
7121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007128ac_res=`eval echo '${'$as_ac_Header'}'`
7129 { echo "$as_me:$LINENO: result: $ac_res" >&5
7130echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007131else
7132 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135cat >conftest.$ac_ext <<_ACEOF
7136/* confdefs.h. */
7137_ACEOF
7138cat confdefs.h >>conftest.$ac_ext
7139cat >>conftest.$ac_ext <<_ACEOF
7140/* end confdefs.h. */
7141$ac_includes_default
7142#include <$ac_header>
7143_ACEOF
7144rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007145if { (ac_try="$ac_compile"
7146case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149esac
7150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161 ac_header_compiler=yes
7162else
7163 echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
Theodore Ts'oe1052142006-10-21 21:46:47 -04007166 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007168
7169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7171echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172
7173# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007174{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007176cat >conftest.$ac_ext <<_ACEOF
7177/* confdefs.h. */
7178_ACEOF
7179cat confdefs.h >>conftest.$ac_ext
7180cat >>conftest.$ac_ext <<_ACEOF
7181/* end confdefs.h. */
7182#include <$ac_header>
7183_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007184if { (ac_try="$ac_cpp conftest.$ac_ext"
7185case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188esac
7189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007196 (exit $ac_status); } >/dev/null && {
7197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007200 ac_header_preproc=yes
7201else
7202 echo "$as_me: failed program was:" >&5
7203sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 ac_header_preproc=no
7206fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211
7212# So? What about this header?
7213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214 yes:no: )
7215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7219 ac_header_preproc=yes
7220 ;;
7221 no:yes:* )
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235 ;;
7236esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007237{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242 eval "$as_ac_Header=\$ac_header_preproc"
7243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007244ac_res=`eval echo '${'$as_ac_Header'}'`
7245 { echo "$as_me:$LINENO: result: $ac_res" >&5
7246echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007247
7248fi
7249if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250 cat >>confdefs.h <<_ACEOF
7251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252_ACEOF
7253
7254fi
7255
7256done
7257
Theodore Ts'oe1052142006-10-21 21:46:47 -04007258 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7259echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007260 result=
7261 cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h. */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h. */
7267
7268#include <limits.h>
7269#if HAVE_STDINT_H
7270#include <stdint.h>
7271#endif
7272#ifdef SIZE_MAX
7273Found it
7274#endif
7275
7276_ACEOF
7277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 $EGREP "Found it" >/dev/null 2>&1; then
7279 result=yes
7280fi
7281rm -f conftest*
7282
7283 if test -z "$result"; then
7284 if test "$cross_compiling" = yes; then
7285 # Depending upon the size, compute the lo and hi bounds.
7286cat >conftest.$ac_ext <<_ACEOF
7287/* confdefs.h. */
7288_ACEOF
7289cat confdefs.h >>conftest.$ac_ext
7290cat >>conftest.$ac_ext <<_ACEOF
7291/* end confdefs.h. */
7292#include <stddef.h>
7293int
7294main ()
7295{
7296static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7297test_array [0] = 0
7298
7299 ;
7300 return 0;
7301}
7302_ACEOF
7303rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007304if { (ac_try="$ac_compile"
7305case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308esac
7309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007320 ac_lo=0 ac_mid=0
7321 while :; do
7322 cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328#include <stddef.h>
7329int
7330main ()
7331{
7332static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7333test_array [0] = 0
7334
7335 ;
7336 return 0;
7337}
7338_ACEOF
7339rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007340if { (ac_try="$ac_compile"
7341case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344esac
7345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007356 ac_hi=$ac_mid; break
7357else
7358 echo "$as_me: failed program was:" >&5
7359sed 's/^/| /' conftest.$ac_ext >&5
7360
Theodore Ts'oe1052142006-10-21 21:46:47 -04007361 ac_lo=`expr $ac_mid + 1`
7362 if test $ac_lo -le $ac_mid; then
7363 ac_lo= ac_hi=
7364 break
7365 fi
7366 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007368
7369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007370 done
7371else
7372 echo "$as_me: failed program was:" >&5
7373sed 's/^/| /' conftest.$ac_ext >&5
7374
Theodore Ts'oe1052142006-10-21 21:46:47 -04007375 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376/* confdefs.h. */
7377_ACEOF
7378cat confdefs.h >>conftest.$ac_ext
7379cat >>conftest.$ac_ext <<_ACEOF
7380/* end confdefs.h. */
7381#include <stddef.h>
7382int
7383main ()
7384{
7385static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7386test_array [0] = 0
7387
7388 ;
7389 return 0;
7390}
7391_ACEOF
7392rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007393if { (ac_try="$ac_compile"
7394case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007409 ac_hi=-1 ac_mid=-1
7410 while :; do
7411 cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
7417#include <stddef.h>
7418int
7419main ()
7420{
7421static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7422test_array [0] = 0
7423
7424 ;
7425 return 0;
7426}
7427_ACEOF
7428rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007429if { (ac_try="$ac_compile"
7430case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433esac
7434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445 ac_lo=$ac_mid; break
7446else
7447 echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
Theodore Ts'oe1052142006-10-21 21:46:47 -04007450 ac_hi=`expr '(' $ac_mid ')' - 1`
7451 if test $ac_mid -le $ac_hi; then
7452 ac_lo= ac_hi=
7453 break
7454 fi
7455 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007457
7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459 done
7460else
7461 echo "$as_me: failed program was:" >&5
7462sed 's/^/| /' conftest.$ac_ext >&5
7463
Theodore Ts'oe1052142006-10-21 21:46:47 -04007464 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007465fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007466
7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007468fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007469
7470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471# Binary search between lo and hi bounds.
7472while test "x$ac_lo" != "x$ac_hi"; do
7473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7474 cat >conftest.$ac_ext <<_ACEOF
7475/* confdefs.h. */
7476_ACEOF
7477cat confdefs.h >>conftest.$ac_ext
7478cat >>conftest.$ac_ext <<_ACEOF
7479/* end confdefs.h. */
7480#include <stddef.h>
7481int
7482main ()
7483{
7484static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7485test_array [0] = 0
7486
7487 ;
7488 return 0;
7489}
7490_ACEOF
7491rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007492if { (ac_try="$ac_compile"
7493case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496esac
7497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508 ac_hi=$ac_mid
7509else
7510 echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
Theodore Ts'oe1052142006-10-21 21:46:47 -04007513 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007515
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007517done
7518case $ac_lo in
7519?*) res_hi=$ac_lo;;
7520'') result=? ;;
7521esac
7522else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523 cat >conftest.$ac_ext <<_ACEOF
7524/* confdefs.h. */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h. */
7529#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007530static long int longval () { return ~(size_t)0 / 10; }
7531static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532#include <stdio.h>
7533#include <stdlib.h>
7534int
7535main ()
7536{
7537
7538 FILE *f = fopen ("conftest.val", "w");
7539 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007540 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541 if ((~(size_t)0 / 10) < 0)
7542 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007543 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007544 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007545 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546 fprintf (f, "%ld\n", i);
7547 }
7548 else
7549 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007550 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007552 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007553 fprintf (f, "%lu\n", i);
7554 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007555 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007562if { (ac_try="$ac_link"
7563case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566esac
7567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007572 { (case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575esac
7576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 res_hi=`cat conftest.val`
7582else
7583 echo "$as_me: program exited with status $ac_status" >&5
7584echo "$as_me: failed program was:" >&5
7585sed 's/^/| /' conftest.$ac_ext >&5
7586
7587( exit $ac_status )
7588result=?
7589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007590rm -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 -05007591fi
7592rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594 if test "$cross_compiling" = yes; then
7595 # Depending upon the size, compute the lo and hi bounds.
7596cat >conftest.$ac_ext <<_ACEOF
7597/* confdefs.h. */
7598_ACEOF
7599cat confdefs.h >>conftest.$ac_ext
7600cat >>conftest.$ac_ext <<_ACEOF
7601/* end confdefs.h. */
7602#include <stddef.h>
7603int
7604main ()
7605{
7606static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7607test_array [0] = 0
7608
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007614if { (ac_try="$ac_compile"
7615case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618esac
7619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007626 (exit $ac_status); } && {
7627 test -z "$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 ac_lo=0 ac_mid=0
7631 while :; do
7632 cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h. */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h. */
7638#include <stddef.h>
7639int
7640main ()
7641{
7642static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7643test_array [0] = 0
7644
7645 ;
7646 return 0;
7647}
7648_ACEOF
7649rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007650if { (ac_try="$ac_compile"
7651case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
7655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 ac_hi=$ac_mid; break
7667else
7668 echo "$as_me: failed program was:" >&5
7669sed 's/^/| /' conftest.$ac_ext >&5
7670
Theodore Ts'oe1052142006-10-21 21:46:47 -04007671 ac_lo=`expr $ac_mid + 1`
7672 if test $ac_lo -le $ac_mid; then
7673 ac_lo= ac_hi=
7674 break
7675 fi
7676 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007677fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007678
7679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680 done
7681else
7682 echo "$as_me: failed program was:" >&5
7683sed 's/^/| /' conftest.$ac_ext >&5
7684
Theodore Ts'oe1052142006-10-21 21:46:47 -04007685 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h. */
7691#include <stddef.h>
7692int
7693main ()
7694{
7695static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7696test_array [0] = 0
7697
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007703if { (ac_try="$ac_compile"
7704case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007719 ac_hi=-1 ac_mid=-1
7720 while :; do
7721 cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h. */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h. */
7727#include <stddef.h>
7728int
7729main ()
7730{
7731static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7732test_array [0] = 0
7733
7734 ;
7735 return 0;
7736}
7737_ACEOF
7738rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007739if { (ac_try="$ac_compile"
7740case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743esac
7744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007751 (exit $ac_status); } && {
7752 test -z "$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007755 ac_lo=$ac_mid; break
7756else
7757 echo "$as_me: failed program was:" >&5
7758sed 's/^/| /' conftest.$ac_ext >&5
7759
Theodore Ts'oe1052142006-10-21 21:46:47 -04007760 ac_hi=`expr '(' $ac_mid ')' - 1`
7761 if test $ac_mid -le $ac_hi; then
7762 ac_lo= ac_hi=
7763 break
7764 fi
7765 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007766fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007767
7768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007769 done
7770else
7771 echo "$as_me: failed program was:" >&5
7772sed 's/^/| /' conftest.$ac_ext >&5
7773
Theodore Ts'oe1052142006-10-21 21:46:47 -04007774 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007775fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007776
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007778fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007779
7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781# Binary search between lo and hi bounds.
7782while test "x$ac_lo" != "x$ac_hi"; do
7783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7784 cat >conftest.$ac_ext <<_ACEOF
7785/* confdefs.h. */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */
7790#include <stddef.h>
7791int
7792main ()
7793{
7794static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7795test_array [0] = 0
7796
7797 ;
7798 return 0;
7799}
7800_ACEOF
7801rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007802if { (ac_try="$ac_compile"
7803case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806esac
7807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007818 ac_hi=$ac_mid
7819else
7820 echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
Theodore Ts'oe1052142006-10-21 21:46:47 -04007823 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007824fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007825
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007827done
7828case $ac_lo in
7829?*) res_lo=$ac_lo;;
7830'') result=? ;;
7831esac
7832else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833 cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
7839#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007840static long int longval () { return ~(size_t)0 % 10; }
7841static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007842#include <stdio.h>
7843#include <stdlib.h>
7844int
7845main ()
7846{
7847
7848 FILE *f = fopen ("conftest.val", "w");
7849 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007850 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007851 if ((~(size_t)0 % 10) < 0)
7852 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007853 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007854 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007855 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007856 fprintf (f, "%ld\n", i);
7857 }
7858 else
7859 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007860 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007862 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863 fprintf (f, "%lu\n", i);
7864 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007865 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007872if { (ac_try="$ac_link"
7873case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885esac
7886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 res_lo=`cat conftest.val`
7892else
7893 echo "$as_me: program exited with status $ac_status" >&5
7894echo "$as_me: failed program was:" >&5
7895sed 's/^/| /' conftest.$ac_ext >&5
7896
7897( exit $ac_status )
7898result=?
7899fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007900rm -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 -05007901fi
7902rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007904 if test "$cross_compiling" = yes; then
7905 # Depending upon the size, compute the lo and hi bounds.
7906cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912#include <stddef.h>
7913int
7914main ()
7915{
7916static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7917test_array [0] = 0
7918
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007924if { (ac_try="$ac_compile"
7925case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007940 ac_lo=0 ac_mid=0
7941 while :; do
7942 cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h. */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h. */
7948#include <stddef.h>
7949int
7950main ()
7951{
7952static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7953test_array [0] = 0
7954
7955 ;
7956 return 0;
7957}
7958_ACEOF
7959rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007960if { (ac_try="$ac_compile"
7961case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007976 ac_hi=$ac_mid; break
7977else
7978 echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
Theodore Ts'oe1052142006-10-21 21:46:47 -04007981 ac_lo=`expr $ac_mid + 1`
7982 if test $ac_lo -le $ac_mid; then
7983 ac_lo= ac_hi=
7984 break
7985 fi
7986 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007988
7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007990 done
7991else
7992 echo "$as_me: failed program was:" >&5
7993sed 's/^/| /' conftest.$ac_ext >&5
7994
Theodore Ts'oe1052142006-10-21 21:46:47 -04007995 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007996/* confdefs.h. */
7997_ACEOF
7998cat confdefs.h >>conftest.$ac_ext
7999cat >>conftest.$ac_ext <<_ACEOF
8000/* end confdefs.h. */
8001#include <stddef.h>
8002int
8003main ()
8004{
8005static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8006test_array [0] = 0
8007
8008 ;
8009 return 0;
8010}
8011_ACEOF
8012rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008013if { (ac_try="$ac_compile"
8014case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017esac
8018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008029 ac_hi=-1 ac_mid=-1
8030 while :; do
8031 cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h. */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h. */
8037#include <stddef.h>
8038int
8039main ()
8040{
8041static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8042test_array [0] = 0
8043
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008049if { (ac_try="$ac_compile"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008065 ac_lo=$ac_mid; break
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
Theodore Ts'oe1052142006-10-21 21:46:47 -04008070 ac_hi=`expr '(' $ac_mid ')' - 1`
8071 if test $ac_mid -le $ac_hi; then
8072 ac_lo= ac_hi=
8073 break
8074 fi
8075 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008077
8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008079 done
8080else
8081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
Theodore Ts'oe1052142006-10-21 21:46:47 -04008084 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008086
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008088fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008089
8090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091# Binary search between lo and hi bounds.
8092while test "x$ac_lo" != "x$ac_hi"; do
8093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8094 cat >conftest.$ac_ext <<_ACEOF
8095/* confdefs.h. */
8096_ACEOF
8097cat confdefs.h >>conftest.$ac_ext
8098cat >>conftest.$ac_ext <<_ACEOF
8099/* end confdefs.h. */
8100#include <stddef.h>
8101int
8102main ()
8103{
8104static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8105test_array [0] = 0
8106
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008112if { (ac_try="$ac_compile"
8113case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008128 ac_hi=$ac_mid
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
Theodore Ts'oe1052142006-10-21 21:46:47 -04008133 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008134fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008137done
8138case $ac_lo in
8139?*) fits_in_uint=$ac_lo;;
8140'') result=? ;;
8141esac
8142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008143 cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
8149#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008150static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8151static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008152#include <stdio.h>
8153#include <stdlib.h>
8154int
8155main ()
8156{
8157
8158 FILE *f = fopen ("conftest.val", "w");
8159 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008160 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008161 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8162 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008163 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008164 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008165 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008166 fprintf (f, "%ld\n", i);
8167 }
8168 else
8169 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008170 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008171 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008172 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008173 fprintf (f, "%lu\n", i);
8174 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008175 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008176
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008182if { (ac_try="$ac_link"
8183case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008192 { (case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195esac
8196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 fits_in_uint=`cat conftest.val`
8202else
8203 echo "$as_me: program exited with status $ac_status" >&5
8204echo "$as_me: failed program was:" >&5
8205sed 's/^/| /' conftest.$ac_ext >&5
8206
8207( exit $ac_status )
8208result=?
8209fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008210rm -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 -05008211fi
8212rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008213
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008214 if test "$fits_in_uint" = 1; then
8215 cat >conftest.$ac_ext <<_ACEOF
8216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
8221#include <stddef.h>
8222 extern size_t foo;
8223 extern unsigned long foo;
8224
8225int
8226main ()
8227{
8228
8229 ;
8230 return 0;
8231}
8232_ACEOF
8233rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008234if { (ac_try="$ac_compile"
8235case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238esac
8239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008250 fits_in_uint=0
8251else
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
Theodore Ts'oe1052142006-10-21 21:46:47 -04008255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008257
8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008259 fi
8260 if test -z "$result"; then
8261 if test "$fits_in_uint" = 1; then
8262 result="$res_hi$res_lo"U
8263 else
8264 result="$res_hi$res_lo"UL
8265 fi
8266 else
8267 result='~(size_t)0'
8268 fi
8269 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008270 { echo "$as_me:$LINENO: result: $result" >&5
8271echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272 if test "$result" != yes; then
8273
8274cat >>confdefs.h <<_ACEOF
8275#define SIZE_MAX $result
8276_ACEOF
8277
8278 fi
8279
8280
8281
8282
8283for ac_header in stdint.h
8284do
8285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008292ac_res=`eval echo '${'$as_ac_Header'}'`
8293 { echo "$as_me:$LINENO: result: $ac_res" >&5
8294echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008295else
8296 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008297{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008299cat >conftest.$ac_ext <<_ACEOF
8300/* confdefs.h. */
8301_ACEOF
8302cat confdefs.h >>conftest.$ac_ext
8303cat >>conftest.$ac_ext <<_ACEOF
8304/* end confdefs.h. */
8305$ac_includes_default
8306#include <$ac_header>
8307_ACEOF
8308rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008309if { (ac_try="$ac_compile"
8310case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008325 ac_header_compiler=yes
8326else
8327 echo "$as_me: failed program was:" >&5
8328sed 's/^/| /' conftest.$ac_ext >&5
8329
Theodore Ts'oe1052142006-10-21 21:46:47 -04008330 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008332
8333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8335echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336
8337# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008338{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008340cat >conftest.$ac_ext <<_ACEOF
8341/* confdefs.h. */
8342_ACEOF
8343cat confdefs.h >>conftest.$ac_ext
8344cat >>conftest.$ac_ext <<_ACEOF
8345/* end confdefs.h. */
8346#include <$ac_header>
8347_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008348if { (ac_try="$ac_cpp conftest.$ac_ext"
8349case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008360 (exit $ac_status); } >/dev/null && {
8361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008364 ac_header_preproc=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_header_preproc=no
8370fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008372rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8374echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008375
8376# So? What about this header?
8377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8378 yes:no: )
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8383 ac_header_preproc=yes
8384 ;;
8385 no:yes:* )
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008399 ;;
8400esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405else
8406 eval "$as_ac_Header=\$ac_header_preproc"
8407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008408ac_res=`eval echo '${'$as_ac_Header'}'`
8409 { echo "$as_me:$LINENO: result: $ac_res" >&5
8410echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008411
8412fi
8413if test `eval echo '${'$as_ac_Header'}'` = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416_ACEOF
8417
8418fi
8419
8420done
8421
8422
8423
8424 if test "X$prefix" = "XNONE"; then
8425 acl_final_prefix="$ac_default_prefix"
8426 else
8427 acl_final_prefix="$prefix"
8428 fi
8429 if test "X$exec_prefix" = "XNONE"; then
8430 acl_final_exec_prefix='${prefix}'
8431 else
8432 acl_final_exec_prefix="$exec_prefix"
8433 fi
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8437 prefix="$acl_save_prefix"
8438
8439
Theodore Ts'oe1052142006-10-21 21:46:47 -04008440# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008441if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008443else
8444 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008445fi
8446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008447# Prepare PATH_SEPARATOR.
8448# The user is always right.
8449if test "${PATH_SEPARATOR+set}" != set; then
8450 echo "#! /bin/sh" >conf$$.sh
8451 echo "exit 0" >>conf$$.sh
8452 chmod +x conf$$.sh
8453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8454 PATH_SEPARATOR=';'
8455 else
8456 PATH_SEPARATOR=:
8457 fi
8458 rm -f conf$$.sh
8459fi
8460ac_prog=ld
8461if test "$GCC" = yes; then
8462 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008463 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8464echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008465 case $host in
8466 *-*-mingw*)
8467 # gcc leaves a trailing carriage return which upsets mingw
8468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8469 *)
8470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8471 esac
8472 case $ac_prog in
8473 # Accept absolute paths.
8474 [\\/]* | [A-Za-z]:[\\/]*)
8475 re_direlt='/[^/][^/]*/\.\./'
8476 # Canonicalize the path of ld
8477 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8478 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8479 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8480 done
8481 test -z "$LD" && LD="$ac_prog"
8482 ;;
8483 "")
8484 # If it fails, then pretend we aren't using GCC.
8485 ac_prog=ld
8486 ;;
8487 *)
8488 # If it is relative, then search for the first ld in PATH.
8489 with_gnu_ld=unknown
8490 ;;
8491 esac
8492elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008493 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8494echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008495else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008496 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8497echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008498fi
8499if test "${acl_cv_path_LD+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502 if test -z "$LD"; then
8503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8504 for ac_dir in $PATH; do
8505 test -z "$ac_dir" && ac_dir=.
8506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8507 acl_cv_path_LD="$ac_dir/$ac_prog"
8508 # Check to see if the program is GNU ld. I'd rather use --version,
8509 # but apparently some GNU ld's only accept -v.
8510 # Break only if it was the GNU/non-GNU ld that we prefer.
8511 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8512 *GNU* | *'with BFD'*)
8513 test "$with_gnu_ld" != no && break ;;
8514 *)
8515 test "$with_gnu_ld" != yes && break ;;
8516 esac
8517 fi
8518 done
8519 IFS="$ac_save_ifs"
8520else
8521 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8522fi
8523fi
8524
8525LD="$acl_cv_path_LD"
8526if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008527 { echo "$as_me:$LINENO: result: $LD" >&5
8528echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008529else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008530 { echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008532fi
8533test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8534echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8535 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008536{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8537echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008538if test "${acl_cv_prog_gnu_ld+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8542case `$LD -v 2>&1 </dev/null` in
8543*GNU* | *'with BFD'*)
8544 acl_cv_prog_gnu_ld=yes ;;
8545*)
8546 acl_cv_prog_gnu_ld=no ;;
8547esac
8548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008549{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8550echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551with_gnu_ld=$acl_cv_prog_gnu_ld
8552
8553
8554
Theodore Ts'oe1052142006-10-21 21:46:47 -04008555 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8556echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557if test "${acl_cv_rpath+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560
8561 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8562 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8563 . ./conftest.sh
8564 rm -f ./conftest.sh
8565 acl_cv_rpath=done
8566
8567fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008568{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8569echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008570 wl="$acl_cv_wl"
8571 libext="$acl_cv_libext"
8572 shlibext="$acl_cv_shlibext"
8573 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8574 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8575 hardcode_direct="$acl_cv_hardcode_direct"
8576 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008577 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008578if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008579 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008580else
8581 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008582fi
8583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584
8585
8586
8587
8588
8589
8590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008591 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008600
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008604
Theodore Ts'oe1052142006-10-21 21:46:47 -04008605# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008606if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008607 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008608 if test "X$withval" = "Xno"; then
8609 use_additional=no
8610 else
8611 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008617
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008618 eval additional_includedir=\"$includedir\"
8619 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008621 exec_prefix="$acl_save_exec_prefix"
8622 prefix="$acl_save_prefix"
8623
8624 else
8625 additional_includedir="$withval/include"
8626 additional_libdir="$withval/lib"
8627 fi
8628 fi
8629
Theodore Ts'oe1052142006-10-21 21:46:47 -04008630fi
8631
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008632 LIBICONV=
8633 LTLIBICONV=
8634 INCICONV=
8635 rpathdirs=
8636 ltrpathdirs=
8637 names_already_handled=
8638 names_next_round='iconv '
8639 while test -n "$names_next_round"; do
8640 names_this_round="$names_next_round"
8641 names_next_round=
8642 for name in $names_this_round; do
8643 already_handled=
8644 for n in $names_already_handled; do
8645 if test "$n" = "$name"; then
8646 already_handled=yes
8647 break
8648 fi
8649 done
8650 if test -z "$already_handled"; then
8651 names_already_handled="$names_already_handled $name"
8652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653 eval value=\"\$HAVE_LIB$uppername\"
8654 if test -n "$value"; then
8655 if test "$value" = yes; then
8656 eval value=\"\$LIB$uppername\"
8657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8658 eval value=\"\$LTLIB$uppername\"
8659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8660 else
8661 :
8662 fi
8663 else
8664 found_dir=
8665 found_la=
8666 found_so=
8667 found_a=
8668 if test $use_additional = yes; then
8669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670 found_dir="$additional_libdir"
8671 found_so="$additional_libdir/lib$name.$shlibext"
8672 if test -f "$additional_libdir/lib$name.la"; then
8673 found_la="$additional_libdir/lib$name.la"
8674 fi
8675 else
8676 if test -f "$additional_libdir/lib$name.$libext"; then
8677 found_dir="$additional_libdir"
8678 found_a="$additional_libdir/lib$name.$libext"
8679 if test -f "$additional_libdir/lib$name.la"; then
8680 found_la="$additional_libdir/lib$name.la"
8681 fi
8682 fi
8683 fi
8684 fi
8685 if test "X$found_dir" = "X"; then
8686 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008687
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008688 acl_save_prefix="$prefix"
8689 prefix="$acl_final_prefix"
8690 acl_save_exec_prefix="$exec_prefix"
8691 exec_prefix="$acl_final_exec_prefix"
8692 eval x=\"$x\"
8693 exec_prefix="$acl_save_exec_prefix"
8694 prefix="$acl_save_prefix"
8695
8696 case "$x" in
8697 -L*)
8698 dir=`echo "X$x" | sed -e 's/^X-L//'`
8699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8700 found_dir="$dir"
8701 found_so="$dir/lib$name.$shlibext"
8702 if test -f "$dir/lib$name.la"; then
8703 found_la="$dir/lib$name.la"
8704 fi
8705 else
8706 if test -f "$dir/lib$name.$libext"; then
8707 found_dir="$dir"
8708 found_a="$dir/lib$name.$libext"
8709 if test -f "$dir/lib$name.la"; then
8710 found_la="$dir/lib$name.la"
8711 fi
8712 fi
8713 fi
8714 ;;
8715 esac
8716 if test "X$found_dir" != "X"; then
8717 break
8718 fi
8719 done
8720 fi
8721 if test "X$found_dir" != "X"; then
8722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8723 if test "X$found_so" != "X"; then
8724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8726 else
8727 haveit=
8728 for x in $ltrpathdirs; do
8729 if test "X$x" = "X$found_dir"; then
8730 haveit=yes
8731 break
8732 fi
8733 done
8734 if test -z "$haveit"; then
8735 ltrpathdirs="$ltrpathdirs $found_dir"
8736 fi
8737 if test "$hardcode_direct" = yes; then
8738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8739 else
8740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8742 haveit=
8743 for x in $rpathdirs; do
8744 if test "X$x" = "X$found_dir"; then
8745 haveit=yes
8746 break
8747 fi
8748 done
8749 if test -z "$haveit"; then
8750 rpathdirs="$rpathdirs $found_dir"
8751 fi
8752 else
8753 haveit=
8754 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
8760 eval x=\"$x\"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8763
8764 if test "X$x" = "X-L$found_dir"; then
8765 haveit=yes
8766 break
8767 fi
8768 done
8769 if test -z "$haveit"; then
8770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8771 fi
8772 if test "$hardcode_minus_L" != no; then
8773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8774 else
8775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8776 fi
8777 fi
8778 fi
8779 fi
8780 else
8781 if test "X$found_a" != "X"; then
8782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8783 else
8784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8785 fi
8786 fi
8787 additional_includedir=
8788 case "$found_dir" in
8789 */lib | */lib/)
8790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791 additional_includedir="$basedir/include"
8792 ;;
8793 esac
8794 if test "X$additional_includedir" != "X"; then
8795 if test "X$additional_includedir" != "X/usr/include"; then
8796 haveit=
8797 if test "X$additional_includedir" = "X/usr/local/include"; then
8798 if test -n "$GCC"; then
8799 case $host_os in
8800 linux*) haveit=yes;;
8801 esac
8802 fi
8803 fi
8804 if test -z "$haveit"; then
8805 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008807 acl_save_prefix="$prefix"
8808 prefix="$acl_final_prefix"
8809 acl_save_exec_prefix="$exec_prefix"
8810 exec_prefix="$acl_final_exec_prefix"
8811 eval x=\"$x\"
8812 exec_prefix="$acl_save_exec_prefix"
8813 prefix="$acl_save_prefix"
8814
8815 if test "X$x" = "X-I$additional_includedir"; then
8816 haveit=yes
8817 break
8818 fi
8819 done
8820 if test -z "$haveit"; then
8821 if test -d "$additional_includedir"; then
8822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8823 fi
8824 fi
8825 fi
8826 fi
8827 fi
8828 if test -n "$found_la"; then
8829 save_libdir="$libdir"
8830 case "$found_la" in
8831 */* | *\\*) . "$found_la" ;;
8832 *) . "./$found_la" ;;
8833 esac
8834 libdir="$save_libdir"
8835 for dep in $dependency_libs; do
8836 case "$dep" in
8837 -L*)
8838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839 if test "X$additional_libdir" != "X/usr/lib"; then
8840 haveit=
8841 if test "X$additional_libdir" = "X/usr/local/lib"; then
8842 if test -n "$GCC"; then
8843 case $host_os in
8844 linux*) haveit=yes;;
8845 esac
8846 fi
8847 fi
8848 if test -z "$haveit"; then
8849 haveit=
8850 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008851
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008852 acl_save_prefix="$prefix"
8853 prefix="$acl_final_prefix"
8854 acl_save_exec_prefix="$exec_prefix"
8855 exec_prefix="$acl_final_exec_prefix"
8856 eval x=\"$x\"
8857 exec_prefix="$acl_save_exec_prefix"
8858 prefix="$acl_save_prefix"
8859
8860 if test "X$x" = "X-L$additional_libdir"; then
8861 haveit=yes
8862 break
8863 fi
8864 done
8865 if test -z "$haveit"; then
8866 if test -d "$additional_libdir"; then
8867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8868 fi
8869 fi
8870 haveit=
8871 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008873 acl_save_prefix="$prefix"
8874 prefix="$acl_final_prefix"
8875 acl_save_exec_prefix="$exec_prefix"
8876 exec_prefix="$acl_final_exec_prefix"
8877 eval x=\"$x\"
8878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8880
8881 if test "X$x" = "X-L$additional_libdir"; then
8882 haveit=yes
8883 break
8884 fi
8885 done
8886 if test -z "$haveit"; then
8887 if test -d "$additional_libdir"; then
8888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8889 fi
8890 fi
8891 fi
8892 fi
8893 ;;
8894 -R*)
8895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896 if test "$enable_rpath" != no; then
8897 haveit=
8898 for x in $rpathdirs; do
8899 if test "X$x" = "X$dir"; then
8900 haveit=yes
8901 break
8902 fi
8903 done
8904 if test -z "$haveit"; then
8905 rpathdirs="$rpathdirs $dir"
8906 fi
8907 haveit=
8908 for x in $ltrpathdirs; do
8909 if test "X$x" = "X$dir"; then
8910 haveit=yes
8911 break
8912 fi
8913 done
8914 if test -z "$haveit"; then
8915 ltrpathdirs="$ltrpathdirs $dir"
8916 fi
8917 fi
8918 ;;
8919 -l*)
8920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8921 ;;
8922 *.la)
8923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8924 ;;
8925 *)
8926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8928 ;;
8929 esac
8930 done
8931 fi
8932 else
8933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8935 fi
8936 fi
8937 fi
8938 done
8939 done
8940 if test "X$rpathdirs" != "X"; then
8941 if test -n "$hardcode_libdir_separator"; then
8942 alldirs=
8943 for found_dir in $rpathdirs; do
8944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8945 done
8946 acl_save_libdir="$libdir"
8947 libdir="$alldirs"
8948 eval flag=\"$hardcode_libdir_flag_spec\"
8949 libdir="$acl_save_libdir"
8950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8951 else
8952 for found_dir in $rpathdirs; do
8953 acl_save_libdir="$libdir"
8954 libdir="$found_dir"
8955 eval flag=\"$hardcode_libdir_flag_spec\"
8956 libdir="$acl_save_libdir"
8957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8958 done
8959 fi
8960 fi
8961 if test "X$ltrpathdirs" != "X"; then
8962 for found_dir in $ltrpathdirs; do
8963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8964 done
8965 fi
8966
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008967
8968
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008969
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008970
8971
8972
8973
Theodore Ts'oe1052142006-10-21 21:46:47 -04008974 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8975echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008976if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008978else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008979 cat >conftest.$ac_ext <<_ACEOF
8980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
8985$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008986typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008987int
8988main ()
8989{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008990if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008991 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008992if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008993 return 0;
8994 ;
8995 return 0;
8996}
8997_ACEOF
8998rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008999if { (ac_try="$ac_compile"
9000case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003esac
9004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009015 ac_cv_type_ptrdiff_t=yes
9016else
9017 echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
Theodore Ts'oe1052142006-10-21 21:46:47 -04009020 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009022
9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009025{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9026echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009027if test $ac_cv_type_ptrdiff_t = yes; then
9028 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009030
9031cat >>confdefs.h <<\_ACEOF
9032#define ptrdiff_t long
9033_ACEOF
9034
9035
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009036fi
9037
9038
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009039
9040
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009041
9042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009043
9044
9045
9046
9047
9048for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009049stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009050do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009056 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009057fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009058ac_res=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009061else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009065cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h. */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h. */
9071$ac_includes_default
9072#include <$ac_header>
9073_ACEOF
9074rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009075if { (ac_try="$ac_compile"
9076case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079esac
9080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091 ac_header_compiler=yes
9092else
9093 echo "$as_me: failed program was:" >&5
9094sed 's/^/| /' conftest.$ac_ext >&5
9095
Theodore Ts'oe1052142006-10-21 21:46:47 -04009096 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009098
9099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9101echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009102
9103# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009104{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009106cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112#include <$ac_header>
9113_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009114if { (ac_try="$ac_cpp conftest.$ac_ext"
9115case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118esac
9119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009126 (exit $ac_status); } >/dev/null && {
9127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009130 ac_header_preproc=yes
9131else
9132 echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_header_preproc=no
9136fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009138rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009139{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009141
9142# So? What about this header?
9143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9144 yes:no: )
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9149 ac_header_preproc=yes
9150 ;;
9151 no:yes:* )
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009165 ;;
9166esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009167{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
9172 eval "$as_ac_Header=\$ac_header_preproc"
9173fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009174ac_res=`eval echo '${'$as_ac_Header'}'`
9175 { echo "$as_me:$LINENO: result: $ac_res" >&5
9176echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009177
9178fi
9179if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182_ACEOF
9183
9184fi
9185
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009186done
9187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9212mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9213strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9214__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009215do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009217{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9219if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009221else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222 cat >conftest.$ac_ext <<_ACEOF
9223/* confdefs.h. */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
9227/* end confdefs.h. */
9228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9230#define $ac_func innocuous_$ac_func
9231
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009232/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9236
9237#ifdef __STDC__
9238# include <limits.h>
9239#else
9240# include <assert.h>
9241#endif
9242
9243#undef $ac_func
9244
Theodore Ts'oe1052142006-10-21 21:46:47 -04009245/* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009248#ifdef __cplusplus
9249extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009250#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009251char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009252/* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009255#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009256choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009257#endif
9258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009259int
9260main ()
9261{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009262return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263 ;
9264 return 0;
9265}
9266_ACEOF
9267rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009268if { (ac_try="$ac_link"
9269case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272esac
9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest$ac_exeext &&
9284 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009285 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009287 echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009289
Theodore Ts'oe1052142006-10-21 21:46:47 -04009290 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009292
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294 conftest$ac_exeext conftest.$ac_ext
9295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009296ac_res=`eval echo '${'$as_ac_var'}'`
9297 { echo "$as_me:$LINENO: result: $ac_res" >&5
9298echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009299if test `eval echo '${'$as_ac_var'}'` = yes; then
9300 cat >>confdefs.h <<_ACEOF
9301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9302_ACEOF
9303
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009304fi
9305done
9306
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009308
Theodore Ts'oe1052142006-10-21 21:46:47 -04009309 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9310echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009311if test "${ac_cv_have_decl__snprintf+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314 cat >conftest.$ac_ext <<_ACEOF
9315/* confdefs.h. */
9316_ACEOF
9317cat confdefs.h >>conftest.$ac_ext
9318cat >>conftest.$ac_ext <<_ACEOF
9319/* end confdefs.h. */
9320#include <stdio.h>
9321int
9322main ()
9323{
9324
9325#ifndef _snprintf
9326 char *p = (char *) _snprintf;
9327#endif
9328
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009334if { (ac_try="$ac_compile"
9335case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338esac
9339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009350 ac_cv_have_decl__snprintf=yes
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
Theodore Ts'oe1052142006-10-21 21:46:47 -04009355 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009356fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009357
9358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009360{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9361echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009362 if test $ac_cv_have_decl__snprintf = yes; then
9363 gt_value=1
9364 else
9365 gt_value=0
9366 fi
9367
9368cat >>confdefs.h <<_ACEOF
9369#define HAVE_DECL__SNPRINTF $gt_value
9370_ACEOF
9371
9372
9373
Theodore Ts'oe1052142006-10-21 21:46:47 -04009374 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9375echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009376if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378else
9379 cat >conftest.$ac_ext <<_ACEOF
9380/* confdefs.h. */
9381_ACEOF
9382cat confdefs.h >>conftest.$ac_ext
9383cat >>conftest.$ac_ext <<_ACEOF
9384/* end confdefs.h. */
9385#include <stdio.h>
9386int
9387main ()
9388{
9389
9390#ifndef _snwprintf
9391 char *p = (char *) _snwprintf;
9392#endif
9393
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009399if { (ac_try="$ac_compile"
9400case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403esac
9404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415 ac_cv_have_decl__snwprintf=yes
9416else
9417 echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
Theodore Ts'oe1052142006-10-21 21:46:47 -04009420 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009422
9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009425{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9426echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009427 if test $ac_cv_have_decl__snwprintf = yes; then
9428 gt_value=1
9429 else
9430 gt_value=0
9431 fi
9432
9433cat >>confdefs.h <<_ACEOF
9434#define HAVE_DECL__SNWPRINTF $gt_value
9435_ACEOF
9436
9437
9438
9439
Theodore Ts'oe1052142006-10-21 21:46:47 -04009440 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9441echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009442if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445 cat >conftest.$ac_ext <<_ACEOF
9446/* confdefs.h. */
9447_ACEOF
9448cat confdefs.h >>conftest.$ac_ext
9449cat >>conftest.$ac_ext <<_ACEOF
9450/* end confdefs.h. */
9451#include <stdio.h>
9452int
9453main ()
9454{
9455
9456#ifndef feof_unlocked
9457 char *p = (char *) feof_unlocked;
9458#endif
9459
9460 ;
9461 return 0;
9462}
9463_ACEOF
9464rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009465if { (ac_try="$ac_compile"
9466case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469esac
9470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472 ac_status=$?
9473 grep -v '^ *+' conftest.er1 >conftest.err
9474 rm -f conftest.er1
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009477 (exit $ac_status); } && {
9478 test -z "$ac_c_werror_flag" ||
9479 test ! -s conftest.err
9480 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009481 ac_cv_have_decl_feof_unlocked=yes
9482else
9483 echo "$as_me: failed program was:" >&5
9484sed 's/^/| /' conftest.$ac_ext >&5
9485
Theodore Ts'oe1052142006-10-21 21:46:47 -04009486 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009488
9489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009491{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9492echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009493 if test $ac_cv_have_decl_feof_unlocked = yes; then
9494 gt_value=1
9495 else
9496 gt_value=0
9497 fi
9498
9499cat >>confdefs.h <<_ACEOF
9500#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9501_ACEOF
9502
9503
9504
Theodore Ts'oe1052142006-10-21 21:46:47 -04009505 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9506echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009507if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509else
9510 cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h. */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h. */
9516#include <stdio.h>
9517int
9518main ()
9519{
9520
9521#ifndef fgets_unlocked
9522 char *p = (char *) fgets_unlocked;
9523#endif
9524
9525 ;
9526 return 0;
9527}
9528_ACEOF
9529rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009530if { (ac_try="$ac_compile"
9531case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534esac
9535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546 ac_cv_have_decl_fgets_unlocked=yes
9547else
9548 echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
Theodore Ts'oe1052142006-10-21 21:46:47 -04009551 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009553
9554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009555fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009556{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9557echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9559 gt_value=1
9560 else
9561 gt_value=0
9562 fi
9563
9564cat >>confdefs.h <<_ACEOF
9565#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9566_ACEOF
9567
9568
9569
Theodore Ts'oe1052142006-10-21 21:46:47 -04009570 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9571echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h. */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>conftest.$ac_ext <<_ACEOF
9580/* end confdefs.h. */
9581#include <stdio.h>
9582int
9583main ()
9584{
9585
9586#ifndef getc_unlocked
9587 char *p = (char *) getc_unlocked;
9588#endif
9589
9590 ;
9591 return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009595if { (ac_try="$ac_compile"
9596case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599esac
9600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009611 ac_cv_have_decl_getc_unlocked=yes
9612else
9613 echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
Theodore Ts'oe1052142006-10-21 21:46:47 -04009616 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009617fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009618
9619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009621{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9622echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009623 if test $ac_cv_have_decl_getc_unlocked = yes; then
9624 gt_value=1
9625 else
9626 gt_value=0
9627 fi
9628
9629cat >>confdefs.h <<_ACEOF
9630#define HAVE_DECL_GETC_UNLOCKED $gt_value
9631_ACEOF
9632
9633
9634
9635 case $gt_cv_func_printf_posix in
9636 *yes) HAVE_POSIX_PRINTF=1 ;;
9637 *) HAVE_POSIX_PRINTF=0 ;;
9638 esac
9639
9640 if test "$ac_cv_func_asprintf" = yes; then
9641 HAVE_ASPRINTF=1
9642 else
9643 HAVE_ASPRINTF=0
9644 fi
9645
9646 if test "$ac_cv_func_snprintf" = yes; then
9647 HAVE_SNPRINTF=1
9648 else
9649 HAVE_SNPRINTF=0
9650 fi
9651
9652 if test "$ac_cv_func_wprintf" = yes; then
9653 HAVE_WPRINTF=1
9654 else
9655 HAVE_WPRINTF=0
9656 fi
9657
9658
9659
9660
9661
9662
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009663
9664 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009665
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009666 for element in $INCICONV; do
9667 haveit=
9668 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009669
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009670 acl_save_prefix="$prefix"
9671 prefix="$acl_final_prefix"
9672 acl_save_exec_prefix="$exec_prefix"
9673 exec_prefix="$acl_final_exec_prefix"
9674 eval x=\"$x\"
9675 exec_prefix="$acl_save_exec_prefix"
9676 prefix="$acl_save_prefix"
9677
9678 if test "X$x" = "X$element"; then
9679 haveit=yes
9680 break
9681 fi
9682 done
9683 if test -z "$haveit"; then
9684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9685 fi
9686 done
9687
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009688
Theodore Ts'oe1052142006-10-21 21:46:47 -04009689 { echo "$as_me:$LINENO: checking for iconv" >&5
9690echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009691if test "${am_cv_func_iconv+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009693else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009695 am_cv_func_iconv="no, consider installing GNU libiconv"
9696 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009697 cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009703#include <stdlib.h>
9704#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009705int
9706main ()
9707{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009708iconv_t cd = iconv_open("","");
9709 iconv(cd,NULL,NULL,NULL,NULL);
9710 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009716if { (ac_try="$ac_link"
9717case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest$ac_exeext &&
9732 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009733 am_cv_func_iconv=yes
9734else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735 echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
Theodore Ts'oe1052142006-10-21 21:46:47 -04009738
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009740
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009742 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009743 if test "$am_cv_func_iconv" != yes; then
9744 am_save_LIBS="$LIBS"
9745 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009746 cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h. */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009752#include <stdlib.h>
9753#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009754int
9755main ()
9756{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009757iconv_t cd = iconv_open("","");
9758 iconv(cd,NULL,NULL,NULL,NULL);
9759 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009765if { (ac_try="$ac_link"
9766case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
9770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009782 am_cv_lib_iconv=yes
9783 am_cv_func_iconv=yes
9784else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009785 echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
Theodore Ts'oe1052142006-10-21 21:46:47 -04009788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009789fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009790
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009792 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009793 LIBS="$am_save_LIBS"
9794 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009797{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9798echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009799 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800
9801cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009802#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009803_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009804
9805 fi
9806 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9808echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9809 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9810echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009811 else
9812 CPPFLAGS="$am_save_CPPFLAGS"
9813 LIBICONV=
9814 LTLIBICONV=
9815 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009816
9817
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009818
9819 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009820 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9821echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009822 if test "${am_cv_proto_iconv+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009824else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825
9826 cat >conftest.$ac_ext <<_ACEOF
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009832
9833#include <stdlib.h>
9834#include <iconv.h>
9835extern
9836#ifdef __cplusplus
9837"C"
9838#endif
9839#if defined(__STDC__) || defined(__cplusplus)
9840size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9841#else
9842size_t iconv();
9843#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845int
9846main ()
9847{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009854if { (ac_try="$ac_compile"
9855case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009870 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009871else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872 echo "$as_me: failed program was:" >&5
9873sed 's/^/| /' conftest.$ac_ext >&5
9874
Theodore Ts'oe1052142006-10-21 21:46:47 -04009875 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009876fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009877
9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009879 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 +00009880fi
9881
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009882 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009883 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009884 }$am_cv_proto_iconv" >&5
9885echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009886 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009887
9888cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009889#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009890_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009891
9892 fi
9893
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894
Theodore Ts'oe1052142006-10-21 21:46:47 -04009895 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9896echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009897if test "${am_cv_langinfo_codeset+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009900 cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009906#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907int
9908main ()
9909{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009910char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009911 ;
9912 return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009933 am_cv_langinfo_codeset=yes
9934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009937
Theodore Ts'oe1052142006-10-21 21:46:47 -04009938 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009940
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942 conftest$ac_exeext conftest.$ac_ext
9943
9944fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009945{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9946echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009947 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948
9949cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009950#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009951_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009952
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009953 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009954
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009955 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009956
Theodore Ts'oe1052142006-10-21 21:46:47 -04009957 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9958echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009959if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009961else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009962 cat >conftest.$ac_ext <<_ACEOF
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009968#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009969int
9970main ()
9971{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009972return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009973 ;
9974 return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext &&
9994 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009995 am_cv_val_LC_MESSAGES=yes
9996else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009997 echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009999
Theodore Ts'oe1052142006-10-21 21:46:47 -040010000 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010002
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004 conftest$ac_exeext conftest.$ac_ext
10005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010006{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10007echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010008 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010009
10010cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010011#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010013
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010014 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010015
10016 fi
10017
10018 for ac_prog in bison
10019do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010021set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024if test "${ac_cv_prog_INTLBISON+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010026else
10027 if test -n "$INTLBISON"; then
10028 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010036 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 -050010037 ac_cv_prog_INTLBISON="$ac_prog"
10038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041done
10042done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010045fi
10046fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010047INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010048if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010049 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10050echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010051else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010052 { echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010054fi
10055
Theodore Ts'oe1052142006-10-21 21:46:47 -040010056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010058done
10059
10060 if test -z "$INTLBISON"; then
10061 ac_verc_fail=yes
10062 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010063 { echo "$as_me:$LINENO: checking version of bison" >&5
10064echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010065 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10066 case $ac_prog_version in
10067 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10068 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10069 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10070 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10071 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010072 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10073echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010074 fi
10075 if test $ac_verc_fail = yes; then
10076 INTLBISON=:
10077 fi
10078
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010079
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010080
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010081
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010082
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010084
10085
10086
10087
10088
10089
10090
10091
10092
10093
Theodore Ts'oe1052142006-10-21 21:46:47 -040010094 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10095echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10096 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010097if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010098 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010099else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010100 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010101fi
10102
10103 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10104echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010105
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010107
10108
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010109 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010110 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010112 LIBINTL=
10113 LTLIBINTL=
10114 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010115
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010116 if test "$USE_NLS" = "yes"; then
10117 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010118
Theodore Ts'oe1052142006-10-21 21:46:47 -040010119 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10120echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010121
Theodore Ts'oe1052142006-10-21 21:46:47 -040010122# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010123if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010124 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010125else
10126 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010127fi
10128
10129 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10130echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010131
10132 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10133 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010134
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010135
10136
10137
10138
10139
Theodore Ts'oe1052142006-10-21 21:46:47 -040010140 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10141echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010142if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010144else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010145 cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010151#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010152extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010153extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010154int
10155main ()
10156{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010157bindtextdomain ("", "");
10158return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159 ;
10160 return 0;
10161}
10162_ACEOF
10163rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010164if { (ac_try="$ac_link"
10165case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168esac
10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext &&
10180 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010181 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010182else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010183 echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010185
Theodore Ts'oe1052142006-10-21 21:46:47 -040010186 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010187fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010188
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010190 conftest$ac_exeext conftest.$ac_ext
10191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010192{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10193echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010194
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010195 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196
10197
10198
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010199 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010205
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010206 eval additional_includedir=\"$includedir\"
10207 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010208
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010209 exec_prefix="$acl_save_exec_prefix"
10210 prefix="$acl_save_prefix"
10211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010212
Theodore Ts'oe1052142006-10-21 21:46:47 -040010213# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010214if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010215 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010216 if test "X$withval" = "Xno"; then
10217 use_additional=no
10218 else
10219 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010220
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010221 acl_save_prefix="$prefix"
10222 prefix="$acl_final_prefix"
10223 acl_save_exec_prefix="$exec_prefix"
10224 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010225
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010226 eval additional_includedir=\"$includedir\"
10227 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010228
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010229 exec_prefix="$acl_save_exec_prefix"
10230 prefix="$acl_save_prefix"
10231
10232 else
10233 additional_includedir="$withval/include"
10234 additional_libdir="$withval/lib"
10235 fi
10236 fi
10237
Theodore Ts'oe1052142006-10-21 21:46:47 -040010238fi
10239
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010240 LIBINTL=
10241 LTLIBINTL=
10242 INCINTL=
10243 rpathdirs=
10244 ltrpathdirs=
10245 names_already_handled=
10246 names_next_round='intl '
10247 while test -n "$names_next_round"; do
10248 names_this_round="$names_next_round"
10249 names_next_round=
10250 for name in $names_this_round; do
10251 already_handled=
10252 for n in $names_already_handled; do
10253 if test "$n" = "$name"; then
10254 already_handled=yes
10255 break
10256 fi
10257 done
10258 if test -z "$already_handled"; then
10259 names_already_handled="$names_already_handled $name"
10260 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10261 eval value=\"\$HAVE_LIB$uppername\"
10262 if test -n "$value"; then
10263 if test "$value" = yes; then
10264 eval value=\"\$LIB$uppername\"
10265 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10266 eval value=\"\$LTLIB$uppername\"
10267 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10268 else
10269 :
10270 fi
10271 else
10272 found_dir=
10273 found_la=
10274 found_so=
10275 found_a=
10276 if test $use_additional = yes; then
10277 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10278 found_dir="$additional_libdir"
10279 found_so="$additional_libdir/lib$name.$shlibext"
10280 if test -f "$additional_libdir/lib$name.la"; then
10281 found_la="$additional_libdir/lib$name.la"
10282 fi
10283 else
10284 if test -f "$additional_libdir/lib$name.$libext"; then
10285 found_dir="$additional_libdir"
10286 found_a="$additional_libdir/lib$name.$libext"
10287 if test -f "$additional_libdir/lib$name.la"; then
10288 found_la="$additional_libdir/lib$name.la"
10289 fi
10290 fi
10291 fi
10292 fi
10293 if test "X$found_dir" = "X"; then
10294 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010295
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010296 acl_save_prefix="$prefix"
10297 prefix="$acl_final_prefix"
10298 acl_save_exec_prefix="$exec_prefix"
10299 exec_prefix="$acl_final_exec_prefix"
10300 eval x=\"$x\"
10301 exec_prefix="$acl_save_exec_prefix"
10302 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010303
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010304 case "$x" in
10305 -L*)
10306 dir=`echo "X$x" | sed -e 's/^X-L//'`
10307 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10308 found_dir="$dir"
10309 found_so="$dir/lib$name.$shlibext"
10310 if test -f "$dir/lib$name.la"; then
10311 found_la="$dir/lib$name.la"
10312 fi
10313 else
10314 if test -f "$dir/lib$name.$libext"; then
10315 found_dir="$dir"
10316 found_a="$dir/lib$name.$libext"
10317 if test -f "$dir/lib$name.la"; then
10318 found_la="$dir/lib$name.la"
10319 fi
10320 fi
10321 fi
10322 ;;
10323 esac
10324 if test "X$found_dir" != "X"; then
10325 break
10326 fi
10327 done
10328 fi
10329 if test "X$found_dir" != "X"; then
10330 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10331 if test "X$found_so" != "X"; then
10332 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10333 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10334 else
10335 haveit=
10336 for x in $ltrpathdirs; do
10337 if test "X$x" = "X$found_dir"; then
10338 haveit=yes
10339 break
10340 fi
10341 done
10342 if test -z "$haveit"; then
10343 ltrpathdirs="$ltrpathdirs $found_dir"
10344 fi
10345 if test "$hardcode_direct" = yes; then
10346 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10347 else
10348 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10350 haveit=
10351 for x in $rpathdirs; do
10352 if test "X$x" = "X$found_dir"; then
10353 haveit=yes
10354 break
10355 fi
10356 done
10357 if test -z "$haveit"; then
10358 rpathdirs="$rpathdirs $found_dir"
10359 fi
10360 else
10361 haveit=
10362 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010363
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10368 eval x=\"$x\"
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10371
10372 if test "X$x" = "X-L$found_dir"; then
10373 haveit=yes
10374 break
10375 fi
10376 done
10377 if test -z "$haveit"; then
10378 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10379 fi
10380 if test "$hardcode_minus_L" != no; then
10381 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10382 else
10383 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10384 fi
10385 fi
10386 fi
10387 fi
10388 else
10389 if test "X$found_a" != "X"; then
10390 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10391 else
10392 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10393 fi
10394 fi
10395 additional_includedir=
10396 case "$found_dir" in
10397 */lib | */lib/)
10398 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10399 additional_includedir="$basedir/include"
10400 ;;
10401 esac
10402 if test "X$additional_includedir" != "X"; then
10403 if test "X$additional_includedir" != "X/usr/include"; then
10404 haveit=
10405 if test "X$additional_includedir" = "X/usr/local/include"; then
10406 if test -n "$GCC"; then
10407 case $host_os in
10408 linux*) haveit=yes;;
10409 esac
10410 fi
10411 fi
10412 if test -z "$haveit"; then
10413 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010414
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10419 eval x=\"$x\"
10420 exec_prefix="$acl_save_exec_prefix"
10421 prefix="$acl_save_prefix"
10422
10423 if test "X$x" = "X-I$additional_includedir"; then
10424 haveit=yes
10425 break
10426 fi
10427 done
10428 if test -z "$haveit"; then
10429 if test -d "$additional_includedir"; then
10430 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10431 fi
10432 fi
10433 fi
10434 fi
10435 fi
10436 if test -n "$found_la"; then
10437 save_libdir="$libdir"
10438 case "$found_la" in
10439 */* | *\\*) . "$found_la" ;;
10440 *) . "./$found_la" ;;
10441 esac
10442 libdir="$save_libdir"
10443 for dep in $dependency_libs; do
10444 case "$dep" in
10445 -L*)
10446 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10447 if test "X$additional_libdir" != "X/usr/lib"; then
10448 haveit=
10449 if test "X$additional_libdir" = "X/usr/local/lib"; then
10450 if test -n "$GCC"; then
10451 case $host_os in
10452 linux*) haveit=yes;;
10453 esac
10454 fi
10455 fi
10456 if test -z "$haveit"; then
10457 haveit=
10458 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010459
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010460 acl_save_prefix="$prefix"
10461 prefix="$acl_final_prefix"
10462 acl_save_exec_prefix="$exec_prefix"
10463 exec_prefix="$acl_final_exec_prefix"
10464 eval x=\"$x\"
10465 exec_prefix="$acl_save_exec_prefix"
10466 prefix="$acl_save_prefix"
10467
10468 if test "X$x" = "X-L$additional_libdir"; then
10469 haveit=yes
10470 break
10471 fi
10472 done
10473 if test -z "$haveit"; then
10474 if test -d "$additional_libdir"; then
10475 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10476 fi
10477 fi
10478 haveit=
10479 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010480
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010481 acl_save_prefix="$prefix"
10482 prefix="$acl_final_prefix"
10483 acl_save_exec_prefix="$exec_prefix"
10484 exec_prefix="$acl_final_exec_prefix"
10485 eval x=\"$x\"
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10488
10489 if test "X$x" = "X-L$additional_libdir"; then
10490 haveit=yes
10491 break
10492 fi
10493 done
10494 if test -z "$haveit"; then
10495 if test -d "$additional_libdir"; then
10496 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10497 fi
10498 fi
10499 fi
10500 fi
10501 ;;
10502 -R*)
10503 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10504 if test "$enable_rpath" != no; then
10505 haveit=
10506 for x in $rpathdirs; do
10507 if test "X$x" = "X$dir"; then
10508 haveit=yes
10509 break
10510 fi
10511 done
10512 if test -z "$haveit"; then
10513 rpathdirs="$rpathdirs $dir"
10514 fi
10515 haveit=
10516 for x in $ltrpathdirs; do
10517 if test "X$x" = "X$dir"; then
10518 haveit=yes
10519 break
10520 fi
10521 done
10522 if test -z "$haveit"; then
10523 ltrpathdirs="$ltrpathdirs $dir"
10524 fi
10525 fi
10526 ;;
10527 -l*)
10528 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10529 ;;
10530 *.la)
10531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10532 ;;
10533 *)
10534 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10535 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10536 ;;
10537 esac
10538 done
10539 fi
10540 else
10541 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10543 fi
10544 fi
10545 fi
10546 done
10547 done
10548 if test "X$rpathdirs" != "X"; then
10549 if test -n "$hardcode_libdir_separator"; then
10550 alldirs=
10551 for found_dir in $rpathdirs; do
10552 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10553 done
10554 acl_save_libdir="$libdir"
10555 libdir="$alldirs"
10556 eval flag=\"$hardcode_libdir_flag_spec\"
10557 libdir="$acl_save_libdir"
10558 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10559 else
10560 for found_dir in $rpathdirs; do
10561 acl_save_libdir="$libdir"
10562 libdir="$found_dir"
10563 eval flag=\"$hardcode_libdir_flag_spec\"
10564 libdir="$acl_save_libdir"
10565 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10566 done
10567 fi
10568 fi
10569 if test "X$ltrpathdirs" != "X"; then
10570 for found_dir in $ltrpathdirs; do
10571 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10572 done
10573 fi
10574
Theodore Ts'oe1052142006-10-21 21:46:47 -040010575 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10576echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010579else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010580 gt_save_CPPFLAGS="$CPPFLAGS"
10581 CPPFLAGS="$CPPFLAGS $INCINTL"
10582 gt_save_LIBS="$LIBS"
10583 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010584 cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010590#include <libintl.h>
10591extern int _nl_msg_cat_cntr;
10592extern
10593#ifdef __cplusplus
10594"C"
10595#endif
10596const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597int
10598main ()
10599{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010600bindtextdomain ("", "");
10601return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602 ;
10603 return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010607if { (ac_try="$ac_link"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext &&
10623 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010624 gt_cv_func_gnugettext1_libintl=yes
10625else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626 echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
Theodore Ts'oe1052142006-10-21 21:46:47 -040010629 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010630fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010631
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010634 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10635 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010636 cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010642#include <libintl.h>
10643extern int _nl_msg_cat_cntr;
10644extern
10645#ifdef __cplusplus
10646"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010647#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010648const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010649int
10650main ()
10651{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010652bindtextdomain ("", "");
10653return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010654 ;
10655 return 0;
10656}
10657_ACEOF
10658rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010659if { (ac_try="$ac_link"
10660case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663esac
10664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest$ac_exeext &&
10675 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010676 LIBINTL="$LIBINTL $LIBICONV"
10677 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10678 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010680else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010681 echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
Theodore Ts'oe1052142006-10-21 21:46:47 -040010684
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010686
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010689 fi
10690 CPPFLAGS="$gt_save_CPPFLAGS"
10691 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010692fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010693{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10694echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010695 fi
10696
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010697 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10698 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010699 && test "$PACKAGE" != gettext-runtime \
10700 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010701 gt_use_preinstalled_gnugettext=yes
10702 else
10703 LIBINTL=
10704 LTLIBINTL=
10705 INCINTL=
10706 fi
10707
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010708
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010709 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10710 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010711 fi
10712 fi
10713
10714 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010715 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010716 USE_INCLUDED_LIBINTL=yes
10717 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10718 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10719 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010720 fi
10721
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010722 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10723 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10724 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010725 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010726
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010727
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010728 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10729 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730
10731cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010732#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010734
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010735 else
10736 USE_NLS=no
10737 fi
10738 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010739
Theodore Ts'oe1052142006-10-21 21:46:47 -040010740 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10741echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10742 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10743echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010745 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10746echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10748 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10749 gt_source="external libintl"
10750 else
10751 gt_source="libc"
10752 fi
10753 else
10754 gt_source="included intl directory"
10755 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010756 { echo "$as_me:$LINENO: result: $gt_source" >&5
10757echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010758 fi
10759
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010760 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010761
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010762 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10763 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010764 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10765echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10766 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10767echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010769 for element in $INCINTL; do
10770 haveit=
10771 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773 acl_save_prefix="$prefix"
10774 prefix="$acl_final_prefix"
10775 acl_save_exec_prefix="$exec_prefix"
10776 exec_prefix="$acl_final_exec_prefix"
10777 eval x=\"$x\"
10778 exec_prefix="$acl_save_exec_prefix"
10779 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010780
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010781 if test "X$x" = "X$element"; then
10782 haveit=yes
10783 break
10784 fi
10785 done
10786 if test -z "$haveit"; then
10787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10788 fi
10789 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010790
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010791 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010792
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794cat >>confdefs.h <<\_ACEOF
10795#define HAVE_GETTEXT 1
10796_ACEOF
10797
10798
10799cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010800#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010801_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010802
10803 fi
10804
10805 POSUB=po
10806 fi
10807
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010808
10809 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010810 BUILD_INCLUDED_LIBINTL=yes
10811 fi
10812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813
10814
10815
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010816
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010817 nls_cv_header_intl=
10818 nls_cv_header_libgt=
10819
10820 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010822
10823 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010824
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010825
10826 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827
10828
10829 if test "$USE_INCLUDED_LIBINTL" = yes; then
10830 INTLOBJS="\$(GETTOBJS)"
10831 fi
10832
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010833
10834 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010835
10836
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010837
10838 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010839
10840
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010841
10842
10843
10844
10845
Theodore Ts'oe1052142006-10-21 21:46:47 -040010846{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10847echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10848set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10849if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010850 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010851else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010852 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010853SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010854all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010855 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010856_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010858case `${MAKE-make} -f conftest.make 2>/dev/null` in
10859 *@@@%%%=?*=@@@%%%*)
10860 eval ac_cv_prog_make_${ac_make}_set=yes;;
10861 *)
10862 eval ac_cv_prog_make_${ac_make}_set=no;;
10863esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010864rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010865fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010866if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10867 { echo "$as_me:$LINENO: result: yes" >&5
10868echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010869 SET_MAKE=
10870else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010871 { echo "$as_me:$LINENO: result: no" >&5
10872echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010873 SET_MAKE="MAKE=${MAKE-make}"
10874fi
10875
10876# Extract the first word of "ln", so it can be a program name with args.
10877set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010880if test "${ac_cv_path_LN+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010882else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010883 case $LN in
10884 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010885 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10886 ;;
10887 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889for as_dir in $PATH
10890do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010894 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 -050010895 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899done
10900done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010901IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010902
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010903 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10904 ;;
10905esac
10906fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010907LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010908if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010909 { echo "$as_me:$LINENO: result: $LN" >&5
10910echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010911else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010912 { echo "$as_me:$LINENO: result: no" >&5
10913echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010914fi
10915
Theodore Ts'oe1052142006-10-21 21:46:47 -040010916
10917{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10918echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010919LN_S=$as_ln_s
10920if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010921 { echo "$as_me:$LINENO: result: yes" >&5
10922echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010923else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010924 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10925echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010926fi
10927
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010928# Extract the first word of "mv", so it can be a program name with args.
10929set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010932if test "${ac_cv_path_MV+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010935 case $MV in
10936 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010937 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10938 ;;
10939 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010946 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 -050010947 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951done
10952done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010953IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010954
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010955 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10956 ;;
10957esac
10958fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010959MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010960if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010961 { echo "$as_me:$LINENO: result: $MV" >&5
10962echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010963else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010964 { echo "$as_me:$LINENO: result: no" >&5
10965echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010966fi
10967
Theodore Ts'oe1052142006-10-21 21:46:47 -040010968
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010969# Extract the first word of "cp", so it can be a program name with args.
10970set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010973if test "${ac_cv_path_CP+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010976 case $CP in
10977 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010978 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10979 ;;
10980 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010987 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 -050010988 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992done
10993done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010994IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010995
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010996 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10997 ;;
10998esac
10999fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011000CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011001if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011002 { echo "$as_me:$LINENO: result: $CP" >&5
11003echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011004else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011005 { echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011007fi
11008
Theodore Ts'oe1052142006-10-21 21:46:47 -040011009
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011010# Extract the first word of "rm", so it can be a program name with args.
11011set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011014if test "${ac_cv_path_RM+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011017 case $RM in
11018 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011019 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11020 ;;
11021 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011028 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 -050011029 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033done
11034done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011035IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011036
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011037 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11038 ;;
11039esac
11040fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011041RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011042if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011043 { echo "$as_me:$LINENO: result: $RM" >&5
11044echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011045else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011046 { echo "$as_me:$LINENO: result: no" >&5
11047echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011048fi
11049
Theodore Ts'oe1052142006-10-21 21:46:47 -040011050
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011051# Extract the first word of "chmod", so it can be a program name with args.
11052set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011055if test "${ac_cv_path_CHMOD+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058 case $CHMOD in
11059 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011060 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11061 ;;
11062 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064for as_dir in $PATH
11065do
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011069 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 -050011070 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11073 fi
11074done
11075done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011076IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011077
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011078 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11079 ;;
11080esac
11081fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011082CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011083if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011084 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11085echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011086else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011087 { echo "$as_me:$LINENO: result: no" >&5
11088echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011089fi
11090
Theodore Ts'oe1052142006-10-21 21:46:47 -040011091
Theodore Ts'o32237012005-01-17 19:13:39 -050011092for ac_prog in gawk mawk nawk awk
11093do
11094 # Extract the first word of "$ac_prog", so it can be a program name with args.
11095set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011098if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011099 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011100else
Theodore Ts'o32237012005-01-17 19:13:39 -050011101 if test -n "$AWK"; then
11102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11103else
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011105for as_dir in $PATH
11106do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011110 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 -050011111 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115done
11116done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011117IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011118
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011119fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011120fi
11121AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011122if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011123 { echo "$as_me:$LINENO: result: $AWK" >&5
11124echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011125else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011126 { echo "$as_me:$LINENO: result: no" >&5
11127echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011128fi
11129
Theodore Ts'oe1052142006-10-21 21:46:47 -040011130
Theodore Ts'o32237012005-01-17 19:13:39 -050011131 test -n "$AWK" && break
11132done
11133
Theodore Ts'oe1052142006-10-21 21:46:47 -040011134{ echo "$as_me:$LINENO: checking for egrep" >&5
11135echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11136if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011139 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11140 then ac_cv_path_EGREP="$GREP -E"
11141 else
11142 # Extract the first word of "egrep" to use in msg output
11143if test -z "$EGREP"; then
11144set dummy egrep; ac_prog_name=$2
11145if test "${ac_cv_path_EGREP+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147else
11148 ac_path_EGREP_found=false
11149# Loop through the user's path and test for each of PROGNAME-LIST
11150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_prog in egrep; do
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011159 # Check for GNU ac_path_EGREP and select it if it is found.
11160 # Check for GNU $ac_path_EGREP
11161case `"$ac_path_EGREP" --version 2>&1` in
11162*GNU*)
11163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11164*)
11165 ac_count=0
11166 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11167 while :
11168 do
11169 cat "conftest.in" "conftest.in" >"conftest.tmp"
11170 mv "conftest.tmp" "conftest.in"
11171 cp "conftest.in" "conftest.nl"
11172 echo 'EGREP' >> "conftest.nl"
11173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11175 ac_count=`expr $ac_count + 1`
11176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11177 # Best one so far, save it but keep looking for a better one
11178 ac_cv_path_EGREP="$ac_path_EGREP"
11179 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011180 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011181 # 10*(2^10) chars as input seems more than enough
11182 test $ac_count -gt 10 && break
11183 done
11184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11185esac
11186
11187
11188 $ac_path_EGREP_found && break 3
11189 done
11190done
11191
11192done
11193IFS=$as_save_IFS
11194
11195
Theodore Ts'o32237012005-01-17 19:13:39 -050011196fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011197
11198EGREP="$ac_cv_path_EGREP"
11199if test -z "$EGREP"; then
11200 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11201echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11202 { (exit 1); exit 1; }; }
11203fi
11204
11205else
11206 ac_cv_path_EGREP=$EGREP
11207fi
11208
11209
11210 fi
11211fi
11212{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11213echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11214 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011215
11216
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011217# Extract the first word of "sed", so it can be a program name with args.
11218set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011221if test "${ac_cv_path_SED+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011224 case $SED in
11225 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011226 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11227 ;;
11228 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011235 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 -050011236 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240done
11241done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011242IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011243
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011244 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11245 ;;
11246esac
11247fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011248SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011249if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011250 { echo "$as_me:$LINENO: result: $SED" >&5
11251echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011252else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011253 { echo "$as_me:$LINENO: result: no" >&5
11254echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011255fi
11256
Theodore Ts'oe1052142006-10-21 21:46:47 -040011257
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011258# Extract the first word of "perl", so it can be a program name with args.
11259set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011262if test "${ac_cv_path_PERL+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011264else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011265 case $PERL in
11266 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011267 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11268 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011269 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011276 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 -050011277 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281done
11282done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011283IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011284
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011285 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11286 ;;
11287esac
11288fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011290if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011291 { echo "$as_me:$LINENO: result: $PERL" >&5
11292echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011293else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011294 { echo "$as_me:$LINENO: result: no" >&5
11295echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011296fi
11297
Theodore Ts'oe1052142006-10-21 21:46:47 -040011298
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011299# Extract the first word of "ldconfig", so it can be a program name with args.
11300set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303if test "${ac_cv_path_LDCONFIG+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011305else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011306 case $LDCONFIG in
11307 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011308 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11309 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011310 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011317 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 -050011318 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11321 fi
11322done
11323done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011324IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011326 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11327 ;;
11328esac
11329fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011331if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011332 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11333echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011334else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011335 { echo "$as_me:$LINENO: result: no" >&5
11336echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011337fi
11338
Theodore Ts'oe1052142006-10-21 21:46:47 -040011339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340if test -n "$ac_tool_prefix"; then
11341 # 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 +000011342set dummy ${ac_tool_prefix}ar; 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_prog_AR+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011347else
11348 if test -n "$AR"; then
11349 ac_cv_prog_AR="$AR" # Let the user override the test.
11350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011357 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 -050011358 ac_cv_prog_AR="${ac_tool_prefix}ar"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011364IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011365
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011366fi
11367fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011369if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011370 { echo "$as_me:$LINENO: result: $AR" >&5
11371echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011372else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011373 { echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011375fi
11376
Theodore Ts'oe1052142006-10-21 21:46:47 -040011377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011379if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011381 # Extract the first word of "ar", so it can be a program name with args.
11382set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011387else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388 if test -n "$ac_ct_AR"; then
11389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011390else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011397 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 -050011398 ac_cv_prog_ac_ct_AR="ar"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402done
11403done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011404IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011405
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011406fi
11407fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408ac_ct_AR=$ac_cv_prog_ac_ct_AR
11409if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011410 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11411echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011413 { echo "$as_me:$LINENO: result: no" >&5
11414echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011415fi
11416
Theodore Ts'oe1052142006-10-21 21:46:47 -040011417 if test "x$ac_ct_AR" = x; then
11418 AR="ar"
11419 else
11420 case $cross_compiling:$ac_tool_warned in
11421yes:)
11422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11423whose name does not start with the host triplet. If you think this
11424configuration is useful to you, please write to autoconf@gnu.org." >&5
11425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11426whose name does not start with the host triplet. If you think this
11427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11428ac_tool_warned=yes ;;
11429esac
11430 AR=$ac_ct_AR
11431 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011434fi
11435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436if test -n "$ac_tool_prefix"; then
11437 # 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 +000011438set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011441if test "${ac_cv_prog_RANLIB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011443else
11444 if test -n "$RANLIB"; then
11445 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448for as_dir in $PATH
11449do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011453 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 -050011454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11457 fi
11458done
11459done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011460IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011462fi
11463fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011464RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011465if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011466 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11467echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011468else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011469 { echo "$as_me:$LINENO: result: no" >&5
11470echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011471fi
11472
Theodore Ts'oe1052142006-10-21 21:46:47 -040011473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011474fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011477 # Extract the first word of "ranlib", so it can be a program name with args.
11478set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011481if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011483else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484 if test -n "$ac_ct_RANLIB"; then
11485 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011486else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488for as_dir in $PATH
11489do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011493 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 -050011494 ac_cv_prog_ac_ct_RANLIB="ranlib"
11495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 break 2
11497 fi
11498done
11499done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011500IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011502fi
11503fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11505if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011506 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11507echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011508else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011509 { echo "$as_me:$LINENO: result: no" >&5
11510echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511fi
11512
Theodore Ts'oe1052142006-10-21 21:46:47 -040011513 if test "x$ac_ct_RANLIB" = x; then
11514 RANLIB=":"
11515 else
11516 case $cross_compiling:$ac_tool_warned in
11517yes:)
11518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11519whose name does not start with the host triplet. If you think this
11520configuration is useful to you, please write to autoconf@gnu.org." >&5
11521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11522whose name does not start with the host triplet. If you think this
11523configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11524ac_tool_warned=yes ;;
11525esac
11526 RANLIB=$ac_ct_RANLIB
11527 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530fi
11531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532if test -n "$ac_tool_prefix"; then
11533 # 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 +000011534set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011537if test "${ac_cv_prog_STRIP+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011539else
11540 if test -n "$STRIP"; then
11541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $PATH
11545do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011549 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 -050011550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11553 fi
11554done
11555done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011556IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011558fi
11559fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011561if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011562 { echo "$as_me:$LINENO: result: $STRIP" >&5
11563echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011564else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011565 { echo "$as_me:$LINENO: result: no" >&5
11566echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011567fi
11568
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011570fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011571if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011573 # Extract the first word of "strip", so it can be a program name with args.
11574set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011579else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580 if test -n "$ac_ct_STRIP"; then
11581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011582else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011589 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 -050011590 ac_cv_prog_ac_ct_STRIP="strip"
11591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594done
11595done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011596IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598fi
11599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011600ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11601if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011602 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11603echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011605 { echo "$as_me:$LINENO: result: no" >&5
11606echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011607fi
11608
Theodore Ts'oe1052142006-10-21 21:46:47 -040011609 if test "x$ac_ct_STRIP" = x; then
11610 STRIP=":"
11611 else
11612 case $cross_compiling:$ac_tool_warned in
11613yes:)
11614{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11615whose name does not start with the host triplet. If you think this
11616configuration is useful to you, please write to autoconf@gnu.org." >&5
11617echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11618whose name does not start with the host triplet. If you think this
11619configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11620ac_tool_warned=yes ;;
11621esac
11622 STRIP=$ac_ct_STRIP
11623 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011625 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626fi
11627
Manish Katiyar7321d942008-04-14 17:20:03 +053011628# Extract the first word of "makeinfo", so it can be a program name with args.
11629set dummy makeinfo; ac_word=$2
11630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11632if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 if test -n "$MAKEINFO"; then
11636 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11637else
11638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639for as_dir in $PATH
11640do
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645 ac_cv_prog_MAKEINFO="makeinfo"
11646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11648 fi
11649done
11650done
11651IFS=$as_save_IFS
11652
11653fi
11654fi
11655MAKEINFO=$ac_cv_prog_MAKEINFO
11656if test -n "$MAKEINFO"; then
11657 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11658echo "${ECHO_T}$MAKEINFO" >&6; }
11659else
11660 { echo "$as_me:$LINENO: result: no" >&5
11661echo "${ECHO_T}no" >&6; }
11662fi
11663
11664
11665if test "_$MAKEINFO" = "_"; then
11666 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11667else
11668 case "$MAKEINFO" in
11669 */missing.*)
11670 { echo "$as_me:$LINENO: WARNING:
11671*** Makeinfo is missing. Info documentation will not be built." >&5
11672echo "$as_me: WARNING:
11673*** Makeinfo is missing. Info documentation will not be built." >&2;}
11674 ;;
11675 *)
11676 ;;
11677 esac
11678fi
11679
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011680# Find a good install program. We prefer a C program (faster),
11681# so one script is as good as another. But avoid the broken or
11682# incompatible versions:
11683# SysV /etc/install, /usr/sbin/install
11684# SunOS /usr/etc/install
11685# IRIX /sbin/install
11686# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011693{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11694echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011695if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011696if test "${ac_cv_path_install+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011698else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH
11701do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 # Account for people who put trailing slashes in PATH elements.
11705case $as_dir/ in
11706 ./ | .// | /cC/* | \
11707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11708 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11709 /usr/ucb/* ) ;;
11710 *)
11711 # OSF1 and SCO ODT 3.0 have their own names for install.
11712 # Don't use installbsd from OSF since it installs stuff as root
11713 # by default.
11714 for ac_prog in ginstall scoinst install; do
11715 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011716 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 +000011717 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011719 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 elif test $ac_prog = install &&
11722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11723 # program-specific install script used by HP pwplus--don't use.
11724 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011725 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11727 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011728 fi
11729 fi
11730 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011731 done
11732 ;;
11733esac
11734done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011735IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011737
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011738fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011739 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011741 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742 # As a last resort, use the slow shell script. Don't cache a
11743 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011744 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011745 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011747 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011748fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11750echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011751
11752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11753# It thinks the first close brace ends the variable substitution.
11754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11755
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011757
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11759
Theodore Ts'o6c133521999-07-03 20:37:03 +000011760# See if we need a separate native compiler.
11761if test $cross_compiling = no; then
11762 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763
Theodore Ts'o6c133521999-07-03 20:37:03 +000011764else
11765 for ac_prog in gcc cc
11766do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011767 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011768set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011771if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011773else
11774 if test -n "$BUILD_CC"; then
11775 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011779do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011783 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 -050011784 ac_cv_prog_BUILD_CC="$ac_prog"
11785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11787 fi
11788done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011789done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011791
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011792fi
11793fi
11794BUILD_CC=$ac_cv_prog_BUILD_CC
11795if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011796 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11797echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011798else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799 { echo "$as_me:$LINENO: result: no" >&5
11800echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011801fi
11802
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804 test -n "$BUILD_CC" && break
11805done
11806
11807fi
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011837
Theodore Ts'o106ad962007-04-04 21:26:37 -040011838
11839
Theodore Ts'o29dd9d12007-12-31 14:36:48 -050011840
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011841
11842
11843for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844do
11845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852ac_res=`eval echo '${'$as_ac_Header'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011855else
11856 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011859cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865$ac_includes_default
11866#include <$ac_header>
11867_ACEOF
11868rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011869if { (ac_try="$ac_compile"
11870case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873esac
11874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011885 ac_header_compiler=yes
11886else
11887 echo "$as_me: failed program was:" >&5
11888sed 's/^/| /' conftest.$ac_ext >&5
11889
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011892
11893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896
11897# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011898{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906#include <$ac_header>
11907_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011908if { (ac_try="$ac_cpp conftest.$ac_ext"
11909case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011920 (exit $ac_status); } >/dev/null && {
11921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924 ac_header_preproc=yes
11925else
11926 echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ac_header_preproc=no
11930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11934echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935
11936# So? What about this header?
11937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11938 yes:no: )
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11943 ac_header_preproc=yes
11944 ;;
11945 no:yes:* )
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011958
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011959 ;;
11960esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 eval "$as_ac_Header=\$ac_header_preproc"
11967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011968ac_res=`eval echo '${'$as_ac_Header'}'`
11969 { echo "$as_me:$LINENO: result: $ac_res" >&5
11970echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971
11972fi
11973if test `eval echo '${'$as_ac_Header'}'` = yes; then
11974 cat >>confdefs.h <<_ACEOF
11975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976_ACEOF
11977
11978fi
11979
11980done
11981
11982
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011983
11984for ac_header in sys/disk.h sys/mount.h
11985do
11986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992 cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998
11999#if HAVE_SYS_QUEUE_H
12000#include <sys/queue.h>
12001#endif
12002
12003
12004#include <$ac_header>
12005_ACEOF
12006rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012007if { (ac_try="$ac_compile"
12008case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012023 eval "$as_ac_Header=yes"
12024else
12025 echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012030
12031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012032fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012033ac_res=`eval echo '${'$as_ac_Header'}'`
12034 { echo "$as_me:$LINENO: result: $ac_res" >&5
12035echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012036if test `eval echo '${'$as_ac_Header'}'` = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12039_ACEOF
12040
12041fi
12042
12043done
12044
12045
12046for ac_header in net/if.h
12047do
12048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060
12061#if HAVE_SYS_TYPES_H
12062#include <sys/types.h>
12063#endif
12064#if HAVE_SYS_SOCKET
12065#include <sys/socket.h>
12066#endif
12067
12068
12069#include <$ac_header>
12070_ACEOF
12071rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012072if { (ac_try="$ac_compile"
12073case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012088 eval "$as_ac_Header=yes"
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
Theodore Ts'oe1052142006-10-21 21:46:47 -040012093 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012094fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012095
12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012098ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012101if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104_ACEOF
12105
12106fi
12107
12108done
12109
12110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111for ac_func in vprintf
12112do
12113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119 cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
12125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127#define $ac_func innocuous_$ac_func
12128
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012129/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012130 which can conflict with char $ac_func (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12133
12134#ifdef __STDC__
12135# include <limits.h>
12136#else
12137# include <assert.h>
12138#endif
12139
12140#undef $ac_func
12141
Theodore Ts'oe1052142006-10-21 21:46:47 -040012142/* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145#ifdef __cplusplus
12146extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012149/* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012152#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012153choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012154#endif
12155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156int
12157main ()
12158{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012159return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165if { (ac_try="$ac_link"
12166case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012186
Theodore Ts'oe1052142006-10-21 21:46:47 -040012187 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191 conftest$ac_exeext conftest.$ac_ext
12192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012193ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012196if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012200
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12202echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203if test "${ac_cv_func__doprnt+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012205else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12214#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012215
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012217 which can conflict with char _doprnt (); below.
12218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12219 <limits.h> exists even on freestanding compilers. */
12220
12221#ifdef __STDC__
12222# include <limits.h>
12223#else
12224# include <assert.h>
12225#endif
12226
12227#undef _doprnt
12228
Theodore Ts'oe1052142006-10-21 21:46:47 -040012229/* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232#ifdef __cplusplus
12233extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012236/* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012239#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012240choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241#endif
12242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243int
12244main ()
12245{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012246return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247 ;
12248 return 0;
12249}
12250_ACEOF
12251rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012252if { (ac_try="$ac_link"
12253case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012264 (exit $ac_status); } && {
12265 test -z "$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 } && test -s conftest$ac_exeext &&
12268 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012273
Theodore Ts'oe1052142006-10-21 21:46:47 -040012274 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012276
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278 conftest$ac_exeext conftest.$ac_ext
12279fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012280{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12281echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012282if test $ac_cv_func__doprnt = yes; then
12283
12284cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012285#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012287
12288fi
12289
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290fi
12291done
12292
12293
Theodore Ts'oe1052142006-10-21 21:46:47 -040012294{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12295echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012296if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012297 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012299 cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h. */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012305#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012307int
12308main ()
12309{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012310static struct dirent ac_aggr;
12311if (ac_aggr.d_reclen)
12312return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012318if { (ac_try="$ac_compile"
12319case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322esac
12323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012334 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012335else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336 echo "$as_me: failed program was:" >&5
12337sed 's/^/| /' conftest.$ac_ext >&5
12338
Theodore Ts'oe1052142006-10-21 21:46:47 -040012339 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012340/* confdefs.h. */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h. */
12345#include <dirent.h>
12346
12347int
12348main ()
12349{
12350static struct dirent ac_aggr;
12351if (sizeof ac_aggr.d_reclen)
12352return 0;
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012358if { (ac_try="$ac_compile"
12359case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362esac
12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012374 ac_cv_member_struct_dirent_d_reclen=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
Theodore Ts'oe1052142006-10-21 21:46:47 -040012379 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012381
12382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012384
12385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012387{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12388echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012389if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12390 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012391#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012392_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012393
12394fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012395
Theodore Ts'oe1052142006-10-21 21:46:47 -040012396{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12397echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012398if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012399 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012401 cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012407#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012408
Theodore Ts'oe1052142006-10-21 21:46:47 -040012409typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012410int
12411main ()
12412{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012413if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012414 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012415if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012416 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012417 ;
12418 return 0;
12419}
12420_ACEOF
12421rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422if { (ac_try="$ac_compile"
12423case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426esac
12427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012438 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012439else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
Theodore Ts'oe1052142006-10-21 21:46:47 -040012443 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012445
12446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012447fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012448{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12449echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012450if test $ac_cv_type_ssize_t = yes; then
12451 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012452#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012454
12455fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012456
Theodore Ts'oe1052142006-10-21 21:46:47 -040012457{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12458echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012459if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012461else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462 cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012468#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012470int
12471main ()
12472{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012473#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012474 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012475#endif
12476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012482if { (ac_try="$ac_compile"
12483case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012494 (exit $ac_status); } && {
12495 test -z "$ac_c_werror_flag" ||
12496 test ! -s conftest.err
12497 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012498 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012499else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
Theodore Ts'oe1052142006-10-21 21:46:47 -040012503 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012505
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012508{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12509echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012510if test $ac_cv_have_decl_llseek = yes; then
12511 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012512#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012514
12515fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012516
Theodore Ts'oe1052142006-10-21 21:46:47 -040012517{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12518echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012519if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012521else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012528#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012529 #define _LARGEFILE64_SOURCE
12530 #include <unistd.h>
12531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532int
12533main ()
12534{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012535#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012536 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012537#endif
12538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539 ;
12540 return 0;
12541}
12542_ACEOF
12543rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012544if { (ac_try="$ac_compile"
12545case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548esac
12549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012560 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012561else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012567
12568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012569fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012570{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12571echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012572if test $ac_cv_have_decl_lseek64 = yes; then
12573 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012574#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012576
12577fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012578
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012579if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012580 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012581 ac_cv_sizeof_short=2
12582 ac_cv_sizeof_int=4
12583 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012584 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12586echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012587fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012588{ echo "$as_me:$LINENO: checking for short" >&5
12589echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012590if test "${ac_cv_type_short+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592else
12593 cat >conftest.$ac_ext <<_ACEOF
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
12599$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012600typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601int
12602main ()
12603{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012604if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012605 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012606if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607 return 0;
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012613if { (ac_try="$ac_compile"
12614case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012629 ac_cv_type_short=yes
12630else
12631 echo "$as_me: failed program was:" >&5
12632sed 's/^/| /' conftest.$ac_ext >&5
12633
Theodore Ts'oe1052142006-10-21 21:46:47 -040012634 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012636
Theodore Ts'oe1052142006-10-21 21:46:47 -040012637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638fi
12639{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12640echo "${ECHO_T}$ac_cv_type_short" >&6; }
12641
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012642# The cast to long int works around a bug in the HP C Compiler
12643# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12644# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12645# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012646{ echo "$as_me:$LINENO: checking size of short" >&5
12647echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012648if test "${ac_cv_sizeof_short+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012651 if test "$cross_compiling" = yes; then
12652 # Depending upon the size, compute the lo and hi bounds.
12653cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
12659$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012660 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012661int
12662main ()
12663{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012665test_array [0] = 0
12666
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012672if { (ac_try="$ac_compile"
12673case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012688 ac_lo=0 ac_mid=0
12689 while :; do
12690 cat >conftest.$ac_ext <<_ACEOF
12691/* confdefs.h. */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h. */
12696$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012697 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012698int
12699main ()
12700{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012701static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012702test_array [0] = 0
12703
12704 ;
12705 return 0;
12706}
12707_ACEOF
12708rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012709if { (ac_try="$ac_compile"
12710case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012725 ac_hi=$ac_mid; break
12726else
12727 echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
Theodore Ts'oe1052142006-10-21 21:46:47 -040012730 ac_lo=`expr $ac_mid + 1`
12731 if test $ac_lo -le $ac_mid; then
12732 ac_lo= ac_hi=
12733 break
12734 fi
12735 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012737
12738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012739 done
12740else
12741 echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
Theodore Ts'oe1052142006-10-21 21:46:47 -040012744 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012751 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012752int
12753main ()
12754{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012755static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756test_array [0] = 0
12757
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012763if { (ac_try="$ac_compile"
12764case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767esac
12768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779 ac_hi=-1 ac_mid=-1
12780 while :; do
12781 cat >conftest.$ac_ext <<_ACEOF
12782/* confdefs.h. */
12783_ACEOF
12784cat confdefs.h >>conftest.$ac_ext
12785cat >>conftest.$ac_ext <<_ACEOF
12786/* end confdefs.h. */
12787$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012788 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012789int
12790main ()
12791{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012792static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012793test_array [0] = 0
12794
12795 ;
12796 return 0;
12797}
12798_ACEOF
12799rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012800if { (ac_try="$ac_compile"
12801case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804esac
12805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012812 (exit $ac_status); } && {
12813 test -z "$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012816 ac_lo=$ac_mid; break
12817else
12818 echo "$as_me: failed program was:" >&5
12819sed 's/^/| /' conftest.$ac_ext >&5
12820
Theodore Ts'oe1052142006-10-21 21:46:47 -040012821 ac_hi=`expr '(' $ac_mid ')' - 1`
12822 if test $ac_mid -le $ac_hi; then
12823 ac_lo= ac_hi=
12824 break
12825 fi
12826 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012827fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012828
12829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012830 done
12831else
12832 echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
Theodore Ts'oe1052142006-10-21 21:46:47 -040012835 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012836fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012837
12838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012840
12841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842# Binary search between lo and hi bounds.
12843while test "x$ac_lo" != "x$ac_hi"; do
12844 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12845 cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
12851$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012852 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012853int
12854main ()
12855{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012856static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012857test_array [0] = 0
12858
12859 ;
12860 return 0;
12861}
12862_ACEOF
12863rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012864if { (ac_try="$ac_compile"
12865case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12868esac
12869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012876 (exit $ac_status); } && {
12877 test -z "$ac_c_werror_flag" ||
12878 test ! -s conftest.err
12879 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012880 ac_hi=$ac_mid
12881else
12882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
Theodore Ts'oe1052142006-10-21 21:46:47 -040012885 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012887
12888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012889done
12890case $ac_lo in
12891?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012892'') if test "$ac_cv_type_short" = yes; then
12893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012894See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012895echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012896See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012897 { (exit 77); exit 77; }; }
12898 else
12899 ac_cv_sizeof_short=0
12900 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012901esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012902else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012903 cat >conftest.$ac_ext <<_ACEOF
12904/* confdefs.h. */
12905_ACEOF
12906cat confdefs.h >>conftest.$ac_ext
12907cat >>conftest.$ac_ext <<_ACEOF
12908/* end confdefs.h. */
12909$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012910 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012911static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12912static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012913#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914#include <stdlib.h>
12915int
12916main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012917{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918
12919 FILE *f = fopen ("conftest.val", "w");
12920 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012921 return 1;
12922 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012923 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012924 long int i = longval ();
12925 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12926 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012927 fprintf (f, "%ld\n", i);
12928 }
12929 else
12930 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012931 unsigned long int i = ulongval ();
12932 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12933 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934 fprintf (f, "%lu\n", i);
12935 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012936 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937
12938 ;
12939 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012940}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012941_ACEOF
12942rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012943if { (ac_try="$ac_link"
12944case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012963else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012964 echo "$as_me: program exited with status $ac_status" >&5
12965echo "$as_me: failed program was:" >&5
12966sed 's/^/| /' conftest.$ac_ext >&5
12967
12968( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012969if test "$ac_cv_type_short" = yes; then
12970 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012972echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012973See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012974 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012975 else
12976 ac_cv_sizeof_short=0
12977 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012979rm -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 -050012980fi
12981rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012982fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012983{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12984echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012985
12986
12987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012988cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012989#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012990_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012991
12992
Theodore Ts'oe1052142006-10-21 21:46:47 -040012993{ echo "$as_me:$LINENO: checking for int" >&5
12994echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012995if test "${ac_cv_type_int+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997else
12998 cat >conftest.$ac_ext <<_ACEOF
12999/* confdefs.h. */
13000_ACEOF
13001cat confdefs.h >>conftest.$ac_ext
13002cat >>conftest.$ac_ext <<_ACEOF
13003/* end confdefs.h. */
13004$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013005typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013006int
13007main ()
13008{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013009if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013010 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013011if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012 return 0;
13013 ;
13014 return 0;
13015}
13016_ACEOF
13017rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013018if { (ac_try="$ac_compile"
13019case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013034 ac_cv_type_int=yes
13035else
13036 echo "$as_me: failed program was:" >&5
13037sed 's/^/| /' conftest.$ac_ext >&5
13038
Theodore Ts'oe1052142006-10-21 21:46:47 -040013039 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013041
Theodore Ts'oe1052142006-10-21 21:46:47 -040013042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043fi
13044{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13045echo "${ECHO_T}$ac_cv_type_int" >&6; }
13046
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013047# The cast to long int works around a bug in the HP C Compiler
13048# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13049# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13050# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013051{ echo "$as_me:$LINENO: checking size of int" >&5
13052echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013053if test "${ac_cv_sizeof_int+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013056 if test "$cross_compiling" = yes; then
13057 # Depending upon the size, compute the lo and hi bounds.
13058cat >conftest.$ac_ext <<_ACEOF
13059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
13064$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013065 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013066int
13067main ()
13068{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013069static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013070test_array [0] = 0
13071
13072 ;
13073 return 0;
13074}
13075_ACEOF
13076rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013077if { (ac_try="$ac_compile"
13078case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093 ac_lo=0 ac_mid=0
13094 while :; do
13095 cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h. */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h. */
13101$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013102 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013103int
13104main ()
13105{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013106static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013107test_array [0] = 0
13108
13109 ;
13110 return 0;
13111}
13112_ACEOF
13113rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013114if { (ac_try="$ac_compile"
13115case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118esac
13119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013126 (exit $ac_status); } && {
13127 test -z "$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13129 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013130 ac_hi=$ac_mid; break
13131else
13132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
Theodore Ts'oe1052142006-10-21 21:46:47 -040013135 ac_lo=`expr $ac_mid + 1`
13136 if test $ac_lo -le $ac_mid; then
13137 ac_lo= ac_hi=
13138 break
13139 fi
13140 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013141fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013142
13143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013144 done
13145else
13146 echo "$as_me: failed program was:" >&5
13147sed 's/^/| /' conftest.$ac_ext >&5
13148
Theodore Ts'oe1052142006-10-21 21:46:47 -040013149 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013150/* confdefs.h. */
13151_ACEOF
13152cat confdefs.h >>conftest.$ac_ext
13153cat >>conftest.$ac_ext <<_ACEOF
13154/* end confdefs.h. */
13155$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013156 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013157int
13158main ()
13159{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013160static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013161test_array [0] = 0
13162
13163 ;
13164 return 0;
13165}
13166_ACEOF
13167rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013168if { (ac_try="$ac_compile"
13169case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013184 ac_hi=-1 ac_mid=-1
13185 while :; do
13186 cat >conftest.$ac_ext <<_ACEOF
13187/* confdefs.h. */
13188_ACEOF
13189cat confdefs.h >>conftest.$ac_ext
13190cat >>conftest.$ac_ext <<_ACEOF
13191/* end confdefs.h. */
13192$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013193 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013194int
13195main ()
13196{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013197static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013198test_array [0] = 0
13199
13200 ;
13201 return 0;
13202}
13203_ACEOF
13204rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013205if { (ac_try="$ac_compile"
13206case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209esac
13210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013217 (exit $ac_status); } && {
13218 test -z "$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13220 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013221 ac_lo=$ac_mid; break
13222else
13223 echo "$as_me: failed program was:" >&5
13224sed 's/^/| /' conftest.$ac_ext >&5
13225
Theodore Ts'oe1052142006-10-21 21:46:47 -040013226 ac_hi=`expr '(' $ac_mid ')' - 1`
13227 if test $ac_mid -le $ac_hi; then
13228 ac_lo= ac_hi=
13229 break
13230 fi
13231 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013232fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013233
13234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013235 done
13236else
13237 echo "$as_me: failed program was:" >&5
13238sed 's/^/| /' conftest.$ac_ext >&5
13239
Theodore Ts'oe1052142006-10-21 21:46:47 -040013240 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013241fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013242
13243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013245
13246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013247# Binary search between lo and hi bounds.
13248while test "x$ac_lo" != "x$ac_hi"; do
13249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13250 cat >conftest.$ac_ext <<_ACEOF
13251/* confdefs.h. */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h. */
13256$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013257 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013258int
13259main ()
13260{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013261static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013262test_array [0] = 0
13263
13264 ;
13265 return 0;
13266}
13267_ACEOF
13268rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013269if { (ac_try="$ac_compile"
13270case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013281 (exit $ac_status); } && {
13282 test -z "$ac_c_werror_flag" ||
13283 test ! -s conftest.err
13284 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013285 ac_hi=$ac_mid
13286else
13287 echo "$as_me: failed program was:" >&5
13288sed 's/^/| /' conftest.$ac_ext >&5
13289
Theodore Ts'oe1052142006-10-21 21:46:47 -040013290 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013292
13293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013294done
13295case $ac_lo in
13296?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013297'') if test "$ac_cv_type_int" = yes; then
13298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013299See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013300echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013301See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013302 { (exit 77); exit 77; }; }
13303 else
13304 ac_cv_sizeof_int=0
13305 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013306esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013308 cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h. */
13314$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013315 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013316static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13317static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013318#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013319#include <stdlib.h>
13320int
13321main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013322{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013323
13324 FILE *f = fopen ("conftest.val", "w");
13325 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013326 return 1;
13327 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013328 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013329 long int i = longval ();
13330 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13331 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013332 fprintf (f, "%ld\n", i);
13333 }
13334 else
13335 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013336 unsigned long int i = ulongval ();
13337 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13338 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013339 fprintf (f, "%lu\n", i);
13340 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013341 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013342
13343 ;
13344 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013345}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013346_ACEOF
13347rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013348if { (ac_try="$ac_link"
13349case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013368else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013369 echo "$as_me: program exited with status $ac_status" >&5
13370echo "$as_me: failed program was:" >&5
13371sed 's/^/| /' conftest.$ac_ext >&5
13372
13373( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013374if test "$ac_cv_type_int" = yes; then
13375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013376See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013377echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013378See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013379 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013380 else
13381 ac_cv_sizeof_int=0
13382 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013384rm -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 -050013385fi
13386rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013388{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13389echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013390
13391
13392
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013393cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013394#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013395_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013396
13397
Theodore Ts'oe1052142006-10-21 21:46:47 -040013398{ echo "$as_me:$LINENO: checking for long" >&5
13399echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013400if test "${ac_cv_type_long+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402else
13403 cat >conftest.$ac_ext <<_ACEOF
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
13408/* end confdefs.h. */
13409$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013410typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013411int
13412main ()
13413{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013414if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013415 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013416if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417 return 0;
13418 ;
13419 return 0;
13420}
13421_ACEOF
13422rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013423if { (ac_try="$ac_compile"
13424case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013435 (exit $ac_status); } && {
13436 test -z "$ac_c_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013439 ac_cv_type_long=yes
13440else
13441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
Theodore Ts'oe1052142006-10-21 21:46:47 -040013444 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013445fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013446
Theodore Ts'oe1052142006-10-21 21:46:47 -040013447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448fi
13449{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13450echo "${ECHO_T}$ac_cv_type_long" >&6; }
13451
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013452# The cast to long int works around a bug in the HP C Compiler
13453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13455# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013456{ echo "$as_me:$LINENO: checking size of long" >&5
13457echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013458if test "${ac_cv_sizeof_long+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013461 if test "$cross_compiling" = yes; then
13462 # Depending upon the size, compute the lo and hi bounds.
13463cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
13469$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013470 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013471int
13472main ()
13473{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013474static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013475test_array [0] = 0
13476
13477 ;
13478 return 0;
13479}
13480_ACEOF
13481rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013482if { (ac_try="$ac_compile"
13483case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498 ac_lo=0 ac_mid=0
13499 while :; do
13500 cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h. */
13506$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013507 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013508int
13509main ()
13510{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013511static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013512test_array [0] = 0
13513
13514 ;
13515 return 0;
13516}
13517_ACEOF
13518rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013519if { (ac_try="$ac_compile"
13520case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13523esac
13524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013535 ac_hi=$ac_mid; break
13536else
13537 echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
Theodore Ts'oe1052142006-10-21 21:46:47 -040013540 ac_lo=`expr $ac_mid + 1`
13541 if test $ac_lo -le $ac_mid; then
13542 ac_lo= ac_hi=
13543 break
13544 fi
13545 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013546fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013547
13548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013549 done
13550else
13551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
Theodore Ts'oe1052142006-10-21 21:46:47 -040013554 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013555/* confdefs.h. */
13556_ACEOF
13557cat confdefs.h >>conftest.$ac_ext
13558cat >>conftest.$ac_ext <<_ACEOF
13559/* end confdefs.h. */
13560$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013561 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013562int
13563main ()
13564{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013565static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013566test_array [0] = 0
13567
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013573if { (ac_try="$ac_compile"
13574case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577esac
13578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013589 ac_hi=-1 ac_mid=-1
13590 while :; do
13591 cat >conftest.$ac_ext <<_ACEOF
13592/* confdefs.h. */
13593_ACEOF
13594cat confdefs.h >>conftest.$ac_ext
13595cat >>conftest.$ac_ext <<_ACEOF
13596/* end confdefs.h. */
13597$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013598 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013599int
13600main ()
13601{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013602static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013603test_array [0] = 0
13604
13605 ;
13606 return 0;
13607}
13608_ACEOF
13609rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610if { (ac_try="$ac_compile"
13611case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614esac
13615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013626 ac_lo=$ac_mid; break
13627else
13628 echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
13630
Theodore Ts'oe1052142006-10-21 21:46:47 -040013631 ac_hi=`expr '(' $ac_mid ')' - 1`
13632 if test $ac_mid -le $ac_hi; then
13633 ac_lo= ac_hi=
13634 break
13635 fi
13636 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013637fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013638
13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013640 done
13641else
13642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
Theodore Ts'oe1052142006-10-21 21:46:47 -040013645 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013647
13648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013650
13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013652# Binary search between lo and hi bounds.
13653while test "x$ac_lo" != "x$ac_hi"; do
13654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13655 cat >conftest.$ac_ext <<_ACEOF
13656/* confdefs.h. */
13657_ACEOF
13658cat confdefs.h >>conftest.$ac_ext
13659cat >>conftest.$ac_ext <<_ACEOF
13660/* end confdefs.h. */
13661$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013662 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013663int
13664main ()
13665{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013666static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013667test_array [0] = 0
13668
13669 ;
13670 return 0;
13671}
13672_ACEOF
13673rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013674if { (ac_try="$ac_compile"
13675case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013690 ac_hi=$ac_mid
13691else
13692 echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
Theodore Ts'oe1052142006-10-21 21:46:47 -040013695 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013696fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013697
13698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013699done
13700case $ac_lo in
13701?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013702'') if test "$ac_cv_type_long" = yes; then
13703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013704See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013705echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013706See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013707 { (exit 77); exit 77; }; }
13708 else
13709 ac_cv_sizeof_long=0
13710 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013711esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013712else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013713 cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013720 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013721static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13722static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013723#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724#include <stdlib.h>
13725int
13726main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013727{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728
13729 FILE *f = fopen ("conftest.val", "w");
13730 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013731 return 1;
13732 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013733 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013734 long int i = longval ();
13735 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13736 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013737 fprintf (f, "%ld\n", i);
13738 }
13739 else
13740 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013741 unsigned long int i = ulongval ();
13742 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13743 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013744 fprintf (f, "%lu\n", i);
13745 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013746 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013747
13748 ;
13749 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013750}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751_ACEOF
13752rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013753if { (ac_try="$ac_link"
13754case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757esac
13758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013773else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774 echo "$as_me: program exited with status $ac_status" >&5
13775echo "$as_me: failed program was:" >&5
13776sed 's/^/| /' conftest.$ac_ext >&5
13777
13778( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013779if test "$ac_cv_type_long" = yes; then
13780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013781See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013782echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013783See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013784 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013785 else
13786 ac_cv_sizeof_long=0
13787 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013788fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013789rm -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 -050013790fi
13791rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013793{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13794echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013795
13796
13797
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013798cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013799#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013800_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013801
13802
Theodore Ts'oe1052142006-10-21 21:46:47 -040013803{ echo "$as_me:$LINENO: checking for long long" >&5
13804echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013805if test "${ac_cv_type_long_long+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808 cat >conftest.$ac_ext <<_ACEOF
13809/* confdefs.h. */
13810_ACEOF
13811cat confdefs.h >>conftest.$ac_ext
13812cat >>conftest.$ac_ext <<_ACEOF
13813/* end confdefs.h. */
13814$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013815typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013816int
13817main ()
13818{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013819if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013820 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822 return 0;
13823 ;
13824 return 0;
13825}
13826_ACEOF
13827rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013828if { (ac_try="$ac_compile"
13829case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013840 (exit $ac_status); } && {
13841 test -z "$ac_c_werror_flag" ||
13842 test ! -s conftest.err
13843 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013844 ac_cv_type_long_long=yes
13845else
13846 echo "$as_me: failed program was:" >&5
13847sed 's/^/| /' conftest.$ac_ext >&5
13848
Theodore Ts'oe1052142006-10-21 21:46:47 -040013849 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853fi
13854{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13855echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13856
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013857# The cast to long int works around a bug in the HP C Compiler
13858# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13859# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13860# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013861{ echo "$as_me:$LINENO: checking size of long long" >&5
13862echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013863if test "${ac_cv_sizeof_long_long+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013866 if test "$cross_compiling" = yes; then
13867 # Depending upon the size, compute the lo and hi bounds.
13868cat >conftest.$ac_ext <<_ACEOF
13869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
13873/* end confdefs.h. */
13874$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013875 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013876int
13877main ()
13878{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013880test_array [0] = 0
13881
13882 ;
13883 return 0;
13884}
13885_ACEOF
13886rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887if { (ac_try="$ac_compile"
13888case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13891esac
13892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013894 ac_status=$?
13895 grep -v '^ *+' conftest.er1 >conftest.err
13896 rm -f conftest.er1
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013903 ac_lo=0 ac_mid=0
13904 while :; do
13905 cat >conftest.$ac_ext <<_ACEOF
13906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
13911$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013912 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913int
13914main ()
13915{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013916static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013917test_array [0] = 0
13918
13919 ;
13920 return 0;
13921}
13922_ACEOF
13923rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013924if { (ac_try="$ac_compile"
13925case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13928esac
13929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013940 ac_hi=$ac_mid; break
13941else
13942 echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
Theodore Ts'oe1052142006-10-21 21:46:47 -040013945 ac_lo=`expr $ac_mid + 1`
13946 if test $ac_lo -le $ac_mid; then
13947 ac_lo= ac_hi=
13948 break
13949 fi
13950 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013952
13953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013954 done
13955else
13956 echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
Theodore Ts'oe1052142006-10-21 21:46:47 -040013959 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013966 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013967int
13968main ()
13969{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013970static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971test_array [0] = 0
13972
13973 ;
13974 return 0;
13975}
13976_ACEOF
13977rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978if { (ac_try="$ac_compile"
13979case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994 ac_hi=-1 ac_mid=-1
13995 while :; do
13996 cat >conftest.$ac_ext <<_ACEOF
13997/* confdefs.h. */
13998_ACEOF
13999cat confdefs.h >>conftest.$ac_ext
14000cat >>conftest.$ac_ext <<_ACEOF
14001/* end confdefs.h. */
14002$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014003 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004int
14005main ()
14006{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014007static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014008test_array [0] = 0
14009
14010 ;
14011 return 0;
14012}
14013_ACEOF
14014rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015if { (ac_try="$ac_compile"
14016case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019esac
14020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014031 ac_lo=$ac_mid; break
14032else
14033 echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
Theodore Ts'oe1052142006-10-21 21:46:47 -040014036 ac_hi=`expr '(' $ac_mid ')' - 1`
14037 if test $ac_mid -le $ac_hi; then
14038 ac_lo= ac_hi=
14039 break
14040 fi
14041 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014042fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043
14044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014045 done
14046else
14047 echo "$as_me: failed program was:" >&5
14048sed 's/^/| /' conftest.$ac_ext >&5
14049
Theodore Ts'oe1052142006-10-21 21:46:47 -040014050 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014051fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014052
14053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014054fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014055
14056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014057# Binary search between lo and hi bounds.
14058while test "x$ac_lo" != "x$ac_hi"; do
14059 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14060 cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h. */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
14065/* end confdefs.h. */
14066$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014067 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068int
14069main ()
14070{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014071static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014072test_array [0] = 0
14073
14074 ;
14075 return 0;
14076}
14077_ACEOF
14078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014079if { (ac_try="$ac_compile"
14080case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083esac
14084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095 ac_hi=$ac_mid
14096else
14097 echo "$as_me: failed program was:" >&5
14098sed 's/^/| /' conftest.$ac_ext >&5
14099
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014102
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014104done
14105case $ac_lo in
14106?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014107'') if test "$ac_cv_type_long_long" = yes; then
14108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014109See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014111See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014112 { (exit 77); exit 77; }; }
14113 else
14114 ac_cv_sizeof_long_long=0
14115 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014116esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014117else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014118 cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h. */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h. */
14124$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014125 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014126static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14127static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014128#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014129#include <stdlib.h>
14130int
14131main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014132{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133
14134 FILE *f = fopen ("conftest.val", "w");
14135 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014136 return 1;
14137 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014139 long int i = longval ();
14140 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14141 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014142 fprintf (f, "%ld\n", i);
14143 }
14144 else
14145 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014146 unsigned long int i = ulongval ();
14147 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14148 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014149 fprintf (f, "%lu\n", i);
14150 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014151 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014152
14153 ;
14154 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014155}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014156_ACEOF
14157rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158if { (ac_try="$ac_link"
14159case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162esac
14163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171esac
14172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014178else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014179 echo "$as_me: program exited with status $ac_status" >&5
14180echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014184if test "$ac_cv_type_long_long" = yes; then
14185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014186See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014187echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014188See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014189 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014190 else
14191 ac_cv_sizeof_long_long=0
14192 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014193fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014194rm -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 -050014195fi
14196rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014197fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014198{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14199echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014200
14201
14202
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014203cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014204#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014205_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014206
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014207
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014208SIZEOF_SHORT=$ac_cv_sizeof_short
14209SIZEOF_INT=$ac_cv_sizeof_int
14210SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014211SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14212
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014213
14214
14215
Theodore Ts'oe1052142006-10-21 21:46:47 -040014216{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14217echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014218if test "${ac_cv_c_bigendian+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014221 # See if sys/param.h defines the BYTE_ORDER macro.
14222cat >conftest.$ac_ext <<_ACEOF
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014228#include <sys/types.h>
14229#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014231int
14232main ()
14233{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014234#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14235 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014236 bogus endian macros
14237#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014238
14239 ;
14240 return 0;
14241}
14242_ACEOF
14243rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014244if { (ac_try="$ac_compile"
14245case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248esac
14249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014260 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014261cat >conftest.$ac_ext <<_ACEOF
14262/* confdefs.h. */
14263_ACEOF
14264cat confdefs.h >>conftest.$ac_ext
14265cat >>conftest.$ac_ext <<_ACEOF
14266/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014267#include <sys/types.h>
14268#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270int
14271main ()
14272{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014273#if BYTE_ORDER != BIG_ENDIAN
14274 not big endian
14275#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276
14277 ;
14278 return 0;
14279}
14280_ACEOF
14281rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014282if { (ac_try="$ac_compile"
14283case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286esac
14287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014298 ac_cv_c_bigendian=yes
14299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014300 echo "$as_me: failed program was:" >&5
14301sed 's/^/| /' conftest.$ac_ext >&5
14302
Theodore Ts'oe1052142006-10-21 21:46:47 -040014303 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014304fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014305
14306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308 echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
Theodore Ts'oe1052142006-10-21 21:46:47 -040014311 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014312if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313 # try to guess the endianness by grepping values into an object file
14314 ac_cv_c_bigendian=unknown
14315 cat >conftest.$ac_ext <<_ACEOF
14316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014321short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14322short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014323void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014324short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14325short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014326void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14327int
14328main ()
14329{
14330 _ascii (); _ebcdic ();
14331 ;
14332 return 0;
14333}
14334_ACEOF
14335rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014336if { (ac_try="$ac_compile"
14337case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340esac
14341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014352 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14353 ac_cv_c_bigendian=yes
14354fi
14355if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14356 if test "$ac_cv_c_bigendian" = unknown; then
14357 ac_cv_c_bigendian=no
14358 else
14359 # finding both strings is unlikely to happen, but who knows?
14360 ac_cv_c_bigendian=unknown
14361 fi
14362fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014363else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014364 echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
Theodore Ts'oe1052142006-10-21 21:46:47 -040014367
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014368fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014369
14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014371else
14372 cat >conftest.$ac_ext <<_ACEOF
14373/* confdefs.h. */
14374_ACEOF
14375cat confdefs.h >>conftest.$ac_ext
14376cat >>conftest.$ac_ext <<_ACEOF
14377/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014378$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014379int
14380main ()
14381{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014382
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014383 /* Are we little or big endian? From Harbison&Steele. */
14384 union
14385 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014386 long int l;
14387 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014388 } u;
14389 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014390 return u.c[sizeof (long int) - 1] == 1;
14391
14392 ;
14393 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014394}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395_ACEOF
14396rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014397if { (ac_try="$ac_link"
14398case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410esac
14411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014416 ac_cv_c_bigendian=no
14417else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418 echo "$as_me: program exited with status $ac_status" >&5
14419echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014421
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422( exit $ac_status )
14423ac_cv_c_bigendian=yes
14424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014425rm -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 -040014426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014427
14428
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014430
14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014432fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014433{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14434echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014435case $ac_cv_c_bigendian in
14436 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014439#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014440_ACEOF
14441 ;;
14442 no)
14443 ;;
14444 *)
14445 { { echo "$as_me:$LINENO: error: unknown endianness
14446presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14447echo "$as_me: error: unknown endianness
14448presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14449 { (exit 1); exit 1; }; } ;;
14450esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014451
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014452BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014453ASM_TYPES_HEADER=./asm_types.h
14454
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014457do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014465ac_res=`eval echo '${'$as_ac_Header'}'`
14466 { echo "$as_me:$LINENO: result: $ac_res" >&5
14467echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014468else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014469 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014470{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472cat >conftest.$ac_ext <<_ACEOF
14473/* confdefs.h. */
14474_ACEOF
14475cat confdefs.h >>conftest.$ac_ext
14476cat >>conftest.$ac_ext <<_ACEOF
14477/* end confdefs.h. */
14478$ac_includes_default
14479#include <$ac_header>
14480_ACEOF
14481rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014482if { (ac_try="$ac_compile"
14483case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486esac
14487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014498 ac_header_compiler=yes
14499else
14500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
Theodore Ts'oe1052142006-10-21 21:46:47 -040014503 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014505
14506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14508echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014509
14510# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014511{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014513cat >conftest.$ac_ext <<_ACEOF
14514/* confdefs.h. */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h. */
14519#include <$ac_header>
14520_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014521if { (ac_try="$ac_cpp conftest.$ac_ext"
14522case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014533 (exit $ac_status); } >/dev/null && {
14534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014537 ac_header_preproc=yes
14538else
14539 echo "$as_me: failed program was:" >&5
14540sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_preproc=no
14543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014545rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014546{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014548
14549# So? What about this header?
14550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 yes:no: )
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14556 ac_header_preproc=yes
14557 ;;
14558 no:yes:* )
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014572 ;;
14573esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014574{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578else
14579 eval "$as_ac_Header=\$ac_header_preproc"
14580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014581ac_res=`eval echo '${'$as_ac_Header'}'`
14582 { echo "$as_me:$LINENO: result: $ac_res" >&5
14583echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014584
14585fi
14586if test `eval echo '${'$as_ac_Header'}'` = yes; then
14587 cat >>confdefs.h <<_ACEOF
14588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14589_ACEOF
14590
14591fi
14592
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014593done
14594
Theodore Ts'oe1052142006-10-21 21:46:47 -040014595{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14596echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014597if test "${ac_cv_type_intptr_t+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014599else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014600 cat >conftest.$ac_ext <<_ACEOF
14601/* confdefs.h. */
14602_ACEOF
14603cat confdefs.h >>conftest.$ac_ext
14604cat >>conftest.$ac_ext <<_ACEOF
14605/* end confdefs.h. */
14606$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014607typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014608int
14609main ()
14610{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014612 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014613if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014614 return 0;
14615 ;
14616 return 0;
14617}
14618_ACEOF
14619rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014620if { (ac_try="$ac_compile"
14621case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624esac
14625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014636 ac_cv_type_intptr_t=yes
14637else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014638 echo "$as_me: failed program was:" >&5
14639sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014640
Theodore Ts'oe1052142006-10-21 21:46:47 -040014641 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014642fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014643
14644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014645fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14647echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014648if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014649
14650cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014651#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014652_ACEOF
14653
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014654
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014655fi
14656
Theodore Ts'oe1052142006-10-21 21:46:47 -040014657{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14658echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014659if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661else
14662 cat >conftest.$ac_ext <<_ACEOF
14663/* confdefs.h. */
14664_ACEOF
14665cat confdefs.h >>conftest.$ac_ext
14666cat >>conftest.$ac_ext <<_ACEOF
14667/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014668#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014669int
14670main ()
14671{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014672struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014673 ;
14674 return 0;
14675}
14676_ACEOF
14677rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014678if { (ac_try="$ac_compile"
14679case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682esac
14683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014694 e2fsprogs_cv_struct_st_flags=yes
14695else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014696 echo "$as_me: failed program was:" >&5
14697sed 's/^/| /' conftest.$ac_ext >&5
14698
Theodore Ts'oe1052142006-10-21 21:46:47 -040014699 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014700fi
14701
Theodore Ts'oe1052142006-10-21 21:46:47 -040014702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703fi
14704
14705{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14706echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014707if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014708 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14709echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014710 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014712else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014713 cat >conftest.$ac_ext <<_ACEOF
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
14718/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014719#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014720int
14721main ()
14722{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014723struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014724 ;
14725 return 0;
14726}
14727_ACEOF
14728rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014729if { (ac_try="$ac_compile"
14730case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733esac
14734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014736 ac_status=$?
14737 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014741 (exit $ac_status); } && {
14742 test -z "$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014745 e2fsprogs_cv_struct_st_flags_immut=yes
14746else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014747 echo "$as_me: failed program was:" >&5
14748sed 's/^/| /' conftest.$ac_ext >&5
14749
Theodore Ts'oe1052142006-10-21 21:46:47 -040014750 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014751fi
14752
Theodore Ts'oe1052142006-10-21 21:46:47 -040014753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754fi
14755
14756 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14757echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014758 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014759 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014760#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014761_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014762
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014763 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014764fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014765{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14766echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014767if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014768 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014769else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014770 cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h. */
14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014776#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014777 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014778
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014779int
14780main ()
14781{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014782static struct sockaddr ac_aggr;
14783if (ac_aggr.sa_len)
14784return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014785 ;
14786 return 0;
14787}
14788_ACEOF
14789rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014790if { (ac_try="$ac_compile"
14791case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014806 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014807else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
14810
Theodore Ts'oe1052142006-10-21 21:46:47 -040014811 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
14817#include <sys/types.h>
14818 #include <sys/socket.h>
14819
14820int
14821main ()
14822{
14823static struct sockaddr ac_aggr;
14824if (sizeof ac_aggr.sa_len)
14825return 0;
14826 ;
14827 return 0;
14828}
14829_ACEOF
14830rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014831if { (ac_try="$ac_compile"
14832case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835esac
14836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014847 ac_cv_member_struct_sockaddr_sa_len=yes
14848else
14849 echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
Theodore Ts'oe1052142006-10-21 21:46:47 -040014852 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014854
14855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014857
14858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014859fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014860{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14861echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014862if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014863
14864cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014865#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014866_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014867
14868fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014888
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014889
14890
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014891
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014892
Theodore Ts'o106ad962007-04-04 21:26:37 -040014893
14894
14895
Theodore Ts'o740837d2007-12-16 17:21:38 -050014896
14897
Theodore Ts'o261cd392008-01-21 13:45:00 -050014898
14899for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014900do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014902{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14904if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014905 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014907 cat >conftest.$ac_ext <<_ACEOF
14908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
14912/* end confdefs.h. */
14913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14915#define $ac_func innocuous_$ac_func
14916
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014917/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014918 which can conflict with char $ac_func (); below.
14919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14920 <limits.h> exists even on freestanding compilers. */
14921
14922#ifdef __STDC__
14923# include <limits.h>
14924#else
14925# include <assert.h>
14926#endif
14927
14928#undef $ac_func
14929
Theodore Ts'oe1052142006-10-21 21:46:47 -040014930/* Override any GCC internal prototype to avoid an error.
14931 Use char because int might match the return type of a GCC
14932 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014933#ifdef __cplusplus
14934extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014935#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014936char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014937/* The GNU C library defines this for functions which it implements
14938 to always fail with ENOSYS. Some functions are actually named
14939 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014940#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014941choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014942#endif
14943
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014944int
14945main ()
14946{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014947return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948 ;
14949 return 0;
14950}
14951_ACEOF
14952rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014953if { (ac_try="$ac_link"
14954case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14957esac
14958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014960 ac_status=$?
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014965 (exit $ac_status); } && {
14966 test -z "$ac_c_werror_flag" ||
14967 test ! -s conftest.err
14968 } && test -s conftest$ac_exeext &&
14969 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014970 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972 echo "$as_me: failed program was:" >&5
14973sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014974
Theodore Ts'oe1052142006-10-21 21:46:47 -040014975 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014977
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014979 conftest$ac_exeext conftest.$ac_ext
14980fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014981ac_res=`eval echo '${'$as_ac_var'}'`
14982 { echo "$as_me:$LINENO: result: $ac_res" >&5
14983echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984if test `eval echo '${'$as_ac_var'}'` = yes; then
14985 cat >>confdefs.h <<_ACEOF
14986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14987_ACEOF
14988
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014989fi
14990done
14991
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014992SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014993{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14994echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014995if test "${ac_cv_lib_socket_socket+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014997else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014998 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014999LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015000cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
15006
Theodore Ts'oe1052142006-10-21 21:46:47 -040015007/* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015010#ifdef __cplusplus
15011extern "C"
15012#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015013char socket ();
15014int
15015main ()
15016{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015017return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015023if { (ac_try="$ac_link"
15024case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15027esac
15028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext &&
15039 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015040 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015042 echo "$as_me: failed program was:" >&5
15043sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015044
Theodore Ts'oe1052142006-10-21 21:46:47 -040015045 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015046fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015047
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049 conftest$ac_exeext conftest.$ac_ext
15050LIBS=$ac_check_lib_save_LIBS
15051fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015052{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15053echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015054if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015055 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015056fi
15057
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015058
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015059DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015060{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15061echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015062if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015064else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015065 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015066LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015067cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h. */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */
15073
Theodore Ts'oe1052142006-10-21 21:46:47 -040015074/* Override any GCC internal prototype to avoid an error.
15075 Use char because int might match the return type of a GCC
15076 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015077#ifdef __cplusplus
15078extern "C"
15079#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015080char dlopen ();
15081int
15082main ()
15083{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015084return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015085 ;
15086 return 0;
15087}
15088_ACEOF
15089rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015090if { (ac_try="$ac_link"
15091case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015102 (exit $ac_status); } && {
15103 test -z "$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 } && test -s conftest$ac_exeext &&
15106 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015108else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015109 echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015111
Theodore Ts'oe1052142006-10-21 21:46:47 -040015112 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015113fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015114
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015116 conftest$ac_exeext conftest.$ac_ext
15117LIBS=$ac_check_lib_save_LIBS
15118fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015119{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15120echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015121if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015122 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015123cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015124#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015125_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015126
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015127fi
15128
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015129
Theodore Ts'oe1052142006-10-21 21:46:47 -040015130{ echo "$as_me:$LINENO: checking for optreset" >&5
15131echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015132if test "${ac_cv_have_optreset+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015134else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015135 cat >conftest.$ac_ext <<_ACEOF
15136/* confdefs.h. */
15137_ACEOF
15138cat confdefs.h >>conftest.$ac_ext
15139cat >>conftest.$ac_ext <<_ACEOF
15140/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015141#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015142
15143_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015145 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015146 ac_cv_have_optreset=yes
15147else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015148 ac_cv_have_optreset=no
15149fi
15150rm -f conftest*
15151
15152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015153{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15154echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015155if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015156 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015157#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015158_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015159
15160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015161{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15162echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015163if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015164 UNI_DIFF_OPTS=-u
15165else
15166 UNI_DIFF_OPTS=-c
15167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015168{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15169echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015170
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015171case "$host_os" in
15172linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015173 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015174#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015175_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015176
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015177 ;;
15178esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015179LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015180CYGWIN_CMT="#"
15181UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015182case "$host_os" in
15183linux*)
15184 LINUX_CMT=
15185 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015186cygwin)
15187 CYGWIN_CMT=
15188 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015189 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015190esac
15191
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015192
15193
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015194case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015195linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015196 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15197 root_prefix="";
15198 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015199 fi
15200 ;;
15201esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015202case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015203linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015204 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015205 prefix="/usr";
15206 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015207 if test "$mandir" = '${prefix}/man' ; then
15208 echo "...and mandir defaults to /usr/share/man"
15209 mandir=/usr/share/man
15210 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015211 fi
15212;;
15213esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015214if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015215 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015216 root_prefix="$ac_default_prefix"
15217 else
15218 root_prefix="$prefix"
15219 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015220 root_bindir=$bindir
15221 root_sbindir=$sbindir
15222 root_libdir=$libdir
15223 root_sysconfdir=$sysconfdir
15224else
15225 root_bindir='${root_prefix}/bin'
15226 root_sbindir='${root_prefix}/sbin'
15227 root_libdir='${root_prefix}/lib'
15228 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015229fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015230if test "$bindir" != '${exec_prefix}/bin'; then
15231 root_bindir=$bindir
15232 echo "Setting root_bindir to $root_bindir"
15233fi
15234if test "$sbindir" != '${exec_prefix}/sbin'; then
15235 root_sbindir=$sbindir
15236 echo "Setting root_sbindir to $root_sbindir"
15237fi
15238if test "$libdir" != '${exec_prefix}/lib'; then
15239 root_libdir=$libdir
15240 echo "Setting root_libdir to $root_libdir"
15241fi
15242if test "$sysconfdir" != '${prefix}/etc'; then
15243 root_sysconfdir=$sysconfdir
15244 echo "Setting root_sysconfdir to $root_sysconfdir"
15245fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015246
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015247
15248
15249
15250
Theodore Ts'oe1052142006-10-21 21:46:47 -040015251{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15252echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015253if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015255else
15256 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015257cat >conftest.$ac_ext <<_ACEOF
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015263#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015264int
15265main ()
15266{
Theodore Ts'oae851481997-04-29 18:13:24 +000015267fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015268 ;
15269 return 0;
15270}
15271_ACEOF
15272rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015273if { (ac_try="$ac_link"
15274case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015290 ac_cv_e2fsprogs_use_static=yes
15291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015292 echo "$as_me: failed program was:" >&5
15293sed 's/^/| /' conftest.$ac_ext >&5
15294
Theodore Ts'oe1052142006-10-21 21:46:47 -040015295 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015297
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015299 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015300LDFLAGS=$SAVE_LDFLAGS
15301fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015302
Theodore Ts'odefde781999-01-04 07:39:19 +000015303case "$host_os" in
15304solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015305 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015306;;
15307esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015308{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15309echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015310LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015311if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015312 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015313fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015314
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015315case "$host_os" in
15316darwin*)
15317 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015318 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015319#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015320_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015321
15322 ;;
15323esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015324SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15325ET_DIR=`cd ${srcdir}/lib/et; pwd`
15326
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015327
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015328if test "$cross_compiling" = yes ; then
15329 DO_TEST_SUITE=
15330else
15331 DO_TEST_SUITE=check
15332fi
15333
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015334INTL_FLAGS=
15335if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15336 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15337fi
15338
Theodore Ts'odd947da2005-11-09 18:37:07 -040015339if test $cross_compiling = no; then
15340 BUILD_CFLAGS="$CFLAGS"
15341 BUILD_LDFLAGS="$LDFLAGS"
15342else
15343 BUILD_CFLAGS=
15344 BUILD_LDFLAGS=
15345fi
15346
15347
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015348test -d lib || mkdir lib
15349test -d include || mkdir include
15350test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015351test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015352for i in MCONFIG Makefile e2fsprogs.spec \
15353 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015354 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15355 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015356 lib/uuid/Makefile lib/uuid/uuid_types.h \
15357 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015358 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15359 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015360 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015361 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15362 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15363 if test -d `dirname ${srcdir}/$i` ; then
15364 outlist="$outlist $i"
15365 fi
15366done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015367ac_config_files="$ac_config_files $outlist"
15368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015369cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015370# This file is a shell script that caches the results of configure
15371# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015372# scripts and configure runs, see configure's option --config-cache.
15373# It is not useful on other systems. If it contains results you don't
15374# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015375#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015376# config.status only pays attention to the cache file if you give it
15377# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015378#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015379# `ac_cv_env_foo' variables (set or unset) will be overridden when
15380# loading this file, other *unset* `ac_cv_foo' will be assigned the
15381# following values.
15382
15383_ACEOF
15384
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015385# The following way of writing the cache mishandles newlines in values,
15386# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015387# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015388# Ultrix sh set writes to stderr and can't be redirected directly,
15389# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015390(
15391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15392 eval ac_val=\$$ac_var
15393 case $ac_val in #(
15394 *${as_nl}*)
15395 case $ac_var in #(
15396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15397echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15398 esac
15399 case $ac_var in #(
15400 _ | IFS | as_nl) ;; #(
15401 *) $as_unset $ac_var ;;
15402 esac ;;
15403 esac
15404 done
15405
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015406 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15408 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015409 # `set' does not quote correctly, so add quotes (double-quote
15410 # substitution turns \\\\ into \\, and sed turns \\ into \).
15411 sed -n \
15412 "s/'/'\\\\''/g;
15413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015414 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015415 *)
15416 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015418 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015419 esac |
15420 sort
15421) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015422 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015423 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015424 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015425 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15427 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15429 :end' >>confcache
15430if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15431 if test -w "$cache_file"; then
15432 test "x$cache_file" != "x/dev/null" &&
15433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15434echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015435 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015436 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15438echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015439 fi
15440fi
15441rm -f confcache
15442
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015443test "x$prefix" = xNONE && prefix=$ac_default_prefix
15444# Let make expand exec_prefix.
15445test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15446
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015447# Transform confdefs.h into DEFS.
15448# Protect against shell expansion while executing Makefile rules.
15449# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015450#
15451# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015452# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015453# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015454ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015455t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015456:clear
15457s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015458t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015459s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015460t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015461b any
15462:quote
15463s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15464s/\[/\\&/g
15465s/\]/\\&/g
15466s/\$/$$/g
15467H
15468:any
15469${
15470 g
15471 s/^\n//
15472 s/\n/ /g
15473 p
15474}
15475'
15476DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015477
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015479ac_libobjs=
15480ac_ltlibobjs=
15481for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15482 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15484 ac_i=`echo "$ac_i" | sed "$ac_script"`
15485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15486 # will be set to the directory where LIBOBJS objects are built.
15487 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15488 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015489done
15490LIBOBJS=$ac_libobjs
15491
15492LTLIBOBJS=$ac_ltlibobjs
15493
15494
15495
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015496: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015497ac_clean_files_save=$ac_clean_files
15498ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15499{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15500echo "$as_me: creating $CONFIG_STATUS" >&6;}
15501cat >$CONFIG_STATUS <<_ACEOF
15502#! $SHELL
15503# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015504# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015505# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015506# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015508debug=false
15509ac_cs_recheck=false
15510ac_cs_silent=false
15511SHELL=\${CONFIG_SHELL-$SHELL}
15512_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015514cat >>$CONFIG_STATUS <<\_ACEOF
15515## --------------------- ##
15516## M4sh Initialization. ##
15517## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015518
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015519# Be more Bourne compatible
15520DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015521if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15522 emulate sh
15523 NULLCMD=:
15524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15525 # is contrary to our usage. Disable this feature.
15526 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015527 setopt NO_GLOB_SUBST
15528else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015529 case `(set -o) 2>/dev/null` in
15530 *posix*) set -o posix ;;
15531esac
15532
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015533fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015534
15535
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015536
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015537
Theodore Ts'oe1052142006-10-21 21:46:47 -040015538# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015539# Avoid depending upon Character Ranges.
15540as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15541as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15542as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15543as_cr_digits='0123456789'
15544as_cr_alnum=$as_cr_Letters$as_cr_digits
15545
15546# The user is always right.
15547if test "${PATH_SEPARATOR+set}" != set; then
15548 echo "#! /bin/sh" >conf$$.sh
15549 echo "exit 0" >>conf$$.sh
15550 chmod +x conf$$.sh
15551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15552 PATH_SEPARATOR=';'
15553 else
15554 PATH_SEPARATOR=:
15555 fi
15556 rm -f conf$$.sh
15557fi
15558
Theodore Ts'oe1052142006-10-21 21:46:47 -040015559# Support unset when possible.
15560if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15561 as_unset=unset
15562else
15563 as_unset=false
15564fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015565
Theodore Ts'oe1052142006-10-21 21:46:47 -040015566
15567# IFS
15568# We need space, tab and new line, in precisely that order. Quoting is
15569# there to prevent editors from complaining about space-tab.
15570# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15571# splitting by setting IFS to empty value.)
15572as_nl='
15573'
15574IFS=" "" $as_nl"
15575
15576# Find who we are. Look in the path if we contain no directory separator.
15577case $0 in
15578 *[\\/]* ) as_myself=$0 ;;
15579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580for as_dir in $PATH
15581do
15582 IFS=$as_save_IFS
15583 test -z "$as_dir" && as_dir=.
15584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15585done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015586IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015587
Theodore Ts'oe1052142006-10-21 21:46:47 -040015588 ;;
15589esac
15590# We did not find ourselves, most probably we were run as `sh COMMAND'
15591# in which case we are not to be found in the path.
15592if test "x$as_myself" = x; then
15593 as_myself=$0
15594fi
15595if test ! -f "$as_myself"; then
15596 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15597 { (exit 1); exit 1; }
15598fi
15599
15600# Work around bugs in pre-3.0 UWIN ksh.
15601for as_var in ENV MAIL MAILPATH
15602do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15603done
15604PS1='$ '
15605PS2='> '
15606PS4='+ '
15607
15608# NLS nuisances.
15609for as_var in \
15610 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15611 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15612 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015613do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015614 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15615 eval $as_var=C; export $as_var
15616 else
15617 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15618 fi
15619done
15620
15621# Required to use basename.
15622if expr a : '\(a\)' >/dev/null 2>&1 &&
15623 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15624 as_expr=expr
15625else
15626 as_expr=false
15627fi
15628
15629if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15630 as_basename=basename
15631else
15632 as_basename=false
15633fi
15634
15635
15636# Name of the executable.
15637as_me=`$as_basename -- "$0" ||
15638$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15639 X"$0" : 'X\(//\)$' \| \
15640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15641echo X/"$0" |
15642 sed '/^.*\/\([^/][^/]*\)\/*$/{
15643 s//\1/
15644 q
15645 }
15646 /^X\/\(\/\/\)$/{
15647 s//\1/
15648 q
15649 }
15650 /^X\/\(\/\).*/{
15651 s//\1/
15652 q
15653 }
15654 s/.*/./; q'`
15655
15656# CDPATH.
15657$as_unset CDPATH
15658
15659
15660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015661 as_lineno_1=$LINENO
15662 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015663 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015664 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015666 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15667 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015668 # line-number line after each line using $LINENO; the second 'sed'
15669 # does the real work. The second script uses 'N' to pair each
15670 # line-number line with the line containing $LINENO, and appends
15671 # trailing '-' during substitution so that $LINENO is not a special
15672 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015673 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015674 # scripts with optimization help from Paolo Bonzini. Blame Lee
15675 # E. McMahon (1931-1989) for sed's syntax. :-)
15676 sed -n '
15677 p
15678 /[$]LINENO/=
15679 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015680 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015681 s/[$]LINENO.*/&-/
15682 t lineno
15683 b
15684 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015685 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015686 :loop
15687 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015688 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015689 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015690 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015691 chmod +x "$as_me.lineno" ||
15692 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015693 { (exit 1); exit 1; }; }
15694
15695 # Don't try to exec as it changes $[0], causing all sort of problems
15696 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015697 # original and so on. Autoconf is especially sensitive to this).
15698 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015699 # Exit status is that of the last command.
15700 exit
15701}
15702
15703
Theodore Ts'oe1052142006-10-21 21:46:47 -040015704if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15705 as_dirname=dirname
15706else
15707 as_dirname=false
15708fi
15709
15710ECHO_C= ECHO_N= ECHO_T=
15711case `echo -n x` in
15712-n*)
15713 case `echo 'x\c'` in
15714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15715 *) ECHO_C='\c';;
15716 esac;;
15717*)
15718 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015719esac
15720
Theodore Ts'oe1052142006-10-21 21:46:47 -040015721if expr a : '\(a\)' >/dev/null 2>&1 &&
15722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015723 as_expr=expr
15724else
15725 as_expr=false
15726fi
15727
15728rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015729if test -d conf$$.dir; then
15730 rm -f conf$$.dir/conf$$.file
15731else
15732 rm -f conf$$.dir
15733 mkdir conf$$.dir
15734fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015735echo >conf$$.file
15736if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015737 as_ln_s='ln -s'
15738 # ... but there are two gotchas:
15739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15741 # In both cases, we have to default to `cp -p'.
15742 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015743 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015744elif ln conf$$.file conf$$ 2>/dev/null; then
15745 as_ln_s=ln
15746else
15747 as_ln_s='cp -p'
15748fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015749rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15750rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015751
15752if mkdir -p . 2>/dev/null; then
15753 as_mkdir_p=:
15754else
15755 test -d ./-p && rmdir ./-p
15756 as_mkdir_p=false
15757fi
15758
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015759if test -x / >/dev/null 2>&1; then
15760 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015761else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015762 if ls -dL / >/dev/null 2>&1; then
15763 as_ls_L_option=L
15764 else
15765 as_ls_L_option=
15766 fi
15767 as_test_x='
15768 eval sh -c '\''
15769 if test -d "$1"; then
15770 test -d "$1/.";
15771 else
15772 case $1 in
15773 -*)set "./$1";;
15774 esac;
15775 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15776 ???[sx]*):;;*)false;;esac;fi
15777 '\'' sh
15778 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015779fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015780as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015781
15782# Sed expression to map a string onto a valid CPP name.
15783as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15784
15785# Sed expression to map a string onto a valid variable name.
15786as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15787
15788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015789exec 6>&1
15790
Theodore Ts'oe1052142006-10-21 21:46:47 -040015791# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015792# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015793# values after options handling.
15794ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015795This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015796generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015797
15798 CONFIG_FILES = $CONFIG_FILES
15799 CONFIG_HEADERS = $CONFIG_HEADERS
15800 CONFIG_LINKS = $CONFIG_LINKS
15801 CONFIG_COMMANDS = $CONFIG_COMMANDS
15802 $ $0 $@
15803
Theodore Ts'oe1052142006-10-21 21:46:47 -040015804on `(hostname || uname -n) 2>/dev/null | sed 1q`
15805"
15806
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015807_ACEOF
15808
Theodore Ts'oe1052142006-10-21 21:46:47 -040015809cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015810# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015811config_files="$ac_config_files"
15812config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015813
Theodore Ts'oe1052142006-10-21 21:46:47 -040015814_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015815
15816cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015817ac_cs_usage="\
15818\`$as_me' instantiates files from templates according to the
15819current configuration.
15820
15821Usage: $0 [OPTIONS] [FILE]...
15822
15823 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015824 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015825 -q, --quiet do not print progress messages
15826 -d, --debug don't remove temporary files
15827 --recheck update $as_me by reconfiguring in the same conditions
15828 --file=FILE[:TEMPLATE]
15829 instantiate the configuration file FILE
15830
15831Configuration files:
15832$config_files
15833
15834Configuration commands:
15835$config_commands
15836
15837Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015838
Theodore Ts'oe1052142006-10-21 21:46:47 -040015839_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015840cat >>$CONFIG_STATUS <<_ACEOF
15841ac_cs_version="\\
15842config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015843configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015844 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015845
Theodore Ts'oe1052142006-10-21 21:46:47 -040015846Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015847This config.status script is free software; the Free Software Foundation
15848gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015849
15850ac_pwd='$ac_pwd'
15851srcdir='$srcdir'
15852INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015853_ACEOF
15854
15855cat >>$CONFIG_STATUS <<\_ACEOF
15856# If no file are specified by the user, then we need to provide default
15857# value. By we need to know if files were specified by the user.
15858ac_need_defaults=:
15859while test $# != 0
15860do
15861 case $1 in
15862 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015865 ac_shift=:
15866 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015867 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015868 ac_option=$1
15869 ac_optarg=$2
15870 ac_shift=shift
15871 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015872 esac
15873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015874 case $ac_option in
15875 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15877 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15879 echo "$ac_cs_version"; exit ;;
15880 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015881 debug=: ;;
15882 --file | --fil | --fi | --f )
15883 $ac_shift
15884 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15885 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015886 --he | --h | --help | --hel | -h )
15887 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15890 ac_cs_silent=: ;;
15891
15892 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015893 -*) { echo "$as_me: error: unrecognized option: $1
15894Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015895 { (exit 1); exit 1; }; } ;;
15896
Theodore Ts'oe1052142006-10-21 21:46:47 -040015897 *) ac_config_targets="$ac_config_targets $1"
15898 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015899
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015900 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015901 shift
15902done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015904ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015906if $ac_cs_silent; then
15907 exec 6>/dev/null
15908 ac_configure_extra_args="$ac_configure_extra_args --silent"
15909fi
15910
15911_ACEOF
15912cat >>$CONFIG_STATUS <<_ACEOF
15913if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015914 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15915 CONFIG_SHELL=$SHELL
15916 export CONFIG_SHELL
15917 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015918fi
15919
15920_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015921cat >>$CONFIG_STATUS <<\_ACEOF
15922exec 5>>config.log
15923{
15924 echo
15925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15926## Running $as_me. ##
15927_ASBOX
15928 echo "$ac_log"
15929} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015930
Theodore Ts'oe1052142006-10-21 21:46:47 -040015931_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015932cat >>$CONFIG_STATUS <<_ACEOF
15933#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015934# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015935#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015936# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015937 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015938 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015939 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015940 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15941 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015942
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015943
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015944_ACEOF
15945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015946cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015947
15948# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015949for ac_config_target in $ac_config_targets
15950do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015951 case $ac_config_target in
15952 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15953 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15954
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015955 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15956echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15957 { (exit 1); exit 1; }; };;
15958 esac
15959done
15960
Theodore Ts'oe1052142006-10-21 21:46:47 -040015961
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015962# If the user did not use the arguments to specify the items to instantiate,
15963# then the envvar interface is used. Set only those that are not.
15964# We use the long form for the default assignment because of an extremely
15965# bizarre bug on SunOS 4.1.3.
15966if $ac_need_defaults; then
15967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15969fi
15970
15971# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015972# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015973# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015974# Hook for its removal unless debugging.
15975# Note that there is a small window in which the directory will not be cleaned:
15976# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015977$debug ||
15978{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015979 tmp=
15980 trap 'exit_status=$?
15981 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15982' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015983 trap '{ (exit 1); exit 1; }' 1 2 13 15
15984}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015985# Create a (secure) tmp directory for tmp files.
15986
15987{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015988 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015989 test -n "$tmp" && test -d "$tmp"
15990} ||
15991{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015992 tmp=./conf$$-$RANDOM
15993 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015994} ||
15995{
15996 echo "$me: cannot create a temporary directory in ." >&2
15997 { (exit 1); exit 1; }
15998}
15999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016000#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016001# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016002#
16003
16004# No need to generate the scripts if there are no CONFIG_FILES.
16005# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040016006if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016007
16008_ACEOF
16009
Theodore Ts'oe1052142006-10-21 21:46:47 -040016010# Create sed commands to just substitute file output variables.
16011
16012# Remaining file output variables are in a fragment that also has non-file
16013# output varibles.
16014
16015
16016
16017ac_delim='%!_!# '
16018for ac_last_try in false false false false false :; do
16019 cat >conf$$subs.sed <<_ACEOF
16020SHELL!$SHELL$ac_delim
16021PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16022PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16023PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16024PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16025PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16026PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16027exec_prefix!$exec_prefix$ac_delim
16028prefix!$prefix$ac_delim
16029program_transform_name!$program_transform_name$ac_delim
16030bindir!$bindir$ac_delim
16031sbindir!$sbindir$ac_delim
16032libexecdir!$libexecdir$ac_delim
16033datarootdir!$datarootdir$ac_delim
16034datadir!$datadir$ac_delim
16035sysconfdir!$sysconfdir$ac_delim
16036sharedstatedir!$sharedstatedir$ac_delim
16037localstatedir!$localstatedir$ac_delim
16038includedir!$includedir$ac_delim
16039oldincludedir!$oldincludedir$ac_delim
16040docdir!$docdir$ac_delim
16041infodir!$infodir$ac_delim
16042htmldir!$htmldir$ac_delim
16043dvidir!$dvidir$ac_delim
16044pdfdir!$pdfdir$ac_delim
16045psdir!$psdir$ac_delim
16046libdir!$libdir$ac_delim
16047localedir!$localedir$ac_delim
16048mandir!$mandir$ac_delim
16049DEFS!$DEFS$ac_delim
16050ECHO_C!$ECHO_C$ac_delim
16051ECHO_N!$ECHO_N$ac_delim
16052ECHO_T!$ECHO_T$ac_delim
16053LIBS!$LIBS$ac_delim
16054build_alias!$build_alias$ac_delim
16055host_alias!$host_alias$ac_delim
16056target_alias!$target_alias$ac_delim
16057E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16058E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16059E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16060E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016061E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016062build!$build$ac_delim
16063build_cpu!$build_cpu$ac_delim
16064build_vendor!$build_vendor$ac_delim
16065build_os!$build_os$ac_delim
16066host!$host$ac_delim
16067host_cpu!$host_cpu$ac_delim
16068host_vendor!$host_vendor$ac_delim
16069host_os!$host_os$ac_delim
16070CC!$CC$ac_delim
16071CFLAGS!$CFLAGS$ac_delim
16072LDFLAGS!$LDFLAGS$ac_delim
16073CPPFLAGS!$CPPFLAGS$ac_delim
16074ac_ct_CC!$ac_ct_CC$ac_delim
16075EXEEXT!$EXEEXT$ac_delim
16076OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016077CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016078LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016079GREP!$GREP$ac_delim
16080EGREP!$EGREP$ac_delim
16081LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16082MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16083HTREE_CMT!$HTREE_CMT$ac_delim
16084ELF_CMT!$ELF_CMT$ac_delim
16085BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16086PROFILE_CMT!$PROFILE_CMT$ac_delim
16087CHECKER_CMT!$CHECKER_CMT$ac_delim
16088LIB_EXT!$LIB_EXT$ac_delim
16089STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16090PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16091SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16092DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16093IMAGER_CMT!$IMAGER_CMT$ac_delim
16094RESIZER_CMT!$RESIZER_CMT$ac_delim
Theodore Ts'o7e8fe322008-01-27 17:43:10 -050016095FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016096_ACEOF
16097
16098 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16099 break
16100 elif $ac_last_try; then
16101 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16102echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16103 { (exit 1); exit 1; }; }
16104 else
16105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016106 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016107done
16108
16109ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16110if test -n "$ac_eof"; then
16111 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16112 ac_eof=`expr $ac_eof + 1`
16113fi
16114
16115cat >>$CONFIG_STATUS <<_ACEOF
16116cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16118/^[ ]*@MCONFIG@[ ]*$/{
16119r $MCONFIG
16120d
16121}
16122/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16123r $MAKEFILE_ELF
16124d
16125}
16126/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16127r $MAKEFILE_BSDLIB
16128d
16129}
16130/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16131r $MAKEFILE_PROFILE
16132d
16133}
16134/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16135r $MAKEFILE_CHECKER
16136d
16137}
16138/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16139r $MAKEFILE_LIBRARY
16140d
16141}
16142/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16143r $ASM_TYPES_HEADER
16144d
16145}
16146_ACEOF
16147sed '
16148s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16149s/^/s,@/; s/!/@,|#_!!_#|/
16150:n
16151t n
16152s/'"$ac_delim"'$/,g/; t
16153s/$/\\/; p
16154N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16155' >>$CONFIG_STATUS <conf$$subs.sed
16156rm -f conf$$subs.sed
16157cat >>$CONFIG_STATUS <<_ACEOF
16158CEOF$ac_eof
16159_ACEOF
16160
16161
16162ac_delim='%!_!# '
16163for ac_last_try in false false false false false :; do
16164 cat >conf$$subs.sed <<_ACEOF
16165FSCK_MAN!$FSCK_MAN$ac_delim
16166E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16167E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016168PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016169DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16170DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16171DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16172STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016173STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016174UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016175GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16176PACKAGE!$PACKAGE$ac_delim
16177VERSION!$VERSION$ac_delim
16178SET_MAKE!$SET_MAKE$ac_delim
16179INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16180INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16181INSTALL_DATA!$INSTALL_DATA$ac_delim
16182MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16183USE_NLS!$USE_NLS$ac_delim
16184MSGFMT!$MSGFMT$ac_delim
16185GMSGFMT!$GMSGFMT$ac_delim
16186XGETTEXT!$XGETTEXT$ac_delim
16187MSGMERGE!$MSGMERGE$ac_delim
16188RANLIB!$RANLIB$ac_delim
16189ALLOCA!$ALLOCA$ac_delim
16190GLIBC21!$GLIBC21$ac_delim
16191HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16192HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16193HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16194HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16195LIBICONV!$LIBICONV$ac_delim
16196LTLIBICONV!$LTLIBICONV$ac_delim
16197INTLBISON!$INTLBISON$ac_delim
16198BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16199USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16200CATOBJEXT!$CATOBJEXT$ac_delim
16201DATADIRNAME!$DATADIRNAME$ac_delim
16202INSTOBJEXT!$INSTOBJEXT$ac_delim
16203GENCAT!$GENCAT$ac_delim
16204INTLOBJS!$INTLOBJS$ac_delim
16205INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16206INTLLIBS!$INTLLIBS$ac_delim
16207LIBINTL!$LIBINTL$ac_delim
16208LTLIBINTL!$LTLIBINTL$ac_delim
16209POSUB!$POSUB$ac_delim
16210BINARY_TYPE!$BINARY_TYPE$ac_delim
16211LN!$LN$ac_delim
16212LN_S!$LN_S$ac_delim
16213MV!$MV$ac_delim
16214CP!$CP$ac_delim
16215RM!$RM$ac_delim
16216CHMOD!$CHMOD$ac_delim
16217AWK!$AWK$ac_delim
16218SED!$SED$ac_delim
16219PERL!$PERL$ac_delim
16220LDCONFIG!$LDCONFIG$ac_delim
16221AR!$AR$ac_delim
16222STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016223MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016224BUILD_CC!$BUILD_CC$ac_delim
16225SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16226SIZEOF_INT!$SIZEOF_INT$ac_delim
16227SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16228SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16229SOCKET_LIB!$SOCKET_LIB$ac_delim
16230DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16231UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16232LINUX_CMT!$LINUX_CMT$ac_delim
16233CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16234UNIX_CMT!$UNIX_CMT$ac_delim
16235root_prefix!$root_prefix$ac_delim
16236root_bindir!$root_bindir$ac_delim
16237root_sbindir!$root_sbindir$ac_delim
16238root_libdir!$root_libdir$ac_delim
16239root_sysconfdir!$root_sysconfdir$ac_delim
16240LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16241SS_DIR!$SS_DIR$ac_delim
16242ET_DIR!$ET_DIR$ac_delim
16243DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16244INTL_FLAGS!$INTL_FLAGS$ac_delim
16245BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16246BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16247LIBOBJS!$LIBOBJS$ac_delim
16248LTLIBOBJS!$LTLIBOBJS$ac_delim
16249_ACEOF
16250
Manish Katiyar7321d942008-04-14 17:20:03 +053016251 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016252 break
16253 elif $ac_last_try; then
16254 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16255echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16256 { (exit 1); exit 1; }; }
16257 else
16258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16259 fi
16260done
16261
16262ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16263if test -n "$ac_eof"; then
16264 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16265 ac_eof=`expr $ac_eof + 1`
16266fi
16267
16268cat >>$CONFIG_STATUS <<_ACEOF
16269cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16270/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16271_ACEOF
16272sed '
16273s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16274s/^/s,@/; s/!/@,|#_!!_#|/
16275:n
16276t n
16277s/'"$ac_delim"'$/,g/; t
16278s/$/\\/; p
16279N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16280' >>$CONFIG_STATUS <conf$$subs.sed
16281rm -f conf$$subs.sed
16282cat >>$CONFIG_STATUS <<_ACEOF
16283:end
16284s/|#_!!_#|//g
16285CEOF$ac_eof
16286_ACEOF
16287
16288
16289# VPATH may cause trouble with some makes, so we remove $(srcdir),
16290# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16291# trailing colons and then remove the whole line if VPATH becomes empty
16292# (actually we leave an empty line to preserve line numbers).
16293if test "x$srcdir" = x.; then
16294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16295s/:*\$(srcdir):*/:/
16296s/:*\${srcdir}:*/:/
16297s/:*@srcdir@:*/:/
16298s/^\([^=]*=[ ]*\):*/\1/
16299s/:*$//
16300s/^[^=]*=[ ]*$//
16301}'
16302fi
16303
16304cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016305fi # test -n "$CONFIG_FILES"
16306
Theodore Ts'oe1052142006-10-21 21:46:47 -040016307
16308for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16309do
16310 case $ac_tag in
16311 :[FHLC]) ac_mode=$ac_tag; continue;;
16312 esac
16313 case $ac_mode$ac_tag in
16314 :[FHL]*:*);;
16315 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16316echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16317 { (exit 1); exit 1; }; };;
16318 :[FH]-) ac_tag=-:-;;
16319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16320 esac
16321 ac_save_IFS=$IFS
16322 IFS=:
16323 set x $ac_tag
16324 IFS=$ac_save_IFS
16325 shift
16326 ac_file=$1
16327 shift
16328
16329 case $ac_mode in
16330 :L) ac_source=$1;;
16331 :[FH])
16332 ac_file_inputs=
16333 for ac_f
16334 do
16335 case $ac_f in
16336 -) ac_f="$tmp/stdin";;
16337 *) # Look for the file first in the build tree, then in the source tree
16338 # (if the path is not absolute). The absolute path cannot be DOS-style,
16339 # because $ac_f cannot contain `:'.
16340 test -f "$ac_f" ||
16341 case $ac_f in
16342 [\\/$]*) false;;
16343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16344 esac ||
16345 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16346echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16347 { (exit 1); exit 1; }; };;
16348 esac
16349 ac_file_inputs="$ac_file_inputs $ac_f"
16350 done
16351
16352 # Let's still pretend it is `configure' which instantiates (i.e., don't
16353 # use $as_me), people would be surprised to read:
16354 # /* config.h. Generated by config.status. */
16355 configure_input="Generated from "`IFS=:
16356 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16357 if test x"$ac_file" != x-; then
16358 configure_input="$ac_file. $configure_input"
16359 { echo "$as_me:$LINENO: creating $ac_file" >&5
16360echo "$as_me: creating $ac_file" >&6;}
16361 fi
16362
16363 case $ac_tag in
16364 *:-:* | *:-) cat >"$tmp/stdin";;
16365 esac
16366 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016367 esac
16368
Theodore Ts'oe1052142006-10-21 21:46:47 -040016369 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016370$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$ac_file" : 'X\(//\)[^/]' \| \
16372 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016374echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16376 s//\1/
16377 q
16378 }
16379 /^X\(\/\/\)[^/].*/{
16380 s//\1/
16381 q
16382 }
16383 /^X\(\/\/\)$/{
16384 s//\1/
16385 q
16386 }
16387 /^X\(\/\).*/{
16388 s//\1/
16389 q
16390 }
16391 s/.*/./; q'`
16392 { as_dir="$ac_dir"
16393 case $as_dir in #(
16394 -*) as_dir=./$as_dir;;
16395 esac
16396 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016397 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016398 while :; do
16399 case $as_dir in #(
16400 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16401 *) as_qdir=$as_dir;;
16402 esac
16403 as_dirs="'$as_qdir' $as_dirs"
16404 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16406 X"$as_dir" : 'X\(//\)[^/]' \| \
16407 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016409echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16411 s//\1/
16412 q
16413 }
16414 /^X\(\/\/\)[^/].*/{
16415 s//\1/
16416 q
16417 }
16418 /^X\(\/\/\)$/{
16419 s//\1/
16420 q
16421 }
16422 /^X\(\/\).*/{
16423 s//\1/
16424 q
16425 }
16426 s/.*/./; q'`
16427 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016428 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016429 test -z "$as_dirs" || eval "mkdir $as_dirs"
16430 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16431echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016432 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016433 ac_builddir=.
16434
Theodore Ts'oe1052142006-10-21 21:46:47 -040016435case "$ac_dir" in
16436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16437*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016439 # A ".." for each directory in $ac_dir_suffix.
16440 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16441 case $ac_top_builddir_sub in
16442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16444 esac ;;
16445esac
16446ac_abs_top_builddir=$ac_pwd
16447ac_abs_builddir=$ac_pwd$ac_dir_suffix
16448# for backward compatibility:
16449ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016450
16451case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016452 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016453 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016454 ac_top_srcdir=$ac_top_builddir_sub
16455 ac_abs_top_srcdir=$ac_pwd ;;
16456 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016457 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016458 ac_top_srcdir=$srcdir
16459 ac_abs_top_srcdir=$srcdir ;;
16460 *) # Relative name.
16461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16462 ac_top_srcdir=$ac_top_build_prefix$srcdir
16463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016464esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016467
Theodore Ts'oe1052142006-10-21 21:46:47 -040016468 case $ac_mode in
16469 :F)
16470 #
16471 # CONFIG_FILE
16472 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016473
16474 case $INSTALL in
16475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016477 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016478_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016479
16480cat >>$CONFIG_STATUS <<\_ACEOF
16481# If the template does not know about datarootdir, expand it.
16482# FIXME: This hack should be removed a few years after 2.60.
16483ac_datarootdir_hack=; ac_datarootdir_seen=
16484
16485case `sed -n '/datarootdir/ {
16486 p
16487 q
16488}
16489/@datadir@/p
16490/@docdir@/p
16491/@infodir@/p
16492/@localedir@/p
16493/@mandir@/p
16494' $ac_file_inputs` in
16495*datarootdir*) ac_datarootdir_seen=yes;;
16496*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16497 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16498echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16499_ACEOF
16500cat >>$CONFIG_STATUS <<_ACEOF
16501 ac_datarootdir_hack='
16502 s&@datadir@&$datadir&g
16503 s&@docdir@&$docdir&g
16504 s&@infodir@&$infodir&g
16505 s&@localedir@&$localedir&g
16506 s&@mandir@&$mandir&g
16507 s&\\\${datarootdir}&$datarootdir&g' ;;
16508esac
16509_ACEOF
16510
16511# Neutralize VPATH when `$srcdir' = `.'.
16512# Shell code in configure.ac might set extrasub.
16513# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016514cat >>$CONFIG_STATUS <<_ACEOF
16515 sed "$ac_vpsub
16516$extrasub
16517_ACEOF
16518cat >>$CONFIG_STATUS <<\_ACEOF
16519:t
16520/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016521s&@configure_input@&$configure_input&;t t
16522s&@top_builddir@&$ac_top_builddir_sub&;t t
16523s&@srcdir@&$ac_srcdir&;t t
16524s&@abs_srcdir@&$ac_abs_srcdir&;t t
16525s&@top_srcdir@&$ac_top_srcdir&;t t
16526s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16527s&@builddir@&$ac_builddir&;t t
16528s&@abs_builddir@&$ac_abs_builddir&;t t
16529s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16530s&@INSTALL@&$ac_INSTALL&;t t
16531$ac_datarootdir_hack
16532" $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 -050016533
Theodore Ts'oe1052142006-10-21 21:46:47 -040016534test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16535 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16536 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16537 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16538which seems to be undefined. Please make sure it is defined." >&5
16539echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016541
Theodore Ts'oe1052142006-10-21 21:46:47 -040016542 rm -f "$tmp/stdin"
16543 case $ac_file in
16544 -) cat "$tmp/out"; rm -f "$tmp/out";;
16545 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16546 esac
16547 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016548
16549
Theodore Ts'oe1052142006-10-21 21:46:47 -040016550 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16551echo "$as_me: executing $ac_file commands" >&6;}
16552 ;;
16553 esac
16554
16555
16556 case $ac_file$ac_mode in
16557 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016558 for ac_file in $CONFIG_FILES; do
16559 # Support "outfile[:infile[:infile...]]"
16560 case "$ac_file" in
16561 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016562 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016563 # PO directories have a Makefile.in generated from Makefile.in.in.
16564 case "$ac_file" in */Makefile.in)
16565 # Adjust a relative srcdir.
16566 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16567 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16568 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16569 # In autoconf-2.13 it is called $ac_given_srcdir.
16570 # In autoconf-2.50 it is called $srcdir.
16571 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16572 case "$ac_given_srcdir" in
16573 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16574 /*) top_srcdir="$ac_given_srcdir" ;;
16575 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16576 esac
16577 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16578 rm -f "$ac_dir/POTFILES"
16579 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16580 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 -050016581 POMAKEFILEDEPS="POTFILES.in"
16582 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016583 # on $ac_dir but don't depend on user-specified configuration
16584 # parameters.
16585 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16586 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016587 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016588 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16589 fi
16590 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16591 # Hide the ALL_LINGUAS assigment from automake.
16592 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016593 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16594 else
16595 # The set of available languages was given in configure.in.
16596 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016597 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016598 # Compute POFILES
16599 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16600 # Compute UPDATEPOFILES
16601 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16602 # Compute DUMMYPOFILES
16603 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16604 # Compute GMOFILES
16605 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016606 case "$ac_given_srcdir" in
16607 .) srcdirpre= ;;
16608 *) srcdirpre='$(srcdir)/' ;;
16609 esac
16610 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016611 UPDATEPOFILES=
16612 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016613 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016614 for lang in $ALL_LINGUAS; do
16615 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016616 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16617 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016618 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016619 done
16620 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16621 # environment variable.
16622 INST_LINGUAS=
16623 if test -n "$ALL_LINGUAS"; then
16624 for presentlang in $ALL_LINGUAS; do
16625 useit=no
16626 if test "%UNSET%" != "$LINGUAS"; then
16627 desiredlanguages="$LINGUAS"
16628 else
16629 desiredlanguages="$ALL_LINGUAS"
16630 fi
16631 for desiredlang in $desiredlanguages; do
16632 # Use the presentlang catalog if desiredlang is
16633 # a. equal to presentlang, or
16634 # b. a variant of presentlang (because in this case,
16635 # presentlang can be used as a fallback for messages
16636 # which are not translated in the desiredlang catalog).
16637 case "$desiredlang" in
16638 "$presentlang"*) useit=yes;;
16639 esac
16640 done
16641 if test $useit = yes; then
16642 INST_LINGUAS="$INST_LINGUAS $presentlang"
16643 fi
16644 done
16645 fi
16646 CATALOGS=
16647 if test -n "$INST_LINGUAS"; then
16648 for lang in $INST_LINGUAS; do
16649 CATALOGS="$CATALOGS $lang.gmo"
16650 done
16651 fi
16652 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016653 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 -040016654 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16655 if test -f "$f"; then
16656 case "$f" in
16657 *.orig | *.bak | *~) ;;
16658 *) cat "$f" >> "$ac_dir/Makefile" ;;
16659 esac
16660 fi
16661 done
16662 fi
16663 ;;
16664 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016665 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016666
Theodore Ts'oe1052142006-10-21 21:46:47 -040016667 esac
16668done # for ac_tag
16669
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016670
16671{ (exit 0); exit 0; }
16672_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016673chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016674ac_clean_files=$ac_clean_files_save
16675
16676
16677# configure is writing to config.log, and then calls config.status.
16678# config.status does its own redirection, appending to config.log.
16679# Unfortunately, on DOS this fails, as config.log is still kept open
16680# by configure, so config.status won't be able to write to it; its
16681# output is simply discarded. So we exec the FD to /dev/null,
16682# effectively closing config.log, so it can be properly (re)opened and
16683# appended to by config.status. When coming back to configure, we
16684# need to make the FD available again.
16685if test "$no_create" != yes; then
16686 ac_cs_success=:
16687 ac_config_status_args=
16688 test "$silent" = yes &&
16689 ac_config_status_args="$ac_config_status_args --quiet"
16690 exec 5>/dev/null
16691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16692 exec 5>>config.log
16693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16694 # would make configure fail if this is the last instruction.
16695 $ac_cs_success || { (exit 1); exit 1; }
16696fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016697
Theodore Ts'oee683a12005-02-05 15:53:56 -050016698if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16699