blob: dc4cac71a6aae8b9689e0008afa20021a067fa67 [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
750BUILD_CC
751SIZEOF_SHORT
752SIZEOF_INT
753SIZEOF_LONG
754SIZEOF_LONG_LONG
755SOCKET_LIB
756DLOPEN_LIB
757UNI_DIFF_OPTS
758LINUX_CMT
759CYGWIN_CMT
760UNIX_CMT
761root_prefix
762root_bindir
763root_sbindir
764root_libdir
765root_sysconfdir
766LDFLAG_STATIC
767SS_DIR
768ET_DIR
769DO_TEST_SUITE
770INTL_FLAGS
771BUILD_CFLAGS
772BUILD_LDFLAGS
773LIBOBJS
774LTLIBOBJS'
775ac_subst_files='MCONFIG
776MAKEFILE_ELF
777MAKEFILE_BSDLIB
778MAKEFILE_PROFILE
779MAKEFILE_CHECKER
780MAKEFILE_LIBRARY
781ASM_TYPES_HEADER'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400788LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400789CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500790CPP
791PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400792
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000793
794# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500795ac_init_help=
796ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000797# The variables have the same names as the options, with
798# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500799cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000800exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000801no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000810verbose=
811x_includes=NONE
812x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400819# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000828includedir='${prefix}/include'
829oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400830docdir='${datarootdir}/doc/${PACKAGE}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400841ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842for ac_option
843do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000847 ac_prev=
848 continue
849 fi
850
Theodore Ts'oe1052142006-10-21 21:46:47 -0400851 case $ac_option in
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *) ac_optarg=yes ;;
854 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
Theodore Ts'oe1052142006-10-21 21:46:47 -0400858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000861
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500865 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000866
867 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500868 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500870 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000881
Theodore Ts'oe1052142006-10-21 21:46:47 -0400882 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000883 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500885 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000886
Theodore Ts'oe1052142006-10-21 21:46:47 -0400887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000894 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500895 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000896 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400897 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400900 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400901 eval enable_$ac_feature=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000912
913 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500914 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400916 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500917 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400919 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400920 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500929 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000941
942 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500943 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500945 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000946
Theodore Ts'oe1052142006-10-21 21:46:47 -0400947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500958 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500963 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500968 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500975 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000976
Theodore Ts'oe1052142006-10-21 21:46:47 -0400977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000982 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400983 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500992 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000993
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500999 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001013 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001014
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001018 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001025 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001032 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001049 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001050
Theodore Ts'oe1052142006-10-21 21:46:47 -04001051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001085 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001091
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001098
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001099 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001100 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001109
1110 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001117 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001118
1119 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001121 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001122 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001125 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001126 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001127
1128 --x)
1129 # Obsolete; use --with-x.
1130 with_x=yes ;;
1131
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001137 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001138
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 -*) { echo "$as_me: error: unrecognized option: $ac_option
1147Try \`$0 --help' for more information." >&2
1148 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149 ;;
1150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001157 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 export $ac_envvar ;;
1159
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001160 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001161 # FIXME: should be removed in autoconf 3.0.
1162 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001166 ;;
1167
1168 esac
1169done
1170
1171if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 { echo "$as_me: error: missing argument to $ac_option" >&2
1174 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001175fi
1176
Theodore Ts'oe1052142006-10-21 21:46:47 -04001177# Be sure to have absolute directory names.
1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001183 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001184 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001188 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1189 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001190done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001192# There might be people who depend on the old broken behavior: `$host'
1193# used to hold the argument of --host etc.
1194# FIXME: To remove some day.
1195build=$build_alias
1196host=$host_alias
1197target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001199# FIXME: To remove some day.
1200if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used." >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208fi
1209
1210ac_tool_prefix=
1211test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213test "$silent" = yes && exec 6>/dev/null
1214
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215
Theodore Ts'oe1052142006-10-21 21:46:47 -04001216ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217ac_ls_di=`ls -di .` &&
1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 { echo "$as_me: error: Working directory cannot be determined" >&2
1220 { (exit 1); exit 1; }; }
1221test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 { echo "$as_me: error: pwd does not report name of working directory" >&2
1223 { (exit 1); exit 1; }; }
1224
1225
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226# Find the source files, if location was not specified.
1227if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001231$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$0" : 'X\(//\)[^/]' \| \
1233 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001235echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\/\)$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\).*/{
1249 s//\1/
1250 q
1251 }
1252 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001254 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001255 srcdir=..
1256 fi
1257else
1258 ac_srcdir_defaulted=no
1259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001260if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001263 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001264fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266ac_abs_confdir=`(
1267 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001268 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001269 pwd)`
1270# When building in place, set srcdir=.
1271if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 srcdir=.
1273fi
1274# Remove unnecessary trailing slashes from srcdir.
1275# Double slashes in file names in object file debugging info
1276# mess up M-x gdb in Emacs.
1277case $srcdir in
1278*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279esac
1280for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001287#
1288# Report the --help message.
1289#
1290if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1293 cat <<_ACEOF
1294\`configure' configures this package to adapt to many kinds of systems.
1295
1296Usage: $0 [OPTION]... [VAR=VALUE]...
1297
1298To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299VAR=VALUE. See below for descriptions of some of the useful variables.
1300
1301Defaults for the options are specified in brackets.
1302
1303Configuration:
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 [PREFIX]
1319
1320By default, \`make install' will install all the files in
1321\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323for instance \`--prefix=\$HOME'.
1324
1325For better control, use the options below.
1326
1327Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001347_ACEOF
1348
1349 cat <<\_ACEOF
1350
1351System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354_ACEOF
1355fi
1356
1357if test -n "$ac_init_help"; then
1358
1359 cat <<\_ACEOF
1360
1361Optional Features:
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001364 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001365 --enable-compression enable EXPERIMENTAL compression support
1366 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001367 --enable-elf-shlibs select ELF shared libraries
1368 --enable-bsd-shlibs select BSD shared libraries
1369 --enable-profile build profiling libraries
1370 --enable-checker build checker libraries
1371 --enable-jbd-debug enable journal debugging
1372 --enable-blkid-debug enable blkid debugging
1373 --enable-testio-debug enable the use of the test I/O manager for debugging
1374 --disable-swapfs disable support of legacy byte-swapped filesystems
1375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001380 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001381 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001382 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1385
1386Optional Packages:
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001389 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001390 --with-cc=COMPILER select compiler to use
1391 --with-linker=LINKER select linker to use
1392 --with-ccopts=CCOPTS select compiler command line options
1393 --with-ldopts=LDOPTS select linker command line options
1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search for libintl in includedir and libdir
1401
1402Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001407 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001410 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001411 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
1416_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001417ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424 ac_builddir=.
1425
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001441
1442case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001443 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001455esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457
Theodore Ts'oe1052142006-10-21 21:46:47 -04001458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466 else
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 done
1471fi
1472
Theodore Ts'oe1052142006-10-21 21:46:47 -04001473test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474if $ac_init_version; then
1475 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001476configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001477generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001484 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001486cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487This file contains any messages produced by compilers while
1488running configure, to aid debugging if configure makes a mistake.
1489
1490It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001491generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492
1493 $ $0 $@
1494
1495_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001496exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497{
1498cat <<_ASUNAME
1499## --------- ##
1500## Platform. ##
1501## --------- ##
1502
1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511
1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519
1520_ASUNAME
1521
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1528done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001530
1531} >&5
1532
1533cat >&5 <<_ACEOF
1534
1535
1536## ----------- ##
1537## Core tests. ##
1538## ----------- ##
1539
1540_ACEOF
1541
1542
1543# Keep a trace of the command line.
1544# Strip out --no-create and --no-recursion so they do not pile up.
1545# Strip out --silent because we don't want to record it for future runs.
1546# Also quote any args containing shell meta-characters.
1547# Make two passes to allow for proper duplicate-argument suppression.
1548ac_configure_args=
1549ac_configure_args0=
1550ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551ac_must_keep_next=false
1552for ac_pass in 1 2
1553do
1554 for ac_arg
1555 do
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 esac
1564 case $ac_pass in
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 2)
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1570 else
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1579 ;;
1580 -* ) ac_must_keep_next=true ;;
1581 esac
1582 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001583 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584 ;;
1585 esac
1586 done
1587done
1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591# When interrupted or exit'd, cleanup temporary files, and complete
1592# config.log. We remove comments because anyway the quotes in there
1593# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001594# WARNING: Use '\'' to represent an apostrophe within the trap.
1595# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001596trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1598 {
1599 echo
1600
1601 cat <<\_ASBOX
1602## ---------------- ##
1603## Cache variables. ##
1604## ---------------- ##
1605_ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608(
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 esac |
1634 sort
1635)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636 echo
1637
1638 cat <<\_ASBOX
1639## ----------------- ##
1640## Output variables. ##
1641## ----------------- ##
1642_ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1645 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651 done | sort
1652 echo
1653
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656## ------------------- ##
1657## File substitutions. ##
1658## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659_ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1662 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668 done | sort
1669 echo
1670 fi
1671
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674## ----------- ##
1675## confdefs.h. ##
1676## ----------- ##
1677_ASBOX
1678 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001679 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001680 echo
1681 fi
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1685 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001688 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001689' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692done
1693ac_signal=0
1694
1695# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001696rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001697
1698# Predefined preprocessor variables.
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_NAME "$PACKAGE_NAME"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_VERSION "$PACKAGE_VERSION"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_STRING "$PACKAGE_STRING"
1717_ACEOF
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722_ACEOF
1723
1724
1725# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001726# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001727if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731else
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001735shift
1736for ac_site_file
1737do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001738 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001742 . "$ac_site_file"
1743 fi
1744done
1745
1746if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751echo "$as_me: loading cache $cache_file" >&6;}
1752 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001755 esac
1756 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759echo "$as_me: creating cache $cache_file" >&6;}
1760 >$cache_file
1761fi
1762
1763# Check that the precious variables saved in the cache have kept the same
1764# value.
1765ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001766for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001771 case $ac_old_set,$ac_new_set in
1772 set,)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,set)
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1780 ,);;
1781 *)
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 esac
1802 fi
1803done
1804if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001810fi
1811
Theodore Ts'oe1052142006-10-21 21:46:47 -04001812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001828ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834
1835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001836ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001837for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001839 ac_aux_dir=$ac_dir
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1841 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001842 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001843 ac_aux_dir=$ac_dir
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1845 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001846 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001847 ac_aux_dir=$ac_dir
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1849 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001850 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001851done
1852if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001855 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001857
1858# These three variables are undocumented and unsupported,
1859# and are intended to be withdrawn in a future Autoconf release.
1860# They can cause serious problems if a builder's source tree is in a directory
1861# whose full name contains unusual characters.
1862ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001866
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001867MCONFIG=./MCONFIG
1868
Theodore Ts'o74becf31997-04-26 14:37:06 +00001869BINARY_TYPE=bin
1870E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001874E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001875MONTH=`echo $DATE | awk -F- '{print $2}'`
1876YEAR=`echo $DATE | awk -F- '{print $3}'`
1877
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001878if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001881 E2FSPROGS_YEAR=19$YEAR
1882else
1883 E2FSPROGS_YEAR=20$YEAR
1884fi
1885
1886case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001887Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001899*) echo "Unknown month $MONTH??" ;;
1900esac
1901
Andreas Dilger927566a2006-11-12 19:41:25 -05001902base_ver=`echo $E2FSPROGS_VERSION | \
1903 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001904
1905date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1906
1907case $E2FSPROGS_VERSION in
1908*-WIP|pre-*)
Theodore Ts'od69e7e22008-02-15 21:28:48 -05001909 pre_vers=`echo $base_ver 0.01 - p | dc`
Andreas Dilger927566a2006-11-12 19:41:25 -05001910 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1911 ;;
1912*)
1913 E2FSPROGS_PKGVER="$base_ver"
1914 ;;
1915esac
1916
1917unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001918echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1919echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1920
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001921
1922
1923
Andreas Dilger927566a2006-11-12 19:41:25 -05001924
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001925# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001926$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1928echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001929 { (exit 1); exit 1; }; }
1930
Theodore Ts'oe1052142006-10-21 21:46:47 -04001931{ echo "$as_me:$LINENO: checking build system type" >&5
1932echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001933if test "${ac_cv_build+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001936 ac_build_alias=$build_alias
1937test "x$ac_build_alias" = x &&
1938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1945echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001946 { (exit 1); exit 1; }; }
1947
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001948fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001949{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950echo "${ECHO_T}$ac_cv_build" >&6; }
1951case $ac_cv_build in
1952*-*-*) ;;
1953*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1954echo "$as_me: error: invalid value of canonical build" >&2;}
1955 { (exit 1); exit 1; }; };;
1956esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001957build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001958ac_save_IFS=$IFS; IFS='-'
1959set x $ac_cv_build
1960shift
1961build_cpu=$1
1962build_vendor=$2
1963shift; shift
1964# Remember, the first character of IFS is used to create $*,
1965# except with old shells:
1966build_os=$*
1967IFS=$ac_save_IFS
1968case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001969
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001970
Theodore Ts'oe1052142006-10-21 21:46:47 -04001971{ echo "$as_me:$LINENO: checking host system type" >&5
1972echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001973if test "${ac_cv_host+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001976 if test "x$host_alias" = x; then
1977 ac_cv_host=$ac_cv_build
1978else
1979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1981echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001982 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001983fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001984
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001985fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001986{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1987echo "${ECHO_T}$ac_cv_host" >&6; }
1988case $ac_cv_host in
1989*-*-*) ;;
1990*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1991echo "$as_me: error: invalid value of canonical host" >&2;}
1992 { (exit 1); exit 1; }; };;
1993esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001994host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001995ac_save_IFS=$IFS; IFS='-'
1996set x $ac_cv_host
1997shift
1998host_cpu=$1
1999host_vendor=$2
2000shift; shift
2001# Remember, the first character of IFS is used to create $*,
2002# except with old shells:
2003host_os=$*
2004IFS=$ac_save_IFS
2005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002006
2007
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002008
Theodore Ts'oe1052142006-10-21 21:46:47 -04002009# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002010if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002011 withval=$with_diet_libc; CC="diet cc -nostdinc"
2012{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2013echo "${ECHO_T}CC=$CC" >&6; }
2014fi
2015
2016# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002017if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002018 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2019echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002020CC=$withval
2021else
2022 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002023{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2024echo "${ECHO_T}CC defaults to $CC" >&6; }
2025fi
2026export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002028ac_ext=c
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002038if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002040else
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002050 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 -05002051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055done
2056done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002057IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002058
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002059fi
2060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002061CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002062if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002063 { echo "$as_me:$LINENO: result: $CC" >&5
2064echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002065else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002066 { echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002068fi
2069
Theodore Ts'oe1052142006-10-21 21:46:47 -04002070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002071fi
2072if test -z "$ac_cv_prog_CC"; then
2073 ac_ct_CC=$CC
2074 # Extract the first word of "gcc", so it can be a program name with args.
2075set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080else
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002090 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 -05002091 ac_cv_prog_ac_ct_CC="gcc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2094 fi
2095done
2096done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002097IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002098
2099fi
2100fi
2101ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002103 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002105else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002106 { echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002108fi
2109
Theodore Ts'oe1052142006-10-21 21:46:47 -04002110 if test "x$ac_ct_CC" = x; then
2111 CC=""
2112 else
2113 case $cross_compiling:$ac_tool_warned in
2114yes:)
2115{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2116whose name does not start with the host triplet. If you think this
2117configuration is useful to you, please write to autoconf@gnu.org." >&5
2118echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2119whose name does not start with the host triplet. If you think this
2120configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2121ac_tool_warned=yes ;;
2122esac
2123 CC=$ac_ct_CC
2124 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002125else
2126 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002127fi
2128
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002129if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002130 if test -n "$ac_tool_prefix"; then
2131 # 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 -05002132set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002135if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002137else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002147 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 -05002148 ac_cv_prog_CC="${ac_tool_prefix}cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152done
2153done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002154IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002155
2156fi
2157fi
2158CC=$ac_cv_prog_CC
2159if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002160 { echo "$as_me:$LINENO: result: $CC" >&5
2161echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002162else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002163 { echo "$as_me:$LINENO: result: no" >&5
2164echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002165fi
2166
Theodore Ts'oe1052142006-10-21 21:46:47 -04002167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002168 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002169fi
2170if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002175if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002181 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002188 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 -05002189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190 ac_prog_rejected=yes
2191 continue
2192 fi
2193 ac_cv_prog_CC="cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197done
2198done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002199IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002200
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002201if test $ac_prog_rejected = yes; then
2202 # We found a bogon in the path, so make sure we never use it.
2203 set dummy $ac_cv_prog_CC
2204 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002205 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002206 # We chose a different compiler from the bogus one.
2207 # However, it has the same basename, so the bogon will be chosen
2208 # first if we set CC to just the basename; use the full file name.
2209 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002211 fi
2212fi
2213fi
2214fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002215CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002216if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002217 { echo "$as_me:$LINENO: result: $CC" >&5
2218echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002219else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002220 { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002222fi
2223
Theodore Ts'oe1052142006-10-21 21:46:47 -04002224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002225fi
2226if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002228 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002229 do
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002234if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002236else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002246 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 -05002247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2250 fi
2251done
2252done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002253IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002254
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002255fi
2256fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002257CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002258if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002259 { echo "$as_me:$LINENO: result: $CC" >&5
2260echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002261else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002262 { echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002264fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002265
Theodore Ts'oe1052142006-10-21 21:46:47 -04002266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002267 test -n "$CC" && break
2268 done
2269fi
2270if test -z "$CC"; then
2271 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002272 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002273do
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002290 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 -05002291 ac_cv_prog_ac_ct_CC="$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002294 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002295done
2296done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002297IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002298
2299fi
2300fi
2301ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002305else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002308fi
2309
Theodore Ts'oe1052142006-10-21 21:46:47 -04002310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002311 test -n "$ac_ct_CC" && break
2312done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002313
Theodore Ts'oe1052142006-10-21 21:46:47 -04002314 if test "x$ac_ct_CC" = x; then
2315 CC=""
2316 else
2317 case $cross_compiling:$ac_tool_warned in
2318yes:)
2319{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2320whose name does not start with the host triplet. If you think this
2321configuration is useful to you, please write to autoconf@gnu.org." >&5
2322echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2323whose name does not start with the host triplet. If you think this
2324configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2325ac_tool_warned=yes ;;
2326esac
2327 CC=$ac_ct_CC
2328 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002331fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002332
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002334test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: no acceptable C compiler found in \$PATH
2337See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2339
2340# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002341echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002342ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002343{ (ac_try="$ac_compiler --version >&5"
2344case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347esac
2348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002353{ (ac_try="$ac_compiler -v >&5"
2354case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357esac
2358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002363{ (ac_try="$ac_compiler -V >&5"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373
2374cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381int
2382main ()
2383{
2384
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389ac_clean_files_save=$ac_clean_files
2390ac_clean_files="$ac_clean_files a.out a.exe b.out"
2391# Try to create an executable without -o first, disregard a.out.
2392# It will help us diagnose broken compilers, and finding out an intuition
2393# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002394{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2395echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002397#
2398# List of possible output files, starting from the most likely.
2399# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2400# only as a last resort. b.out is created by i960 compilers.
2401ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2402#
2403# The IRIX 6 linker writes into existing files which may not be
2404# executable, retaining their permissions. Remove them first so a
2405# subsequent execution test works.
2406ac_rmfiles=
2407for ac_file in $ac_files
2408do
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2412 esac
2413done
2414rm -f $ac_rmfiles
2415
2416if { (ac_try="$ac_link_default"
2417case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420esac
2421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2427# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2428# in a Makefile. We should not override ac_cv_exeext if it was cached,
2429# so that the user can short-circuit this test for compilers unknown to
2430# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002431for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432do
2433 test -f "$ac_file" || continue
2434 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436 ;;
2437 [ab].out )
2438 # We found the default executable, but exeext='' is most
2439 # certainly right.
2440 break;;
2441 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2443 then :; else
2444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 fi
2446 # We set ac_cv_exeext here because the later test for it is not
2447 # safe: cross compilers may not add the suffix if given an `-o'
2448 # argument, so we may need to know it at that point already.
2449 # Even if this section looks crufty: it has the advantage of
2450 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451 break;;
2452 * )
2453 break;;
2454 esac
2455done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002456test "$ac_cv_exeext" = no && ac_cv_exeext=
2457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002458else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002459 ac_file=''
2460fi
2461
2462{ echo "$as_me:$LINENO: result: $ac_file" >&5
2463echo "${ECHO_T}$ac_file" >&6; }
2464if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465 echo "$as_me: failed program was:" >&5
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
2468{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2469See \`config.log' for more details." >&5
2470echo "$as_me: error: C compiler cannot create executables
2471See \`config.log' for more details." >&2;}
2472 { (exit 77); exit 77; }; }
2473fi
2474
2475ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476
Theodore Ts'oe1052142006-10-21 21:46:47 -04002477# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002479{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2480echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002481# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2482# If not cross compiling, check that we can run a simple program.
2483if test "$cross_compiling" != yes; then
2484 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
2489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002495 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 if test "$cross_compiling" = maybe; then
2497 cross_compiling=yes
2498 else
2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2500If you meant to cross compile, use \`--host'.
2501See \`config.log' for more details." >&5
2502echo "$as_me: error: cannot run C compiled programs.
2503If you meant to cross compile, use \`--host'.
2504See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2506 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002507 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509{ echo "$as_me:$LINENO: result: yes" >&5
2510echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002512rm -f a.out a.exe conftest$ac_cv_exeext b.out
2513ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2517echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2518{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2519echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002520
Theodore Ts'oe1052142006-10-21 21:46:47 -04002521{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2522echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2523if { (ac_try="$ac_link"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535# work properly (i.e., refer to `conftest.exe'), while it won't with
2536# `rm'.
2537for ac_file in conftest.exe conftest conftest.*; do
2538 test -f "$ac_file" || continue
2539 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 break;;
2543 * ) break;;
2544 esac
2545done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002546else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2552fi
2553
2554rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002555{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557
2558rm -f conftest.$ac_ext
2559EXEEXT=$ac_cv_exeext
2560ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002561{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563if test "${ac_cv_objext+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
2572
2573int
2574main ()
2575{
2576
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002582if { (ac_try="$ac_compile"
2583case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586esac
2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592 for ac_file in conftest.o conftest.obj conftest.*; do
2593 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2597 break;;
2598 esac
2599done
2600else
2601 echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2605See \`config.log' for more details." >&5
2606echo "$as_me: error: cannot compute suffix of object files: cannot compile
2607See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2609fi
2610
2611rm -f conftest.$ac_cv_objext conftest.$ac_ext
2612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615OBJEXT=$ac_cv_objext
2616ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002617{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002619if test "${ac_cv_c_compiler_gnu+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622 cat >conftest.$ac_ext <<_ACEOF
2623/* confdefs.h. */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h. */
2628
2629int
2630main ()
2631{
2632#ifndef __GNUC__
2633 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002634#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002636 ;
2637 return 0;
2638}
2639_ACEOF
2640rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002641if { (ac_try="$ac_compile"
2642case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645esac
2646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002648 ac_status=$?
2649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002653 (exit $ac_status); } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002657 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002658else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
Theodore Ts'oe1052142006-10-21 21:46:47 -04002662 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002664
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002669{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002671GCC=`test $ac_compiler_gnu = yes && echo yes`
2672ac_test_CFLAGS=${CFLAGS+set}
2673ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002674{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2675echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002676if test "${ac_cv_prog_cc_g+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002678else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002679 ac_save_c_werror_flag=$ac_c_werror_flag
2680 ac_c_werror_flag=yes
2681 ac_cv_prog_cc_g=no
2682 CFLAGS="-g"
2683 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
2689
2690int
2691main ()
2692{
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002699if { (ac_try="$ac_compile"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002715 ac_cv_prog_cc_g=yes
2716else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002717 echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002719
Theodore Ts'oe1052142006-10-21 21:46:47 -04002720 CFLAGS=""
2721 cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h. */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h. */
2727
2728int
2729main ()
2730{
2731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (ac_try="$ac_compile"
2738case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>conftest.er1
2744 ac_status=$?
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002749 (exit $ac_status); } && {
2750 test -z "$ac_c_werror_flag" ||
2751 test ! -s conftest.err
2752 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002753 :
2754else
2755 echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 ac_c_werror_flag=$ac_save_c_werror_flag
2759 CFLAGS="-g"
2760 cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766
2767int
2768main ()
2769{
2770
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext
2776if { (ac_try="$ac_compile"
2777case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780esac
2781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002792 ac_cv_prog_cc_g=yes
2793else
2794 echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002798fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002799
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002802
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804fi
2805
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_c_werror_flag=$ac_save_c_werror_flag
2808fi
2809{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002811if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002812 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002813elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2815 CFLAGS="-g -O2"
2816 else
2817 CFLAGS="-g"
2818 fi
2819else
2820 if test "$GCC" = yes; then
2821 CFLAGS="-O2"
2822 else
2823 CFLAGS=
2824 fi
2825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002826{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2827echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2828if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002831 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002832ac_save_CC=$CC
2833cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839#include <stdarg.h>
2840#include <stdio.h>
2841#include <sys/types.h>
2842#include <sys/stat.h>
2843/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844struct buf { int x; };
2845FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846static char *e (p, i)
2847 char **p;
2848 int i;
2849{
2850 return p[i];
2851}
2852static char *f (char * (*g) (char **, int), char **p, ...)
2853{
2854 char *s;
2855 va_list v;
2856 va_start (v,p);
2857 s = g (p, va_arg (v,int));
2858 va_end (v);
2859 return s;
2860}
2861
2862/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002865 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002868 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002869int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
Theodore Ts'oe1052142006-10-21 21:46:47 -04002871/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872 inside strings and character constants. */
2873#define FOO(x) 'x'
2874int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876int test (int i, double x);
2877struct s1 {int (*f) (int a);};
2878struct s2 {int (*f) (double a);};
2879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880int argc;
2881char **argv;
2882int
2883main ()
2884{
2885return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 ;
2887 return 0;
2888}
2889_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002890for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002892do
2893 CC="$ac_save_CC $ac_arg"
2894 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002895if { (ac_try="$ac_compile"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002902 ac_status=$?
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912else
2913 echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
Theodore Ts'oe1052142006-10-21 21:46:47 -04002916
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002918
2919rm -f core conftest.err conftest.$ac_objext
2920 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002922rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923CC=$ac_save_CC
2924
2925fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002926# AC_CACHE_VAL
2927case "x$ac_cv_prog_cc_c89" in
2928 x)
2929 { echo "$as_me:$LINENO: result: none needed" >&5
2930echo "${ECHO_T}none needed" >&6; } ;;
2931 xno)
2932 { echo "$as_me:$LINENO: result: unsupported" >&5
2933echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002935 CC="$CC $ac_cv_prog_cc_c89"
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2937echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938esac
2939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002947ac_ext=c
2948ac_cpp='$CPP $CPPFLAGS'
2949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002952{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2953echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002954# On Suns, sometimes $CPP names a directory.
2955if test -n "$CPP" && test -d "$CPP"; then
2956 CPP=
2957fi
2958if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002959 if test "${ac_cv_prog_CPP+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002961else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002962 # Double quotes because CPP needs to be expanded
2963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2964 do
2965 ac_preproc_ok=false
2966for ac_c_preproc_warn_flag in '' yes
2967do
2968 # Use a header file that comes with gcc, so configuring glibc
2969 # with a fresh cross-compiler works.
2970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2971 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002972 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973 # not just through cpp. "Syntax error" is here to catch this case.
2974 cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h. */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h. */
2980#ifdef __STDC__
2981# include <limits.h>
2982#else
2983# include <assert.h>
2984#endif
2985 Syntax error
2986_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002987if { (ac_try="$ac_cpp conftest.$ac_ext"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002994 ac_status=$?
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002999 (exit $ac_status); } >/dev/null && {
3000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003003 :
3004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003005 echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003008 # Broken: fails on valid input.
3009continue
3010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003012rm -f conftest.err conftest.$ac_ext
3013
Theodore Ts'oe1052142006-10-21 21:46:47 -04003014 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003015 # can be detected and how.
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022#include <ac_nonexistent.h>
3023_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024if { (ac_try="$ac_cpp conftest.$ac_ext"
3025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003036 (exit $ac_status); } >/dev/null && {
3037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040 # Broken: success on invalid input.
3041continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043 echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 # Passes both tests.
3047ac_preproc_ok=:
3048break
3049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051rm -f conftest.err conftest.$ac_ext
3052
3053done
3054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055rm -f conftest.err conftest.$ac_ext
3056if $ac_preproc_ok; then
3057 break
3058fi
3059
3060 done
3061 ac_cv_prog_CPP=$CPP
3062
3063fi
3064 CPP=$ac_cv_prog_CPP
3065else
3066 ac_cv_prog_CPP=$CPP
3067fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003068{ echo "$as_me:$LINENO: result: $CPP" >&5
3069echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070ac_preproc_ok=false
3071for ac_c_preproc_warn_flag in '' yes
3072do
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085#ifdef __STDC__
3086# include <limits.h>
3087#else
3088# include <assert.h>
3089#endif
3090 Syntax error
3091_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003092if { (ac_try="$ac_cpp conftest.$ac_ext"
3093case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003104 (exit $ac_status); } >/dev/null && {
3105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3107 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003108 :
3109else
3110 echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 # Broken: fails on valid input.
3114continue
3115fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003116
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117rm -f conftest.err conftest.$ac_ext
3118
Theodore Ts'oe1052142006-10-21 21:46:47 -04003119 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127#include <ac_nonexistent.h>
3128_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003129if { (ac_try="$ac_cpp conftest.$ac_ext"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145 # Broken: success on invalid input.
3146continue
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 # Passes both tests.
3152ac_preproc_ok=:
3153break
3154fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003156rm -f conftest.err conftest.$ac_ext
3157
3158done
3159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160rm -f conftest.err conftest.$ac_ext
3161if $ac_preproc_ok; then
3162 :
3163else
3164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165See \`config.log' for more details." >&5
3166echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3169fi
3170
3171ac_ext=c
3172ac_cpp='$CPP $CPPFLAGS'
3173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176
3177
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003178# Check whether --with-linker was given.
3179if test "${with_linker+set}" = set; then
3180 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3181echo "${ECHO_T}LD=$withval" >&6; }
3182LD=$withval
3183else
3184 if test -z "$LD" ; then LD=$CC; fi
3185{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3186echo "${ECHO_T}LD defaults to $LD" >&6; }
3187fi
3188export LD
3189
3190
3191# Check whether --with-ccopts was given.
3192if test "${with_ccopts+set}" = set; then
3193 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3194echo "${ECHO_T}CCOPTS is $withval" >&6; }
3195CFLAGS=$withval
3196fi
3197
3198
Theodore Ts'oe1052142006-10-21 21:46:47 -04003199{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3200echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3201if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003204 # Extract the first word of "grep ggrep" to use in msg output
3205if test -z "$GREP"; then
3206set dummy grep ggrep; ac_prog_name=$2
3207if test "${ac_cv_path_GREP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 ac_path_GREP_found=false
3211# Loop through the user's path and test for each of PROGNAME-LIST
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_prog in grep ggrep; do
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003221 # Check for GNU ac_path_GREP and select it if it is found.
3222 # Check for GNU $ac_path_GREP
3223case `"$ac_path_GREP" --version 2>&1` in
3224*GNU*)
3225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3226*)
3227 ac_count=0
3228 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3229 while :
3230 do
3231 cat "conftest.in" "conftest.in" >"conftest.tmp"
3232 mv "conftest.tmp" "conftest.in"
3233 cp "conftest.in" "conftest.nl"
3234 echo 'GREP' >> "conftest.nl"
3235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3237 ac_count=`expr $ac_count + 1`
3238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3239 # Best one so far, save it but keep looking for a better one
3240 ac_cv_path_GREP="$ac_path_GREP"
3241 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003242 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003243 # 10*(2^10) chars as input seems more than enough
3244 test $ac_count -gt 10 && break
3245 done
3246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3247esac
3248
3249
3250 $ac_path_GREP_found && break 3
3251 done
3252done
3253
3254done
3255IFS=$as_save_IFS
3256
3257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003259
3260GREP="$ac_cv_path_GREP"
3261if test -z "$GREP"; then
3262 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3263echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3264 { (exit 1); exit 1; }; }
3265fi
3266
3267else
3268 ac_cv_path_GREP=$GREP
3269fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270
3271
Theodore Ts'oe1052142006-10-21 21:46:47 -04003272fi
3273{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3274echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3275 GREP="$ac_cv_path_GREP"
3276
3277
3278{ echo "$as_me:$LINENO: checking for egrep" >&5
3279echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3280if test "${ac_cv_path_EGREP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3284 then ac_cv_path_EGREP="$GREP -E"
3285 else
3286 # Extract the first word of "egrep" to use in msg output
3287if test -z "$EGREP"; then
3288set dummy egrep; ac_prog_name=$2
3289if test "${ac_cv_path_EGREP+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292 ac_path_EGREP_found=false
3293# Loop through the user's path and test for each of PROGNAME-LIST
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_prog in egrep; do
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003303 # Check for GNU ac_path_EGREP and select it if it is found.
3304 # Check for GNU $ac_path_EGREP
3305case `"$ac_path_EGREP" --version 2>&1` in
3306*GNU*)
3307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308*)
3309 ac_count=0
3310 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3311 while :
3312 do
3313 cat "conftest.in" "conftest.in" >"conftest.tmp"
3314 mv "conftest.tmp" "conftest.in"
3315 cp "conftest.in" "conftest.nl"
3316 echo 'EGREP' >> "conftest.nl"
3317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319 ac_count=`expr $ac_count + 1`
3320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321 # Best one so far, save it but keep looking for a better one
3322 ac_cv_path_EGREP="$ac_path_EGREP"
3323 ac_path_EGREP_max=$ac_count
3324 fi
3325 # 10*(2^10) chars as input seems more than enough
3326 test $ac_count -gt 10 && break
3327 done
3328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3329esac
3330
3331
3332 $ac_path_EGREP_found && break 3
3333 done
3334done
3335
3336done
3337IFS=$as_save_IFS
3338
3339
3340fi
3341
3342EGREP="$ac_cv_path_EGREP"
3343if test -z "$EGREP"; then
3344 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3345echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3346 { (exit 1); exit 1; }; }
3347fi
3348
3349else
3350 ac_cv_path_EGREP=$EGREP
3351fi
3352
3353
3354 fi
3355fi
3356{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3358 EGREP="$ac_cv_path_EGREP"
3359
3360
3361{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3362echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003363if test "${ac_cv_header_stdc+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
3372#include <stdlib.h>
3373#include <stdarg.h>
3374#include <string.h>
3375#include <float.h>
3376
3377int
3378main ()
3379{
3380
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003386if { (ac_try="$ac_compile"
3387case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003398 (exit $ac_status); } && {
3399 test -z "$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003402 ac_cv_header_stdc=yes
3403else
3404 echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
Theodore Ts'oe1052142006-10-21 21:46:47 -04003407 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003408fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003409
3410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003411
3412if test $ac_cv_header_stdc = yes; then
3413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420#include <string.h>
3421
3422_ACEOF
3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "memchr" >/dev/null 2>&1; then
3425 :
3426else
3427 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003428fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003429rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003430
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003431fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003432
3433if test $ac_cv_header_stdc = yes; then
3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441#include <stdlib.h>
3442
3443_ACEOF
3444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 $EGREP "free" >/dev/null 2>&1; then
3446 :
3447else
3448 ac_cv_header_stdc=no
3449fi
3450rm -f conftest*
3451
3452fi
3453
3454if test $ac_cv_header_stdc = yes; then
3455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3456 if test "$cross_compiling" = yes; then
3457 :
3458else
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003466#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003467#if ((' ' & 0x0FF) == 0x020)
3468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470#else
3471# define ISLOWER(c) \
3472 (('a' <= (c) && (c) <= 'i') \
3473 || ('j' <= (c) && (c) <= 'r') \
3474 || ('s' <= (c) && (c) <= 'z'))
3475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3476#endif
3477
3478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3479int
3480main ()
3481{
3482 int i;
3483 for (i = 0; i < 256; i++)
3484 if (XOR (islower (i), ISLOWER (i))
3485 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486 return 2;
3487 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488}
3489_ACEOF
3490rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003491if { (ac_try="$ac_link"
3492case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495esac
3496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501 { (case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504esac
3505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 :
3511else
3512 echo "$as_me: program exited with status $ac_status" >&5
3513echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516( exit $ac_status )
3517ac_cv_header_stdc=no
3518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3520fi
3521
3522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523fi
3524fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003525{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3526echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003527if test $ac_cv_header_stdc = yes; then
3528
3529cat >>confdefs.h <<\_ACEOF
3530#define STDC_HEADERS 1
3531_ACEOF
3532
3533fi
3534
3535# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3546 inttypes.h stdint.h unistd.h
3547do
3548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554 cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h. */
3560$ac_includes_default
3561
3562#include <$ac_header>
3563_ACEOF
3564rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003565if { (ac_try="$ac_compile"
3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003581 eval "$as_ac_Header=yes"
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003587fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003588
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003590fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003591ac_res=`eval echo '${'$as_ac_Header'}'`
3592 { echo "$as_me:$LINENO: result: $ac_res" >&5
3593echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003594if test `eval echo '${'$as_ac_Header'}'` = yes; then
3595 cat >>confdefs.h <<_ACEOF
3596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3597_ACEOF
3598
3599fi
3600
3601done
3602
3603
3604if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003605 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3606echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607if test "${ac_cv_header_linux_fs_h+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003610{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3611echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003612else
3613 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003614{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3615echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003616cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h. */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h. */
3622$ac_includes_default
3623#include <linux/fs.h>
3624_ACEOF
3625rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003626if { (ac_try="$ac_compile"
3627case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003642 ac_header_compiler=yes
3643else
3644 echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003649
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3652echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003653
3654# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003655{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3656echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h. */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h. */
3663#include <linux/fs.h>
3664_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665if { (ac_try="$ac_cpp conftest.$ac_ext"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003677 (exit $ac_status); } >/dev/null && {
3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3680 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003681 ac_header_preproc=yes
3682else
3683 echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 ac_header_preproc=no
3687fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003688
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003689rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3691echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003692
3693# So? What about this header?
3694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695 yes:no: )
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3697echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3699echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3700 ac_header_preproc=yes
3701 ;;
3702 no:yes:* )
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3704echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3706echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3708echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3710echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3712echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3714echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003716 ;;
3717esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003718{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3719echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003720if test "${ac_cv_header_linux_fs_h+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 ac_cv_header_linux_fs_h=$ac_header_preproc
3724fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003725{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3726echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003727
3728fi
3729if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003730 linux_headers=yes
3731else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003732 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003733fi
3734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003735
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003736if test "$linux_headers" != yes; then
3737 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003738fi
3739
Theodore Ts'oe1052142006-10-21 21:46:47 -04003740{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3741echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003742if test "$GCC" = yes
3743then
3744 case "$host_cpu" in
3745 alpha) addcflags="-mieee" ;;
3746 esac
3747fi
3748if test "x$addcflags" != x
3749then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003750 { echo "$as_me:$LINENO: result: $addcflags" >&5
3751echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003752 CFLAGS="$addcflags $CFLAGS"
3753else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003754 { echo "$as_me:$LINENO: result: (none)" >&5
3755echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003756fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003757LIB_EXT=.a
3758STATIC_LIB_EXT=.a
3759PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003760
Theodore Ts'oe1052142006-10-21 21:46:47 -04003761# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003762if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003763 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3764echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003765LDFLAGS=$withval
3766else
3767 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003768fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003769
Theodore Ts'oe1052142006-10-21 21:46:47 -04003770
3771# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003772if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003773 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003774else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003775 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003776fi
3777# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003778if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003779 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003780then
3781 MAINTAINER_CMT=#
3782 echo "Disabling maintainer mode"
3783else
3784 MAINTAINER_CMT=
3785 echo "Enabling maintainer mode"
3786fi
3787
3788else
3789 MAINTAINER_CMT=#
3790echo "Disabling maintainer mode by default"
3791
Theodore Ts'oe1052142006-10-21 21:46:47 -04003792fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003793
Theodore Ts'oe1052142006-10-21 21:46:47 -04003794
3795# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003796if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003797 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003798then
3799 echo "Disabling compression support"
3800else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003801 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003802#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003803_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003804
3805 echo "Enabling compression support"
3806 echo "WARNING: Compression support is experimental"
3807fi
3808
3809else
3810 echo "Disabling compression support by default"
3811
Theodore Ts'oe1052142006-10-21 21:46:47 -04003812fi
3813
3814# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003815if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003816 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003817then
3818 HTREE_CMT=#
3819 echo "Disabling htree directory support"
3820else
3821 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003822 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003823#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003824_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003825
3826 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003827fi
3828
3829else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003830 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003831cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003832#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003833_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003834
3835echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003836
Theodore Ts'oe1052142006-10-21 21:46:47 -04003837fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003838
Theodore Ts'oe1052142006-10-21 21:46:47 -04003839
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003840E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003841# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003842if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003843 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003844then
3845 ELF_CMT=#
3846 MAKEFILE_ELF=/dev/null
3847 echo "Disabling ELF shared libraries"
3848else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003849 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003850 ELF_CMT=
3851 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003852 case "$host_os" in
3853 solaris2.*)
3854 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3855 ;;
3856 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003857 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003858 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003859 echo "Enabling ELF shared libraries"
3860fi
3861
3862else
3863 MAKEFILE_ELF=/dev/null
3864ELF_CMT=#
3865echo "Disabling ELF shared libraries by default"
3866
Theodore Ts'oe1052142006-10-21 21:46:47 -04003867fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003868
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003869
Theodore Ts'oe1052142006-10-21 21:46:47 -04003870
3871# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003872if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003873 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003874then
3875 BSDLIB_CMT=#
3876 MAKEFILE_BSDLIB=/dev/null
3877 echo "Disabling BSD shared libraries"
3878else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003879 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003880 BSDLIB_CMT=
3881 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003882 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003883 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003884 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003885 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3886 LIB_EXT=.dylib
3887 ;;
3888 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003889 echo "Enabling BSD shared libraries"
3890fi
3891
3892else
3893 MAKEFILE_BSDLIB=/dev/null
3894BSDLIB_CMT=#
3895echo "Disabling BSD shared libraries by default"
3896
Theodore Ts'oe1052142006-10-21 21:46:47 -04003897fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003898
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003899
Theodore Ts'oe1052142006-10-21 21:46:47 -04003900
3901# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003902if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003903 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003904then
3905 PROFILE_CMT=#
3906 MAKEFILE_PROFILE=/dev/null
3907 echo "Disabling profiling libraries"
3908else
3909 PROFILE_CMT=
3910 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3911 PROFILED_LIB_EXT=_p.a
3912 echo "Building profiling libraries"
3913fi
3914
3915else
3916 PROFILE_CMT=#
3917MAKEFILE_PROFILE=/dev/null
3918echo "Disabling profiling libraries by default"
3919
Theodore Ts'oe1052142006-10-21 21:46:47 -04003920fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003921
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003922
Theodore Ts'oe1052142006-10-21 21:46:47 -04003923
3924# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003925if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003926 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003927then
3928 CHECKER_CMT=#
3929 MAKEFILE_CHECKER=/dev/null
3930 echo "Disabling checker libraries"
3931else
3932 CHECKER_CMT=
3933 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3934 echo "Building checker libraries"
3935fi
3936
3937else
3938 CHECKER_CMT=#
3939MAKEFILE_CHECKER=/dev/null
3940echo "Disabling checker libraries by default"
3941
Theodore Ts'oe1052142006-10-21 21:46:47 -04003942fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003943
3944
3945
3946
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003947
Theodore Ts'oe1052142006-10-21 21:46:47 -04003948
3949# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003950if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003951 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003952then
3953 echo "Disabling journal debugging"
3954else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003955 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003956#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003957_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003958
3959 echo "Enabling journal debugging"
3960fi
3961
3962else
3963 echo "Disabling journal debugging by default"
3964
Theodore Ts'oe1052142006-10-21 21:46:47 -04003965fi
3966
3967# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003968if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003969 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003970then
3971 echo "Disabling blkid debugging"
3972else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003973 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003974#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003975_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003976
3977 echo "Enabling blkid debugging"
3978fi
3979
3980else
3981 echo "Disabling blkid debugging by default"
3982
Theodore Ts'oe1052142006-10-21 21:46:47 -04003983fi
3984
3985# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003986if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003987 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003988then
3989 echo "Disabling testio debugging"
3990else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003991 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003992#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003993_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003994
3995 echo "Enabling testio debugging"
3996fi
3997
3998else
3999 echo "Disabling testio debugging by default"
4000
Theodore Ts'oe1052142006-10-21 21:46:47 -04004001fi
4002
4003# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004004if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004005 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004006then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004007 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004008 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004009else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004010 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004011 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004012#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004013_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004014
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004015 echo "Enabling swapfs support"
4016fi
4017
4018else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004019 SWAPFS_CMT=
4020echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004021cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004022#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004023_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004024
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004025
Theodore Ts'oe1052142006-10-21 21:46:47 -04004026fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004027
Theodore Ts'oe1052142006-10-21 21:46:47 -04004028
4029# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004030if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004031 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004032then
4033 echo "Disabling debugfs support"
4034 DEBUGFS_CMT="#"
4035else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004036 DEBUGFS_CMT=
4037 echo "Enabling debugfs support"
4038fi
4039
4040else
4041 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004042DEBUGFS_CMT=
4043
Theodore Ts'oe1052142006-10-21 21:46:47 -04004044fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004045
Theodore Ts'oe1052142006-10-21 21:46:47 -04004046
4047# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004048if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004049 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004050then
4051 echo "Disabling e2image support"
4052 IMAGER_CMT="#"
4053else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004054 IMAGER_CMT=
4055 echo "Enabling e2image support"
4056fi
4057
4058else
4059 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004060IMAGER_CMT=
4061
Theodore Ts'oe1052142006-10-21 21:46:47 -04004062fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004063
Theodore Ts'oe1052142006-10-21 21:46:47 -04004064
4065# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004066if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004067 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004068then
4069 echo "Disabling e2resize support"
4070 RESIZER_CMT="#"
4071else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004072 RESIZER_CMT=
4073 echo "Enabling e2resize support"
4074fi
4075
4076else
4077 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004078RESIZER_CMT=
4079
Theodore Ts'oe1052142006-10-21 21:46:47 -04004080fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004081
Theodore Ts'oe1052142006-10-21 21:46:47 -04004082
Theodore Ts'oe1052142006-10-21 21:46:47 -04004083# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004084if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004085 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004086then
4087 FSCK_PROG='' FSCK_MAN=''
4088 echo "Not building fsck wrapper"
4089else
4090 FSCK_PROG=fsck FSCK_MAN=fsck.8
4091 echo "Building fsck wrapper"
4092fi
4093
4094else
4095 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004096 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004097 FSCK_PROG='' FSCK_MAN=''
4098 echo "Not building fsck wrapper by default"
4099 ;;
4100 *)
4101 FSCK_PROG=fsck FSCK_MAN=fsck.8
4102 echo "Building fsck wrapper by default"
4103esac
4104
Theodore Ts'oe1052142006-10-21 21:46:47 -04004105fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004106
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004107
Theodore Ts'oe1052142006-10-21 21:46:47 -04004108
4109# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004110if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004111 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004112then
4113 E2INITRD_PROG='' E2INITRD_MAN=''
4114 echo "Not building e2initrd helper"
4115else
4116 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4117 echo "Building e2initrd helper"
4118fi
4119
4120else
4121 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4122echo "Building e2initrd helper by default"
4123
Theodore Ts'oe1052142006-10-21 21:46:47 -04004124fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004125
4126
Theodore Ts'oe1052142006-10-21 21:46:47 -04004127
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004128STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004129# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004130if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004131 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004132then
4133 echo "Disabling device-mapper support"
4134 DEVMAPPER_REQ=''
4135 DEVMAPPER_LIBS=''
4136 STATIC_DEVMAPPER_LIBS=''
4137else
4138 cat >>confdefs.h <<\_ACEOF
4139#define HAVE_DEVMAPPER 1
4140_ACEOF
4141
4142 echo "Enabling device-mapper support"
4143
Karel Zak4db2f592006-03-08 14:17:28 -05004144
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004145
4146if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4149set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 case $PKG_CONFIG in
4156 [\\/]* | ?:[\\/]*)
4157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4158 ;;
4159 *)
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4170 fi
4171done
4172done
4173IFS=$as_save_IFS
4174
4175 ;;
4176esac
4177fi
4178PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4179if test -n "$PKG_CONFIG"; then
4180 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4181echo "${ECHO_T}$PKG_CONFIG" >&6; }
4182else
4183 { echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6; }
4185fi
4186
4187
4188fi
4189if test -z "$ac_cv_path_PKG_CONFIG"; then
4190 ac_pt_PKG_CONFIG=$PKG_CONFIG
4191 # Extract the first word of "pkg-config", so it can be a program name with args.
4192set dummy pkg-config; ac_word=$2
4193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4195if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197else
4198 case $ac_pt_PKG_CONFIG in
4199 [\\/]* | ?:[\\/]*)
4200 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4201 ;;
4202 *)
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214done
4215done
4216IFS=$as_save_IFS
4217
4218 ;;
4219esac
4220fi
4221ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4222if test -n "$ac_pt_PKG_CONFIG"; then
4223 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4224echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4225else
4226 { echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6; }
4228fi
4229
4230 if test "x$ac_pt_PKG_CONFIG" = x; then
4231 PKG_CONFIG=""
4232 else
4233 case $cross_compiling:$ac_tool_warned in
4234yes:)
4235{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4236whose name does not start with the host triplet. If you think this
4237configuration is useful to you, please write to autoconf@gnu.org." >&5
4238echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4239whose name does not start with the host triplet. If you think this
4240configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4241ac_tool_warned=yes ;;
4242esac
4243 PKG_CONFIG=$ac_pt_PKG_CONFIG
4244 fi
4245else
4246 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4247fi
4248
4249fi
4250if test -n "$PKG_CONFIG"; then
4251 _pkg_min_version=0.9.0
4252 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4253echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4255 { echo "$as_me:$LINENO: result: yes" >&5
4256echo "${ECHO_T}yes" >&6; }
4257 else
4258 { echo "$as_me:$LINENO: result: no" >&5
4259echo "${ECHO_T}no" >&6; }
4260 PKG_CONFIG=""
4261 fi
4262
4263fi
4264
4265 if test -z "$PKG_CONFIG"; then
4266 echo "pkg-config not installed; please install it."
4267 exit 1;
4268 fi
4269
4270 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4271echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4272if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275 ac_check_lib_save_LIBS=$LIBS
4276LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4277cat >conftest.$ac_ext <<_ACEOF
4278/* confdefs.h. */
4279_ACEOF
4280cat confdefs.h >>conftest.$ac_ext
4281cat >>conftest.$ac_ext <<_ACEOF
4282/* end confdefs.h. */
4283
4284/* Override any GCC internal prototype to avoid an error.
4285 Use char because int might match the return type of a GCC
4286 builtin and then its argument prototype would still apply. */
4287#ifdef __cplusplus
4288extern "C"
4289#endif
4290char dm_tree_create ();
4291int
4292main ()
4293{
4294return dm_tree_create ();
4295 ;
4296 return 0;
4297}
4298_ACEOF
4299rm -f conftest.$ac_objext conftest$ac_exeext
4300if { (ac_try="$ac_link"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && {
4313 test -z "$ac_c_werror_flag" ||
4314 test ! -s conftest.err
4315 } && test -s conftest$ac_exeext &&
4316 $as_test_x conftest$ac_exeext; then
4317 ac_cv_lib_devmapper_dm_tree_create=yes
4318else
4319 echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 ac_cv_lib_devmapper_dm_tree_create=no
4323fi
4324
4325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4326 conftest$ac_exeext conftest.$ac_ext
4327LIBS=$ac_check_lib_save_LIBS
4328fi
4329{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4330echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4331if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4332 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4333 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4334 DEVMAPPER_REQ="devmapper";
4335 DEVMAPPER_PC_LIBS="-ldevmapper"
4336else
4337 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4338echo "$as_me: error: device-mapper library not found" >&2;}
4339 { (exit 1); exit 1; }; }
4340fi
4341
4342 # work around stupid devmapper.pc bug in Debian
4343 case "$STATIC_DEVMAPPER_LIBS" in
4344 *pthread*)
4345 ;;
4346 *)
4347 echo "Working around Debian bug #390243..."
4348 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4349 ;;
4350 esac
4351 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4352 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4353 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4354 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004355fi
4356
4357else
4358 echo "Disabling device-mapper support by default"
4359
Theodore Ts'oe1052142006-10-21 21:46:47 -04004360fi
4361
Karel Zak4db2f592006-03-08 14:17:28 -05004362
4363
4364
4365
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004366
Theodore Ts'o32493942007-12-31 10:45:01 -05004367# Check whether --enable-tls was given.
4368if test "${enable_tls+set}" = set; then
4369 enableval=$enable_tls; if test "$enableval" = "no"
4370then
4371 try_tls=""
4372 echo "Disabling thread local support"
4373else
4374 try_tls="yes"
4375 echo "Enabling thread local support"
4376fi
4377
4378else
4379 try_tls="yes"
4380echo "Try using thread local support by default"
4381
4382fi
4383
4384if test "$try_tls" = "yes"
4385then
4386
4387 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4388echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4389 if test "${ac_cv_tls+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392
4393 ax_tls_keywords="__thread __declspec(thread) none"
4394 for ax_tls_keyword in $ax_tls_keywords; do
4395 case $ax_tls_keyword in
4396 none) ac_cv_tls=none ; break ;;
4397 *)
4398 cat >conftest.$ac_ext <<_ACEOF
4399/* confdefs.h. */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h. */
4404#include <stdlib.h>
4405 static void
4406 foo(void) {
4407 static $ax_tls_keyword int bar;
4408 exit(1);
4409 }
4410int
4411main ()
4412{
4413
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418rm -f conftest.$ac_objext
4419if { (ac_try="$ac_compile"
4420case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.$ac_objext; then
4435 ac_cv_tls=$ax_tls_keyword ; break
4436else
4437 echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 ac_cv_tls=none
4441
4442fi
4443
4444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 esac
4446 done
4447
4448fi
4449
4450
4451 if test "$ac_cv_tls" != "none"; then
4452
4453cat >>confdefs.h <<_ACEOF
4454#define TLS $ac_cv_tls
4455_ACEOF
4456
4457 fi
4458 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4459echo "${ECHO_T}$ac_cv_tls" >&6; }
4460
4461fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004462# Check whether --enable-uuidd was given.
4463if test "${enable_uuidd+set}" = set; then
4464 enableval=$enable_uuidd; if test "$enableval" = "no"
4465then
4466 echo "Not building uuidd"
4467 UUIDD_CMT="#"
4468else
4469 cat >>confdefs.h <<\_ACEOF
4470#define USE_UUIDD 1
4471_ACEOF
4472
4473 UUIDD_CMT=""
4474 echo "Building uuidd"
4475fi
4476
4477else
4478 cat >>confdefs.h <<\_ACEOF
4479#define USE_UUIDD 1
4480_ACEOF
4481
4482UUIDD_CMT=""
4483echo "Building uuidd by default"
4484
4485fi
4486
4487
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004488MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004490GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004491PACKAGE=e2fsprogs
4492VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004493VERSION=0.14.1
4494cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004495#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004496_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004498cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004499#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004500_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004501
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004502
4503
4504
4505
Theodore Ts'oe1052142006-10-21 21:46:47 -04004506{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4507echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4508set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4509if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004510 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004511else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004512 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004513SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004514all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004515 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004516_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004517# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004518case `${MAKE-make} -f conftest.make 2>/dev/null` in
4519 *@@@%%%=?*=@@@%%%*)
4520 eval ac_cv_prog_make_${ac_make}_set=yes;;
4521 *)
4522 eval ac_cv_prog_make_${ac_make}_set=no;;
4523esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004524rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004526if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4527 { echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004529 SET_MAKE=
4530else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004531 { echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004533 SET_MAKE="MAKE=${MAKE-make}"
4534fi
4535
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004536# Find a good install program. We prefer a C program (faster),
4537# so one script is as good as another. But avoid the broken or
4538# incompatible versions:
4539# SysV /etc/install, /usr/sbin/install
4540# SunOS /usr/etc/install
4541# IRIX /sbin/install
4542# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004543# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004544# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4545# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4546# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004547# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004548# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004549{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4550echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004551if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004552if test "${ac_cv_path_install+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004554else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 # Account for people who put trailing slashes in PATH elements.
4561case $as_dir/ in
4562 ./ | .// | /cC/* | \
4563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4565 /usr/ucb/* ) ;;
4566 *)
4567 # OSF1 and SCO ODT 3.0 have their own names for install.
4568 # Don't use installbsd from OSF since it installs stuff as root
4569 # by default.
4570 for ac_prog in ginstall scoinst install; do
4571 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004572 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 -04004573 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004575 # AIX install. It has an incompatible calling convention.
4576 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004577 elif test $ac_prog = install &&
4578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4579 # program-specific install script used by HP pwplus--don't use.
4580 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004581 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4583 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004584 fi
4585 fi
4586 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004587 done
4588 ;;
4589esac
4590done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004591IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004593
4594fi
4595 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004596 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004597 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004598 # As a last resort, use the slow shell script. Don't cache a
4599 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004600 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004601 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004602 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004603 fi
4604fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004605{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4606echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004607
4608# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4609# It thinks the first close brace ends the variable substitution.
4610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004613
4614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4615
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004616
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004617 MKINSTALLDIRS=
4618 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004619 case "$ac_aux_dir" in
4620 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4621 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4622 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004623 fi
4624 if test -z "$MKINSTALLDIRS"; then
4625 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4626 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004628
4629
Theodore Ts'oe1052142006-10-21 21:46:47 -04004630 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4631echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4632 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004633if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004634 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004635else
4636 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004637fi
4638
4639 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4640echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004641
4642
4643
4644
4645
4646
4647# Prepare PATH_SEPARATOR.
4648# The user is always right.
4649if test "${PATH_SEPARATOR+set}" != set; then
4650 echo "#! /bin/sh" >conf$$.sh
4651 echo "exit 0" >>conf$$.sh
4652 chmod +x conf$$.sh
4653 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4654 PATH_SEPARATOR=';'
4655 else
4656 PATH_SEPARATOR=:
4657 fi
4658 rm -f conf$$.sh
4659fi
4660
4661# Find out how to test for executable files. Don't use a zero-byte file,
4662# as systems may use methods other than mode bits to determine executability.
4663cat >conf$$.file <<_ASEOF
4664#! /bin/sh
4665exit 0
4666_ASEOF
4667chmod +x conf$$.file
4668if test -x conf$$.file >/dev/null 2>&1; then
4669 ac_executable_p="test -x"
4670else
4671 ac_executable_p="test -f"
4672fi
4673rm -f conf$$.file
4674
4675# Extract the first word of "msgfmt", so it can be a program name with args.
4676set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004679if test "${ac_cv_path_MSGFMT+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682 case "$MSGFMT" in
4683 [\\/]* | ?:[\\/]*)
4684 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4685 ;;
4686 *)
4687 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4688 for ac_dir in $PATH; do
4689 IFS="$ac_save_IFS"
4690 test -z "$ac_dir" && ac_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4693 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4694 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4695 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4696 break 2
4697 fi
4698 fi
4699 done
4700 done
4701 IFS="$ac_save_IFS"
4702 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4703 ;;
4704esac
4705fi
4706MSGFMT="$ac_cv_path_MSGFMT"
4707if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004708 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4709echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004710else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004711 { echo "$as_me:$LINENO: result: no" >&5
4712echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004713fi
4714
4715 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4716set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004719if test "${ac_cv_path_GMSGFMT+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722 case $GMSGFMT in
4723 [\\/]* | ?:[\\/]*)
4724 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4725 ;;
4726 *)
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004733 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 -05004734 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738done
4739done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004740IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004741
4742 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4743 ;;
4744esac
4745fi
4746GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004747if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004748 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4749echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004750else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004751 { echo "$as_me:$LINENO: result: no" >&5
4752echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004753fi
4754
4755
4756
Theodore Ts'oe1052142006-10-21 21:46:47 -04004757
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004758# Prepare PATH_SEPARATOR.
4759# The user is always right.
4760if test "${PATH_SEPARATOR+set}" != set; then
4761 echo "#! /bin/sh" >conf$$.sh
4762 echo "exit 0" >>conf$$.sh
4763 chmod +x conf$$.sh
4764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4765 PATH_SEPARATOR=';'
4766 else
4767 PATH_SEPARATOR=:
4768 fi
4769 rm -f conf$$.sh
4770fi
4771
4772# Find out how to test for executable files. Don't use a zero-byte file,
4773# as systems may use methods other than mode bits to determine executability.
4774cat >conf$$.file <<_ASEOF
4775#! /bin/sh
4776exit 0
4777_ASEOF
4778chmod +x conf$$.file
4779if test -x conf$$.file >/dev/null 2>&1; then
4780 ac_executable_p="test -x"
4781else
4782 ac_executable_p="test -f"
4783fi
4784rm -f conf$$.file
4785
4786# Extract the first word of "xgettext", so it can be a program name with args.
4787set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004790if test "${ac_cv_path_XGETTEXT+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793 case "$XGETTEXT" in
4794 [\\/]* | ?:[\\/]*)
4795 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4796 ;;
4797 *)
4798 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4799 for ac_dir in $PATH; do
4800 IFS="$ac_save_IFS"
4801 test -z "$ac_dir" && ac_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4804 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4805 (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
4806 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4807 break 2
4808 fi
4809 fi
4810 done
4811 done
4812 IFS="$ac_save_IFS"
4813 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4814 ;;
4815esac
4816fi
4817XGETTEXT="$ac_cv_path_XGETTEXT"
4818if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004819 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4820echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004821else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004822 { echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004824fi
4825
4826 rm -f messages.po
4827
4828
4829# Prepare PATH_SEPARATOR.
4830# The user is always right.
4831if test "${PATH_SEPARATOR+set}" != set; then
4832 echo "#! /bin/sh" >conf$$.sh
4833 echo "exit 0" >>conf$$.sh
4834 chmod +x conf$$.sh
4835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4836 PATH_SEPARATOR=';'
4837 else
4838 PATH_SEPARATOR=:
4839 fi
4840 rm -f conf$$.sh
4841fi
4842
4843# Find out how to test for executable files. Don't use a zero-byte file,
4844# as systems may use methods other than mode bits to determine executability.
4845cat >conf$$.file <<_ASEOF
4846#! /bin/sh
4847exit 0
4848_ASEOF
4849chmod +x conf$$.file
4850if test -x conf$$.file >/dev/null 2>&1; then
4851 ac_executable_p="test -x"
4852else
4853 ac_executable_p="test -f"
4854fi
4855rm -f conf$$.file
4856
4857# Extract the first word of "msgmerge", so it can be a program name with args.
4858set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004861if test "${ac_cv_path_MSGMERGE+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 case "$MSGMERGE" in
4865 [\\/]* | ?:[\\/]*)
4866 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4867 ;;
4868 *)
4869 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4870 for ac_dir in $PATH; do
4871 IFS="$ac_save_IFS"
4872 test -z "$ac_dir" && ac_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4875 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4876 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4877 break 2
4878 fi
4879 fi
4880 done
4881 done
4882 IFS="$ac_save_IFS"
4883 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4884 ;;
4885esac
4886fi
4887MSGMERGE="$ac_cv_path_MSGMERGE"
4888if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004889 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4890echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004891else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004892 { echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004894fi
4895
4896
4897 if test "$GMSGFMT" != ":"; then
4898 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4899 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4900 : ;
4901 else
4902 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004903 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4904echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004905 GMSGFMT=":"
4906 fi
4907 fi
4908
4909 if test "$XGETTEXT" != ":"; then
4910 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4911 (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
4912 : ;
4913 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004914 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4915echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004916 XGETTEXT=":"
4917 fi
4918 rm -f messages.po
4919 fi
4920
Theodore Ts'oe1052142006-10-21 21:46:47 -04004921 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004922
4923
4924if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4926set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004929if test "${ac_cv_prog_RANLIB+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004931else
4932 if test -n "$RANLIB"; then
4933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004941 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 -05004942 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4945 fi
4946done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004947done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004948IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004949
4950fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004951fi
4952RANLIB=$ac_cv_prog_RANLIB
4953if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004954 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4955echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004956else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004957 { echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004959fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004960
Theodore Ts'oe1052142006-10-21 21:46:47 -04004961
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004962fi
4963if test -z "$ac_cv_prog_RANLIB"; then
4964 ac_ct_RANLIB=$RANLIB
4965 # Extract the first word of "ranlib", so it can be a program name with args.
4966set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004969if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972 if test -n "$ac_ct_RANLIB"; then
4973 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004981 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 -05004982 ac_cv_prog_ac_ct_RANLIB="ranlib"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986done
4987done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004988IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004989
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004990fi
4991fi
4992ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4993if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004994 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4995echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004996else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004997 { echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004999fi
5000
Theodore Ts'oe1052142006-10-21 21:46:47 -04005001 if test "x$ac_ct_RANLIB" = x; then
5002 RANLIB=":"
5003 else
5004 case $cross_compiling:$ac_tool_warned in
5005yes:)
5006{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5007whose name does not start with the host triplet. If you think this
5008configuration is useful to you, please write to autoconf@gnu.org." >&5
5009echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5010whose name does not start with the host triplet. If you think this
5011configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5012ac_tool_warned=yes ;;
5013esac
5014 RANLIB=$ac_ct_RANLIB
5015 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005016else
5017 RANLIB="$ac_cv_prog_RANLIB"
5018fi
5019
5020
Theodore Ts'oe1052142006-10-21 21:46:47 -04005021 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5022echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005023if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 ac_check_lib_save_LIBS=$LIBS
5027LIBS="-lcposix $LIBS"
5028cat >conftest.$ac_ext <<_ACEOF
5029/* confdefs.h. */
5030_ACEOF
5031cat confdefs.h >>conftest.$ac_ext
5032cat >>conftest.$ac_ext <<_ACEOF
5033/* end confdefs.h. */
5034
Theodore Ts'oe1052142006-10-21 21:46:47 -04005035/* Override any GCC internal prototype to avoid an error.
5036 Use char because int might match the return type of a GCC
5037 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005038#ifdef __cplusplus
5039extern "C"
5040#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005041char strerror ();
5042int
5043main ()
5044{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005046 ;
5047 return 0;
5048}
5049_ACEOF
5050rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005051if { (ac_try="$ac_link"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest$ac_exeext &&
5067 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005068 ac_cv_lib_cposix_strerror=yes
5069else
5070 echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
Theodore Ts'oe1052142006-10-21 21:46:47 -04005073 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005074fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005075
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005077 conftest$ac_exeext conftest.$ac_ext
5078LIBS=$ac_check_lib_save_LIBS
5079fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005080{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5081echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005082if test $ac_cv_lib_cposix_strerror = yes; then
5083 LIBS="$LIBS -lcposix"
5084fi
5085
5086
5087
Theodore Ts'oe1052142006-10-21 21:46:47 -04005088{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5089echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005090if test "${ac_cv_c_const+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099
5100int
5101main ()
5102{
5103/* FIXME: Include the comments suggested by Paul. */
5104#ifndef __cplusplus
5105 /* Ultrix mips cc rejects this. */
5106 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005107 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005108 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005109 char const *const *pcpcc;
5110 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111 /* NEC SVR4.0.2 mips cc rejects this. */
5112 struct point {int x, y;};
5113 static struct point const zero = {0,0};
5114 /* AIX XL C 1.02.0.0 rejects this.
5115 It does not let you subtract one const X* pointer from another in
5116 an arm of an if-expression whose if-part is not a constant
5117 expression */
5118 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005119 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005120 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005121 ++pcpcc;
5122 ppc = (char**) pcpcc;
5123 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005124 { /* SCO 3.2v4 cc rejects this. */
5125 char *t;
5126 char const *s = 0 ? (char *) 0 : (char const *) 0;
5127
5128 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005129 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005130 }
5131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5132 int x[] = {25, 17};
5133 const int *foo = &x[0];
5134 ++foo;
5135 }
5136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5137 typedef const int *iptr;
5138 iptr p = 0;
5139 ++p;
5140 }
5141 { /* AIX XL C 1.02.0.0 rejects this saying
5142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5143 struct s { int j; const int *ap[3]; };
5144 struct s *b; b->j = 5;
5145 }
5146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5147 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005148 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005149 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005150 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005151#endif
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005158if { (ac_try="$ac_compile"
5159case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162esac
5163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005170 (exit $ac_status); } && {
5171 test -z "$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005174 ac_cv_c_const=yes
5175else
5176 echo "$as_me: failed program was:" >&5
5177sed 's/^/| /' conftest.$ac_ext >&5
5178
Theodore Ts'oe1052142006-10-21 21:46:47 -04005179 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005180fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005181
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005183fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005184{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5185echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005186if test $ac_cv_c_const = no; then
5187
5188cat >>confdefs.h <<\_ACEOF
5189#define const
5190_ACEOF
5191
5192fi
5193
5194
Theodore Ts'oe1052142006-10-21 21:46:47 -04005195 { echo "$as_me:$LINENO: checking for signed" >&5
5196echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005197if test "${bh_cv_c_signed+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206
5207int
5208main ()
5209{
5210signed char x;
5211 ;
5212 return 0;
5213}
5214_ACEOF
5215rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005216if { (ac_try="$ac_compile"
5217case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220esac
5221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005232 bh_cv_c_signed=yes
5233else
5234 echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
Theodore Ts'oe1052142006-10-21 21:46:47 -04005237 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005238fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005239
5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005241fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005242{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5243echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005244 if test $bh_cv_c_signed = no; then
5245
5246cat >>confdefs.h <<\_ACEOF
5247#define signed
5248_ACEOF
5249
5250 fi
5251
Theodore Ts'oe1052142006-10-21 21:46:47 -04005252{ echo "$as_me:$LINENO: checking for inline" >&5
5253echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005254if test "${ac_cv_c_inline+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256else
5257 ac_cv_c_inline=no
5258for ac_kw in inline __inline__ __inline; do
5259 cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h. */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h. */
5265#ifndef __cplusplus
5266typedef int foo_t;
5267static $ac_kw foo_t static_foo () {return 0; }
5268$ac_kw foo_t foo () {return 0; }
5269#endif
5270
5271_ACEOF
5272rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005273if { (ac_try="$ac_compile"
5274case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005280 ac_status=$?
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005285 (exit $ac_status); } && {
5286 test -z "$ac_c_werror_flag" ||
5287 test ! -s conftest.err
5288 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005289 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005290else
5291 echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
Theodore Ts'oe1052142006-10-21 21:46:47 -04005294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005296
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005299done
5300
5301fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005302{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5303echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005304
5305
5306case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005307 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005308 *)
5309 case $ac_cv_c_inline in
5310 no) ac_val=;;
5311 *) ac_val=$ac_cv_c_inline;;
5312 esac
5313 cat >>confdefs.h <<_ACEOF
5314#ifndef __cplusplus
5315#define inline $ac_val
5316#endif
5317_ACEOF
5318 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005319esac
5320
Theodore Ts'oe1052142006-10-21 21:46:47 -04005321{ echo "$as_me:$LINENO: checking for off_t" >&5
5322echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005323if test "${ac_cv_type_off_t+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005325else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005326 cat >conftest.$ac_ext <<_ACEOF
5327/* confdefs.h. */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h. */
5332$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005333typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005334int
5335main ()
5336{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005337if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005338 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005339if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005340 return 0;
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005346if { (ac_try="$ac_compile"
5347case "(($ac_try" in
5348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349 *) ac_try_echo=$ac_try;;
5350esac
5351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005353 ac_status=$?
5354 grep -v '^ *+' conftest.er1 >conftest.err
5355 rm -f conftest.er1
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005358 (exit $ac_status); } && {
5359 test -z "$ac_c_werror_flag" ||
5360 test ! -s conftest.err
5361 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005362 ac_cv_type_off_t=yes
5363else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005366
Theodore Ts'oe1052142006-10-21 21:46:47 -04005367 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005368fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005369
5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005371fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005372{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5373echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005374if test $ac_cv_type_off_t = yes; then
5375 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005376else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005377
5378cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005379#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005380_ACEOF
5381
5382fi
5383
Theodore Ts'oe1052142006-10-21 21:46:47 -04005384{ echo "$as_me:$LINENO: checking for size_t" >&5
5385echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005386if test "${ac_cv_type_size_t+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389 cat >conftest.$ac_ext <<_ACEOF
5390/* confdefs.h. */
5391_ACEOF
5392cat confdefs.h >>conftest.$ac_ext
5393cat >>conftest.$ac_ext <<_ACEOF
5394/* end confdefs.h. */
5395$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005396typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005397int
5398main ()
5399{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005400if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005401 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005402if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005403 return 0;
5404 ;
5405 return 0;
5406}
5407_ACEOF
5408rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005409if { (ac_try="$ac_compile"
5410case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413esac
5414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005416 ac_status=$?
5417 grep -v '^ *+' conftest.er1 >conftest.err
5418 rm -f conftest.er1
5419 cat conftest.err >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005421 (exit $ac_status); } && {
5422 test -z "$ac_c_werror_flag" ||
5423 test ! -s conftest.err
5424 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005425 ac_cv_type_size_t=yes
5426else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005427 echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
Theodore Ts'oe1052142006-10-21 21:46:47 -04005430 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005431fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005432
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005434fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005435{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5436echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005437if test $ac_cv_type_size_t = yes; then
5438 :
5439else
5440
5441cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005442#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005443_ACEOF
5444
5445fi
5446
5447
Theodore Ts'oe1052142006-10-21 21:46:47 -04005448 { echo "$as_me:$LINENO: checking for long long" >&5
5449echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005450if test "${ac_cv_type_long_long+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453 cat >conftest.$ac_ext <<_ACEOF
5454/* confdefs.h. */
5455_ACEOF
5456cat confdefs.h >>conftest.$ac_ext
5457cat >>conftest.$ac_ext <<_ACEOF
5458/* end confdefs.h. */
5459long long ll = 1LL; int i = 63;
5460int
5461main ()
5462{
5463long long llmax = (long long) -1;
5464 return ll << i | ll >> i | llmax / ll | llmax % ll;
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005470if { (ac_try="$ac_link"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest$ac_exeext &&
5486 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005487 ac_cv_type_long_long=yes
5488else
5489 echo "$as_me: failed program was:" >&5
5490sed 's/^/| /' conftest.$ac_ext >&5
5491
Theodore Ts'oe1052142006-10-21 21:46:47 -04005492 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005493fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005494
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005496 conftest$ac_exeext conftest.$ac_ext
5497fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005498{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5499echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005500 if test $ac_cv_type_long_long = yes; then
5501
5502cat >>confdefs.h <<\_ACEOF
5503#define HAVE_LONG_LONG 1
5504_ACEOF
5505
5506 fi
5507
5508
Theodore Ts'oe1052142006-10-21 21:46:47 -04005509 { echo "$as_me:$LINENO: checking for long double" >&5
5510echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005511if test "${gt_cv_c_long_double+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514 if test "$GCC" = yes; then
5515 gt_cv_c_long_double=yes
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
5523
5524 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5525 long double foo = 0.0;
5526 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5527 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5528
5529int
5530main ()
5531{
5532
5533 ;
5534 return 0;
5535}
5536_ACEOF
5537rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005538if { (ac_try="$ac_compile"
5539case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005554 gt_cv_c_long_double=yes
5555else
5556 echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
5558
Theodore Ts'oe1052142006-10-21 21:46:47 -04005559 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005561
5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005563 fi
5564fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005565{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5566echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005567 if test $gt_cv_c_long_double = yes; then
5568
5569cat >>confdefs.h <<\_ACEOF
5570#define HAVE_LONG_DOUBLE 1
5571_ACEOF
5572
5573 fi
5574
5575
Theodore Ts'oe1052142006-10-21 21:46:47 -04005576 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5577echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005578if test "${gt_cv_c_wchar_t+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581 cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h. */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h. */
5587#include <stddef.h>
5588 wchar_t foo = (wchar_t)'\0';
5589int
5590main ()
5591{
5592
5593 ;
5594 return 0;
5595}
5596_ACEOF
5597rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005598if { (ac_try="$ac_compile"
5599case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602esac
5603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005614 gt_cv_c_wchar_t=yes
5615else
5616 echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
Theodore Ts'oe1052142006-10-21 21:46:47 -04005619 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005621
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005623fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005624{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5625echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005626 if test $gt_cv_c_wchar_t = yes; then
5627
5628cat >>confdefs.h <<\_ACEOF
5629#define HAVE_WCHAR_T 1
5630_ACEOF
5631
5632 fi
5633
5634
Theodore Ts'oe1052142006-10-21 21:46:47 -04005635 { echo "$as_me:$LINENO: checking for wint_t" >&5
5636echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637if test "${gt_cv_c_wint_t+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640 cat >conftest.$ac_ext <<_ACEOF
5641/* confdefs.h. */
5642_ACEOF
5643cat confdefs.h >>conftest.$ac_ext
5644cat >>conftest.$ac_ext <<_ACEOF
5645/* end confdefs.h. */
5646#include <wchar.h>
5647 wint_t foo = (wchar_t)'\0';
5648int
5649main ()
5650{
5651
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005657if { (ac_try="$ac_compile"
5658case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661esac
5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005673 gt_cv_c_wint_t=yes
5674else
5675 echo "$as_me: failed program was:" >&5
5676sed 's/^/| /' conftest.$ac_ext >&5
5677
Theodore Ts'oe1052142006-10-21 21:46:47 -04005678 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005679fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005680
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005683{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5684echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005685 if test $gt_cv_c_wint_t = yes; then
5686
5687cat >>confdefs.h <<\_ACEOF
5688#define HAVE_WINT_T 1
5689_ACEOF
5690
5691 fi
5692
5693
Theodore Ts'oe1052142006-10-21 21:46:47 -04005694 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5695echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005696if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699 cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h. */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h. */
5705#include <sys/types.h>
5706#include <inttypes.h>
5707int
5708main ()
5709{
5710uintmax_t i = (uintmax_t) -1;
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005716if { (ac_try="$ac_compile"
5717case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720esac
5721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005732 jm_ac_cv_header_inttypes_h=yes
5733else
5734 echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
Theodore Ts'oe1052142006-10-21 21:46:47 -04005737 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005739
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005741fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005742{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5743echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005744 if test $jm_ac_cv_header_inttypes_h = yes; then
5745
5746cat >>confdefs.h <<_ACEOF
5747#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5748_ACEOF
5749
5750 fi
5751
5752
Theodore Ts'oe1052142006-10-21 21:46:47 -04005753 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5754echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005755if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758 cat >conftest.$ac_ext <<_ACEOF
5759/* confdefs.h. */
5760_ACEOF
5761cat confdefs.h >>conftest.$ac_ext
5762cat >>conftest.$ac_ext <<_ACEOF
5763/* end confdefs.h. */
5764#include <sys/types.h>
5765#include <stdint.h>
5766int
5767main ()
5768{
5769uintmax_t i = (uintmax_t) -1;
5770 ;
5771 return 0;
5772}
5773_ACEOF
5774rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005775if { (ac_try="$ac_compile"
5776case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005787 (exit $ac_status); } && {
5788 test -z "$ac_c_werror_flag" ||
5789 test ! -s conftest.err
5790 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005791 jm_ac_cv_header_stdint_h=yes
5792else
5793 echo "$as_me: failed program was:" >&5
5794sed 's/^/| /' conftest.$ac_ext >&5
5795
Theodore Ts'oe1052142006-10-21 21:46:47 -04005796 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005798
5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005801{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5802echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005803 if test $jm_ac_cv_header_stdint_h = yes; then
5804
5805cat >>confdefs.h <<_ACEOF
5806#define HAVE_STDINT_H_WITH_UINTMAX 1
5807_ACEOF
5808
5809 fi
5810
5811
5812
5813
Theodore Ts'oe1052142006-10-21 21:46:47 -04005814 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5815echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005816if test "${gt_cv_c_intmax_t+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819 cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h. */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h. */
5825
5826#include <stddef.h>
5827#include <stdlib.h>
5828#if HAVE_STDINT_H_WITH_UINTMAX
5829#include <stdint.h>
5830#endif
5831#if HAVE_INTTYPES_H_WITH_UINTMAX
5832#include <inttypes.h>
5833#endif
5834
5835int
5836main ()
5837{
5838intmax_t x = -1;
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005844if { (ac_try="$ac_compile"
5845case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005860 gt_cv_c_intmax_t=yes
5861else
5862 echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
Theodore Ts'oe1052142006-10-21 21:46:47 -04005865 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005867
5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005869fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005870{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5871echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005872 if test $gt_cv_c_intmax_t = yes; then
5873
5874cat >>confdefs.h <<\_ACEOF
5875#define HAVE_INTMAX_T 1
5876_ACEOF
5877
5878 fi
5879
5880
5881
Theodore Ts'oe1052142006-10-21 21:46:47 -04005882 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5883echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884if test "${gt_cv_func_printf_posix+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887
5888 if test "$cross_compiling" = yes; then
5889
5890 cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896
5897#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5898 notposix
5899#endif
5900
5901_ACEOF
5902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903 $EGREP "notposix" >/dev/null 2>&1; then
5904 gt_cv_func_printf_posix="guessing no"
5905else
5906 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005907fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005908rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005909
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005910
5911else
5912 cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h. */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h. */
5918
5919#include <stdio.h>
5920#include <string.h>
5921/* The string "%2$d %1$d", with dollar characters protected from the shell's
5922 dollar expansion (possibly an autoconf bug). */
5923static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5924static char buf[100];
5925int main ()
5926{
5927 sprintf (buf, format, 33, 55);
5928 return (strcmp (buf, "55 33") != 0);
5929}
5930_ACEOF
5931rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005932if { (ac_try="$ac_link"
5933case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936esac
5937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 gt_cv_func_printf_posix=yes
5952else
5953 echo "$as_me: program exited with status $ac_status" >&5
5954echo "$as_me: failed program was:" >&5
5955sed 's/^/| /' conftest.$ac_ext >&5
5956
5957( exit $ac_status )
5958gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005960rm -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 -05005961fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005962
Theodore Ts'oe1052142006-10-21 21:46:47 -04005963
5964
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005965fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005966{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5967echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968 case $gt_cv_func_printf_posix in
5969 *yes)
5970
5971cat >>confdefs.h <<\_ACEOF
5972#define HAVE_POSIX_PRINTF 1
5973_ACEOF
5974
5975 ;;
5976 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005977
5978# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5979# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005980{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5981echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005982if test "${ac_cv_working_alloca_h+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005984else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005985 cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005991#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992int
5993main ()
5994{
5995char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005996 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006002if { (ac_try="$ac_link"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest$ac_exeext &&
6018 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006019 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006020else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006023
Theodore Ts'oe1052142006-10-21 21:46:47 -04006024 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006026
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028 conftest$ac_exeext conftest.$ac_ext
6029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006030{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6031echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006032if test $ac_cv_working_alloca_h = yes; then
6033
6034cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006035#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006036_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006037
6038fi
6039
Theodore Ts'oe1052142006-10-21 21:46:47 -04006040{ echo "$as_me:$LINENO: checking for alloca" >&5
6041echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042if test "${ac_cv_func_alloca_works+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045 cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006051#ifdef __GNUC__
6052# define alloca __builtin_alloca
6053#else
6054# ifdef _MSC_VER
6055# include <malloc.h>
6056# define alloca _alloca
6057# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006058# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006059# include <alloca.h>
6060# else
6061# ifdef _AIX
6062 #pragma alloca
6063# else
6064# ifndef alloca /* predefined by HP cc +Olibcalls */
6065char *alloca ();
6066# endif
6067# endif
6068# endif
6069# endif
6070#endif
6071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072int
6073main ()
6074{
6075char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006076 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006077 ;
6078 return 0;
6079}
6080_ACEOF
6081rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006082if { (ac_try="$ac_link"
6083case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086esac
6087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest$ac_exeext &&
6098 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006099 ac_cv_func_alloca_works=yes
6100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101 echo "$as_me: failed program was:" >&5
6102sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006103
Theodore Ts'oe1052142006-10-21 21:46:47 -04006104 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006105fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006106
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006108 conftest$ac_exeext conftest.$ac_ext
6109fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6111echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006113if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114
6115cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006116#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006117_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006118
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006119else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6121# that cause trouble. Some versions do not even contain alloca or
6122# contain a buggy version. If you still want to use their alloca,
6123# use ar to extract alloca.o from them instead of compiling alloca.c.
6124
Theodore Ts'oe1052142006-10-21 21:46:47 -04006125ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006126
6127cat >>confdefs.h <<\_ACEOF
6128#define C_ALLOCA 1
6129_ACEOF
6130
6131
Theodore Ts'oe1052142006-10-21 21:46:47 -04006132{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6133echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134if test "${ac_cv_os_cray+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137 cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h. */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006143#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006144webecray
6145#else
6146wenotbecray
6147#endif
6148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006149_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006152 ac_cv_os_cray=yes
6153else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006154 ac_cv_os_cray=no
6155fi
6156rm -f conftest*
6157
6158fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006159{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6160echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006161if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162 for ac_func in _getb67 GETB67 getb67; do
6163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006167 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006168else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169 cat >conftest.$ac_ext <<_ACEOF
6170/* confdefs.h. */
6171_ACEOF
6172cat confdefs.h >>conftest.$ac_ext
6173cat >>conftest.$ac_ext <<_ACEOF
6174/* end confdefs.h. */
6175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6177#define $ac_func innocuous_$ac_func
6178
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006179/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006180 which can conflict with char $ac_func (); below.
6181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6182 <limits.h> exists even on freestanding compilers. */
6183
6184#ifdef __STDC__
6185# include <limits.h>
6186#else
6187# include <assert.h>
6188#endif
6189
6190#undef $ac_func
6191
Theodore Ts'oe1052142006-10-21 21:46:47 -04006192/* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006195#ifdef __cplusplus
6196extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006197#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006198char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006199/* The GNU C library defines this for functions which it implements
6200 to always fail with ENOSYS. Some functions are actually named
6201 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006202#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006203choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006204#endif
6205
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006206int
6207main ()
6208{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006209return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006210 ;
6211 return 0;
6212}
6213_ACEOF
6214rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006215if { (ac_try="$ac_link"
6216case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219esac
6220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest$ac_exeext &&
6231 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006232 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006233else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006234 echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006236
Theodore Ts'oe1052142006-10-21 21:46:47 -04006237 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006238fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006239
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006241 conftest$ac_exeext conftest.$ac_ext
6242fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006243ac_res=`eval echo '${'$as_ac_var'}'`
6244 { echo "$as_me:$LINENO: result: $ac_res" >&5
6245echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006246if test `eval echo '${'$as_ac_var'}'` = yes; then
6247
6248cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006249#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006250_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006252 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006253fi
6254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006255 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006256fi
6257
Theodore Ts'oe1052142006-10-21 21:46:47 -04006258{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6259echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006260if test "${ac_cv_c_stack_direction+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006262else
6263 if test "$cross_compiling" = yes; then
6264 ac_cv_c_stack_direction=0
6265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006266 cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006272$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006274find_stack_direction ()
6275{
6276 static char *addr = 0;
6277 auto char dummy;
6278 if (addr == 0)
6279 {
6280 addr = &dummy;
6281 return find_stack_direction ();
6282 }
6283 else
6284 return (&dummy > addr) ? 1 : -1;
6285}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286
6287int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006288main ()
6289{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006290 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006291}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292_ACEOF
6293rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006294if { (ac_try="$ac_link"
6295case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298esac
6299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006304 { (case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307esac
6308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006313 ac_cv_c_stack_direction=1
6314else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006315 echo "$as_me: program exited with status $ac_status" >&5
6316echo "$as_me: failed program was:" >&5
6317sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319( exit $ac_status )
6320ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006321fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006322rm -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 -05006323fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006324
6325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006326fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006327{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6328echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006330cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006331#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332_ACEOF
6333
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006334
6335fi
6336
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006337
6338
6339for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006340do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006347fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006348ac_res=`eval echo '${'$as_ac_Header'}'`
6349 { echo "$as_me:$LINENO: result: $ac_res" >&5
6350echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006351else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006352 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006355cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h. */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */
6361$ac_includes_default
6362#include <$ac_header>
6363_ACEOF
6364rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006365if { (ac_try="$ac_compile"
6366case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369esac
6370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006381 ac_header_compiler=yes
6382else
6383 echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
Theodore Ts'oe1052142006-10-21 21:46:47 -04006386 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006388
6389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6391echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006392
6393# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006394{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006396cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h. */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h. */
6402#include <$ac_header>
6403_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006404if { (ac_try="$ac_cpp conftest.$ac_ext"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006416 (exit $ac_status); } >/dev/null && {
6417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420 ac_header_preproc=yes
6421else
6422 echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 ac_header_preproc=no
6426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006428rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006429{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6430echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006431
6432# So? What about this header?
6433case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6434 yes:no: )
6435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6436echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6438echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6439 ac_header_preproc=yes
6440 ;;
6441 no:yes:* )
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6443echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6445echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6447echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6449echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6453echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006455 ;;
6456esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 eval "$as_ac_Header=\$ac_header_preproc"
6463fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006464ac_res=`eval echo '${'$as_ac_Header'}'`
6465 { echo "$as_me:$LINENO: result: $ac_res" >&5
6466echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006467
6468fi
6469if test `eval echo '${'$as_ac_Header'}'` = yes; then
6470 cat >>confdefs.h <<_ACEOF
6471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6472_ACEOF
6473
6474fi
6475
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006476done
6477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006478
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006479for ac_func in getpagesize
6480do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006482{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6484if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006486else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487 cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6495#define $ac_func innocuous_$ac_func
6496
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006497/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498 which can conflict with char $ac_func (); below.
6499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6500 <limits.h> exists even on freestanding compilers. */
6501
6502#ifdef __STDC__
6503# include <limits.h>
6504#else
6505# include <assert.h>
6506#endif
6507
6508#undef $ac_func
6509
Theodore Ts'oe1052142006-10-21 21:46:47 -04006510/* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513#ifdef __cplusplus
6514extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006515#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006517/* The GNU C library defines this for functions which it implements
6518 to always fail with ENOSYS. Some functions are actually named
6519 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006520#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006521choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006522#endif
6523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006524int
6525main ()
6526{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006527return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528 ;
6529 return 0;
6530}
6531_ACEOF
6532rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006533if { (ac_try="$ac_link"
6534case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest$ac_exeext &&
6549 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006550 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552 echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006554
Theodore Ts'oe1052142006-10-21 21:46:47 -04006555 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006557
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006559 conftest$ac_exeext conftest.$ac_ext
6560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006561ac_res=`eval echo '${'$as_ac_var'}'`
6562 { echo "$as_me:$LINENO: result: $ac_res" >&5
6563echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006564if test `eval echo '${'$as_ac_var'}'` = yes; then
6565 cat >>confdefs.h <<_ACEOF
6566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6567_ACEOF
6568
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006569fi
6570done
6571
Theodore Ts'oe1052142006-10-21 21:46:47 -04006572{ echo "$as_me:$LINENO: checking for working mmap" >&5
6573echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006574if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006576else
6577 if test "$cross_compiling" = yes; then
6578 ac_cv_func_mmap_fixed_mapped=no
6579else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580 cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h. */
6586$ac_includes_default
6587/* malloc might have been renamed as rpl_malloc. */
6588#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006589
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006590/* Thanks to Mike Haertel and Jim Avera for this test.
6591 Here is a matrix of mmap possibilities:
6592 mmap private not fixed
6593 mmap private fixed at somewhere currently unmapped
6594 mmap private fixed at somewhere already mapped
6595 mmap shared not fixed
6596 mmap shared fixed at somewhere currently unmapped
6597 mmap shared fixed at somewhere already mapped
6598 For private mappings, we should verify that changes cannot be read()
6599 back from the file, nor mmap's back from the file at a different
6600 address. (There have been systems where private was not correctly
6601 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006602 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006603 like early versions of FreeBSD and possibly contemporary NetBSD.)
6604 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006606
6607 Grep wants private fixed already mapped.
6608 The main things grep needs to know about mmap are:
6609 * does it exist and is it safe to write into the mmap'd area
6610 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006612#include <fcntl.h>
6613#include <sys/mman.h>
6614
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006615#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616char *malloc ();
6617#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006618
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006619/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006620#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006621/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006622# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006623# define HAVE_SYS_PARAM_H 1
6624# endif
6625
6626# ifdef _SC_PAGESIZE
6627# define getpagesize() sysconf(_SC_PAGESIZE)
6628# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006629# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006630# include <sys/param.h>
6631# ifdef EXEC_PAGESIZE
6632# define getpagesize() EXEC_PAGESIZE
6633# else /* no EXEC_PAGESIZE */
6634# ifdef NBPG
6635# define getpagesize() NBPG * CLSIZE
6636# ifndef CLSIZE
6637# define CLSIZE 1
6638# endif /* no CLSIZE */
6639# else /* no NBPG */
6640# ifdef NBPC
6641# define getpagesize() NBPC
6642# else /* no NBPC */
6643# ifdef PAGESIZE
6644# define getpagesize() PAGESIZE
6645# endif /* PAGESIZE */
6646# endif /* no NBPC */
6647# endif /* no NBPG */
6648# endif /* no EXEC_PAGESIZE */
6649# else /* no HAVE_SYS_PARAM_H */
6650# define getpagesize() 8192 /* punt totally */
6651# endif /* no HAVE_SYS_PARAM_H */
6652# endif /* no _SC_PAGESIZE */
6653
6654#endif /* no HAVE_GETPAGESIZE */
6655
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006656int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006657main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006658{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659 char *data, *data2, *data3;
6660 int i, pagesize;
6661 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665 /* First, make a file with some known garbage in it. */
6666 data = (char *) malloc (pagesize);
6667 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006668 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669 for (i = 0; i < pagesize; ++i)
6670 *(data + i) = rand ();
6671 umask (0);
6672 fd = creat ("conftest.mmap", 0600);
6673 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006674 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006678
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679 /* Next, try to mmap the file at a fixed address which already has
6680 something else allocated at it. If we can, also make sure that
6681 we see the same garbage. */
6682 fd = open ("conftest.mmap", O_RDWR);
6683 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006684 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685 data2 = (char *) malloc (2 * pagesize);
6686 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006687 return 1;
6688 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6690 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006691 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006692 for (i = 0; i < pagesize; ++i)
6693 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006694 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696 /* Finally, make sure that changes to the mapped area do not
6697 percolate back to the file as seen by read(). (This is a bug on
6698 some variants of i386 svr4.0.) */
6699 for (i = 0; i < pagesize; ++i)
6700 *(data2 + i) = *(data2 + i) + 1;
6701 data3 = (char *) malloc (pagesize);
6702 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006703 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006705 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706 for (i = 0; i < pagesize; ++i)
6707 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006708 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006710 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006711}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712_ACEOF
6713rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006714if { (ac_try="$ac_link"
6715case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718esac
6719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006724 { (case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727esac
6728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006733 ac_cv_func_mmap_fixed_mapped=yes
6734else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735 echo "$as_me: program exited with status $ac_status" >&5
6736echo "$as_me: failed program was:" >&5
6737sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006739( exit $ac_status )
6740ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006741fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006742rm -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 -05006743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006744
6745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006747{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6748echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006749if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750
6751cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006752#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006754
6755fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006757
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006758
Theodore Ts'oe1052142006-10-21 21:46:47 -04006759 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6760echo $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 -05006761if test "${ac_cv_gnu_library_2_1+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006763else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006764 cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h. */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006770
6771#include <features.h>
6772#ifdef __GNU_LIBRARY__
6773 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6774 Lucky GNU user
6775 #endif
6776#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777
6778_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006781 ac_cv_gnu_library_2_1=yes
6782else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006783 ac_cv_gnu_library_2_1=no
6784fi
6785rm -f conftest*
6786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787
6788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006789fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006790{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6791echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006792
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006793 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796
6797
Theodore Ts'oe1052142006-10-21 21:46:47 -04006798 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6799echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006802else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006804 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006806 # Guess based on the CPU.
6807 case "$host_cpu" in
6808 alpha* | i3456786 | m68k | s390*)
6809 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6810 *)
6811 gt_cv_int_divbyzero_sigfpe="guessing no";;
6812 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006814else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815 cat >conftest.$ac_ext <<_ACEOF
6816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006821
6822#include <stdlib.h>
6823#include <signal.h>
6824
6825static void
6826#ifdef __cplusplus
6827sigfpe_handler (int sig)
6828#else
6829sigfpe_handler (sig) int sig;
6830#endif
6831{
6832 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6833 exit (sig != SIGFPE);
6834}
6835
6836int x = 1;
6837int y = 0;
6838int z;
6839int nan;
6840
6841int main ()
6842{
6843 signal (SIGFPE, sigfpe_handler);
6844/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6845#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6846 signal (SIGTRAP, sigfpe_handler);
6847#endif
6848/* Linux/SPARC yields signal SIGILL. */
6849#if defined (__sparc__) && defined (__linux__)
6850 signal (SIGILL, sigfpe_handler);
6851#endif
6852
6853 z = x / y;
6854 nan = y / y;
6855 exit (1);
6856}
6857
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006858_ACEOF
6859rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006860if { (ac_try="$ac_link"
6861case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864esac
6865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006870 { (case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6873esac
6874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6875 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006879 gt_cv_int_divbyzero_sigfpe=yes
6880else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881 echo "$as_me: program exited with status $ac_status" >&5
6882echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885( exit $ac_status )
6886gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006887fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006888rm -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 -04006889fi
6890
Theodore Ts'oe1052142006-10-21 21:46:47 -04006891
6892
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006893fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006894{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6895echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006896 case "$gt_cv_int_divbyzero_sigfpe" in
6897 *yes) value=1;;
6898 *) value=0;;
6899 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900
6901cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006902#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006903_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006904
6905
6906
Theodore Ts'oe1052142006-10-21 21:46:47 -04006907 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6908echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 cat >conftest.$ac_ext <<_ACEOF
6913/* confdefs.h. */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h. */
6918unsigned long long ull = 1ULL; int i = 63;
6919int
6920main ()
6921{
6922unsigned long long ullmax = (unsigned long long) -1;
6923 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6924 ;
6925 return 0;
6926}
6927_ACEOF
6928rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006929if { (ac_try="$ac_link"
6930case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933esac
6934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936 ac_status=$?
6937 grep -v '^ *+' conftest.er1 >conftest.err
6938 rm -f conftest.er1
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest$ac_exeext &&
6945 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006946 ac_cv_type_unsigned_long_long=yes
6947else
6948 echo "$as_me: failed program was:" >&5
6949sed 's/^/| /' conftest.$ac_ext >&5
6950
Theodore Ts'oe1052142006-10-21 21:46:47 -04006951 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006953
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006955 conftest$ac_exeext conftest.$ac_ext
6956fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006957{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6958echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006959 if test $ac_cv_type_unsigned_long_long = yes; then
6960
6961cat >>confdefs.h <<\_ACEOF
6962#define HAVE_UNSIGNED_LONG_LONG 1
6963_ACEOF
6964
6965 fi
6966
6967
6968
6969
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006970 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 -05006971
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006972 test $ac_cv_type_unsigned_long_long = yes \
6973 && ac_type='unsigned long long' \
6974 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975
6976cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006977#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978_ACEOF
6979
6980 else
6981
6982cat >>confdefs.h <<\_ACEOF
6983#define HAVE_UINTMAX_T 1
6984_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006985
6986 fi
6987
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006988
Theodore Ts'oe1052142006-10-21 21:46:47 -04006989 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6990echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006991if test "${gt_cv_header_inttypes_h+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006994
6995 cat >conftest.$ac_ext <<_ACEOF
6996/* confdefs.h. */
6997_ACEOF
6998cat confdefs.h >>conftest.$ac_ext
6999cat >>conftest.$ac_ext <<_ACEOF
7000/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007001#include <sys/types.h>
7002#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003int
7004main ()
7005{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007 ;
7008 return 0;
7009}
7010_ACEOF
7011rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007012if { (ac_try="$ac_compile"
7013case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016esac
7017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007028 gt_cv_header_inttypes_h=yes
7029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030 echo "$as_me: failed program was:" >&5
7031sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007032
Theodore Ts'oe1052142006-10-21 21:46:47 -04007033 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007035
7036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037
7038fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007039{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7040echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007041 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007042
7043cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007044#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007045_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007046
7047 fi
7048
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007051 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007052 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7053echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007056else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057
7058 cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007064#include <inttypes.h>
7065#ifdef PRId32
7066char *p = PRId32;
7067#endif
7068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069int
7070main ()
7071{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073 ;
7074 return 0;
7075}
7076_ACEOF
7077rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007078if { (ac_try="$ac_compile"
7079case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082esac
7083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007094 gt_cv_inttypes_pri_broken=no
7095else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007096 echo "$as_me: failed program was:" >&5
7097sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007098
Theodore Ts'oe1052142006-10-21 21:46:47 -04007099 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007101
7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103
7104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007105{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7106echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007107 fi
7108 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007109
7110cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007111#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007112_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007113
7114 fi
7115
7116
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007118for ac_header in stdint.h
7119do
7120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007127ac_res=`eval echo '${'$as_ac_Header'}'`
7128 { echo "$as_me:$LINENO: result: $ac_res" >&5
7129echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007130else
7131 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007132{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7133echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134cat >conftest.$ac_ext <<_ACEOF
7135/* confdefs.h. */
7136_ACEOF
7137cat confdefs.h >>conftest.$ac_ext
7138cat >>conftest.$ac_ext <<_ACEOF
7139/* end confdefs.h. */
7140$ac_includes_default
7141#include <$ac_header>
7142_ACEOF
7143rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007144if { (ac_try="$ac_compile"
7145case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148esac
7149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 ac_header_compiler=yes
7161else
7162 echo "$as_me: failed program was:" >&5
7163sed 's/^/| /' conftest.$ac_ext >&5
7164
Theodore Ts'oe1052142006-10-21 21:46:47 -04007165 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007167
7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7170echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171
7172# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007173{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h. */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h. */
7181#include <$ac_header>
7182_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007183if { (ac_try="$ac_cpp conftest.$ac_ext"
7184case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
7188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007195 (exit $ac_status); } >/dev/null && {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199 ac_header_preproc=yes
7200else
7201 echo "$as_me: failed program was:" >&5
7202sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_header_preproc=no
7205fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007207rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007208{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7209echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210
7211# So? What about this header?
7212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7213 yes:no: )
7214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7218 ac_header_preproc=yes
7219 ;;
7220 no:yes:* )
7221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007234 ;;
7235esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007236{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241 eval "$as_ac_Header=\$ac_header_preproc"
7242fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007243ac_res=`eval echo '${'$as_ac_Header'}'`
7244 { echo "$as_me:$LINENO: result: $ac_res" >&5
7245echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246
7247fi
7248if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251_ACEOF
7252
7253fi
7254
7255done
7256
Theodore Ts'oe1052142006-10-21 21:46:47 -04007257 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7258echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259 result=
7260 cat >conftest.$ac_ext <<_ACEOF
7261/* confdefs.h. */
7262_ACEOF
7263cat confdefs.h >>conftest.$ac_ext
7264cat >>conftest.$ac_ext <<_ACEOF
7265/* end confdefs.h. */
7266
7267#include <limits.h>
7268#if HAVE_STDINT_H
7269#include <stdint.h>
7270#endif
7271#ifdef SIZE_MAX
7272Found it
7273#endif
7274
7275_ACEOF
7276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7277 $EGREP "Found it" >/dev/null 2>&1; then
7278 result=yes
7279fi
7280rm -f conftest*
7281
7282 if test -z "$result"; then
7283 if test "$cross_compiling" = yes; then
7284 # Depending upon the size, compute the lo and hi bounds.
7285cat >conftest.$ac_ext <<_ACEOF
7286/* confdefs.h. */
7287_ACEOF
7288cat confdefs.h >>conftest.$ac_ext
7289cat >>conftest.$ac_ext <<_ACEOF
7290/* end confdefs.h. */
7291#include <stddef.h>
7292int
7293main ()
7294{
7295static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7296test_array [0] = 0
7297
7298 ;
7299 return 0;
7300}
7301_ACEOF
7302rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007303if { (ac_try="$ac_compile"
7304case "(($ac_try" in
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7307esac
7308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319 ac_lo=0 ac_mid=0
7320 while :; do
7321 cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h. */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h. */
7327#include <stddef.h>
7328int
7329main ()
7330{
7331static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7332test_array [0] = 0
7333
7334 ;
7335 return 0;
7336}
7337_ACEOF
7338rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339if { (ac_try="$ac_compile"
7340case "(($ac_try" in
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7343esac
7344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007351 (exit $ac_status); } && {
7352 test -z "$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007355 ac_hi=$ac_mid; break
7356else
7357 echo "$as_me: failed program was:" >&5
7358sed 's/^/| /' conftest.$ac_ext >&5
7359
Theodore Ts'oe1052142006-10-21 21:46:47 -04007360 ac_lo=`expr $ac_mid + 1`
7361 if test $ac_lo -le $ac_mid; then
7362 ac_lo= ac_hi=
7363 break
7364 fi
7365 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007367
7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007369 done
7370else
7371 echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
Theodore Ts'oe1052142006-10-21 21:46:47 -04007374 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007375/* confdefs.h. */
7376_ACEOF
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h. */
7380#include <stddef.h>
7381int
7382main ()
7383{
7384static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7385test_array [0] = 0
7386
7387 ;
7388 return 0;
7389}
7390_ACEOF
7391rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007392if { (ac_try="$ac_compile"
7393case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396esac
7397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408 ac_hi=-1 ac_mid=-1
7409 while :; do
7410 cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h. */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h. */
7416#include <stddef.h>
7417int
7418main ()
7419{
7420static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7421test_array [0] = 0
7422
7423 ;
7424 return 0;
7425}
7426_ACEOF
7427rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007428if { (ac_try="$ac_compile"
7429case "(($ac_try" in
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7432esac
7433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444 ac_lo=$ac_mid; break
7445else
7446 echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
Theodore Ts'oe1052142006-10-21 21:46:47 -04007449 ac_hi=`expr '(' $ac_mid ')' - 1`
7450 if test $ac_mid -le $ac_hi; then
7451 ac_lo= ac_hi=
7452 break
7453 fi
7454 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007456
7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007458 done
7459else
7460 echo "$as_me: failed program was:" >&5
7461sed 's/^/| /' conftest.$ac_ext >&5
7462
Theodore Ts'oe1052142006-10-21 21:46:47 -04007463 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007465
7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007468
7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007470# Binary search between lo and hi bounds.
7471while test "x$ac_lo" != "x$ac_hi"; do
7472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7473 cat >conftest.$ac_ext <<_ACEOF
7474/* confdefs.h. */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h. */
7479#include <stddef.h>
7480int
7481main ()
7482{
7483static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7484test_array [0] = 0
7485
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007491if { (ac_try="$ac_compile"
7492case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495esac
7496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507 ac_hi=$ac_mid
7508else
7509 echo "$as_me: failed program was:" >&5
7510sed 's/^/| /' conftest.$ac_ext >&5
7511
Theodore Ts'oe1052142006-10-21 21:46:47 -04007512 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007514
7515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516done
7517case $ac_lo in
7518?*) res_hi=$ac_lo;;
7519'') result=? ;;
7520esac
7521else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522 cat >conftest.$ac_ext <<_ACEOF
7523/* confdefs.h. */
7524_ACEOF
7525cat confdefs.h >>conftest.$ac_ext
7526cat >>conftest.$ac_ext <<_ACEOF
7527/* end confdefs.h. */
7528#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007529static long int longval () { return ~(size_t)0 / 10; }
7530static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531#include <stdio.h>
7532#include <stdlib.h>
7533int
7534main ()
7535{
7536
7537 FILE *f = fopen ("conftest.val", "w");
7538 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007539 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007540 if ((~(size_t)0 / 10) < 0)
7541 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007542 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007543 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007544 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007545 fprintf (f, "%ld\n", i);
7546 }
7547 else
7548 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007549 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007551 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007552 fprintf (f, "%lu\n", i);
7553 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007554 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007555
7556 ;
7557 return 0;
7558}
7559_ACEOF
7560rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007561if { (ac_try="$ac_link"
7562case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565esac
7566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007571 { (case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574esac
7575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 res_hi=`cat conftest.val`
7581else
7582 echo "$as_me: program exited with status $ac_status" >&5
7583echo "$as_me: failed program was:" >&5
7584sed 's/^/| /' conftest.$ac_ext >&5
7585
7586( exit $ac_status )
7587result=?
7588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007589rm -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 -05007590fi
7591rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007593 if test "$cross_compiling" = yes; then
7594 # Depending upon the size, compute the lo and hi bounds.
7595cat >conftest.$ac_ext <<_ACEOF
7596/* confdefs.h. */
7597_ACEOF
7598cat confdefs.h >>conftest.$ac_ext
7599cat >>conftest.$ac_ext <<_ACEOF
7600/* end confdefs.h. */
7601#include <stddef.h>
7602int
7603main ()
7604{
7605static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7606test_array [0] = 0
7607
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007613if { (ac_try="$ac_compile"
7614case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007625 (exit $ac_status); } && {
7626 test -z "$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 ac_lo=0 ac_mid=0
7630 while :; do
7631 cat >conftest.$ac_ext <<_ACEOF
7632/* confdefs.h. */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h. */
7637#include <stddef.h>
7638int
7639main ()
7640{
7641static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7642test_array [0] = 0
7643
7644 ;
7645 return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007649if { (ac_try="$ac_compile"
7650case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653esac
7654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007665 ac_hi=$ac_mid; break
7666else
7667 echo "$as_me: failed program was:" >&5
7668sed 's/^/| /' conftest.$ac_ext >&5
7669
Theodore Ts'oe1052142006-10-21 21:46:47 -04007670 ac_lo=`expr $ac_mid + 1`
7671 if test $ac_lo -le $ac_mid; then
7672 ac_lo= ac_hi=
7673 break
7674 fi
7675 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007677
7678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679 done
7680else
7681 echo "$as_me: failed program was:" >&5
7682sed 's/^/| /' conftest.$ac_ext >&5
7683
Theodore Ts'oe1052142006-10-21 21:46:47 -04007684 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685/* confdefs.h. */
7686_ACEOF
7687cat confdefs.h >>conftest.$ac_ext
7688cat >>conftest.$ac_ext <<_ACEOF
7689/* end confdefs.h. */
7690#include <stddef.h>
7691int
7692main ()
7693{
7694static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7695test_array [0] = 0
7696
7697 ;
7698 return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007702if { (ac_try="$ac_compile"
7703case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706esac
7707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718 ac_hi=-1 ac_mid=-1
7719 while :; do
7720 cat >conftest.$ac_ext <<_ACEOF
7721/* confdefs.h. */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h. */
7726#include <stddef.h>
7727int
7728main ()
7729{
7730static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7731test_array [0] = 0
7732
7733 ;
7734 return 0;
7735}
7736_ACEOF
7737rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007738if { (ac_try="$ac_compile"
7739case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007754 ac_lo=$ac_mid; break
7755else
7756 echo "$as_me: failed program was:" >&5
7757sed 's/^/| /' conftest.$ac_ext >&5
7758
Theodore Ts'oe1052142006-10-21 21:46:47 -04007759 ac_hi=`expr '(' $ac_mid ')' - 1`
7760 if test $ac_mid -le $ac_hi; then
7761 ac_lo= ac_hi=
7762 break
7763 fi
7764 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007765fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007766
7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007768 done
7769else
7770 echo "$as_me: failed program was:" >&5
7771sed 's/^/| /' conftest.$ac_ext >&5
7772
Theodore Ts'oe1052142006-10-21 21:46:47 -04007773 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007775
7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007777fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007778
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007780# Binary search between lo and hi bounds.
7781while test "x$ac_lo" != "x$ac_hi"; do
7782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7783 cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
7789#include <stddef.h>
7790int
7791main ()
7792{
7793static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7794test_array [0] = 0
7795
7796 ;
7797 return 0;
7798}
7799_ACEOF
7800rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007801if { (ac_try="$ac_compile"
7802case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805esac
7806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007817 ac_hi=$ac_mid
7818else
7819 echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
Theodore Ts'oe1052142006-10-21 21:46:47 -04007822 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007826done
7827case $ac_lo in
7828?*) res_lo=$ac_lo;;
7829'') result=? ;;
7830esac
7831else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832 cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h. */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h. */
7838#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007839static long int longval () { return ~(size_t)0 % 10; }
7840static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007841#include <stdio.h>
7842#include <stdlib.h>
7843int
7844main ()
7845{
7846
7847 FILE *f = fopen ("conftest.val", "w");
7848 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007849 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007850 if ((~(size_t)0 % 10) < 0)
7851 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007852 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007853 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007854 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007855 fprintf (f, "%ld\n", i);
7856 }
7857 else
7858 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007859 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007860 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007861 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007862 fprintf (f, "%lu\n", i);
7863 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007864 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007865
7866 ;
7867 return 0;
7868}
7869_ACEOF
7870rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007871if { (ac_try="$ac_link"
7872case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875esac
7876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007881 { (case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884esac
7885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 res_lo=`cat conftest.val`
7891else
7892 echo "$as_me: program exited with status $ac_status" >&5
7893echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896( exit $ac_status )
7897result=?
7898fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007899rm -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 -05007900fi
7901rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007903 if test "$cross_compiling" = yes; then
7904 # Depending upon the size, compute the lo and hi bounds.
7905cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911#include <stddef.h>
7912int
7913main ()
7914{
7915static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7916test_array [0] = 0
7917
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007923if { (ac_try="$ac_compile"
7924case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939 ac_lo=0 ac_mid=0
7940 while :; do
7941 cat >conftest.$ac_ext <<_ACEOF
7942/* confdefs.h. */
7943_ACEOF
7944cat confdefs.h >>conftest.$ac_ext
7945cat >>conftest.$ac_ext <<_ACEOF
7946/* end confdefs.h. */
7947#include <stddef.h>
7948int
7949main ()
7950{
7951static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7952test_array [0] = 0
7953
7954 ;
7955 return 0;
7956}
7957_ACEOF
7958rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007959if { (ac_try="$ac_compile"
7960case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963esac
7964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007975 ac_hi=$ac_mid; break
7976else
7977 echo "$as_me: failed program was:" >&5
7978sed 's/^/| /' conftest.$ac_ext >&5
7979
Theodore Ts'oe1052142006-10-21 21:46:47 -04007980 ac_lo=`expr $ac_mid + 1`
7981 if test $ac_lo -le $ac_mid; then
7982 ac_lo= ac_hi=
7983 break
7984 fi
7985 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007987
7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007989 done
7990else
7991 echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
Theodore Ts'oe1052142006-10-21 21:46:47 -04007994 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007995/* confdefs.h. */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
7999/* end confdefs.h. */
8000#include <stddef.h>
8001int
8002main ()
8003{
8004static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8005test_array [0] = 0
8006
8007 ;
8008 return 0;
8009}
8010_ACEOF
8011rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008012if { (ac_try="$ac_compile"
8013case "(($ac_try" in
8014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015 *) ac_try_echo=$ac_try;;
8016esac
8017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8018 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008019 ac_status=$?
8020 grep -v '^ *+' conftest.er1 >conftest.err
8021 rm -f conftest.er1
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008028 ac_hi=-1 ac_mid=-1
8029 while :; do
8030 cat >conftest.$ac_ext <<_ACEOF
8031/* confdefs.h. */
8032_ACEOF
8033cat confdefs.h >>conftest.$ac_ext
8034cat >>conftest.$ac_ext <<_ACEOF
8035/* end confdefs.h. */
8036#include <stddef.h>
8037int
8038main ()
8039{
8040static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8041test_array [0] = 0
8042
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008048if { (ac_try="$ac_compile"
8049case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052esac
8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008064 ac_lo=$ac_mid; break
8065else
8066 echo "$as_me: failed program was:" >&5
8067sed 's/^/| /' conftest.$ac_ext >&5
8068
Theodore Ts'oe1052142006-10-21 21:46:47 -04008069 ac_hi=`expr '(' $ac_mid ')' - 1`
8070 if test $ac_mid -le $ac_hi; then
8071 ac_lo= ac_hi=
8072 break
8073 fi
8074 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008075fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008076
8077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008078 done
8079else
8080 echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
Theodore Ts'oe1052142006-10-21 21:46:47 -04008083 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008084fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008085
8086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008088
8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008090# Binary search between lo and hi bounds.
8091while test "x$ac_lo" != "x$ac_hi"; do
8092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8093 cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h. */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h. */
8099#include <stddef.h>
8100int
8101main ()
8102{
8103static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8104test_array [0] = 0
8105
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008127 ac_hi=$ac_mid
8128else
8129 echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
Theodore Ts'oe1052142006-10-21 21:46:47 -04008132 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008133fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008134
8135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008136done
8137case $ac_lo in
8138?*) fits_in_uint=$ac_lo;;
8139'') result=? ;;
8140esac
8141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008142 cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h. */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h. */
8148#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008149static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8150static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151#include <stdio.h>
8152#include <stdlib.h>
8153int
8154main ()
8155{
8156
8157 FILE *f = fopen ("conftest.val", "w");
8158 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008159 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008160 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8161 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008162 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008163 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008164 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008165 fprintf (f, "%ld\n", i);
8166 }
8167 else
8168 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008169 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008170 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008171 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008172 fprintf (f, "%lu\n", i);
8173 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008174 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008175
8176 ;
8177 return 0;
8178}
8179_ACEOF
8180rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008181if { (ac_try="$ac_link"
8182case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185esac
8186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
8195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 fits_in_uint=`cat conftest.val`
8201else
8202 echo "$as_me: program exited with status $ac_status" >&5
8203echo "$as_me: failed program was:" >&5
8204sed 's/^/| /' conftest.$ac_ext >&5
8205
8206( exit $ac_status )
8207result=?
8208fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008209rm -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 -05008210fi
8211rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008213 if test "$fits_in_uint" = 1; then
8214 cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h. */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h. */
8220#include <stddef.h>
8221 extern size_t foo;
8222 extern unsigned long foo;
8223
8224int
8225main ()
8226{
8227
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008233if { (ac_try="$ac_compile"
8234case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008249 fits_in_uint=0
8250else
8251 echo "$as_me: failed program was:" >&5
8252sed 's/^/| /' conftest.$ac_ext >&5
8253
Theodore Ts'oe1052142006-10-21 21:46:47 -04008254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008256
8257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008258 fi
8259 if test -z "$result"; then
8260 if test "$fits_in_uint" = 1; then
8261 result="$res_hi$res_lo"U
8262 else
8263 result="$res_hi$res_lo"UL
8264 fi
8265 else
8266 result='~(size_t)0'
8267 fi
8268 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008269 { echo "$as_me:$LINENO: result: $result" >&5
8270echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008271 if test "$result" != yes; then
8272
8273cat >>confdefs.h <<_ACEOF
8274#define SIZE_MAX $result
8275_ACEOF
8276
8277 fi
8278
8279
8280
8281
8282for ac_header in stdint.h
8283do
8284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008291ac_res=`eval echo '${'$as_ac_Header'}'`
8292 { echo "$as_me:$LINENO: result: $ac_res" >&5
8293echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008294else
8295 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008296{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008298cat >conftest.$ac_ext <<_ACEOF
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
8303/* end confdefs.h. */
8304$ac_includes_default
8305#include <$ac_header>
8306_ACEOF
8307rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008308if { (ac_try="$ac_compile"
8309case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312esac
8313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008324 ac_header_compiler=yes
8325else
8326 echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
Theodore Ts'oe1052142006-10-21 21:46:47 -04008329 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008330fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008331
8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8334echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008335
8336# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008339cat >conftest.$ac_ext <<_ACEOF
8340/* confdefs.h. */
8341_ACEOF
8342cat confdefs.h >>conftest.$ac_ext
8343cat >>conftest.$ac_ext <<_ACEOF
8344/* end confdefs.h. */
8345#include <$ac_header>
8346_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008347if { (ac_try="$ac_cpp conftest.$ac_ext"
8348case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008359 (exit $ac_status); } >/dev/null && {
8360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008363 ac_header_preproc=yes
8364else
8365 echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 ac_header_preproc=no
8369fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008370
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008372{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8373echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008374
8375# So? What about this header?
8376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8377 yes:no: )
8378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8382 ac_header_preproc=yes
8383 ;;
8384 no:yes:* )
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008397
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008398 ;;
8399esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405 eval "$as_ac_Header=\$ac_header_preproc"
8406fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008407ac_res=`eval echo '${'$as_ac_Header'}'`
8408 { echo "$as_me:$LINENO: result: $ac_res" >&5
8409echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008410
8411fi
8412if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8415_ACEOF
8416
8417fi
8418
8419done
8420
8421
8422
8423 if test "X$prefix" = "XNONE"; then
8424 acl_final_prefix="$ac_default_prefix"
8425 else
8426 acl_final_prefix="$prefix"
8427 fi
8428 if test "X$exec_prefix" = "XNONE"; then
8429 acl_final_exec_prefix='${prefix}'
8430 else
8431 acl_final_exec_prefix="$exec_prefix"
8432 fi
8433 acl_save_prefix="$prefix"
8434 prefix="$acl_final_prefix"
8435 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8436 prefix="$acl_save_prefix"
8437
8438
Theodore Ts'oe1052142006-10-21 21:46:47 -04008439# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008440if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008442else
8443 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008444fi
8445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008446# Prepare PATH_SEPARATOR.
8447# The user is always right.
8448if test "${PATH_SEPARATOR+set}" != set; then
8449 echo "#! /bin/sh" >conf$$.sh
8450 echo "exit 0" >>conf$$.sh
8451 chmod +x conf$$.sh
8452 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8453 PATH_SEPARATOR=';'
8454 else
8455 PATH_SEPARATOR=:
8456 fi
8457 rm -f conf$$.sh
8458fi
8459ac_prog=ld
8460if test "$GCC" = yes; then
8461 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008462 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8463echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008464 case $host in
8465 *-*-mingw*)
8466 # gcc leaves a trailing carriage return which upsets mingw
8467 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8468 *)
8469 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8470 esac
8471 case $ac_prog in
8472 # Accept absolute paths.
8473 [\\/]* | [A-Za-z]:[\\/]*)
8474 re_direlt='/[^/][^/]*/\.\./'
8475 # Canonicalize the path of ld
8476 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8477 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8478 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8479 done
8480 test -z "$LD" && LD="$ac_prog"
8481 ;;
8482 "")
8483 # If it fails, then pretend we aren't using GCC.
8484 ac_prog=ld
8485 ;;
8486 *)
8487 # If it is relative, then search for the first ld in PATH.
8488 with_gnu_ld=unknown
8489 ;;
8490 esac
8491elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008492 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8493echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008494else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008495 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8496echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008497fi
8498if test "${acl_cv_path_LD+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
8501 if test -z "$LD"; then
8502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8503 for ac_dir in $PATH; do
8504 test -z "$ac_dir" && ac_dir=.
8505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8506 acl_cv_path_LD="$ac_dir/$ac_prog"
8507 # Check to see if the program is GNU ld. I'd rather use --version,
8508 # but apparently some GNU ld's only accept -v.
8509 # Break only if it was the GNU/non-GNU ld that we prefer.
8510 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8511 *GNU* | *'with BFD'*)
8512 test "$with_gnu_ld" != no && break ;;
8513 *)
8514 test "$with_gnu_ld" != yes && break ;;
8515 esac
8516 fi
8517 done
8518 IFS="$ac_save_ifs"
8519else
8520 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8521fi
8522fi
8523
8524LD="$acl_cv_path_LD"
8525if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008526 { echo "$as_me:$LINENO: result: $LD" >&5
8527echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008529 { echo "$as_me:$LINENO: result: no" >&5
8530echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008531fi
8532test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8533echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8534 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008535{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8536echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008537if test "${acl_cv_prog_gnu_ld+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539else
8540 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8541case `$LD -v 2>&1 </dev/null` in
8542*GNU* | *'with BFD'*)
8543 acl_cv_prog_gnu_ld=yes ;;
8544*)
8545 acl_cv_prog_gnu_ld=no ;;
8546esac
8547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008548{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8549echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008550with_gnu_ld=$acl_cv_prog_gnu_ld
8551
8552
8553
Theodore Ts'oe1052142006-10-21 21:46:47 -04008554 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8555echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008556if test "${acl_cv_rpath+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558else
8559
8560 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8561 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8562 . ./conftest.sh
8563 rm -f ./conftest.sh
8564 acl_cv_rpath=done
8565
8566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008567{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8568echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008569 wl="$acl_cv_wl"
8570 libext="$acl_cv_libext"
8571 shlibext="$acl_cv_shlibext"
8572 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8573 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8574 hardcode_direct="$acl_cv_hardcode_direct"
8575 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008576 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008577if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008578 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008579else
8580 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008581fi
8582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008583
8584
8585
8586
8587
8588
8589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008590 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008591
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008592 acl_save_prefix="$prefix"
8593 prefix="$acl_final_prefix"
8594 acl_save_exec_prefix="$exec_prefix"
8595 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008596
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008597 eval additional_includedir=\"$includedir\"
8598 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008599
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008600 exec_prefix="$acl_save_exec_prefix"
8601 prefix="$acl_save_prefix"
8602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008603
Theodore Ts'oe1052142006-10-21 21:46:47 -04008604# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008605if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008606 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008607 if test "X$withval" = "Xno"; then
8608 use_additional=no
8609 else
8610 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008612 acl_save_prefix="$prefix"
8613 prefix="$acl_final_prefix"
8614 acl_save_exec_prefix="$exec_prefix"
8615 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008616
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008617 eval additional_includedir=\"$includedir\"
8618 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008619
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008620 exec_prefix="$acl_save_exec_prefix"
8621 prefix="$acl_save_prefix"
8622
8623 else
8624 additional_includedir="$withval/include"
8625 additional_libdir="$withval/lib"
8626 fi
8627 fi
8628
Theodore Ts'oe1052142006-10-21 21:46:47 -04008629fi
8630
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008631 LIBICONV=
8632 LTLIBICONV=
8633 INCICONV=
8634 rpathdirs=
8635 ltrpathdirs=
8636 names_already_handled=
8637 names_next_round='iconv '
8638 while test -n "$names_next_round"; do
8639 names_this_round="$names_next_round"
8640 names_next_round=
8641 for name in $names_this_round; do
8642 already_handled=
8643 for n in $names_already_handled; do
8644 if test "$n" = "$name"; then
8645 already_handled=yes
8646 break
8647 fi
8648 done
8649 if test -z "$already_handled"; then
8650 names_already_handled="$names_already_handled $name"
8651 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8652 eval value=\"\$HAVE_LIB$uppername\"
8653 if test -n "$value"; then
8654 if test "$value" = yes; then
8655 eval value=\"\$LIB$uppername\"
8656 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8657 eval value=\"\$LTLIB$uppername\"
8658 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8659 else
8660 :
8661 fi
8662 else
8663 found_dir=
8664 found_la=
8665 found_so=
8666 found_a=
8667 if test $use_additional = yes; then
8668 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8669 found_dir="$additional_libdir"
8670 found_so="$additional_libdir/lib$name.$shlibext"
8671 if test -f "$additional_libdir/lib$name.la"; then
8672 found_la="$additional_libdir/lib$name.la"
8673 fi
8674 else
8675 if test -f "$additional_libdir/lib$name.$libext"; then
8676 found_dir="$additional_libdir"
8677 found_a="$additional_libdir/lib$name.$libext"
8678 if test -f "$additional_libdir/lib$name.la"; then
8679 found_la="$additional_libdir/lib$name.la"
8680 fi
8681 fi
8682 fi
8683 fi
8684 if test "X$found_dir" = "X"; then
8685 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008686
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008687 acl_save_prefix="$prefix"
8688 prefix="$acl_final_prefix"
8689 acl_save_exec_prefix="$exec_prefix"
8690 exec_prefix="$acl_final_exec_prefix"
8691 eval x=\"$x\"
8692 exec_prefix="$acl_save_exec_prefix"
8693 prefix="$acl_save_prefix"
8694
8695 case "$x" in
8696 -L*)
8697 dir=`echo "X$x" | sed -e 's/^X-L//'`
8698 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8699 found_dir="$dir"
8700 found_so="$dir/lib$name.$shlibext"
8701 if test -f "$dir/lib$name.la"; then
8702 found_la="$dir/lib$name.la"
8703 fi
8704 else
8705 if test -f "$dir/lib$name.$libext"; then
8706 found_dir="$dir"
8707 found_a="$dir/lib$name.$libext"
8708 if test -f "$dir/lib$name.la"; then
8709 found_la="$dir/lib$name.la"
8710 fi
8711 fi
8712 fi
8713 ;;
8714 esac
8715 if test "X$found_dir" != "X"; then
8716 break
8717 fi
8718 done
8719 fi
8720 if test "X$found_dir" != "X"; then
8721 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8722 if test "X$found_so" != "X"; then
8723 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8724 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8725 else
8726 haveit=
8727 for x in $ltrpathdirs; do
8728 if test "X$x" = "X$found_dir"; then
8729 haveit=yes
8730 break
8731 fi
8732 done
8733 if test -z "$haveit"; then
8734 ltrpathdirs="$ltrpathdirs $found_dir"
8735 fi
8736 if test "$hardcode_direct" = yes; then
8737 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8738 else
8739 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8741 haveit=
8742 for x in $rpathdirs; do
8743 if test "X$x" = "X$found_dir"; then
8744 haveit=yes
8745 break
8746 fi
8747 done
8748 if test -z "$haveit"; then
8749 rpathdirs="$rpathdirs $found_dir"
8750 fi
8751 else
8752 haveit=
8753 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008754
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008755 acl_save_prefix="$prefix"
8756 prefix="$acl_final_prefix"
8757 acl_save_exec_prefix="$exec_prefix"
8758 exec_prefix="$acl_final_exec_prefix"
8759 eval x=\"$x\"
8760 exec_prefix="$acl_save_exec_prefix"
8761 prefix="$acl_save_prefix"
8762
8763 if test "X$x" = "X-L$found_dir"; then
8764 haveit=yes
8765 break
8766 fi
8767 done
8768 if test -z "$haveit"; then
8769 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8770 fi
8771 if test "$hardcode_minus_L" != no; then
8772 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8773 else
8774 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8775 fi
8776 fi
8777 fi
8778 fi
8779 else
8780 if test "X$found_a" != "X"; then
8781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8782 else
8783 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8784 fi
8785 fi
8786 additional_includedir=
8787 case "$found_dir" in
8788 */lib | */lib/)
8789 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8790 additional_includedir="$basedir/include"
8791 ;;
8792 esac
8793 if test "X$additional_includedir" != "X"; then
8794 if test "X$additional_includedir" != "X/usr/include"; then
8795 haveit=
8796 if test "X$additional_includedir" = "X/usr/local/include"; then
8797 if test -n "$GCC"; then
8798 case $host_os in
8799 linux*) haveit=yes;;
8800 esac
8801 fi
8802 fi
8803 if test -z "$haveit"; then
8804 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008805
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806 acl_save_prefix="$prefix"
8807 prefix="$acl_final_prefix"
8808 acl_save_exec_prefix="$exec_prefix"
8809 exec_prefix="$acl_final_exec_prefix"
8810 eval x=\"$x\"
8811 exec_prefix="$acl_save_exec_prefix"
8812 prefix="$acl_save_prefix"
8813
8814 if test "X$x" = "X-I$additional_includedir"; then
8815 haveit=yes
8816 break
8817 fi
8818 done
8819 if test -z "$haveit"; then
8820 if test -d "$additional_includedir"; then
8821 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8822 fi
8823 fi
8824 fi
8825 fi
8826 fi
8827 if test -n "$found_la"; then
8828 save_libdir="$libdir"
8829 case "$found_la" in
8830 */* | *\\*) . "$found_la" ;;
8831 *) . "./$found_la" ;;
8832 esac
8833 libdir="$save_libdir"
8834 for dep in $dependency_libs; do
8835 case "$dep" in
8836 -L*)
8837 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8838 if test "X$additional_libdir" != "X/usr/lib"; then
8839 haveit=
8840 if test "X$additional_libdir" = "X/usr/local/lib"; then
8841 if test -n "$GCC"; then
8842 case $host_os in
8843 linux*) haveit=yes;;
8844 esac
8845 fi
8846 fi
8847 if test -z "$haveit"; then
8848 haveit=
8849 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008850
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008851 acl_save_prefix="$prefix"
8852 prefix="$acl_final_prefix"
8853 acl_save_exec_prefix="$exec_prefix"
8854 exec_prefix="$acl_final_exec_prefix"
8855 eval x=\"$x\"
8856 exec_prefix="$acl_save_exec_prefix"
8857 prefix="$acl_save_prefix"
8858
8859 if test "X$x" = "X-L$additional_libdir"; then
8860 haveit=yes
8861 break
8862 fi
8863 done
8864 if test -z "$haveit"; then
8865 if test -d "$additional_libdir"; then
8866 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8867 fi
8868 fi
8869 haveit=
8870 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008872 acl_save_prefix="$prefix"
8873 prefix="$acl_final_prefix"
8874 acl_save_exec_prefix="$exec_prefix"
8875 exec_prefix="$acl_final_exec_prefix"
8876 eval x=\"$x\"
8877 exec_prefix="$acl_save_exec_prefix"
8878 prefix="$acl_save_prefix"
8879
8880 if test "X$x" = "X-L$additional_libdir"; then
8881 haveit=yes
8882 break
8883 fi
8884 done
8885 if test -z "$haveit"; then
8886 if test -d "$additional_libdir"; then
8887 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8888 fi
8889 fi
8890 fi
8891 fi
8892 ;;
8893 -R*)
8894 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8895 if test "$enable_rpath" != no; then
8896 haveit=
8897 for x in $rpathdirs; do
8898 if test "X$x" = "X$dir"; then
8899 haveit=yes
8900 break
8901 fi
8902 done
8903 if test -z "$haveit"; then
8904 rpathdirs="$rpathdirs $dir"
8905 fi
8906 haveit=
8907 for x in $ltrpathdirs; do
8908 if test "X$x" = "X$dir"; then
8909 haveit=yes
8910 break
8911 fi
8912 done
8913 if test -z "$haveit"; then
8914 ltrpathdirs="$ltrpathdirs $dir"
8915 fi
8916 fi
8917 ;;
8918 -l*)
8919 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8920 ;;
8921 *.la)
8922 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8923 ;;
8924 *)
8925 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8927 ;;
8928 esac
8929 done
8930 fi
8931 else
8932 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8934 fi
8935 fi
8936 fi
8937 done
8938 done
8939 if test "X$rpathdirs" != "X"; then
8940 if test -n "$hardcode_libdir_separator"; then
8941 alldirs=
8942 for found_dir in $rpathdirs; do
8943 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8944 done
8945 acl_save_libdir="$libdir"
8946 libdir="$alldirs"
8947 eval flag=\"$hardcode_libdir_flag_spec\"
8948 libdir="$acl_save_libdir"
8949 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8950 else
8951 for found_dir in $rpathdirs; do
8952 acl_save_libdir="$libdir"
8953 libdir="$found_dir"
8954 eval flag=\"$hardcode_libdir_flag_spec\"
8955 libdir="$acl_save_libdir"
8956 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8957 done
8958 fi
8959 fi
8960 if test "X$ltrpathdirs" != "X"; then
8961 for found_dir in $ltrpathdirs; do
8962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8963 done
8964 fi
8965
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008966
8967
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008969
8970
8971
8972
Theodore Ts'oe1052142006-10-21 21:46:47 -04008973 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8974echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008975if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008978 cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
8984$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008985typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008986int
8987main ()
8988{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008989if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008990 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008991if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008992 return 0;
8993 ;
8994 return 0;
8995}
8996_ACEOF
8997rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008998if { (ac_try="$ac_compile"
8999case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002esac
9003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009014 ac_cv_type_ptrdiff_t=yes
9015else
9016 echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
Theodore Ts'oe1052142006-10-21 21:46:47 -04009019 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009020fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009021
9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009023fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009024{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9025echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009026if test $ac_cv_type_ptrdiff_t = yes; then
9027 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009029
9030cat >>confdefs.h <<\_ACEOF
9031#define ptrdiff_t long
9032_ACEOF
9033
9034
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009035fi
9036
9037
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009038
9039
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009040
9041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009042
9043
9044
9045
9046
9047for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009048stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009049do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009056fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009057ac_res=`eval echo '${'$as_ac_Header'}'`
9058 { echo "$as_me:$LINENO: result: $ac_res" >&5
9059echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009060else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009061 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009064cat >conftest.$ac_ext <<_ACEOF
9065/* confdefs.h. */
9066_ACEOF
9067cat confdefs.h >>conftest.$ac_ext
9068cat >>conftest.$ac_ext <<_ACEOF
9069/* end confdefs.h. */
9070$ac_includes_default
9071#include <$ac_header>
9072_ACEOF
9073rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009074if { (ac_try="$ac_compile"
9075case "(($ac_try" in
9076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9078esac
9079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9080 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009086 (exit $ac_status); } && {
9087 test -z "$ac_c_werror_flag" ||
9088 test ! -s conftest.err
9089 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009090 ac_header_compiler=yes
9091else
9092 echo "$as_me: failed program was:" >&5
9093sed 's/^/| /' conftest.$ac_ext >&5
9094
Theodore Ts'oe1052142006-10-21 21:46:47 -04009095 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009096fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009097
9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9100echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009101
9102# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009103{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009105cat >conftest.$ac_ext <<_ACEOF
9106/* confdefs.h. */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
9110/* end confdefs.h. */
9111#include <$ac_header>
9112_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009113if { (ac_try="$ac_cpp conftest.$ac_ext"
9114case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9117esac
9118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009120 ac_status=$?
9121 grep -v '^ *+' conftest.er1 >conftest.err
9122 rm -f conftest.er1
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009125 (exit $ac_status); } >/dev/null && {
9126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9128 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009129 ac_header_preproc=yes
9130else
9131 echo "$as_me: failed program was:" >&5
9132sed 's/^/| /' conftest.$ac_ext >&5
9133
9134 ac_header_preproc=no
9135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009137rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9139echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009140
9141# So? What about this header?
9142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9143 yes:no: )
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9148 ac_header_preproc=yes
9149 ;;
9150 no:yes:* )
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009164 ;;
9165esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009166{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170else
9171 eval "$as_ac_Header=\$ac_header_preproc"
9172fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009173ac_res=`eval echo '${'$as_ac_Header'}'`
9174 { echo "$as_me:$LINENO: result: $ac_res" >&5
9175echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009176
9177fi
9178if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181_ACEOF
9182
9183fi
9184
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009185done
9186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9211mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9212strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9213__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009214do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009216{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009219 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009221 cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h. */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h. */
9227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9229#define $ac_func innocuous_$ac_func
9230
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009231/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009232 which can conflict with char $ac_func (); below.
9233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234 <limits.h> exists even on freestanding compilers. */
9235
9236#ifdef __STDC__
9237# include <limits.h>
9238#else
9239# include <assert.h>
9240#endif
9241
9242#undef $ac_func
9243
Theodore Ts'oe1052142006-10-21 21:46:47 -04009244/* Override any GCC internal prototype to avoid an error.
9245 Use char because int might match the return type of a GCC
9246 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009247#ifdef __cplusplus
9248extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009249#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009250char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009251/* The GNU C library defines this for functions which it implements
9252 to always fail with ENOSYS. Some functions are actually named
9253 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009254#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009255choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009256#endif
9257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258int
9259main ()
9260{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009261return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009262 ;
9263 return 0;
9264}
9265_ACEOF
9266rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009267if { (ac_try="$ac_link"
9268case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271esac
9272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest$ac_exeext &&
9283 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009284 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286 echo "$as_me: failed program was:" >&5
9287sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009288
Theodore Ts'oe1052142006-10-21 21:46:47 -04009289 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009290fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009291
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293 conftest$ac_exeext conftest.$ac_ext
9294fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009295ac_res=`eval echo '${'$as_ac_var'}'`
9296 { echo "$as_me:$LINENO: result: $ac_res" >&5
9297echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298if test `eval echo '${'$as_ac_var'}'` = yes; then
9299 cat >>confdefs.h <<_ACEOF
9300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9301_ACEOF
9302
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009303fi
9304done
9305
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009307
Theodore Ts'oe1052142006-10-21 21:46:47 -04009308 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9309echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009310if test "${ac_cv_have_decl__snprintf+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9312else
9313 cat >conftest.$ac_ext <<_ACEOF
9314/* confdefs.h. */
9315_ACEOF
9316cat confdefs.h >>conftest.$ac_ext
9317cat >>conftest.$ac_ext <<_ACEOF
9318/* end confdefs.h. */
9319#include <stdio.h>
9320int
9321main ()
9322{
9323
9324#ifndef _snprintf
9325 char *p = (char *) _snprintf;
9326#endif
9327
9328 ;
9329 return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009333if { (ac_try="$ac_compile"
9334case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337esac
9338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009345 (exit $ac_status); } && {
9346 test -z "$ac_c_werror_flag" ||
9347 test ! -s conftest.err
9348 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009349 ac_cv_have_decl__snprintf=yes
9350else
9351 echo "$as_me: failed program was:" >&5
9352sed 's/^/| /' conftest.$ac_ext >&5
9353
Theodore Ts'oe1052142006-10-21 21:46:47 -04009354 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009356
9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009358fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009359{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9360echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009361 if test $ac_cv_have_decl__snprintf = yes; then
9362 gt_value=1
9363 else
9364 gt_value=0
9365 fi
9366
9367cat >>confdefs.h <<_ACEOF
9368#define HAVE_DECL__SNPRINTF $gt_value
9369_ACEOF
9370
9371
9372
Theodore Ts'oe1052142006-10-21 21:46:47 -04009373 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9374echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009375if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378 cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h. */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h. */
9384#include <stdio.h>
9385int
9386main ()
9387{
9388
9389#ifndef _snwprintf
9390 char *p = (char *) _snwprintf;
9391#endif
9392
9393 ;
9394 return 0;
9395}
9396_ACEOF
9397rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009398if { (ac_try="$ac_compile"
9399case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009414 ac_cv_have_decl__snwprintf=yes
9415else
9416 echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
Theodore Ts'oe1052142006-10-21 21:46:47 -04009419 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009420fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009421
9422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009424{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9425echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009426 if test $ac_cv_have_decl__snwprintf = yes; then
9427 gt_value=1
9428 else
9429 gt_value=0
9430 fi
9431
9432cat >>confdefs.h <<_ACEOF
9433#define HAVE_DECL__SNWPRINTF $gt_value
9434_ACEOF
9435
9436
9437
9438
Theodore Ts'oe1052142006-10-21 21:46:47 -04009439 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9440echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444 cat >conftest.$ac_ext <<_ACEOF
9445/* confdefs.h. */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
9449/* end confdefs.h. */
9450#include <stdio.h>
9451int
9452main ()
9453{
9454
9455#ifndef feof_unlocked
9456 char *p = (char *) feof_unlocked;
9457#endif
9458
9459 ;
9460 return 0;
9461}
9462_ACEOF
9463rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009464if { (ac_try="$ac_compile"
9465case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9468esac
9469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009476 (exit $ac_status); } && {
9477 test -z "$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9479 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009480 ac_cv_have_decl_feof_unlocked=yes
9481else
9482 echo "$as_me: failed program was:" >&5
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
Theodore Ts'oe1052142006-10-21 21:46:47 -04009485 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009487
9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009489fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009490{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9491echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009492 if test $ac_cv_have_decl_feof_unlocked = yes; then
9493 gt_value=1
9494 else
9495 gt_value=0
9496 fi
9497
9498cat >>confdefs.h <<_ACEOF
9499#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9500_ACEOF
9501
9502
9503
Theodore Ts'oe1052142006-10-21 21:46:47 -04009504 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9505echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515#include <stdio.h>
9516int
9517main ()
9518{
9519
9520#ifndef fgets_unlocked
9521 char *p = (char *) fgets_unlocked;
9522#endif
9523
9524 ;
9525 return 0;
9526}
9527_ACEOF
9528rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009529if { (ac_try="$ac_compile"
9530case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533esac
9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545 ac_cv_have_decl_fgets_unlocked=yes
9546else
9547 echo "$as_me: failed program was:" >&5
9548sed 's/^/| /' conftest.$ac_ext >&5
9549
Theodore Ts'oe1052142006-10-21 21:46:47 -04009550 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009552
9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009554fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009555{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9556echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009557 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9558 gt_value=1
9559 else
9560 gt_value=0
9561 fi
9562
9563cat >>confdefs.h <<_ACEOF
9564#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9565_ACEOF
9566
9567
9568
Theodore Ts'oe1052142006-10-21 21:46:47 -04009569 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9570echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009571if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574 cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580#include <stdio.h>
9581int
9582main ()
9583{
9584
9585#ifndef getc_unlocked
9586 char *p = (char *) getc_unlocked;
9587#endif
9588
9589 ;
9590 return 0;
9591}
9592_ACEOF
9593rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009594if { (ac_try="$ac_compile"
9595case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598esac
9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009610 ac_cv_have_decl_getc_unlocked=yes
9611else
9612 echo "$as_me: failed program was:" >&5
9613sed 's/^/| /' conftest.$ac_ext >&5
9614
Theodore Ts'oe1052142006-10-21 21:46:47 -04009615 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009616fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009617
9618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009619fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009620{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9621echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622 if test $ac_cv_have_decl_getc_unlocked = yes; then
9623 gt_value=1
9624 else
9625 gt_value=0
9626 fi
9627
9628cat >>confdefs.h <<_ACEOF
9629#define HAVE_DECL_GETC_UNLOCKED $gt_value
9630_ACEOF
9631
9632
9633
9634 case $gt_cv_func_printf_posix in
9635 *yes) HAVE_POSIX_PRINTF=1 ;;
9636 *) HAVE_POSIX_PRINTF=0 ;;
9637 esac
9638
9639 if test "$ac_cv_func_asprintf" = yes; then
9640 HAVE_ASPRINTF=1
9641 else
9642 HAVE_ASPRINTF=0
9643 fi
9644
9645 if test "$ac_cv_func_snprintf" = yes; then
9646 HAVE_SNPRINTF=1
9647 else
9648 HAVE_SNPRINTF=0
9649 fi
9650
9651 if test "$ac_cv_func_wprintf" = yes; then
9652 HAVE_WPRINTF=1
9653 else
9654 HAVE_WPRINTF=0
9655 fi
9656
9657
9658
9659
9660
9661
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009662
9663 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009664
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009665 for element in $INCICONV; do
9666 haveit=
9667 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009668
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009669 acl_save_prefix="$prefix"
9670 prefix="$acl_final_prefix"
9671 acl_save_exec_prefix="$exec_prefix"
9672 exec_prefix="$acl_final_exec_prefix"
9673 eval x=\"$x\"
9674 exec_prefix="$acl_save_exec_prefix"
9675 prefix="$acl_save_prefix"
9676
9677 if test "X$x" = "X$element"; then
9678 haveit=yes
9679 break
9680 fi
9681 done
9682 if test -z "$haveit"; then
9683 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9684 fi
9685 done
9686
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009687
Theodore Ts'oe1052142006-10-21 21:46:47 -04009688 { echo "$as_me:$LINENO: checking for iconv" >&5
9689echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009690if test "${am_cv_func_iconv+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009692else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009693
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009694 am_cv_func_iconv="no, consider installing GNU libiconv"
9695 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009696 cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009702#include <stdlib.h>
9703#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009704int
9705main ()
9706{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009707iconv_t cd = iconv_open("","");
9708 iconv(cd,NULL,NULL,NULL,NULL);
9709 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009710 ;
9711 return 0;
9712}
9713_ACEOF
9714rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009715if { (ac_try="$ac_link"
9716case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719esac
9720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009722 ac_status=$?
9723 grep -v '^ *+' conftest.er1 >conftest.err
9724 rm -f conftest.er1
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009727 (exit $ac_status); } && {
9728 test -z "$ac_c_werror_flag" ||
9729 test ! -s conftest.err
9730 } && test -s conftest$ac_exeext &&
9731 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009732 am_cv_func_iconv=yes
9733else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009734 echo "$as_me: failed program was:" >&5
9735sed 's/^/| /' conftest.$ac_ext >&5
9736
Theodore Ts'oe1052142006-10-21 21:46:47 -04009737
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009739
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009741 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009742 if test "$am_cv_func_iconv" != yes; then
9743 am_save_LIBS="$LIBS"
9744 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009745 cat >conftest.$ac_ext <<_ACEOF
9746/* confdefs.h. */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
9750/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009751#include <stdlib.h>
9752#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009753int
9754main ()
9755{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009756iconv_t cd = iconv_open("","");
9757 iconv(cd,NULL,NULL,NULL,NULL);
9758 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009759 ;
9760 return 0;
9761}
9762_ACEOF
9763rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009764if { (ac_try="$ac_link"
9765case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9768esac
9769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009776 (exit $ac_status); } && {
9777 test -z "$ac_c_werror_flag" ||
9778 test ! -s conftest.err
9779 } && test -s conftest$ac_exeext &&
9780 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009781 am_cv_lib_iconv=yes
9782 am_cv_func_iconv=yes
9783else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009784 echo "$as_me: failed program was:" >&5
9785sed 's/^/| /' conftest.$ac_ext >&5
9786
Theodore Ts'oe1052142006-10-21 21:46:47 -04009787
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009788fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009789
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009792 LIBS="$am_save_LIBS"
9793 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009795fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009796{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9797echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009798 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009799
9800cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009801#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009802_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009803
9804 fi
9805 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009806 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9807echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9808 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9809echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009810 else
9811 CPPFLAGS="$am_save_CPPFLAGS"
9812 LIBICONV=
9813 LTLIBICONV=
9814 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009815
9816
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009817
9818 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009819 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9820echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009821 if test "${am_cv_proto_iconv+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009823else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009824
9825 cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009831
9832#include <stdlib.h>
9833#include <iconv.h>
9834extern
9835#ifdef __cplusplus
9836"C"
9837#endif
9838#if defined(__STDC__) || defined(__cplusplus)
9839size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9840#else
9841size_t iconv();
9842#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009843
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009844int
9845main ()
9846{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009847
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848 ;
9849 return 0;
9850}
9851_ACEOF
9852rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009853if { (ac_try="$ac_compile"
9854case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009869 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009871 echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
9873
Theodore Ts'oe1052142006-10-21 21:46:47 -04009874 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009875fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009876
9877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009878 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 +00009879fi
9880
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009881 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009882 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883 }$am_cv_proto_iconv" >&5
9884echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009885 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009886
9887cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009888#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009889_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009890
9891 fi
9892
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009893
Theodore Ts'oe1052142006-10-21 21:46:47 -04009894 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9895echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009896if test "${am_cv_langinfo_codeset+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009898else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009899 cat >conftest.$ac_ext <<_ACEOF
9900/* confdefs.h. */
9901_ACEOF
9902cat confdefs.h >>conftest.$ac_ext
9903cat >>conftest.$ac_ext <<_ACEOF
9904/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009905#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906int
9907main ()
9908{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009909char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009910 ;
9911 return 0;
9912}
9913_ACEOF
9914rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009915if { (ac_try="$ac_link"
9916case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919esac
9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest$ac_exeext &&
9931 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009932 am_cv_langinfo_codeset=yes
9933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934 echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009936
Theodore Ts'oe1052142006-10-21 21:46:47 -04009937 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009938fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009939
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941 conftest$ac_exeext conftest.$ac_ext
9942
9943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009944{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9945echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009946 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947
9948cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009949#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009950_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009951
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009952 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009953
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009954 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009955
Theodore Ts'oe1052142006-10-21 21:46:47 -04009956 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9957echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961 cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h. */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009967#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009968int
9969main ()
9970{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009971return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972 ;
9973 return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009977if { (ac_try="$ac_link"
9978case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981esac
9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest$ac_exeext &&
9993 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009994 am_cv_val_LC_MESSAGES=yes
9995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009996 echo "$as_me: failed program was:" >&5
9997sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009998
Theodore Ts'oe1052142006-10-21 21:46:47 -04009999 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010001
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003 conftest$ac_exeext conftest.$ac_ext
10004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010005{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10006echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010007 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010008
10009cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010010#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010011_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010012
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010013 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010014
10015 fi
10016
10017 for ac_prog in bison
10018do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010019 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010020set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023if test "${ac_cv_prog_INTLBISON+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010025else
10026 if test -n "$INTLBISON"; then
10027 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010035 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 -050010036 ac_cv_prog_INTLBISON="$ac_prog"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10039 fi
10040done
10041done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010042IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010044fi
10045fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010046INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010047if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010048 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10049echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010050else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010051 { echo "$as_me:$LINENO: result: no" >&5
10052echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010053fi
10054
Theodore Ts'oe1052142006-10-21 21:46:47 -040010055
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010056 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010057done
10058
10059 if test -z "$INTLBISON"; then
10060 ac_verc_fail=yes
10061 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010062 { echo "$as_me:$LINENO: checking version of bison" >&5
10063echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010064 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10065 case $ac_prog_version in
10066 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10067 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10068 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10069 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10070 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010071 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10072echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010073 fi
10074 if test $ac_verc_fail = yes; then
10075 INTLBISON=:
10076 fi
10077
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010078
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'ob0cacab2004-11-30 19:00:19 -050010083
10084
10085
10086
10087
10088
10089
10090
10091
10092
Theodore Ts'oe1052142006-10-21 21:46:47 -040010093 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10094echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10095 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010096if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010097 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010098else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010099 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010100fi
10101
10102 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10103echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010104
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010106
10107
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010108 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010109 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010110
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010111 LIBINTL=
10112 LTLIBINTL=
10113 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010114
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010115 if test "$USE_NLS" = "yes"; then
10116 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010117
Theodore Ts'oe1052142006-10-21 21:46:47 -040010118 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10119echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010120
Theodore Ts'oe1052142006-10-21 21:46:47 -040010121# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010122if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010123 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010124else
10125 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010126fi
10127
10128 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10129echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010130
10131 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010133
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010134
10135
10136
10137
10138
Theodore Ts'oe1052142006-10-21 21:46:47 -040010139 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10140echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010141if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010144 cat >conftest.$ac_ext <<_ACEOF
10145/* confdefs.h. */
10146_ACEOF
10147cat confdefs.h >>conftest.$ac_ext
10148cat >>conftest.$ac_ext <<_ACEOF
10149/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010150#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010151extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010152extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010153int
10154main ()
10155{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010156bindtextdomain ("", "");
10157return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010158 ;
10159 return 0;
10160}
10161_ACEOF
10162rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010163if { (ac_try="$ac_link"
10164case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10167esac
10168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext &&
10179 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010180 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010181else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010182 echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010184
Theodore Ts'oe1052142006-10-21 21:46:47 -040010185 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010186fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010187
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010189 conftest$ac_exeext conftest.$ac_ext
10190fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010191{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10192echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010193
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010194 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010195
10196
10197
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010198 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010199
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010200 acl_save_prefix="$prefix"
10201 prefix="$acl_final_prefix"
10202 acl_save_exec_prefix="$exec_prefix"
10203 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010205 eval additional_includedir=\"$includedir\"
10206 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010207
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010208 exec_prefix="$acl_save_exec_prefix"
10209 prefix="$acl_save_prefix"
10210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010211
Theodore Ts'oe1052142006-10-21 21:46:47 -040010212# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010213if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010214 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010215 if test "X$withval" = "Xno"; then
10216 use_additional=no
10217 else
10218 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010219
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010220 acl_save_prefix="$prefix"
10221 prefix="$acl_final_prefix"
10222 acl_save_exec_prefix="$exec_prefix"
10223 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010224
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010225 eval additional_includedir=\"$includedir\"
10226 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010227
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010228 exec_prefix="$acl_save_exec_prefix"
10229 prefix="$acl_save_prefix"
10230
10231 else
10232 additional_includedir="$withval/include"
10233 additional_libdir="$withval/lib"
10234 fi
10235 fi
10236
Theodore Ts'oe1052142006-10-21 21:46:47 -040010237fi
10238
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010239 LIBINTL=
10240 LTLIBINTL=
10241 INCINTL=
10242 rpathdirs=
10243 ltrpathdirs=
10244 names_already_handled=
10245 names_next_round='intl '
10246 while test -n "$names_next_round"; do
10247 names_this_round="$names_next_round"
10248 names_next_round=
10249 for name in $names_this_round; do
10250 already_handled=
10251 for n in $names_already_handled; do
10252 if test "$n" = "$name"; then
10253 already_handled=yes
10254 break
10255 fi
10256 done
10257 if test -z "$already_handled"; then
10258 names_already_handled="$names_already_handled $name"
10259 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10260 eval value=\"\$HAVE_LIB$uppername\"
10261 if test -n "$value"; then
10262 if test "$value" = yes; then
10263 eval value=\"\$LIB$uppername\"
10264 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10265 eval value=\"\$LTLIB$uppername\"
10266 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10267 else
10268 :
10269 fi
10270 else
10271 found_dir=
10272 found_la=
10273 found_so=
10274 found_a=
10275 if test $use_additional = yes; then
10276 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10277 found_dir="$additional_libdir"
10278 found_so="$additional_libdir/lib$name.$shlibext"
10279 if test -f "$additional_libdir/lib$name.la"; then
10280 found_la="$additional_libdir/lib$name.la"
10281 fi
10282 else
10283 if test -f "$additional_libdir/lib$name.$libext"; then
10284 found_dir="$additional_libdir"
10285 found_a="$additional_libdir/lib$name.$libext"
10286 if test -f "$additional_libdir/lib$name.la"; then
10287 found_la="$additional_libdir/lib$name.la"
10288 fi
10289 fi
10290 fi
10291 fi
10292 if test "X$found_dir" = "X"; then
10293 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010294
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010295 acl_save_prefix="$prefix"
10296 prefix="$acl_final_prefix"
10297 acl_save_exec_prefix="$exec_prefix"
10298 exec_prefix="$acl_final_exec_prefix"
10299 eval x=\"$x\"
10300 exec_prefix="$acl_save_exec_prefix"
10301 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010302
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010303 case "$x" in
10304 -L*)
10305 dir=`echo "X$x" | sed -e 's/^X-L//'`
10306 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10307 found_dir="$dir"
10308 found_so="$dir/lib$name.$shlibext"
10309 if test -f "$dir/lib$name.la"; then
10310 found_la="$dir/lib$name.la"
10311 fi
10312 else
10313 if test -f "$dir/lib$name.$libext"; then
10314 found_dir="$dir"
10315 found_a="$dir/lib$name.$libext"
10316 if test -f "$dir/lib$name.la"; then
10317 found_la="$dir/lib$name.la"
10318 fi
10319 fi
10320 fi
10321 ;;
10322 esac
10323 if test "X$found_dir" != "X"; then
10324 break
10325 fi
10326 done
10327 fi
10328 if test "X$found_dir" != "X"; then
10329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10330 if test "X$found_so" != "X"; then
10331 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10332 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10333 else
10334 haveit=
10335 for x in $ltrpathdirs; do
10336 if test "X$x" = "X$found_dir"; then
10337 haveit=yes
10338 break
10339 fi
10340 done
10341 if test -z "$haveit"; then
10342 ltrpathdirs="$ltrpathdirs $found_dir"
10343 fi
10344 if test "$hardcode_direct" = yes; then
10345 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10346 else
10347 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10348 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10349 haveit=
10350 for x in $rpathdirs; do
10351 if test "X$x" = "X$found_dir"; then
10352 haveit=yes
10353 break
10354 fi
10355 done
10356 if test -z "$haveit"; then
10357 rpathdirs="$rpathdirs $found_dir"
10358 fi
10359 else
10360 haveit=
10361 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010362
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010363 acl_save_prefix="$prefix"
10364 prefix="$acl_final_prefix"
10365 acl_save_exec_prefix="$exec_prefix"
10366 exec_prefix="$acl_final_exec_prefix"
10367 eval x=\"$x\"
10368 exec_prefix="$acl_save_exec_prefix"
10369 prefix="$acl_save_prefix"
10370
10371 if test "X$x" = "X-L$found_dir"; then
10372 haveit=yes
10373 break
10374 fi
10375 done
10376 if test -z "$haveit"; then
10377 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10378 fi
10379 if test "$hardcode_minus_L" != no; then
10380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10381 else
10382 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10383 fi
10384 fi
10385 fi
10386 fi
10387 else
10388 if test "X$found_a" != "X"; then
10389 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10390 else
10391 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10392 fi
10393 fi
10394 additional_includedir=
10395 case "$found_dir" in
10396 */lib | */lib/)
10397 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10398 additional_includedir="$basedir/include"
10399 ;;
10400 esac
10401 if test "X$additional_includedir" != "X"; then
10402 if test "X$additional_includedir" != "X/usr/include"; then
10403 haveit=
10404 if test "X$additional_includedir" = "X/usr/local/include"; then
10405 if test -n "$GCC"; then
10406 case $host_os in
10407 linux*) haveit=yes;;
10408 esac
10409 fi
10410 fi
10411 if test -z "$haveit"; then
10412 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010413
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010414 acl_save_prefix="$prefix"
10415 prefix="$acl_final_prefix"
10416 acl_save_exec_prefix="$exec_prefix"
10417 exec_prefix="$acl_final_exec_prefix"
10418 eval x=\"$x\"
10419 exec_prefix="$acl_save_exec_prefix"
10420 prefix="$acl_save_prefix"
10421
10422 if test "X$x" = "X-I$additional_includedir"; then
10423 haveit=yes
10424 break
10425 fi
10426 done
10427 if test -z "$haveit"; then
10428 if test -d "$additional_includedir"; then
10429 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10430 fi
10431 fi
10432 fi
10433 fi
10434 fi
10435 if test -n "$found_la"; then
10436 save_libdir="$libdir"
10437 case "$found_la" in
10438 */* | *\\*) . "$found_la" ;;
10439 *) . "./$found_la" ;;
10440 esac
10441 libdir="$save_libdir"
10442 for dep in $dependency_libs; do
10443 case "$dep" in
10444 -L*)
10445 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10446 if test "X$additional_libdir" != "X/usr/lib"; then
10447 haveit=
10448 if test "X$additional_libdir" = "X/usr/local/lib"; then
10449 if test -n "$GCC"; then
10450 case $host_os in
10451 linux*) haveit=yes;;
10452 esac
10453 fi
10454 fi
10455 if test -z "$haveit"; then
10456 haveit=
10457 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010458
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010459 acl_save_prefix="$prefix"
10460 prefix="$acl_final_prefix"
10461 acl_save_exec_prefix="$exec_prefix"
10462 exec_prefix="$acl_final_exec_prefix"
10463 eval x=\"$x\"
10464 exec_prefix="$acl_save_exec_prefix"
10465 prefix="$acl_save_prefix"
10466
10467 if test "X$x" = "X-L$additional_libdir"; then
10468 haveit=yes
10469 break
10470 fi
10471 done
10472 if test -z "$haveit"; then
10473 if test -d "$additional_libdir"; then
10474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10475 fi
10476 fi
10477 haveit=
10478 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010479
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010480 acl_save_prefix="$prefix"
10481 prefix="$acl_final_prefix"
10482 acl_save_exec_prefix="$exec_prefix"
10483 exec_prefix="$acl_final_exec_prefix"
10484 eval x=\"$x\"
10485 exec_prefix="$acl_save_exec_prefix"
10486 prefix="$acl_save_prefix"
10487
10488 if test "X$x" = "X-L$additional_libdir"; then
10489 haveit=yes
10490 break
10491 fi
10492 done
10493 if test -z "$haveit"; then
10494 if test -d "$additional_libdir"; then
10495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10496 fi
10497 fi
10498 fi
10499 fi
10500 ;;
10501 -R*)
10502 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10503 if test "$enable_rpath" != no; then
10504 haveit=
10505 for x in $rpathdirs; do
10506 if test "X$x" = "X$dir"; then
10507 haveit=yes
10508 break
10509 fi
10510 done
10511 if test -z "$haveit"; then
10512 rpathdirs="$rpathdirs $dir"
10513 fi
10514 haveit=
10515 for x in $ltrpathdirs; do
10516 if test "X$x" = "X$dir"; then
10517 haveit=yes
10518 break
10519 fi
10520 done
10521 if test -z "$haveit"; then
10522 ltrpathdirs="$ltrpathdirs $dir"
10523 fi
10524 fi
10525 ;;
10526 -l*)
10527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10528 ;;
10529 *.la)
10530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10531 ;;
10532 *)
10533 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10535 ;;
10536 esac
10537 done
10538 fi
10539 else
10540 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10542 fi
10543 fi
10544 fi
10545 done
10546 done
10547 if test "X$rpathdirs" != "X"; then
10548 if test -n "$hardcode_libdir_separator"; then
10549 alldirs=
10550 for found_dir in $rpathdirs; do
10551 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10552 done
10553 acl_save_libdir="$libdir"
10554 libdir="$alldirs"
10555 eval flag=\"$hardcode_libdir_flag_spec\"
10556 libdir="$acl_save_libdir"
10557 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10558 else
10559 for found_dir in $rpathdirs; do
10560 acl_save_libdir="$libdir"
10561 libdir="$found_dir"
10562 eval flag=\"$hardcode_libdir_flag_spec\"
10563 libdir="$acl_save_libdir"
10564 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10565 done
10566 fi
10567 fi
10568 if test "X$ltrpathdirs" != "X"; then
10569 for found_dir in $ltrpathdirs; do
10570 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10571 done
10572 fi
10573
Theodore Ts'oe1052142006-10-21 21:46:47 -040010574 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10575echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010576if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010578else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010579 gt_save_CPPFLAGS="$CPPFLAGS"
10580 CPPFLAGS="$CPPFLAGS $INCINTL"
10581 gt_save_LIBS="$LIBS"
10582 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010583 cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010589#include <libintl.h>
10590extern int _nl_msg_cat_cntr;
10591extern
10592#ifdef __cplusplus
10593"C"
10594#endif
10595const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010596int
10597main ()
10598{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010599bindtextdomain ("", "");
10600return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010601 ;
10602 return 0;
10603}
10604_ACEOF
10605rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010606if { (ac_try="$ac_link"
10607case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610esac
10611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest$ac_exeext &&
10622 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010623 gt_cv_func_gnugettext1_libintl=yes
10624else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010625 echo "$as_me: failed program was:" >&5
10626sed 's/^/| /' conftest.$ac_ext >&5
10627
Theodore Ts'oe1052142006-10-21 21:46:47 -040010628 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010630
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010633 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10634 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010635 cat >conftest.$ac_ext <<_ACEOF
10636/* confdefs.h. */
10637_ACEOF
10638cat confdefs.h >>conftest.$ac_ext
10639cat >>conftest.$ac_ext <<_ACEOF
10640/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010641#include <libintl.h>
10642extern int _nl_msg_cat_cntr;
10643extern
10644#ifdef __cplusplus
10645"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010646#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010647const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010648int
10649main ()
10650{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010651bindtextdomain ("", "");
10652return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010653 ;
10654 return 0;
10655}
10656_ACEOF
10657rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010658if { (ac_try="$ac_link"
10659case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662esac
10663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010665 ac_status=$?
10666 grep -v '^ *+' conftest.er1 >conftest.err
10667 rm -f conftest.er1
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010670 (exit $ac_status); } && {
10671 test -z "$ac_c_werror_flag" ||
10672 test ! -s conftest.err
10673 } && test -s conftest$ac_exeext &&
10674 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010675 LIBINTL="$LIBINTL $LIBICONV"
10676 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10677 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010679else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
Theodore Ts'oe1052142006-10-21 21:46:47 -040010683
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010684fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010685
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010687 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010688 fi
10689 CPPFLAGS="$gt_save_CPPFLAGS"
10690 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010691fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010692{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10693echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010694 fi
10695
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010696 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10697 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698 && test "$PACKAGE" != gettext-runtime \
10699 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010700 gt_use_preinstalled_gnugettext=yes
10701 else
10702 LIBINTL=
10703 LTLIBINTL=
10704 INCINTL=
10705 fi
10706
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010708 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10709 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010710 fi
10711 fi
10712
10713 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010714 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010715 USE_INCLUDED_LIBINTL=yes
10716 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10717 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10718 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010719 fi
10720
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010721 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10722 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10723 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010724 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010725
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010726
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010727 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10728 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010729
10730cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010731#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010732_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010733
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010734 else
10735 USE_NLS=no
10736 fi
10737 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010738
Theodore Ts'oe1052142006-10-21 21:46:47 -040010739 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10740echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10741 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10742echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010744 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10745echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010746 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10747 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10748 gt_source="external libintl"
10749 else
10750 gt_source="libc"
10751 fi
10752 else
10753 gt_source="included intl directory"
10754 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010755 { echo "$as_me:$LINENO: result: $gt_source" >&5
10756echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757 fi
10758
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010759 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010760
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10762 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010763 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10764echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10765 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10766echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010767
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010768 for element in $INCINTL; do
10769 haveit=
10770 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010771
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010772 acl_save_prefix="$prefix"
10773 prefix="$acl_final_prefix"
10774 acl_save_exec_prefix="$exec_prefix"
10775 exec_prefix="$acl_final_exec_prefix"
10776 eval x=\"$x\"
10777 exec_prefix="$acl_save_exec_prefix"
10778 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010779
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010780 if test "X$x" = "X$element"; then
10781 haveit=yes
10782 break
10783 fi
10784 done
10785 if test -z "$haveit"; then
10786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10787 fi
10788 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010789
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010790 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010791
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793cat >>confdefs.h <<\_ACEOF
10794#define HAVE_GETTEXT 1
10795_ACEOF
10796
10797
10798cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010799#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010800_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010801
10802 fi
10803
10804 POSUB=po
10805 fi
10806
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010807
10808 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010809 BUILD_INCLUDED_LIBINTL=yes
10810 fi
10811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010812
10813
10814
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010815
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010816 nls_cv_header_intl=
10817 nls_cv_header_libgt=
10818
10819 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010820
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010821
10822 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010823
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824
10825 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826
10827
10828 if test "$USE_INCLUDED_LIBINTL" = yes; then
10829 INTLOBJS="\$(GETTOBJS)"
10830 fi
10831
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010832
10833 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010834
10835
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010836
10837 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010838
10839
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010840
10841
10842
10843
10844
Theodore Ts'oe1052142006-10-21 21:46:47 -040010845{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10846echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10847set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10848if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010849 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010850else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010851 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010852SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010853all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010854 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010856# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010857case `${MAKE-make} -f conftest.make 2>/dev/null` in
10858 *@@@%%%=?*=@@@%%%*)
10859 eval ac_cv_prog_make_${ac_make}_set=yes;;
10860 *)
10861 eval ac_cv_prog_make_${ac_make}_set=no;;
10862esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010864fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010865if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10866 { echo "$as_me:$LINENO: result: yes" >&5
10867echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010868 SET_MAKE=
10869else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010870 { echo "$as_me:$LINENO: result: no" >&5
10871echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010872 SET_MAKE="MAKE=${MAKE-make}"
10873fi
10874
10875# Extract the first word of "ln", so it can be a program name with args.
10876set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010879if test "${ac_cv_path_LN+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010881else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010882 case $LN in
10883 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010884 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10885 ;;
10886 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888for as_dir in $PATH
10889do
10890 IFS=$as_save_IFS
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010893 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 -050010894 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 break 2
10897 fi
10898done
10899done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010900IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010901
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010902 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10903 ;;
10904esac
10905fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010906LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010907if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010908 { echo "$as_me:$LINENO: result: $LN" >&5
10909echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010910else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010911 { echo "$as_me:$LINENO: result: no" >&5
10912echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010913fi
10914
Theodore Ts'oe1052142006-10-21 21:46:47 -040010915
10916{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10917echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010918LN_S=$as_ln_s
10919if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010920 { echo "$as_me:$LINENO: result: yes" >&5
10921echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010922else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010923 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10924echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010925fi
10926
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010927# Extract the first word of "mv", so it can be a program name with args.
10928set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010931if test "${ac_cv_path_MV+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010934 case $MV in
10935 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010936 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10937 ;;
10938 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940for as_dir in $PATH
10941do
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010945 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 -050010946 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10949 fi
10950done
10951done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010952IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010953
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010954 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10955 ;;
10956esac
10957fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010958MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010959if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010960 { echo "$as_me:$LINENO: result: $MV" >&5
10961echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010962else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010963 { echo "$as_me:$LINENO: result: no" >&5
10964echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010965fi
10966
Theodore Ts'oe1052142006-10-21 21:46:47 -040010967
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010968# Extract the first word of "cp", so it can be a program name with args.
10969set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010972if test "${ac_cv_path_CP+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010975 case $CP in
10976 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010977 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10978 ;;
10979 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010986 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 -050010987 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10990 fi
10991done
10992done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010993IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010994
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010995 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10996 ;;
10997esac
10998fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010999CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011000if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011001 { echo "$as_me:$LINENO: result: $CP" >&5
11002echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011003else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011004 { echo "$as_me:$LINENO: result: no" >&5
11005echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011006fi
11007
Theodore Ts'oe1052142006-10-21 21:46:47 -040011008
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011009# Extract the first word of "rm", so it can be a program name with args.
11010set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011013if test "${ac_cv_path_RM+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011015else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011016 case $RM in
11017 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011018 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11019 ;;
11020 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022for as_dir in $PATH
11023do
11024 IFS=$as_save_IFS
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011027 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 -050011028 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11030 break 2
11031 fi
11032done
11033done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011034IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011035
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011036 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11037 ;;
11038esac
11039fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011040RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011041if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011042 { echo "$as_me:$LINENO: result: $RM" >&5
11043echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011044else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011045 { echo "$as_me:$LINENO: result: no" >&5
11046echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011047fi
11048
Theodore Ts'oe1052142006-10-21 21:46:47 -040011049
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011050# Extract the first word of "chmod", so it can be a program name with args.
11051set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011054if test "${ac_cv_path_CHMOD+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011056else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011057 case $CHMOD in
11058 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011059 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11060 ;;
11061 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $PATH
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011068 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 -050011069 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11072 fi
11073done
11074done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011075IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011076
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011077 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11078 ;;
11079esac
11080fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011081CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011082if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011083 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11084echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011085else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011086 { echo "$as_me:$LINENO: result: no" >&5
11087echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011088fi
11089
Theodore Ts'oe1052142006-10-21 21:46:47 -040011090
Theodore Ts'o32237012005-01-17 19:13:39 -050011091for ac_prog in gawk mawk nawk awk
11092do
11093 # Extract the first word of "$ac_prog", so it can be a program name with args.
11094set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011097if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011098 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011099else
Theodore Ts'o32237012005-01-17 19:13:39 -050011100 if test -n "$AWK"; then
11101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11102else
11103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011104for as_dir in $PATH
11105do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011109 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 -050011110 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114done
11115done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011116IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011117
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011118fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011119fi
11120AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011121if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011122 { echo "$as_me:$LINENO: result: $AWK" >&5
11123echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011124else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011125 { echo "$as_me:$LINENO: result: no" >&5
11126echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011127fi
11128
Theodore Ts'oe1052142006-10-21 21:46:47 -040011129
Theodore Ts'o32237012005-01-17 19:13:39 -050011130 test -n "$AWK" && break
11131done
11132
Theodore Ts'oe1052142006-10-21 21:46:47 -040011133{ echo "$as_me:$LINENO: checking for egrep" >&5
11134echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11135if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11139 then ac_cv_path_EGREP="$GREP -E"
11140 else
11141 # Extract the first word of "egrep" to use in msg output
11142if test -z "$EGREP"; then
11143set dummy egrep; ac_prog_name=$2
11144if test "${ac_cv_path_EGREP+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146else
11147 ac_path_EGREP_found=false
11148# Loop through the user's path and test for each of PROGNAME-LIST
11149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11151do
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_prog in egrep; do
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011157 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011158 # Check for GNU ac_path_EGREP and select it if it is found.
11159 # Check for GNU $ac_path_EGREP
11160case `"$ac_path_EGREP" --version 2>&1` in
11161*GNU*)
11162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11163*)
11164 ac_count=0
11165 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11166 while :
11167 do
11168 cat "conftest.in" "conftest.in" >"conftest.tmp"
11169 mv "conftest.tmp" "conftest.in"
11170 cp "conftest.in" "conftest.nl"
11171 echo 'EGREP' >> "conftest.nl"
11172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11174 ac_count=`expr $ac_count + 1`
11175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11176 # Best one so far, save it but keep looking for a better one
11177 ac_cv_path_EGREP="$ac_path_EGREP"
11178 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011179 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011180 # 10*(2^10) chars as input seems more than enough
11181 test $ac_count -gt 10 && break
11182 done
11183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11184esac
11185
11186
11187 $ac_path_EGREP_found && break 3
11188 done
11189done
11190
11191done
11192IFS=$as_save_IFS
11193
11194
Theodore Ts'o32237012005-01-17 19:13:39 -050011195fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011196
11197EGREP="$ac_cv_path_EGREP"
11198if test -z "$EGREP"; then
11199 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11200echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11201 { (exit 1); exit 1; }; }
11202fi
11203
11204else
11205 ac_cv_path_EGREP=$EGREP
11206fi
11207
11208
11209 fi
11210fi
11211{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11212echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11213 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011214
11215
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011216# Extract the first word of "sed", so it can be a program name with args.
11217set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011220if test "${ac_cv_path_SED+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011222else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011223 case $SED in
11224 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011225 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11226 ;;
11227 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011234 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 -050011235 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11238 fi
11239done
11240done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011241IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011242
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011243 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11244 ;;
11245esac
11246fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011247SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011248if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011249 { echo "$as_me:$LINENO: result: $SED" >&5
11250echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011251else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011252 { echo "$as_me:$LINENO: result: no" >&5
11253echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011254fi
11255
Theodore Ts'oe1052142006-10-21 21:46:47 -040011256
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011257# Extract the first word of "perl", so it can be a program name with args.
11258set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011261if test "${ac_cv_path_PERL+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011264 case $PERL in
11265 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011266 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11267 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011268 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011275 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 -050011276 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280done
11281done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011282IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011283
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011284 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11285 ;;
11286esac
11287fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011288PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011289if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011290 { echo "$as_me:$LINENO: result: $PERL" >&5
11291echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011292else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011293 { echo "$as_me:$LINENO: result: no" >&5
11294echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011295fi
11296
Theodore Ts'oe1052142006-10-21 21:46:47 -040011297
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011298# Extract the first word of "ldconfig", so it can be a program name with args.
11299set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011302if test "${ac_cv_path_LDCONFIG+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011304else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305 case $LDCONFIG in
11306 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011307 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11308 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011309 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311for as_dir in $PATH
11312do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011316 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 -050011317 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321done
11322done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011323IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011324
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011325 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11326 ;;
11327esac
11328fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011329LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011330if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011331 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11332echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011333else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011334 { echo "$as_me:$LINENO: result: no" >&5
11335echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011336fi
11337
Theodore Ts'oe1052142006-10-21 21:46:47 -040011338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339if test -n "$ac_tool_prefix"; then
11340 # 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 +000011341set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011344if test "${ac_cv_prog_AR+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011346else
11347 if test -n "$AR"; then
11348 ac_cv_prog_AR="$AR" # Let the user override the test.
11349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011356 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 -050011357 ac_cv_prog_AR="${ac_tool_prefix}ar"
11358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11360 fi
11361done
11362done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011363IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011365fi
11366fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011367AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011368if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011369 { echo "$as_me:$LINENO: result: $AR" >&5
11370echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011371else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011372 { echo "$as_me:$LINENO: result: no" >&5
11373echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011374fi
11375
Theodore Ts'oe1052142006-10-21 21:46:47 -040011376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011377fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011378if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011380 # Extract the first word of "ar", so it can be a program name with args.
11381set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011386else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387 if test -n "$ac_ct_AR"; then
11388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011389else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393 IFS=$as_save_IFS
11394 test -z "$as_dir" && as_dir=.
11395 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011396 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 -050011397 ac_cv_prog_ac_ct_AR="ar"
11398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11399 break 2
11400 fi
11401done
11402done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011403IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011405fi
11406fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011407ac_ct_AR=$ac_cv_prog_ac_ct_AR
11408if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011409 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11410echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011411else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011412 { echo "$as_me:$LINENO: result: no" >&5
11413echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011414fi
11415
Theodore Ts'oe1052142006-10-21 21:46:47 -040011416 if test "x$ac_ct_AR" = x; then
11417 AR="ar"
11418 else
11419 case $cross_compiling:$ac_tool_warned in
11420yes:)
11421{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11422whose name does not start with the host triplet. If you think this
11423configuration is useful to you, please write to autoconf@gnu.org." >&5
11424echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11425whose name does not start with the host triplet. If you think this
11426configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11427ac_tool_warned=yes ;;
11428esac
11429 AR=$ac_ct_AR
11430 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011431else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011433fi
11434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435if test -n "$ac_tool_prefix"; then
11436 # 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 +000011437set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011440if test "${ac_cv_prog_RANLIB+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011442else
11443 if test -n "$RANLIB"; then
11444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11445else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447for as_dir in $PATH
11448do
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011452 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 -050011453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11456 fi
11457done
11458done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011459IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011461fi
11462fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011463RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011464if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011465 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11466echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011467else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011468 { echo "$as_me:$LINENO: result: no" >&5
11469echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011470fi
11471
Theodore Ts'oe1052142006-10-21 21:46:47 -040011472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011474if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011475 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011476 # Extract the first word of "ranlib", so it can be a program name with args.
11477set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011482else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483 if test -n "$ac_ct_RANLIB"; then
11484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011485else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011492 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 -050011493 ac_cv_prog_ac_ct_RANLIB="ranlib"
11494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11495 break 2
11496 fi
11497done
11498done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011499IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011501fi
11502fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11504if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011505 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11506echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011507else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011508 { echo "$as_me:$LINENO: result: no" >&5
11509echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510fi
11511
Theodore Ts'oe1052142006-10-21 21:46:47 -040011512 if test "x$ac_ct_RANLIB" = x; then
11513 RANLIB=":"
11514 else
11515 case $cross_compiling:$ac_tool_warned in
11516yes:)
11517{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11518whose name does not start with the host triplet. If you think this
11519configuration is useful to you, please write to autoconf@gnu.org." >&5
11520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11521whose name does not start with the host triplet. If you think this
11522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11523ac_tool_warned=yes ;;
11524esac
11525 RANLIB=$ac_ct_RANLIB
11526 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011527else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011529fi
11530
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011531if test -n "$ac_tool_prefix"; then
11532 # 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 +000011533set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536if test "${ac_cv_prog_STRIP+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538else
11539 if test -n "$STRIP"; then
11540 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11541else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543for as_dir in $PATH
11544do
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011548 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 -050011549 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11552 fi
11553done
11554done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011555IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011556
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011557fi
11558fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011559STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011560if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011561 { echo "$as_me:$LINENO: result: $STRIP" >&5
11562echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011563else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011564 { echo "$as_me:$LINENO: result: no" >&5
11565echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011566fi
11567
Theodore Ts'oe1052142006-10-21 21:46:47 -040011568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011570if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011572 # Extract the first word of "strip", so it can be a program name with args.
11573set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011576if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579 if test -n "$ac_ct_STRIP"; then
11580 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011588 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 -050011589 ac_cv_prog_ac_ct_STRIP="strip"
11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11592 fi
11593done
11594done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011595IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011596
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597fi
11598fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011599ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11600if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011601 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11602echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011604 { echo "$as_me:$LINENO: result: no" >&5
11605echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606fi
11607
Theodore Ts'oe1052142006-10-21 21:46:47 -040011608 if test "x$ac_ct_STRIP" = x; then
11609 STRIP=":"
11610 else
11611 case $cross_compiling:$ac_tool_warned in
11612yes:)
11613{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11614whose name does not start with the host triplet. If you think this
11615configuration is useful to you, please write to autoconf@gnu.org." >&5
11616echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11617whose name does not start with the host triplet. If you think this
11618configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11619ac_tool_warned=yes ;;
11620esac
11621 STRIP=$ac_ct_STRIP
11622 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011623else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011624 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011625fi
11626
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011627# Find a good install program. We prefer a C program (faster),
11628# so one script is as good as another. But avoid the broken or
11629# incompatible versions:
11630# SysV /etc/install, /usr/sbin/install
11631# SunOS /usr/etc/install
11632# IRIX /sbin/install
11633# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011634# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011635# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011636# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11637# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011638# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011639# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011640{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11641echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011642if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011643if test "${ac_cv_path_install+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011645else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647for as_dir in $PATH
11648do
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 # Account for people who put trailing slashes in PATH elements.
11652case $as_dir/ in
11653 ./ | .// | /cC/* | \
11654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11655 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11656 /usr/ucb/* ) ;;
11657 *)
11658 # OSF1 and SCO ODT 3.0 have their own names for install.
11659 # Don't use installbsd from OSF since it installs stuff as root
11660 # by default.
11661 for ac_prog in ginstall scoinst install; do
11662 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011663 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 +000011664 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011666 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011667 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668 elif test $ac_prog = install &&
11669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11670 # program-specific install script used by HP pwplus--don't use.
11671 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011672 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11674 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011675 fi
11676 fi
11677 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011678 done
11679 ;;
11680esac
11681done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011682IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011683
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011684
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011685fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011686 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011688 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011689 # As a last resort, use the slow shell script. Don't cache a
11690 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011691 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011692 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011694 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011696{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11697echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011698
11699# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11700# It thinks the first close brace ends the variable substitution.
11701test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11702
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011704
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011705test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11706
Theodore Ts'o6c133521999-07-03 20:37:03 +000011707# See if we need a separate native compiler.
11708if test $cross_compiling = no; then
11709 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011710
Theodore Ts'o6c133521999-07-03 20:37:03 +000011711else
11712 for ac_prog in gcc cc
11713do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011715set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011720else
11721 if test -n "$BUILD_CC"; then
11722 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11723else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011726do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011730 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 -050011731 ac_cv_prog_BUILD_CC="$ac_prog"
11732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11734 fi
11735done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011736done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011737IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011738
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739fi
11740fi
11741BUILD_CC=$ac_cv_prog_BUILD_CC
11742if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011743 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11744echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011745else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011746 { echo "$as_me:$LINENO: result: no" >&5
11747echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011748fi
11749
Theodore Ts'oe1052142006-10-21 21:46:47 -040011750
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011751 test -n "$BUILD_CC" && break
11752done
11753
11754fi
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011784
Theodore Ts'o106ad962007-04-04 21:26:37 -040011785
11786
Theodore Ts'o29dd9d12007-12-31 14:36:48 -050011787
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011788
11789
11790for 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 -050011791do
11792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799ac_res=`eval echo '${'$as_ac_Header'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011802else
11803 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011806cat >conftest.$ac_ext <<_ACEOF
11807/* confdefs.h. */
11808_ACEOF
11809cat confdefs.h >>conftest.$ac_ext
11810cat >>conftest.$ac_ext <<_ACEOF
11811/* end confdefs.h. */
11812$ac_includes_default
11813#include <$ac_header>
11814_ACEOF
11815rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011816if { (ac_try="$ac_compile"
11817case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011828 (exit $ac_status); } && {
11829 test -z "$ac_c_werror_flag" ||
11830 test ! -s conftest.err
11831 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832 ac_header_compiler=yes
11833else
11834 echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
Theodore Ts'oe1052142006-10-21 21:46:47 -040011837 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011839
11840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11842echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011843
11844# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011847cat >conftest.$ac_ext <<_ACEOF
11848/* confdefs.h. */
11849_ACEOF
11850cat confdefs.h >>conftest.$ac_ext
11851cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h. */
11853#include <$ac_header>
11854_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011855if { (ac_try="$ac_cpp conftest.$ac_ext"
11856case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011867 (exit $ac_status); } >/dev/null && {
11868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011871 ac_header_preproc=yes
11872else
11873 echo "$as_me: failed program was:" >&5
11874sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 ac_header_preproc=no
11877fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011879rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011880{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11881echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011882
11883# So? What about this header?
11884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11885 yes:no: )
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11887echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11889echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11890 ac_header_preproc=yes
11891 ;;
11892 no:yes:* )
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11896echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11898echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11900echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11902echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11904echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011906 ;;
11907esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011908{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 eval "$as_ac_Header=\$ac_header_preproc"
11914fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011915ac_res=`eval echo '${'$as_ac_Header'}'`
11916 { echo "$as_me:$LINENO: result: $ac_res" >&5
11917echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011918
11919fi
11920if test `eval echo '${'$as_ac_Header'}'` = yes; then
11921 cat >>confdefs.h <<_ACEOF
11922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11923_ACEOF
11924
11925fi
11926
11927done
11928
11929
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011930
11931for ac_header in sys/disk.h sys/mount.h
11932do
11933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011934{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938else
11939 cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945
11946#if HAVE_SYS_QUEUE_H
11947#include <sys/queue.h>
11948#endif
11949
11950
11951#include <$ac_header>
11952_ACEOF
11953rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011954if { (ac_try="$ac_compile"
11955case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958esac
11959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011966 (exit $ac_status); } && {
11967 test -z "$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011970 eval "$as_ac_Header=yes"
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
Theodore Ts'oe1052142006-10-21 21:46:47 -040011975 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011976fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011977
11978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011980ac_res=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011983if test `eval echo '${'$as_ac_Header'}'` = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11986_ACEOF
11987
11988fi
11989
11990done
11991
11992
11993for ac_header in net/if.h
11994do
11995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000else
12001 cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007
12008#if HAVE_SYS_TYPES_H
12009#include <sys/types.h>
12010#endif
12011#if HAVE_SYS_SOCKET
12012#include <sys/socket.h>
12013#endif
12014
12015
12016#include <$ac_header>
12017_ACEOF
12018rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019if { (ac_try="$ac_compile"
12020case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12023esac
12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012035 eval "$as_ac_Header=yes"
12036else
12037 echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
Theodore Ts'oe1052142006-10-21 21:46:47 -040012040 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012041fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012042
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012045ac_res=`eval echo '${'$as_ac_Header'}'`
12046 { echo "$as_me:$LINENO: result: $ac_res" >&5
12047echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012048if test `eval echo '${'$as_ac_Header'}'` = yes; then
12049 cat >>confdefs.h <<_ACEOF
12050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12051_ACEOF
12052
12053fi
12054
12055done
12056
12057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058for ac_func in vprintf
12059do
12060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012061{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065else
12066 cat >conftest.$ac_ext <<_ACEOF
12067/* confdefs.h. */
12068_ACEOF
12069cat confdefs.h >>conftest.$ac_ext
12070cat >>conftest.$ac_ext <<_ACEOF
12071/* end confdefs.h. */
12072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12074#define $ac_func innocuous_$ac_func
12075
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012076/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077 which can conflict with char $ac_func (); below.
12078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079 <limits.h> exists even on freestanding compilers. */
12080
12081#ifdef __STDC__
12082# include <limits.h>
12083#else
12084# include <assert.h>
12085#endif
12086
12087#undef $ac_func
12088
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089/* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092#ifdef __cplusplus
12093extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012094#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012095char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012096/* The GNU C library defines this for functions which it implements
12097 to always fail with ENOSYS. Some functions are actually named
12098 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012099#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012100choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012101#endif
12102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103int
12104main ()
12105{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012106return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012107 ;
12108 return 0;
12109}
12110_ACEOF
12111rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012112if { (ac_try="$ac_link"
12113case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest$ac_exeext &&
12128 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012131 echo "$as_me: failed program was:" >&5
12132sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012133
Theodore Ts'oe1052142006-10-21 21:46:47 -040012134 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012136
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012138 conftest$ac_exeext conftest.$ac_ext
12139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012140ac_res=`eval echo '${'$as_ac_var'}'`
12141 { echo "$as_me:$LINENO: result: $ac_res" >&5
12142echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143if test `eval echo '${'$as_ac_var'}'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12146_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147
Theodore Ts'oe1052142006-10-21 21:46:47 -040012148{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12149echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150if test "${ac_cv_func__doprnt+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012152else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153 cat >conftest.$ac_ext <<_ACEOF
12154/* confdefs.h. */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
12158/* end confdefs.h. */
12159/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12161#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012162
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012163/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164 which can conflict with char _doprnt (); below.
12165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12166 <limits.h> exists even on freestanding compilers. */
12167
12168#ifdef __STDC__
12169# include <limits.h>
12170#else
12171# include <assert.h>
12172#endif
12173
12174#undef _doprnt
12175
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176/* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012179#ifdef __cplusplus
12180extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183/* The GNU C library defines this for functions which it implements
12184 to always fail with ENOSYS. Some functions are actually named
12185 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012186#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012187choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012188#endif
12189
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190int
12191main ()
12192{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012193return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012194 ;
12195 return 0;
12196}
12197_ACEOF
12198rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012199if { (ac_try="$ac_link"
12200case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203esac
12204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest$ac_exeext &&
12215 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012217else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218 echo "$as_me: failed program was:" >&5
12219sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012220
Theodore Ts'oe1052142006-10-21 21:46:47 -040012221 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012223
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225 conftest$ac_exeext conftest.$ac_ext
12226fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012227{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12228echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229if test $ac_cv_func__doprnt = yes; then
12230
12231cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012232#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012233_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012234
12235fi
12236
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012237fi
12238done
12239
12240
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12242echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012243if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012245else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012246 cat >conftest.$ac_ext <<_ACEOF
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012252#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012254int
12255main ()
12256{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012257static struct dirent ac_aggr;
12258if (ac_aggr.d_reclen)
12259return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260 ;
12261 return 0;
12262}
12263_ACEOF
12264rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012265if { (ac_try="$ac_compile"
12266case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012281 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
Theodore Ts'oe1052142006-10-21 21:46:47 -040012286 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292#include <dirent.h>
12293
12294int
12295main ()
12296{
12297static struct dirent ac_aggr;
12298if (sizeof ac_aggr.d_reclen)
12299return 0;
12300 ;
12301 return 0;
12302}
12303_ACEOF
12304rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012305if { (ac_try="$ac_compile"
12306case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12309esac
12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012312 ac_status=$?
12313 grep -v '^ *+' conftest.er1 >conftest.err
12314 rm -f conftest.er1
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012321 ac_cv_member_struct_dirent_d_reclen=yes
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
Theodore Ts'oe1052142006-10-21 21:46:47 -040012326 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012327fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012328
12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012330fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012331
12332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012333fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012334{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12335echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012336if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12337 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012338#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012339_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012340
12341fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012342
Theodore Ts'oe1052142006-10-21 21:46:47 -040012343{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12344echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012345if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012346 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012347else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348 cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012354#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012355
Theodore Ts'oe1052142006-10-21 21:46:47 -040012356typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012357int
12358main ()
12359{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012361 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012362if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012363 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364 ;
12365 return 0;
12366}
12367_ACEOF
12368rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012369if { (ac_try="$ac_compile"
12370case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012381 (exit $ac_status); } && {
12382 test -z "$ac_c_werror_flag" ||
12383 test ! -s conftest.err
12384 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012385 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012386else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
Theodore Ts'oe1052142006-10-21 21:46:47 -040012390 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012392
12393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012394fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012395{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12396echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012397if test $ac_cv_type_ssize_t = yes; then
12398 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012399#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012401
12402fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012403
Theodore Ts'oe1052142006-10-21 21:46:47 -040012404{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12405echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012406if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012407 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012408else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012409 cat >conftest.$ac_ext <<_ACEOF
12410/* confdefs.h. */
12411_ACEOF
12412cat confdefs.h >>conftest.$ac_ext
12413cat >>conftest.$ac_ext <<_ACEOF
12414/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012415#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012416
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012417int
12418main ()
12419{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012420#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012421 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012422#endif
12423
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012424 ;
12425 return 0;
12426}
12427_ACEOF
12428rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012429if { (ac_try="$ac_compile"
12430case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433esac
12434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012436 ac_status=$?
12437 grep -v '^ *+' conftest.er1 >conftest.err
12438 rm -f conftest.er1
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012441 (exit $ac_status); } && {
12442 test -z "$ac_c_werror_flag" ||
12443 test ! -s conftest.err
12444 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012445 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012447 echo "$as_me: failed program was:" >&5
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
Theodore Ts'oe1052142006-10-21 21:46:47 -040012450 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012451fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012452
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012454fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012455{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12456echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012457if test $ac_cv_have_decl_llseek = yes; then
12458 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012459#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012461
12462fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012463
Theodore Ts'oe1052142006-10-21 21:46:47 -040012464{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12465echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012466if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012467 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012468else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012469 cat >conftest.$ac_ext <<_ACEOF
12470/* confdefs.h. */
12471_ACEOF
12472cat confdefs.h >>conftest.$ac_ext
12473cat >>conftest.$ac_ext <<_ACEOF
12474/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012475#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012476 #define _LARGEFILE64_SOURCE
12477 #include <unistd.h>
12478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012479int
12480main ()
12481{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012482#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012483 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012484#endif
12485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486 ;
12487 return 0;
12488}
12489_ACEOF
12490rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012491if { (ac_try="$ac_compile"
12492case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495esac
12496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012503 (exit $ac_status); } && {
12504 test -z "$ac_c_werror_flag" ||
12505 test ! -s conftest.err
12506 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012507 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012508else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
Theodore Ts'oe1052142006-10-21 21:46:47 -040012512 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012514
12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012517{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12518echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012519if test $ac_cv_have_decl_lseek64 = yes; then
12520 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012521#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012523
12524fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012525
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012526if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527 # if cross-compiling, with no cached values, just assume something common.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012528 ac_cv_sizeof_short=2
12529 ac_cv_sizeof_int=4
12530 ac_cv_sizeof_long=4
Theodore Ts'o6c133521999-07-03 20:37:03 +000012531 ac_cv_sizeof_long_long=8
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12533echo "$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 +000012534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012535{ echo "$as_me:$LINENO: checking for short" >&5
12536echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012537if test "${ac_cv_type_short+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539else
12540 cat >conftest.$ac_ext <<_ACEOF
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
12545/* end confdefs.h. */
12546$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012547typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548int
12549main ()
12550{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012551if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012553if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554 return 0;
12555 ;
12556 return 0;
12557}
12558_ACEOF
12559rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012560if { (ac_try="$ac_compile"
12561case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12564esac
12565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012572 (exit $ac_status); } && {
12573 test -z "$ac_c_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576 ac_cv_type_short=yes
12577else
12578 echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
Theodore Ts'oe1052142006-10-21 21:46:47 -040012581 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012582fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012583
Theodore Ts'oe1052142006-10-21 21:46:47 -040012584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585fi
12586{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12587echo "${ECHO_T}$ac_cv_type_short" >&6; }
12588
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012589# The cast to long int works around a bug in the HP C Compiler
12590# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12591# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12592# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012593{ echo "$as_me:$LINENO: checking size of short" >&5
12594echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012595if test "${ac_cv_sizeof_short+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598 if test "$cross_compiling" = yes; then
12599 # Depending upon the size, compute the lo and hi bounds.
12600cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
12606$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012607 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012608int
12609main ()
12610{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012611static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012612test_array [0] = 0
12613
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012619if { (ac_try="$ac_compile"
12620case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12623esac
12624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012631 (exit $ac_status); } && {
12632 test -z "$ac_c_werror_flag" ||
12633 test ! -s conftest.err
12634 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635 ac_lo=0 ac_mid=0
12636 while :; do
12637 cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
12643$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012644 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012645int
12646main ()
12647{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012648static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012649test_array [0] = 0
12650
12651 ;
12652 return 0;
12653}
12654_ACEOF
12655rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012656if { (ac_try="$ac_compile"
12657case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660esac
12661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012668 (exit $ac_status); } && {
12669 test -z "$ac_c_werror_flag" ||
12670 test ! -s conftest.err
12671 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012672 ac_hi=$ac_mid; break
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
Theodore Ts'oe1052142006-10-21 21:46:47 -040012677 ac_lo=`expr $ac_mid + 1`
12678 if test $ac_lo -le $ac_mid; then
12679 ac_lo= ac_hi=
12680 break
12681 fi
12682 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012684
12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012686 done
12687else
12688 echo "$as_me: failed program was:" >&5
12689sed 's/^/| /' conftest.$ac_ext >&5
12690
Theodore Ts'oe1052142006-10-21 21:46:47 -040012691 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012692/* confdefs.h. */
12693_ACEOF
12694cat confdefs.h >>conftest.$ac_ext
12695cat >>conftest.$ac_ext <<_ACEOF
12696/* end confdefs.h. */
12697$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012698 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012699int
12700main ()
12701{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012702static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703test_array [0] = 0
12704
12705 ;
12706 return 0;
12707}
12708_ACEOF
12709rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012710if { (ac_try="$ac_compile"
12711case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714esac
12715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012726 ac_hi=-1 ac_mid=-1
12727 while :; do
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012735 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736int
12737main ()
12738{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012739static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012740test_array [0] = 0
12741
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012747if { (ac_try="$ac_compile"
12748case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751esac
12752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012763 ac_lo=$ac_mid; break
12764else
12765 echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
Theodore Ts'oe1052142006-10-21 21:46:47 -040012768 ac_hi=`expr '(' $ac_mid ')' - 1`
12769 if test $ac_mid -le $ac_hi; then
12770 ac_lo= ac_hi=
12771 break
12772 fi
12773 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012775
12776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777 done
12778else
12779 echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
Theodore Ts'oe1052142006-10-21 21:46:47 -040012782 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012783fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012784
12785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012786fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012787
12788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012789# Binary search between lo and hi bounds.
12790while test "x$ac_lo" != "x$ac_hi"; do
12791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12792 cat >conftest.$ac_ext <<_ACEOF
12793/* confdefs.h. */
12794_ACEOF
12795cat confdefs.h >>conftest.$ac_ext
12796cat >>conftest.$ac_ext <<_ACEOF
12797/* end confdefs.h. */
12798$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012799 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012800int
12801main ()
12802{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012803static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012804test_array [0] = 0
12805
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012811if { (ac_try="$ac_compile"
12812case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12815esac
12816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012823 (exit $ac_status); } && {
12824 test -z "$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012827 ac_hi=$ac_mid
12828else
12829 echo "$as_me: failed program was:" >&5
12830sed 's/^/| /' conftest.$ac_ext >&5
12831
Theodore Ts'oe1052142006-10-21 21:46:47 -040012832 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012833fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012834
12835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012836done
12837case $ac_lo in
12838?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012839'') if test "$ac_cv_type_short" = yes; then
12840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012841See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012842echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012843See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012844 { (exit 77); exit 77; }; }
12845 else
12846 ac_cv_sizeof_short=0
12847 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012849else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850 cat >conftest.$ac_ext <<_ACEOF
12851/* confdefs.h. */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
12855/* end confdefs.h. */
12856$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012857 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12859static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012860#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012861#include <stdlib.h>
12862int
12863main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012864{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865
12866 FILE *f = fopen ("conftest.val", "w");
12867 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012868 return 1;
12869 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012870 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012871 long int i = longval ();
12872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12873 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012874 fprintf (f, "%ld\n", i);
12875 }
12876 else
12877 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012878 unsigned long int i = ulongval ();
12879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12880 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881 fprintf (f, "%lu\n", i);
12882 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012883 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012884
12885 ;
12886 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012887}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888_ACEOF
12889rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012890if { (ac_try="$ac_link"
12891case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894esac
12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012900 { (case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903esac
12904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012910else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012911 echo "$as_me: program exited with status $ac_status" >&5
12912echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
12914
12915( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012916if test "$ac_cv_type_short" = yes; then
12917 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012919echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012921 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012922 else
12923 ac_cv_sizeof_short=0
12924 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012925fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012926rm -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 -050012927fi
12928rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012930{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12931echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012932
12933
12934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012935cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012936#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012938
12939
Theodore Ts'oe1052142006-10-21 21:46:47 -040012940{ echo "$as_me:$LINENO: checking for int" >&5
12941echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012942if test "${ac_cv_type_int+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944else
12945 cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012952typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953int
12954main ()
12955{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012956if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012957 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012958if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012959 return 0;
12960 ;
12961 return 0;
12962}
12963_ACEOF
12964rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012965if { (ac_try="$ac_compile"
12966case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969esac
12970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012977 (exit $ac_status); } && {
12978 test -z "$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12980 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981 ac_cv_type_int=yes
12982else
12983 echo "$as_me: failed program was:" >&5
12984sed 's/^/| /' conftest.$ac_ext >&5
12985
Theodore Ts'oe1052142006-10-21 21:46:47 -040012986 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012987fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012988
Theodore Ts'oe1052142006-10-21 21:46:47 -040012989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990fi
12991{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12992echo "${ECHO_T}$ac_cv_type_int" >&6; }
12993
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012994# The cast to long int works around a bug in the HP C Compiler
12995# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12996# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12997# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012998{ echo "$as_me:$LINENO: checking size of int" >&5
12999echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013000if test "${ac_cv_sizeof_int+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003 if test "$cross_compiling" = yes; then
13004 # Depending upon the size, compute the lo and hi bounds.
13005cat >conftest.$ac_ext <<_ACEOF
13006/* confdefs.h. */
13007_ACEOF
13008cat confdefs.h >>conftest.$ac_ext
13009cat >>conftest.$ac_ext <<_ACEOF
13010/* end confdefs.h. */
13011$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013012 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013013int
13014main ()
13015{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013016static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013017test_array [0] = 0
13018
13019 ;
13020 return 0;
13021}
13022_ACEOF
13023rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013024if { (ac_try="$ac_compile"
13025case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013036 (exit $ac_status); } && {
13037 test -z "$ac_c_werror_flag" ||
13038 test ! -s conftest.err
13039 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040 ac_lo=0 ac_mid=0
13041 while :; do
13042 cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013049 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013050int
13051main ()
13052{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013053static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013054test_array [0] = 0
13055
13056 ;
13057 return 0;
13058}
13059_ACEOF
13060rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013061if { (ac_try="$ac_compile"
13062case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065esac
13066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013073 (exit $ac_status); } && {
13074 test -z "$ac_c_werror_flag" ||
13075 test ! -s conftest.err
13076 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013077 ac_hi=$ac_mid; break
13078else
13079 echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
Theodore Ts'oe1052142006-10-21 21:46:47 -040013082 ac_lo=`expr $ac_mid + 1`
13083 if test $ac_lo -le $ac_mid; then
13084 ac_lo= ac_hi=
13085 break
13086 fi
13087 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013089
13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013091 done
13092else
13093 echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
Theodore Ts'oe1052142006-10-21 21:46:47 -040013096 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013097/* confdefs.h. */
13098_ACEOF
13099cat confdefs.h >>conftest.$ac_ext
13100cat >>conftest.$ac_ext <<_ACEOF
13101/* end confdefs.h. */
13102$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013103 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013104int
13105main ()
13106{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013107static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013108test_array [0] = 0
13109
13110 ;
13111 return 0;
13112}
13113_ACEOF
13114rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013115if { (ac_try="$ac_compile"
13116case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119esac
13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013131 ac_hi=-1 ac_mid=-1
13132 while :; do
13133 cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
13139$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013140 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013141int
13142main ()
13143{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013144static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013145test_array [0] = 0
13146
13147 ;
13148 return 0;
13149}
13150_ACEOF
13151rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013152if { (ac_try="$ac_compile"
13153case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156esac
13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013164 (exit $ac_status); } && {
13165 test -z "$ac_c_werror_flag" ||
13166 test ! -s conftest.err
13167 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013168 ac_lo=$ac_mid; break
13169else
13170 echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
Theodore Ts'oe1052142006-10-21 21:46:47 -040013173 ac_hi=`expr '(' $ac_mid ')' - 1`
13174 if test $ac_mid -le $ac_hi; then
13175 ac_lo= ac_hi=
13176 break
13177 fi
13178 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013179fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013180
13181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013182 done
13183else
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
Theodore Ts'oe1052142006-10-21 21:46:47 -040013187 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013189
13190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013192
13193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013194# Binary search between lo and hi bounds.
13195while test "x$ac_lo" != "x$ac_hi"; do
13196 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13197 cat >conftest.$ac_ext <<_ACEOF
13198/* confdefs.h. */
13199_ACEOF
13200cat confdefs.h >>conftest.$ac_ext
13201cat >>conftest.$ac_ext <<_ACEOF
13202/* end confdefs.h. */
13203$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013204 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013205int
13206main ()
13207{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013208static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013209test_array [0] = 0
13210
13211 ;
13212 return 0;
13213}
13214_ACEOF
13215rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013216if { (ac_try="$ac_compile"
13217case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220esac
13221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013223 ac_status=$?
13224 grep -v '^ *+' conftest.er1 >conftest.err
13225 rm -f conftest.er1
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013228 (exit $ac_status); } && {
13229 test -z "$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13231 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013232 ac_hi=$ac_mid
13233else
13234 echo "$as_me: failed program was:" >&5
13235sed 's/^/| /' conftest.$ac_ext >&5
13236
Theodore Ts'oe1052142006-10-21 21:46:47 -040013237 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013238fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013239
13240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013241done
13242case $ac_lo in
13243?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013244'') if test "$ac_cv_type_int" = yes; then
13245 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013246See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013247echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013248See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013249 { (exit 77); exit 77; }; }
13250 else
13251 ac_cv_sizeof_int=0
13252 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013253esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255 cat >conftest.$ac_ext <<_ACEOF
13256/* confdefs.h. */
13257_ACEOF
13258cat confdefs.h >>conftest.$ac_ext
13259cat >>conftest.$ac_ext <<_ACEOF
13260/* end confdefs.h. */
13261$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013262 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013263static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13264static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013265#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013266#include <stdlib.h>
13267int
13268main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013269{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013270
13271 FILE *f = fopen ("conftest.val", "w");
13272 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013273 return 1;
13274 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013275 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013276 long int i = longval ();
13277 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13278 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013279 fprintf (f, "%ld\n", i);
13280 }
13281 else
13282 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013283 unsigned long int i = ulongval ();
13284 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13285 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013286 fprintf (f, "%lu\n", i);
13287 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013288 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013289
13290 ;
13291 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013292}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013293_ACEOF
13294rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013295if { (ac_try="$ac_link"
13296case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299esac
13300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013315else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013316 echo "$as_me: program exited with status $ac_status" >&5
13317echo "$as_me: failed program was:" >&5
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
13320( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013321if test "$ac_cv_type_int" = yes; then
13322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013323See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013324echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013325See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013326 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013327 else
13328 ac_cv_sizeof_int=0
13329 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013330fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013331rm -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 -050013332fi
13333rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013334fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013335{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13336echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013337
13338
13339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013340cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013341#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013342_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013343
13344
Theodore Ts'oe1052142006-10-21 21:46:47 -040013345{ echo "$as_me:$LINENO: checking for long" >&5
13346echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013347if test "${ac_cv_type_long+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349else
13350 cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013357typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358int
13359main ()
13360{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013361if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013362 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013363if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013364 return 0;
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013370if { (ac_try="$ac_compile"
13371case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013386 ac_cv_type_long=yes
13387else
13388 echo "$as_me: failed program was:" >&5
13389sed 's/^/| /' conftest.$ac_ext >&5
13390
Theodore Ts'oe1052142006-10-21 21:46:47 -040013391 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013392fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013393
Theodore Ts'oe1052142006-10-21 21:46:47 -040013394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395fi
13396{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13397echo "${ECHO_T}$ac_cv_type_long" >&6; }
13398
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013399# The cast to long int works around a bug in the HP C Compiler
13400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13402# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013403{ echo "$as_me:$LINENO: checking size of long" >&5
13404echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013405if test "${ac_cv_sizeof_long+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013408 if test "$cross_compiling" = yes; then
13409 # Depending upon the size, compute the lo and hi bounds.
13410cat >conftest.$ac_ext <<_ACEOF
13411/* confdefs.h. */
13412_ACEOF
13413cat confdefs.h >>conftest.$ac_ext
13414cat >>conftest.$ac_ext <<_ACEOF
13415/* end confdefs.h. */
13416$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013417 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013418int
13419main ()
13420{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013421static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013422test_array [0] = 0
13423
13424 ;
13425 return 0;
13426}
13427_ACEOF
13428rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013429if { (ac_try="$ac_compile"
13430case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013436 ac_status=$?
13437 grep -v '^ *+' conftest.er1 >conftest.err
13438 rm -f conftest.er1
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013441 (exit $ac_status); } && {
13442 test -z "$ac_c_werror_flag" ||
13443 test ! -s conftest.err
13444 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013445 ac_lo=0 ac_mid=0
13446 while :; do
13447 cat >conftest.$ac_ext <<_ACEOF
13448/* confdefs.h. */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h. */
13453$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013454 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013455int
13456main ()
13457{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013458static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013459test_array [0] = 0
13460
13461 ;
13462 return 0;
13463}
13464_ACEOF
13465rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013466if { (ac_try="$ac_compile"
13467case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013482 ac_hi=$ac_mid; break
13483else
13484 echo "$as_me: failed program was:" >&5
13485sed 's/^/| /' conftest.$ac_ext >&5
13486
Theodore Ts'oe1052142006-10-21 21:46:47 -040013487 ac_lo=`expr $ac_mid + 1`
13488 if test $ac_lo -le $ac_mid; then
13489 ac_lo= ac_hi=
13490 break
13491 fi
13492 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013493fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013494
13495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013496 done
13497else
13498 echo "$as_me: failed program was:" >&5
13499sed 's/^/| /' conftest.$ac_ext >&5
13500
Theodore Ts'oe1052142006-10-21 21:46:47 -040013501 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013502/* confdefs.h. */
13503_ACEOF
13504cat confdefs.h >>conftest.$ac_ext
13505cat >>conftest.$ac_ext <<_ACEOF
13506/* end confdefs.h. */
13507$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013508 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013509int
13510main ()
13511{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013512static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013513test_array [0] = 0
13514
13515 ;
13516 return 0;
13517}
13518_ACEOF
13519rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013520if { (ac_try="$ac_compile"
13521case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524esac
13525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013532 (exit $ac_status); } && {
13533 test -z "$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13535 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013536 ac_hi=-1 ac_mid=-1
13537 while :; do
13538 cat >conftest.$ac_ext <<_ACEOF
13539/* confdefs.h. */
13540_ACEOF
13541cat confdefs.h >>conftest.$ac_ext
13542cat >>conftest.$ac_ext <<_ACEOF
13543/* end confdefs.h. */
13544$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013545 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013546int
13547main ()
13548{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013549static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013550test_array [0] = 0
13551
13552 ;
13553 return 0;
13554}
13555_ACEOF
13556rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013557if { (ac_try="$ac_compile"
13558case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13561esac
13562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013564 ac_status=$?
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013573 ac_lo=$ac_mid; break
13574else
13575 echo "$as_me: failed program was:" >&5
13576sed 's/^/| /' conftest.$ac_ext >&5
13577
Theodore Ts'oe1052142006-10-21 21:46:47 -040013578 ac_hi=`expr '(' $ac_mid ')' - 1`
13579 if test $ac_mid -le $ac_hi; then
13580 ac_lo= ac_hi=
13581 break
13582 fi
13583 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013584fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013585
13586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013587 done
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
Theodore Ts'oe1052142006-10-21 21:46:47 -040013592 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013594
13595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013596fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013597
13598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013599# Binary search between lo and hi bounds.
13600while test "x$ac_lo" != "x$ac_hi"; do
13601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13602 cat >conftest.$ac_ext <<_ACEOF
13603/* confdefs.h. */
13604_ACEOF
13605cat confdefs.h >>conftest.$ac_ext
13606cat >>conftest.$ac_ext <<_ACEOF
13607/* end confdefs.h. */
13608$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013609 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013610int
13611main ()
13612{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013613static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013614test_array [0] = 0
13615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013621if { (ac_try="$ac_compile"
13622case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625esac
13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013633 (exit $ac_status); } && {
13634 test -z "$ac_c_werror_flag" ||
13635 test ! -s conftest.err
13636 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013637 ac_hi=$ac_mid
13638else
13639 echo "$as_me: failed program was:" >&5
13640sed 's/^/| /' conftest.$ac_ext >&5
13641
Theodore Ts'oe1052142006-10-21 21:46:47 -040013642 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013643fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013644
13645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013646done
13647case $ac_lo in
13648?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013649'') if test "$ac_cv_type_long" = yes; then
13650 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013651See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013652echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013653See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013654 { (exit 77); exit 77; }; }
13655 else
13656 ac_cv_sizeof_long=0
13657 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013658esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013659else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660 cat >conftest.$ac_ext <<_ACEOF
13661/* confdefs.h. */
13662_ACEOF
13663cat confdefs.h >>conftest.$ac_ext
13664cat >>conftest.$ac_ext <<_ACEOF
13665/* end confdefs.h. */
13666$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013667 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013668static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13669static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013670#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013671#include <stdlib.h>
13672int
13673main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013674{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675
13676 FILE *f = fopen ("conftest.val", "w");
13677 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013678 return 1;
13679 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013680 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013681 long int i = longval ();
13682 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13683 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013684 fprintf (f, "%ld\n", i);
13685 }
13686 else
13687 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013688 unsigned long int i = ulongval ();
13689 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13690 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013691 fprintf (f, "%lu\n", i);
13692 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013693 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013694
13695 ;
13696 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013697}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013698_ACEOF
13699rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013700if { (ac_try="$ac_link"
13701case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13704esac
13705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013720else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013721 echo "$as_me: program exited with status $ac_status" >&5
13722echo "$as_me: failed program was:" >&5
13723sed 's/^/| /' conftest.$ac_ext >&5
13724
13725( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013726if test "$ac_cv_type_long" = yes; then
13727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013729echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013730See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013731 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013732 else
13733 ac_cv_sizeof_long=0
13734 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013736rm -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 -050013737fi
13738rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013740{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13741echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013742
13743
13744
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013745cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013746#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013747_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013748
13749
Theodore Ts'oe1052142006-10-21 21:46:47 -040013750{ echo "$as_me:$LINENO: checking for long long" >&5
13751echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013752if test "${ac_cv_type_long_long+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754else
13755 cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013762typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763int
13764main ()
13765{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013766if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013767 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013768if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013769 return 0;
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013775if { (ac_try="$ac_compile"
13776case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779esac
13780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013791 ac_cv_type_long_long=yes
13792else
13793 echo "$as_me: failed program was:" >&5
13794sed 's/^/| /' conftest.$ac_ext >&5
13795
Theodore Ts'oe1052142006-10-21 21:46:47 -040013796 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013797fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013798
Theodore Ts'oe1052142006-10-21 21:46:47 -040013799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800fi
13801{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13802echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13803
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013804# The cast to long int works around a bug in the HP C Compiler
13805# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13806# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13807# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013808{ echo "$as_me:$LINENO: checking size of long long" >&5
13809echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013810if test "${ac_cv_sizeof_long_long+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813 if test "$cross_compiling" = yes; then
13814 # Depending upon the size, compute the lo and hi bounds.
13815cat >conftest.$ac_ext <<_ACEOF
13816/* confdefs.h. */
13817_ACEOF
13818cat confdefs.h >>conftest.$ac_ext
13819cat >>conftest.$ac_ext <<_ACEOF
13820/* end confdefs.h. */
13821$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013822 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013823int
13824main ()
13825{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013826static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013827test_array [0] = 0
13828
13829 ;
13830 return 0;
13831}
13832_ACEOF
13833rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013834if { (ac_try="$ac_compile"
13835case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13838esac
13839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013841 ac_status=$?
13842 grep -v '^ *+' conftest.er1 >conftest.err
13843 rm -f conftest.er1
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013846 (exit $ac_status); } && {
13847 test -z "$ac_c_werror_flag" ||
13848 test ! -s conftest.err
13849 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850 ac_lo=0 ac_mid=0
13851 while :; do
13852 cat >conftest.$ac_ext <<_ACEOF
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
13858$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013859 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013860int
13861main ()
13862{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013863static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013864test_array [0] = 0
13865
13866 ;
13867 return 0;
13868}
13869_ACEOF
13870rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013871if { (ac_try="$ac_compile"
13872case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875esac
13876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013887 ac_hi=$ac_mid; break
13888else
13889 echo "$as_me: failed program was:" >&5
13890sed 's/^/| /' conftest.$ac_ext >&5
13891
Theodore Ts'oe1052142006-10-21 21:46:47 -040013892 ac_lo=`expr $ac_mid + 1`
13893 if test $ac_lo -le $ac_mid; then
13894 ac_lo= ac_hi=
13895 break
13896 fi
13897 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013899
13900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013901 done
13902else
13903 echo "$as_me: failed program was:" >&5
13904sed 's/^/| /' conftest.$ac_ext >&5
13905
Theodore Ts'oe1052142006-10-21 21:46:47 -040013906 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013907/* confdefs.h. */
13908_ACEOF
13909cat confdefs.h >>conftest.$ac_ext
13910cat >>conftest.$ac_ext <<_ACEOF
13911/* end confdefs.h. */
13912$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013913 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013914int
13915main ()
13916{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013917static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013918test_array [0] = 0
13919
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013925if { (ac_try="$ac_compile"
13926case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013937 (exit $ac_status); } && {
13938 test -z "$ac_c_werror_flag" ||
13939 test ! -s conftest.err
13940 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013941 ac_hi=-1 ac_mid=-1
13942 while :; do
13943 cat >conftest.$ac_ext <<_ACEOF
13944/* confdefs.h. */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
13948/* end confdefs.h. */
13949$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013950 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951int
13952main ()
13953{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013954static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013955test_array [0] = 0
13956
13957 ;
13958 return 0;
13959}
13960_ACEOF
13961rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013962if { (ac_try="$ac_compile"
13963case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966esac
13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013974 (exit $ac_status); } && {
13975 test -z "$ac_c_werror_flag" ||
13976 test ! -s conftest.err
13977 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013978 ac_lo=$ac_mid; break
13979else
13980 echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
Theodore Ts'oe1052142006-10-21 21:46:47 -040013983 ac_hi=`expr '(' $ac_mid ')' - 1`
13984 if test $ac_mid -le $ac_hi; then
13985 ac_lo= ac_hi=
13986 break
13987 fi
13988 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013989fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013990
13991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013992 done
13993else
13994 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
Theodore Ts'oe1052142006-10-21 21:46:47 -040013997 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013999
14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014002
14003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004# Binary search between lo and hi bounds.
14005while test "x$ac_lo" != "x$ac_hi"; do
14006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14007 cat >conftest.$ac_ext <<_ACEOF
14008/* confdefs.h. */
14009_ACEOF
14010cat confdefs.h >>conftest.$ac_ext
14011cat >>conftest.$ac_ext <<_ACEOF
14012/* end confdefs.h. */
14013$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014014 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014015int
14016main ()
14017{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014018static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014019test_array [0] = 0
14020
14021 ;
14022 return 0;
14023}
14024_ACEOF
14025rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014026if { (ac_try="$ac_compile"
14027case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030esac
14031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014033 ac_status=$?
14034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014042 ac_hi=$ac_mid
14043else
14044 echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
Theodore Ts'oe1052142006-10-21 21:46:47 -040014047 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014049
14050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014051done
14052case $ac_lo in
14053?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014054'') if test "$ac_cv_type_long_long" = yes; then
14055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014056See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014057echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014059 { (exit 77); exit 77; }; }
14060 else
14061 ac_cv_sizeof_long_long=0
14062 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014064else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014065 cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
14071$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014072 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014073static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14074static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014075#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076#include <stdlib.h>
14077int
14078main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014079{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080
14081 FILE *f = fopen ("conftest.val", "w");
14082 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014083 return 1;
14084 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014085 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014086 long int i = longval ();
14087 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14088 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089 fprintf (f, "%ld\n", i);
14090 }
14091 else
14092 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014093 unsigned long int i = ulongval ();
14094 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14095 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014096 fprintf (f, "%lu\n", i);
14097 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014098 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014099
14100 ;
14101 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014102}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103_ACEOF
14104rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014105if { (ac_try="$ac_link"
14106case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109esac
14110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118esac
14119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014125else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014126 echo "$as_me: program exited with status $ac_status" >&5
14127echo "$as_me: failed program was:" >&5
14128sed 's/^/| /' conftest.$ac_ext >&5
14129
14130( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014131if test "$ac_cv_type_long_long" = yes; then
14132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014134echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014135See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014136 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014137 else
14138 ac_cv_sizeof_long_long=0
14139 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014140fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014141rm -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 -050014142fi
14143rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014144fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014145{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14146echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014147
14148
14149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014150cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014151#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014152_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014153
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014154
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014155SIZEOF_SHORT=$ac_cv_sizeof_short
14156SIZEOF_INT=$ac_cv_sizeof_int
14157SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014158SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14159
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014160
14161
14162
Theodore Ts'oe1052142006-10-21 21:46:47 -040014163{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14164echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014165if test "${ac_cv_c_bigendian+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014167else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014168 # See if sys/param.h defines the BYTE_ORDER macro.
14169cat >conftest.$ac_ext <<_ACEOF
14170/* confdefs.h. */
14171_ACEOF
14172cat confdefs.h >>conftest.$ac_ext
14173cat >>conftest.$ac_ext <<_ACEOF
14174/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014175#include <sys/types.h>
14176#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014178int
14179main ()
14180{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014181#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14182 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014183 bogus endian macros
14184#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014185
14186 ;
14187 return 0;
14188}
14189_ACEOF
14190rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014191if { (ac_try="$ac_compile"
14192case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14195esac
14196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014203 (exit $ac_status); } && {
14204 test -z "$ac_c_werror_flag" ||
14205 test ! -s conftest.err
14206 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014207 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014208cat >conftest.$ac_ext <<_ACEOF
14209/* confdefs.h. */
14210_ACEOF
14211cat confdefs.h >>conftest.$ac_ext
14212cat >>conftest.$ac_ext <<_ACEOF
14213/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014214#include <sys/types.h>
14215#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014216
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014217int
14218main ()
14219{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014220#if BYTE_ORDER != BIG_ENDIAN
14221 not big endian
14222#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014223
14224 ;
14225 return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014229if { (ac_try="$ac_compile"
14230case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233esac
14234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014236 ac_status=$?
14237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014241 (exit $ac_status); } && {
14242 test -z "$ac_c_werror_flag" ||
14243 test ! -s conftest.err
14244 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014245 ac_cv_c_bigendian=yes
14246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014247 echo "$as_me: failed program was:" >&5
14248sed 's/^/| /' conftest.$ac_ext >&5
14249
Theodore Ts'oe1052142006-10-21 21:46:47 -040014250 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014252
14253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014255 echo "$as_me: failed program was:" >&5
14256sed 's/^/| /' conftest.$ac_ext >&5
14257
Theodore Ts'oe1052142006-10-21 21:46:47 -040014258 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014259if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014260 # try to guess the endianness by grepping values into an object file
14261 ac_cv_c_bigendian=unknown
14262 cat >conftest.$ac_ext <<_ACEOF
14263/* confdefs.h. */
14264_ACEOF
14265cat confdefs.h >>conftest.$ac_ext
14266cat >>conftest.$ac_ext <<_ACEOF
14267/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014268short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14269short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14272short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014273void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14274int
14275main ()
14276{
14277 _ascii (); _ebcdic ();
14278 ;
14279 return 0;
14280}
14281_ACEOF
14282rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014283if { (ac_try="$ac_compile"
14284case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287esac
14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014295 (exit $ac_status); } && {
14296 test -z "$ac_c_werror_flag" ||
14297 test ! -s conftest.err
14298 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014299 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14300 ac_cv_c_bigendian=yes
14301fi
14302if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14303 if test "$ac_cv_c_bigendian" = unknown; then
14304 ac_cv_c_bigendian=no
14305 else
14306 # finding both strings is unlikely to happen, but who knows?
14307 ac_cv_c_bigendian=unknown
14308 fi
14309fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014310else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
Theodore Ts'oe1052142006-10-21 21:46:47 -040014314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316
14317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014318else
14319 cat >conftest.$ac_ext <<_ACEOF
14320/* confdefs.h. */
14321_ACEOF
14322cat confdefs.h >>conftest.$ac_ext
14323cat >>conftest.$ac_ext <<_ACEOF
14324/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014325$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014326int
14327main ()
14328{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014329
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014330 /* Are we little or big endian? From Harbison&Steele. */
14331 union
14332 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014333 long int l;
14334 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014335 } u;
14336 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014337 return u.c[sizeof (long int) - 1] == 1;
14338
14339 ;
14340 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014341}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342_ACEOF
14343rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014344if { (ac_try="$ac_link"
14345case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348esac
14349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014354 { (case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14357esac
14358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014363 ac_cv_c_bigendian=no
14364else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014365 echo "$as_me: program exited with status $ac_status" >&5
14366echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014369( exit $ac_status )
14370ac_cv_c_bigendian=yes
14371fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014372rm -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 -040014373fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014374
14375
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014376fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014377
14378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014380{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14381echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382case $ac_cv_c_bigendian in
14383 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014386#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014387_ACEOF
14388 ;;
14389 no)
14390 ;;
14391 *)
14392 { { echo "$as_me:$LINENO: error: unknown endianness
14393presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14394echo "$as_me: error: unknown endianness
14395presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14396 { (exit 1); exit 1; }; } ;;
14397esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014398
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014399BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014400ASM_TYPES_HEADER=./asm_types.h
14401
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014402
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014403for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014404do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014411fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014412ac_res=`eval echo '${'$as_ac_Header'}'`
14413 { echo "$as_me:$LINENO: result: $ac_res" >&5
14414echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014415else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014416 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014419cat >conftest.$ac_ext <<_ACEOF
14420/* confdefs.h. */
14421_ACEOF
14422cat confdefs.h >>conftest.$ac_ext
14423cat >>conftest.$ac_ext <<_ACEOF
14424/* end confdefs.h. */
14425$ac_includes_default
14426#include <$ac_header>
14427_ACEOF
14428rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014429if { (ac_try="$ac_compile"
14430case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14433esac
14434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014436 ac_status=$?
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014441 (exit $ac_status); } && {
14442 test -z "$ac_c_werror_flag" ||
14443 test ! -s conftest.err
14444 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014445 ac_header_compiler=yes
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
Theodore Ts'oe1052142006-10-21 21:46:47 -040014450 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014451fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014452
14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14455echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456
14457# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460cat >conftest.$ac_ext <<_ACEOF
14461/* confdefs.h. */
14462_ACEOF
14463cat confdefs.h >>conftest.$ac_ext
14464cat >>conftest.$ac_ext <<_ACEOF
14465/* end confdefs.h. */
14466#include <$ac_header>
14467_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014468if { (ac_try="$ac_cpp conftest.$ac_ext"
14469case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14472esac
14473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014480 (exit $ac_status); } >/dev/null && {
14481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14482 test ! -s conftest.err
14483 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014484 ac_header_preproc=yes
14485else
14486 echo "$as_me: failed program was:" >&5
14487sed 's/^/| /' conftest.$ac_ext >&5
14488
14489 ac_header_preproc=no
14490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014492rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014493{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14494echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014495
14496# So? What about this header?
14497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14498 yes:no: )
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14500echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14502echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14503 ac_header_preproc=yes
14504 ;;
14505 no:yes:* )
14506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14507echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14509echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14511echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14513echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14517echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014519 ;;
14520esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014521{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525else
14526 eval "$as_ac_Header=\$ac_header_preproc"
14527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014528ac_res=`eval echo '${'$as_ac_Header'}'`
14529 { echo "$as_me:$LINENO: result: $ac_res" >&5
14530echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531
14532fi
14533if test `eval echo '${'$as_ac_Header'}'` = yes; then
14534 cat >>confdefs.h <<_ACEOF
14535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14536_ACEOF
14537
14538fi
14539
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014540done
14541
Theodore Ts'oe1052142006-10-21 21:46:47 -040014542{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14543echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014544if test "${ac_cv_type_intptr_t+set}" = set; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014546else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014547 cat >conftest.$ac_ext <<_ACEOF
14548/* confdefs.h. */
14549_ACEOF
14550cat confdefs.h >>conftest.$ac_ext
14551cat >>conftest.$ac_ext <<_ACEOF
14552/* end confdefs.h. */
14553$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014554typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014555int
14556main ()
14557{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014558if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014559 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014561 return 0;
14562 ;
14563 return 0;
14564}
14565_ACEOF
14566rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014567if { (ac_try="$ac_compile"
14568case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571esac
14572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014574 ac_status=$?
14575 grep -v '^ *+' conftest.er1 >conftest.err
14576 rm -f conftest.er1
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014579 (exit $ac_status); } && {
14580 test -z "$ac_c_werror_flag" ||
14581 test ! -s conftest.err
14582 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014583 ac_cv_type_intptr_t=yes
14584else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014587
Theodore Ts'oe1052142006-10-21 21:46:47 -040014588 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014590
14591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014593{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14594echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014595if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014596
14597cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014598#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014599_ACEOF
14600
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014602fi
14603
Theodore Ts'oe1052142006-10-21 21:46:47 -040014604{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14605echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014606if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608else
14609 cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014615#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014616int
14617main ()
14618{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014619struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620 ;
14621 return 0;
14622}
14623_ACEOF
14624rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014625if { (ac_try="$ac_compile"
14626case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629esac
14630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014637 (exit $ac_status); } && {
14638 test -z "$ac_c_werror_flag" ||
14639 test ! -s conftest.err
14640 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014641 e2fsprogs_cv_struct_st_flags=yes
14642else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
Theodore Ts'oe1052142006-10-21 21:46:47 -040014646 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014647fi
14648
Theodore Ts'oe1052142006-10-21 21:46:47 -040014649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650fi
14651
14652{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14653echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014654if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014655 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14656echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014659else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014660 cat >conftest.$ac_ext <<_ACEOF
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
14665/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014666#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014667int
14668main ()
14669{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014670struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014671 ;
14672 return 0;
14673}
14674_ACEOF
14675rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014676if { (ac_try="$ac_compile"
14677case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680esac
14681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014692 e2fsprogs_cv_struct_st_flags_immut=yes
14693else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014694 echo "$as_me: failed program was:" >&5
14695sed 's/^/| /' conftest.$ac_ext >&5
14696
Theodore Ts'oe1052142006-10-21 21:46:47 -040014697 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014698fi
14699
Theodore Ts'oe1052142006-10-21 21:46:47 -040014700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701fi
14702
14703 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14704echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014705 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014706 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014707#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014708_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014709
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014710 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014712{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14713echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014714if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014716else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014717 cat >conftest.$ac_ext <<_ACEOF
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014723#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014724 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014726int
14727main ()
14728{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014729static struct sockaddr ac_aggr;
14730if (ac_aggr.sa_len)
14731return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014732 ;
14733 return 0;
14734}
14735_ACEOF
14736rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014737if { (ac_try="$ac_compile"
14738case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014749 (exit $ac_status); } && {
14750 test -z "$ac_c_werror_flag" ||
14751 test ! -s conftest.err
14752 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014753 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014754else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014755 echo "$as_me: failed program was:" >&5
14756sed 's/^/| /' conftest.$ac_ext >&5
14757
Theodore Ts'oe1052142006-10-21 21:46:47 -040014758 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014759/* confdefs.h. */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h. */
14764#include <sys/types.h>
14765 #include <sys/socket.h>
14766
14767int
14768main ()
14769{
14770static struct sockaddr ac_aggr;
14771if (sizeof ac_aggr.sa_len)
14772return 0;
14773 ;
14774 return 0;
14775}
14776_ACEOF
14777rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014778if { (ac_try="$ac_compile"
14779case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014790 (exit $ac_status); } && {
14791 test -z "$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014794 ac_cv_member_struct_sockaddr_sa_len=yes
14795else
14796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
Theodore Ts'oe1052142006-10-21 21:46:47 -040014799 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014801
14802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804
14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014806fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014807{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14808echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014809if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014810
14811cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014812#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014813_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014814
14815fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014835
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014836
14837
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014838
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014839
Theodore Ts'o106ad962007-04-04 21:26:37 -040014840
14841
14842
Theodore Ts'o740837d2007-12-16 17:21:38 -050014843
14844
Theodore Ts'o261cd392008-01-21 13:45:00 -050014845
14846for 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 +000014847do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014852 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014853else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014854 cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h. */
14860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14862#define $ac_func innocuous_$ac_func
14863
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014864/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014865 which can conflict with char $ac_func (); below.
14866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14867 <limits.h> exists even on freestanding compilers. */
14868
14869#ifdef __STDC__
14870# include <limits.h>
14871#else
14872# include <assert.h>
14873#endif
14874
14875#undef $ac_func
14876
Theodore Ts'oe1052142006-10-21 21:46:47 -040014877/* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014880#ifdef __cplusplus
14881extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014882#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014883char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014884/* The GNU C library defines this for functions which it implements
14885 to always fail with ENOSYS. Some functions are actually named
14886 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014887#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014888choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014889#endif
14890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014891int
14892main ()
14893{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014894return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895 ;
14896 return 0;
14897}
14898_ACEOF
14899rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014900if { (ac_try="$ac_link"
14901case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14904esac
14905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014907 ac_status=$?
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014912 (exit $ac_status); } && {
14913 test -z "$ac_c_werror_flag" ||
14914 test ! -s conftest.err
14915 } && test -s conftest$ac_exeext &&
14916 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014917 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014918else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014919 echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014921
Theodore Ts'oe1052142006-10-21 21:46:47 -040014922 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014924
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014926 conftest$ac_exeext conftest.$ac_ext
14927fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014928ac_res=`eval echo '${'$as_ac_var'}'`
14929 { echo "$as_me:$LINENO: result: $ac_res" >&5
14930echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014931if test `eval echo '${'$as_ac_var'}'` = yes; then
14932 cat >>confdefs.h <<_ACEOF
14933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14934_ACEOF
14935
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014936fi
14937done
14938
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014939SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014940{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14941echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942if test "${ac_cv_lib_socket_socket+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014944else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014945 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014946LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014947cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953
Theodore Ts'oe1052142006-10-21 21:46:47 -040014954/* Override any GCC internal prototype to avoid an error.
14955 Use char because int might match the return type of a GCC
14956 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014957#ifdef __cplusplus
14958extern "C"
14959#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014960char socket ();
14961int
14962main ()
14963{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014964return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014965 ;
14966 return 0;
14967}
14968_ACEOF
14969rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014970if { (ac_try="$ac_link"
14971case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14974esac
14975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext &&
14986 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014988else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014989 echo "$as_me: failed program was:" >&5
14990sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014991
Theodore Ts'oe1052142006-10-21 21:46:47 -040014992 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014993fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014994
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014996 conftest$ac_exeext conftest.$ac_ext
14997LIBS=$ac_check_lib_save_LIBS
14998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014999{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15000echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015001if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015002 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015003fi
15004
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015005
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015006DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015007{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15008echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015009if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015011else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015013LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015014cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020
Theodore Ts'oe1052142006-10-21 21:46:47 -040015021/* Override any GCC internal prototype to avoid an error.
15022 Use char because int might match the return type of a GCC
15023 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015024#ifdef __cplusplus
15025extern "C"
15026#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015027char dlopen ();
15028int
15029main ()
15030{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015032 ;
15033 return 0;
15034}
15035_ACEOF
15036rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015037if { (ac_try="$ac_link"
15038case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041esac
15042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015049 (exit $ac_status); } && {
15050 test -z "$ac_c_werror_flag" ||
15051 test ! -s conftest.err
15052 } && test -s conftest$ac_exeext &&
15053 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015054 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015055else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015056 echo "$as_me: failed program was:" >&5
15057sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015058
Theodore Ts'oe1052142006-10-21 21:46:47 -040015059 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015060fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015061
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015063 conftest$ac_exeext conftest.$ac_ext
15064LIBS=$ac_check_lib_save_LIBS
15065fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015066{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15067echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015068if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015069 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015070cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015071#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015072_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015073
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015074fi
15075
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015076
Theodore Ts'oe1052142006-10-21 21:46:47 -040015077{ echo "$as_me:$LINENO: checking for optreset" >&5
15078echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015079if test "${ac_cv_have_optreset+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015082 cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015088#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015089
15090_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015092 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015093 ac_cv_have_optreset=yes
15094else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015095 ac_cv_have_optreset=no
15096fi
15097rm -f conftest*
15098
15099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015100{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15101echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015102if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015103 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015104#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015105_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015106
15107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015108{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15109echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015110if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015111 UNI_DIFF_OPTS=-u
15112else
15113 UNI_DIFF_OPTS=-c
15114fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015115{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15116echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015117
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015118case "$host_os" in
15119linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015120 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015121#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015122_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015123
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015124 ;;
15125esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015126LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015127CYGWIN_CMT="#"
15128UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015129case "$host_os" in
15130linux*)
15131 LINUX_CMT=
15132 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015133cygwin)
15134 CYGWIN_CMT=
15135 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015136 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015137esac
15138
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015139
15140
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015141case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015142linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015143 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15144 root_prefix="";
15145 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015146 fi
15147 ;;
15148esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015149case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015150linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015151 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015152 prefix="/usr";
15153 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015154 if test "$mandir" = '${prefix}/man' ; then
15155 echo "...and mandir defaults to /usr/share/man"
15156 mandir=/usr/share/man
15157 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015158 fi
15159;;
15160esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015161if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015162 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015163 root_prefix="$ac_default_prefix"
15164 else
15165 root_prefix="$prefix"
15166 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015167 root_bindir=$bindir
15168 root_sbindir=$sbindir
15169 root_libdir=$libdir
15170 root_sysconfdir=$sysconfdir
15171else
15172 root_bindir='${root_prefix}/bin'
15173 root_sbindir='${root_prefix}/sbin'
15174 root_libdir='${root_prefix}/lib'
15175 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015176fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015177if test "$bindir" != '${exec_prefix}/bin'; then
15178 root_bindir=$bindir
15179 echo "Setting root_bindir to $root_bindir"
15180fi
15181if test "$sbindir" != '${exec_prefix}/sbin'; then
15182 root_sbindir=$sbindir
15183 echo "Setting root_sbindir to $root_sbindir"
15184fi
15185if test "$libdir" != '${exec_prefix}/lib'; then
15186 root_libdir=$libdir
15187 echo "Setting root_libdir to $root_libdir"
15188fi
15189if test "$sysconfdir" != '${prefix}/etc'; then
15190 root_sysconfdir=$sysconfdir
15191 echo "Setting root_sysconfdir to $root_sysconfdir"
15192fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015193
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015194
15195
15196
15197
Theodore Ts'oe1052142006-10-21 21:46:47 -040015198{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15199echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015200if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015202else
15203 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015204cat >conftest.$ac_ext <<_ACEOF
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015210#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015211int
15212main ()
15213{
Theodore Ts'oae851481997-04-29 18:13:24 +000015214fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015215 ;
15216 return 0;
15217}
15218_ACEOF
15219rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015220if { (ac_try="$ac_link"
15221case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15224esac
15225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015232 (exit $ac_status); } && {
15233 test -z "$ac_c_werror_flag" ||
15234 test ! -s conftest.err
15235 } && test -s conftest$ac_exeext &&
15236 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015237 ac_cv_e2fsprogs_use_static=yes
15238else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015239 echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
Theodore Ts'oe1052142006-10-21 21:46:47 -040015242 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015244
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015246 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015247LDFLAGS=$SAVE_LDFLAGS
15248fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015249
Theodore Ts'odefde781999-01-04 07:39:19 +000015250case "$host_os" in
15251solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015252 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015253;;
15254esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015255{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15256echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015257LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015258if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015259 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015260fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015261
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015262case "$host_os" in
15263darwin*)
15264 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015265 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015266#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015267_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015268
15269 ;;
15270esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015271SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15272ET_DIR=`cd ${srcdir}/lib/et; pwd`
15273
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015274
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015275if test "$cross_compiling" = yes ; then
15276 DO_TEST_SUITE=
15277else
15278 DO_TEST_SUITE=check
15279fi
15280
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015281INTL_FLAGS=
15282if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15283 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15284fi
15285
Theodore Ts'odd947da2005-11-09 18:37:07 -040015286if test $cross_compiling = no; then
15287 BUILD_CFLAGS="$CFLAGS"
15288 BUILD_LDFLAGS="$LDFLAGS"
15289else
15290 BUILD_CFLAGS=
15291 BUILD_LDFLAGS=
15292fi
15293
15294
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015295test -d lib || mkdir lib
15296test -d include || mkdir include
15297test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015298test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015299for i in MCONFIG Makefile e2fsprogs.spec \
15300 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015301 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15302 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015303 lib/uuid/Makefile lib/uuid/uuid_types.h \
15304 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015305 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15306 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015307 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015308 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15309 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15310 if test -d `dirname ${srcdir}/$i` ; then
15311 outlist="$outlist $i"
15312 fi
15313done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015314ac_config_files="$ac_config_files $outlist"
15315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015316cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015317# This file is a shell script that caches the results of configure
15318# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319# scripts and configure runs, see configure's option --config-cache.
15320# It is not useful on other systems. If it contains results you don't
15321# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015322#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015323# config.status only pays attention to the cache file if you give it
15324# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015325#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015326# `ac_cv_env_foo' variables (set or unset) will be overridden when
15327# loading this file, other *unset* `ac_cv_foo' will be assigned the
15328# following values.
15329
15330_ACEOF
15331
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015332# The following way of writing the cache mishandles newlines in values,
15333# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015334# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015335# Ultrix sh set writes to stderr and can't be redirected directly,
15336# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015337(
15338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15339 eval ac_val=\$$ac_var
15340 case $ac_val in #(
15341 *${as_nl}*)
15342 case $ac_var in #(
15343 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15344echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15345 esac
15346 case $ac_var in #(
15347 _ | IFS | as_nl) ;; #(
15348 *) $as_unset $ac_var ;;
15349 esac ;;
15350 esac
15351 done
15352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015353 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15355 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015356 # `set' does not quote correctly, so add quotes (double-quote
15357 # substitution turns \\\\ into \\, and sed turns \\ into \).
15358 sed -n \
15359 "s/'/'\\\\''/g;
15360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015361 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015362 *)
15363 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015365 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015366 esac |
15367 sort
15368) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015369 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015370 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015371 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015372 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15374 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15376 :end' >>confcache
15377if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15378 if test -w "$cache_file"; then
15379 test "x$cache_file" != "x/dev/null" &&
15380 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15381echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015382 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015383 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015384 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15385echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015386 fi
15387fi
15388rm -f confcache
15389
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015390test "x$prefix" = xNONE && prefix=$ac_default_prefix
15391# Let make expand exec_prefix.
15392test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15393
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015394# Transform confdefs.h into DEFS.
15395# Protect against shell expansion while executing Makefile rules.
15396# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015397#
15398# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015399# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015400# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015401ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015402t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015403:clear
15404s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015405t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015406s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015407t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015408b any
15409:quote
15410s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15411s/\[/\\&/g
15412s/\]/\\&/g
15413s/\$/$$/g
15414H
15415:any
15416${
15417 g
15418 s/^\n//
15419 s/\n/ /g
15420 p
15421}
15422'
15423DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015424
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015425
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015426ac_libobjs=
15427ac_ltlibobjs=
15428for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15429 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015430 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15431 ac_i=`echo "$ac_i" | sed "$ac_script"`
15432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15433 # will be set to the directory where LIBOBJS objects are built.
15434 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15435 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015436done
15437LIBOBJS=$ac_libobjs
15438
15439LTLIBOBJS=$ac_ltlibobjs
15440
15441
15442
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015443: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015444ac_clean_files_save=$ac_clean_files
15445ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15446{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15447echo "$as_me: creating $CONFIG_STATUS" >&6;}
15448cat >$CONFIG_STATUS <<_ACEOF
15449#! $SHELL
15450# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015451# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015452# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015453# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015455debug=false
15456ac_cs_recheck=false
15457ac_cs_silent=false
15458SHELL=\${CONFIG_SHELL-$SHELL}
15459_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015460
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015461cat >>$CONFIG_STATUS <<\_ACEOF
15462## --------------------- ##
15463## M4sh Initialization. ##
15464## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015465
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015466# Be more Bourne compatible
15467DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015468if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15469 emulate sh
15470 NULLCMD=:
15471 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15472 # is contrary to our usage. Disable this feature.
15473 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015474 setopt NO_GLOB_SUBST
15475else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015476 case `(set -o) 2>/dev/null` in
15477 *posix*) set -o posix ;;
15478esac
15479
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015480fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015481
15482
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015483
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015484
Theodore Ts'oe1052142006-10-21 21:46:47 -040015485# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015486# Avoid depending upon Character Ranges.
15487as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15488as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15489as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15490as_cr_digits='0123456789'
15491as_cr_alnum=$as_cr_Letters$as_cr_digits
15492
15493# The user is always right.
15494if test "${PATH_SEPARATOR+set}" != set; then
15495 echo "#! /bin/sh" >conf$$.sh
15496 echo "exit 0" >>conf$$.sh
15497 chmod +x conf$$.sh
15498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15499 PATH_SEPARATOR=';'
15500 else
15501 PATH_SEPARATOR=:
15502 fi
15503 rm -f conf$$.sh
15504fi
15505
Theodore Ts'oe1052142006-10-21 21:46:47 -040015506# Support unset when possible.
15507if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15508 as_unset=unset
15509else
15510 as_unset=false
15511fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015512
Theodore Ts'oe1052142006-10-21 21:46:47 -040015513
15514# IFS
15515# We need space, tab and new line, in precisely that order. Quoting is
15516# there to prevent editors from complaining about space-tab.
15517# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15518# splitting by setting IFS to empty value.)
15519as_nl='
15520'
15521IFS=" "" $as_nl"
15522
15523# Find who we are. Look in the path if we contain no directory separator.
15524case $0 in
15525 *[\\/]* ) as_myself=$0 ;;
15526 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015527for as_dir in $PATH
15528do
15529 IFS=$as_save_IFS
15530 test -z "$as_dir" && as_dir=.
15531 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15532done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015533IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015534
Theodore Ts'oe1052142006-10-21 21:46:47 -040015535 ;;
15536esac
15537# We did not find ourselves, most probably we were run as `sh COMMAND'
15538# in which case we are not to be found in the path.
15539if test "x$as_myself" = x; then
15540 as_myself=$0
15541fi
15542if test ! -f "$as_myself"; then
15543 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15544 { (exit 1); exit 1; }
15545fi
15546
15547# Work around bugs in pre-3.0 UWIN ksh.
15548for as_var in ENV MAIL MAILPATH
15549do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15550done
15551PS1='$ '
15552PS2='> '
15553PS4='+ '
15554
15555# NLS nuisances.
15556for as_var in \
15557 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15558 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15559 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015560do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015561 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15562 eval $as_var=C; export $as_var
15563 else
15564 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15565 fi
15566done
15567
15568# Required to use basename.
15569if expr a : '\(a\)' >/dev/null 2>&1 &&
15570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15571 as_expr=expr
15572else
15573 as_expr=false
15574fi
15575
15576if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15577 as_basename=basename
15578else
15579 as_basename=false
15580fi
15581
15582
15583# Name of the executable.
15584as_me=`$as_basename -- "$0" ||
15585$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15586 X"$0" : 'X\(//\)$' \| \
15587 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15588echo X/"$0" |
15589 sed '/^.*\/\([^/][^/]*\)\/*$/{
15590 s//\1/
15591 q
15592 }
15593 /^X\/\(\/\/\)$/{
15594 s//\1/
15595 q
15596 }
15597 /^X\/\(\/\).*/{
15598 s//\1/
15599 q
15600 }
15601 s/.*/./; q'`
15602
15603# CDPATH.
15604$as_unset CDPATH
15605
15606
15607
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015608 as_lineno_1=$LINENO
15609 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015610 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015611 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015613 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15614 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015615 # line-number line after each line using $LINENO; the second 'sed'
15616 # does the real work. The second script uses 'N' to pair each
15617 # line-number line with the line containing $LINENO, and appends
15618 # trailing '-' during substitution so that $LINENO is not a special
15619 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015620 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015621 # scripts with optimization help from Paolo Bonzini. Blame Lee
15622 # E. McMahon (1931-1989) for sed's syntax. :-)
15623 sed -n '
15624 p
15625 /[$]LINENO/=
15626 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015627 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015628 s/[$]LINENO.*/&-/
15629 t lineno
15630 b
15631 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015632 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015633 :loop
15634 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015635 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015636 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015637 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015638 chmod +x "$as_me.lineno" ||
15639 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015640 { (exit 1); exit 1; }; }
15641
15642 # Don't try to exec as it changes $[0], causing all sort of problems
15643 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015644 # original and so on. Autoconf is especially sensitive to this).
15645 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015646 # Exit status is that of the last command.
15647 exit
15648}
15649
15650
Theodore Ts'oe1052142006-10-21 21:46:47 -040015651if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15652 as_dirname=dirname
15653else
15654 as_dirname=false
15655fi
15656
15657ECHO_C= ECHO_N= ECHO_T=
15658case `echo -n x` in
15659-n*)
15660 case `echo 'x\c'` in
15661 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15662 *) ECHO_C='\c';;
15663 esac;;
15664*)
15665 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015666esac
15667
Theodore Ts'oe1052142006-10-21 21:46:47 -040015668if expr a : '\(a\)' >/dev/null 2>&1 &&
15669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015670 as_expr=expr
15671else
15672 as_expr=false
15673fi
15674
15675rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015676if test -d conf$$.dir; then
15677 rm -f conf$$.dir/conf$$.file
15678else
15679 rm -f conf$$.dir
15680 mkdir conf$$.dir
15681fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015682echo >conf$$.file
15683if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015684 as_ln_s='ln -s'
15685 # ... but there are two gotchas:
15686 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15687 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15688 # In both cases, we have to default to `cp -p'.
15689 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015690 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015691elif ln conf$$.file conf$$ 2>/dev/null; then
15692 as_ln_s=ln
15693else
15694 as_ln_s='cp -p'
15695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015696rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15697rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015698
15699if mkdir -p . 2>/dev/null; then
15700 as_mkdir_p=:
15701else
15702 test -d ./-p && rmdir ./-p
15703 as_mkdir_p=false
15704fi
15705
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015706if test -x / >/dev/null 2>&1; then
15707 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015708else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015709 if ls -dL / >/dev/null 2>&1; then
15710 as_ls_L_option=L
15711 else
15712 as_ls_L_option=
15713 fi
15714 as_test_x='
15715 eval sh -c '\''
15716 if test -d "$1"; then
15717 test -d "$1/.";
15718 else
15719 case $1 in
15720 -*)set "./$1";;
15721 esac;
15722 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15723 ???[sx]*):;;*)false;;esac;fi
15724 '\'' sh
15725 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015726fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015727as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015728
15729# Sed expression to map a string onto a valid CPP name.
15730as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15731
15732# Sed expression to map a string onto a valid variable name.
15733as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15734
15735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015736exec 6>&1
15737
Theodore Ts'oe1052142006-10-21 21:46:47 -040015738# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015739# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015740# values after options handling.
15741ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015742This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015743generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015744
15745 CONFIG_FILES = $CONFIG_FILES
15746 CONFIG_HEADERS = $CONFIG_HEADERS
15747 CONFIG_LINKS = $CONFIG_LINKS
15748 CONFIG_COMMANDS = $CONFIG_COMMANDS
15749 $ $0 $@
15750
Theodore Ts'oe1052142006-10-21 21:46:47 -040015751on `(hostname || uname -n) 2>/dev/null | sed 1q`
15752"
15753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015754_ACEOF
15755
Theodore Ts'oe1052142006-10-21 21:46:47 -040015756cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015757# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015758config_files="$ac_config_files"
15759config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015760
Theodore Ts'oe1052142006-10-21 21:46:47 -040015761_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015762
15763cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015764ac_cs_usage="\
15765\`$as_me' instantiates files from templates according to the
15766current configuration.
15767
15768Usage: $0 [OPTIONS] [FILE]...
15769
15770 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015771 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015772 -q, --quiet do not print progress messages
15773 -d, --debug don't remove temporary files
15774 --recheck update $as_me by reconfiguring in the same conditions
15775 --file=FILE[:TEMPLATE]
15776 instantiate the configuration file FILE
15777
15778Configuration files:
15779$config_files
15780
15781Configuration commands:
15782$config_commands
15783
15784Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015785
Theodore Ts'oe1052142006-10-21 21:46:47 -040015786_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015787cat >>$CONFIG_STATUS <<_ACEOF
15788ac_cs_version="\\
15789config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015790configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015791 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015792
Theodore Ts'oe1052142006-10-21 21:46:47 -040015793Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015794This config.status script is free software; the Free Software Foundation
15795gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015796
15797ac_pwd='$ac_pwd'
15798srcdir='$srcdir'
15799INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015800_ACEOF
15801
15802cat >>$CONFIG_STATUS <<\_ACEOF
15803# If no file are specified by the user, then we need to provide default
15804# value. By we need to know if files were specified by the user.
15805ac_need_defaults=:
15806while test $# != 0
15807do
15808 case $1 in
15809 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015812 ac_shift=:
15813 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015814 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015815 ac_option=$1
15816 ac_optarg=$2
15817 ac_shift=shift
15818 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015819 esac
15820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015821 case $ac_option in
15822 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15824 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15826 echo "$ac_cs_version"; exit ;;
15827 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015828 debug=: ;;
15829 --file | --fil | --fi | --f )
15830 $ac_shift
15831 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15832 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015833 --he | --h | --help | --hel | -h )
15834 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15837 ac_cs_silent=: ;;
15838
15839 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015840 -*) { echo "$as_me: error: unrecognized option: $1
15841Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015842 { (exit 1); exit 1; }; } ;;
15843
Theodore Ts'oe1052142006-10-21 21:46:47 -040015844 *) ac_config_targets="$ac_config_targets $1"
15845 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015846
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015847 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015848 shift
15849done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015850
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015851ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015852
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015853if $ac_cs_silent; then
15854 exec 6>/dev/null
15855 ac_configure_extra_args="$ac_configure_extra_args --silent"
15856fi
15857
15858_ACEOF
15859cat >>$CONFIG_STATUS <<_ACEOF
15860if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015861 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15862 CONFIG_SHELL=$SHELL
15863 export CONFIG_SHELL
15864 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015865fi
15866
15867_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015868cat >>$CONFIG_STATUS <<\_ACEOF
15869exec 5>>config.log
15870{
15871 echo
15872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15873## Running $as_me. ##
15874_ASBOX
15875 echo "$ac_log"
15876} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015877
Theodore Ts'oe1052142006-10-21 21:46:47 -040015878_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015879cat >>$CONFIG_STATUS <<_ACEOF
15880#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015881# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015882#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015883# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015884 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015885 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015886 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015887 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15888 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015889
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015891_ACEOF
15892
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015893cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015894
15895# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015896for ac_config_target in $ac_config_targets
15897do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015898 case $ac_config_target in
15899 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15900 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15901
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15903echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15904 { (exit 1); exit 1; }; };;
15905 esac
15906done
15907
Theodore Ts'oe1052142006-10-21 21:46:47 -040015908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015909# If the user did not use the arguments to specify the items to instantiate,
15910# then the envvar interface is used. Set only those that are not.
15911# We use the long form for the default assignment because of an extremely
15912# bizarre bug on SunOS 4.1.3.
15913if $ac_need_defaults; then
15914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15916fi
15917
15918# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015919# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015920# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015921# Hook for its removal unless debugging.
15922# Note that there is a small window in which the directory will not be cleaned:
15923# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015924$debug ||
15925{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015926 tmp=
15927 trap 'exit_status=$?
15928 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15929' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015930 trap '{ (exit 1); exit 1; }' 1 2 13 15
15931}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015932# Create a (secure) tmp directory for tmp files.
15933
15934{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015935 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015936 test -n "$tmp" && test -d "$tmp"
15937} ||
15938{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015939 tmp=./conf$$-$RANDOM
15940 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015941} ||
15942{
15943 echo "$me: cannot create a temporary directory in ." >&2
15944 { (exit 1); exit 1; }
15945}
15946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015947#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015948# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015949#
15950
15951# No need to generate the scripts if there are no CONFIG_FILES.
15952# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015953if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015954
15955_ACEOF
15956
Theodore Ts'oe1052142006-10-21 21:46:47 -040015957# Create sed commands to just substitute file output variables.
15958
15959# Remaining file output variables are in a fragment that also has non-file
15960# output varibles.
15961
15962
15963
15964ac_delim='%!_!# '
15965for ac_last_try in false false false false false :; do
15966 cat >conf$$subs.sed <<_ACEOF
15967SHELL!$SHELL$ac_delim
15968PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15969PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15970PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15971PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15972PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15973PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15974exec_prefix!$exec_prefix$ac_delim
15975prefix!$prefix$ac_delim
15976program_transform_name!$program_transform_name$ac_delim
15977bindir!$bindir$ac_delim
15978sbindir!$sbindir$ac_delim
15979libexecdir!$libexecdir$ac_delim
15980datarootdir!$datarootdir$ac_delim
15981datadir!$datadir$ac_delim
15982sysconfdir!$sysconfdir$ac_delim
15983sharedstatedir!$sharedstatedir$ac_delim
15984localstatedir!$localstatedir$ac_delim
15985includedir!$includedir$ac_delim
15986oldincludedir!$oldincludedir$ac_delim
15987docdir!$docdir$ac_delim
15988infodir!$infodir$ac_delim
15989htmldir!$htmldir$ac_delim
15990dvidir!$dvidir$ac_delim
15991pdfdir!$pdfdir$ac_delim
15992psdir!$psdir$ac_delim
15993libdir!$libdir$ac_delim
15994localedir!$localedir$ac_delim
15995mandir!$mandir$ac_delim
15996DEFS!$DEFS$ac_delim
15997ECHO_C!$ECHO_C$ac_delim
15998ECHO_N!$ECHO_N$ac_delim
15999ECHO_T!$ECHO_T$ac_delim
16000LIBS!$LIBS$ac_delim
16001build_alias!$build_alias$ac_delim
16002host_alias!$host_alias$ac_delim
16003target_alias!$target_alias$ac_delim
16004E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16005E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16006E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16007E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016008E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016009build!$build$ac_delim
16010build_cpu!$build_cpu$ac_delim
16011build_vendor!$build_vendor$ac_delim
16012build_os!$build_os$ac_delim
16013host!$host$ac_delim
16014host_cpu!$host_cpu$ac_delim
16015host_vendor!$host_vendor$ac_delim
16016host_os!$host_os$ac_delim
16017CC!$CC$ac_delim
16018CFLAGS!$CFLAGS$ac_delim
16019LDFLAGS!$LDFLAGS$ac_delim
16020CPPFLAGS!$CPPFLAGS$ac_delim
16021ac_ct_CC!$ac_ct_CC$ac_delim
16022EXEEXT!$EXEEXT$ac_delim
16023OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016024CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016025LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016026GREP!$GREP$ac_delim
16027EGREP!$EGREP$ac_delim
16028LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16029MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16030HTREE_CMT!$HTREE_CMT$ac_delim
16031ELF_CMT!$ELF_CMT$ac_delim
16032BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16033PROFILE_CMT!$PROFILE_CMT$ac_delim
16034CHECKER_CMT!$CHECKER_CMT$ac_delim
16035LIB_EXT!$LIB_EXT$ac_delim
16036STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16037PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16038SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16039DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16040IMAGER_CMT!$IMAGER_CMT$ac_delim
16041RESIZER_CMT!$RESIZER_CMT$ac_delim
Theodore Ts'o7e8fe322008-01-27 17:43:10 -050016042FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016043_ACEOF
16044
16045 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16046 break
16047 elif $ac_last_try; then
16048 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16049echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16050 { (exit 1); exit 1; }; }
16051 else
16052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016053 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016054done
16055
16056ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16057if test -n "$ac_eof"; then
16058 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16059 ac_eof=`expr $ac_eof + 1`
16060fi
16061
16062cat >>$CONFIG_STATUS <<_ACEOF
16063cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16064/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16065/^[ ]*@MCONFIG@[ ]*$/{
16066r $MCONFIG
16067d
16068}
16069/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16070r $MAKEFILE_ELF
16071d
16072}
16073/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16074r $MAKEFILE_BSDLIB
16075d
16076}
16077/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16078r $MAKEFILE_PROFILE
16079d
16080}
16081/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16082r $MAKEFILE_CHECKER
16083d
16084}
16085/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16086r $MAKEFILE_LIBRARY
16087d
16088}
16089/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16090r $ASM_TYPES_HEADER
16091d
16092}
16093_ACEOF
16094sed '
16095s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16096s/^/s,@/; s/!/@,|#_!!_#|/
16097:n
16098t n
16099s/'"$ac_delim"'$/,g/; t
16100s/$/\\/; p
16101N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16102' >>$CONFIG_STATUS <conf$$subs.sed
16103rm -f conf$$subs.sed
16104cat >>$CONFIG_STATUS <<_ACEOF
16105CEOF$ac_eof
16106_ACEOF
16107
16108
16109ac_delim='%!_!# '
16110for ac_last_try in false false false false false :; do
16111 cat >conf$$subs.sed <<_ACEOF
16112FSCK_MAN!$FSCK_MAN$ac_delim
16113E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16114E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016115PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016116DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16117DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16118DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16119STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016120STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016121UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016122GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16123PACKAGE!$PACKAGE$ac_delim
16124VERSION!$VERSION$ac_delim
16125SET_MAKE!$SET_MAKE$ac_delim
16126INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16127INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16128INSTALL_DATA!$INSTALL_DATA$ac_delim
16129MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16130USE_NLS!$USE_NLS$ac_delim
16131MSGFMT!$MSGFMT$ac_delim
16132GMSGFMT!$GMSGFMT$ac_delim
16133XGETTEXT!$XGETTEXT$ac_delim
16134MSGMERGE!$MSGMERGE$ac_delim
16135RANLIB!$RANLIB$ac_delim
16136ALLOCA!$ALLOCA$ac_delim
16137GLIBC21!$GLIBC21$ac_delim
16138HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16139HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16140HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16141HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16142LIBICONV!$LIBICONV$ac_delim
16143LTLIBICONV!$LTLIBICONV$ac_delim
16144INTLBISON!$INTLBISON$ac_delim
16145BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16146USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16147CATOBJEXT!$CATOBJEXT$ac_delim
16148DATADIRNAME!$DATADIRNAME$ac_delim
16149INSTOBJEXT!$INSTOBJEXT$ac_delim
16150GENCAT!$GENCAT$ac_delim
16151INTLOBJS!$INTLOBJS$ac_delim
16152INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16153INTLLIBS!$INTLLIBS$ac_delim
16154LIBINTL!$LIBINTL$ac_delim
16155LTLIBINTL!$LTLIBINTL$ac_delim
16156POSUB!$POSUB$ac_delim
16157BINARY_TYPE!$BINARY_TYPE$ac_delim
16158LN!$LN$ac_delim
16159LN_S!$LN_S$ac_delim
16160MV!$MV$ac_delim
16161CP!$CP$ac_delim
16162RM!$RM$ac_delim
16163CHMOD!$CHMOD$ac_delim
16164AWK!$AWK$ac_delim
16165SED!$SED$ac_delim
16166PERL!$PERL$ac_delim
16167LDCONFIG!$LDCONFIG$ac_delim
16168AR!$AR$ac_delim
16169STRIP!$STRIP$ac_delim
16170BUILD_CC!$BUILD_CC$ac_delim
16171SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16172SIZEOF_INT!$SIZEOF_INT$ac_delim
16173SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16174SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16175SOCKET_LIB!$SOCKET_LIB$ac_delim
16176DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16177UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16178LINUX_CMT!$LINUX_CMT$ac_delim
16179CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16180UNIX_CMT!$UNIX_CMT$ac_delim
16181root_prefix!$root_prefix$ac_delim
16182root_bindir!$root_bindir$ac_delim
16183root_sbindir!$root_sbindir$ac_delim
16184root_libdir!$root_libdir$ac_delim
16185root_sysconfdir!$root_sysconfdir$ac_delim
16186LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16187SS_DIR!$SS_DIR$ac_delim
16188ET_DIR!$ET_DIR$ac_delim
16189DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16190INTL_FLAGS!$INTL_FLAGS$ac_delim
16191BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16192BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16193LIBOBJS!$LIBOBJS$ac_delim
16194LTLIBOBJS!$LTLIBOBJS$ac_delim
16195_ACEOF
16196
Theodore Ts'o7e8fe322008-01-27 17:43:10 -050016197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016198 break
16199 elif $ac_last_try; then
16200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16201echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16202 { (exit 1); exit 1; }; }
16203 else
16204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16205 fi
16206done
16207
16208ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16209if test -n "$ac_eof"; then
16210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16211 ac_eof=`expr $ac_eof + 1`
16212fi
16213
16214cat >>$CONFIG_STATUS <<_ACEOF
16215cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16217_ACEOF
16218sed '
16219s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16220s/^/s,@/; s/!/@,|#_!!_#|/
16221:n
16222t n
16223s/'"$ac_delim"'$/,g/; t
16224s/$/\\/; p
16225N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16226' >>$CONFIG_STATUS <conf$$subs.sed
16227rm -f conf$$subs.sed
16228cat >>$CONFIG_STATUS <<_ACEOF
16229:end
16230s/|#_!!_#|//g
16231CEOF$ac_eof
16232_ACEOF
16233
16234
16235# VPATH may cause trouble with some makes, so we remove $(srcdir),
16236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16237# trailing colons and then remove the whole line if VPATH becomes empty
16238# (actually we leave an empty line to preserve line numbers).
16239if test "x$srcdir" = x.; then
16240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16241s/:*\$(srcdir):*/:/
16242s/:*\${srcdir}:*/:/
16243s/:*@srcdir@:*/:/
16244s/^\([^=]*=[ ]*\):*/\1/
16245s/:*$//
16246s/^[^=]*=[ ]*$//
16247}'
16248fi
16249
16250cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016251fi # test -n "$CONFIG_FILES"
16252
Theodore Ts'oe1052142006-10-21 21:46:47 -040016253
16254for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16255do
16256 case $ac_tag in
16257 :[FHLC]) ac_mode=$ac_tag; continue;;
16258 esac
16259 case $ac_mode$ac_tag in
16260 :[FHL]*:*);;
16261 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16262echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16263 { (exit 1); exit 1; }; };;
16264 :[FH]-) ac_tag=-:-;;
16265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16266 esac
16267 ac_save_IFS=$IFS
16268 IFS=:
16269 set x $ac_tag
16270 IFS=$ac_save_IFS
16271 shift
16272 ac_file=$1
16273 shift
16274
16275 case $ac_mode in
16276 :L) ac_source=$1;;
16277 :[FH])
16278 ac_file_inputs=
16279 for ac_f
16280 do
16281 case $ac_f in
16282 -) ac_f="$tmp/stdin";;
16283 *) # Look for the file first in the build tree, then in the source tree
16284 # (if the path is not absolute). The absolute path cannot be DOS-style,
16285 # because $ac_f cannot contain `:'.
16286 test -f "$ac_f" ||
16287 case $ac_f in
16288 [\\/$]*) false;;
16289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16290 esac ||
16291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16292echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16293 { (exit 1); exit 1; }; };;
16294 esac
16295 ac_file_inputs="$ac_file_inputs $ac_f"
16296 done
16297
16298 # Let's still pretend it is `configure' which instantiates (i.e., don't
16299 # use $as_me), people would be surprised to read:
16300 # /* config.h. Generated by config.status. */
16301 configure_input="Generated from "`IFS=:
16302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16303 if test x"$ac_file" != x-; then
16304 configure_input="$ac_file. $configure_input"
16305 { echo "$as_me:$LINENO: creating $ac_file" >&5
16306echo "$as_me: creating $ac_file" >&6;}
16307 fi
16308
16309 case $ac_tag in
16310 *:-:* | *:-) cat >"$tmp/stdin";;
16311 esac
16312 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016313 esac
16314
Theodore Ts'oe1052142006-10-21 21:46:47 -040016315 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16317 X"$ac_file" : 'X\(//\)[^/]' \| \
16318 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016320echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16322 s//\1/
16323 q
16324 }
16325 /^X\(\/\/\)[^/].*/{
16326 s//\1/
16327 q
16328 }
16329 /^X\(\/\/\)$/{
16330 s//\1/
16331 q
16332 }
16333 /^X\(\/\).*/{
16334 s//\1/
16335 q
16336 }
16337 s/.*/./; q'`
16338 { as_dir="$ac_dir"
16339 case $as_dir in #(
16340 -*) as_dir=./$as_dir;;
16341 esac
16342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016343 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016344 while :; do
16345 case $as_dir in #(
16346 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16347 *) as_qdir=$as_dir;;
16348 esac
16349 as_dirs="'$as_qdir' $as_dirs"
16350 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$as_dir" : 'X\(//\)[^/]' \| \
16353 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016355echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16357 s//\1/
16358 q
16359 }
16360 /^X\(\/\/\)[^/].*/{
16361 s//\1/
16362 q
16363 }
16364 /^X\(\/\/\)$/{
16365 s//\1/
16366 q
16367 }
16368 /^X\(\/\).*/{
16369 s//\1/
16370 q
16371 }
16372 s/.*/./; q'`
16373 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016374 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016375 test -z "$as_dirs" || eval "mkdir $as_dirs"
16376 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16377echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016378 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016379 ac_builddir=.
16380
Theodore Ts'oe1052142006-10-21 21:46:47 -040016381case "$ac_dir" in
16382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16383*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016385 # A ".." for each directory in $ac_dir_suffix.
16386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16387 case $ac_top_builddir_sub in
16388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16390 esac ;;
16391esac
16392ac_abs_top_builddir=$ac_pwd
16393ac_abs_builddir=$ac_pwd$ac_dir_suffix
16394# for backward compatibility:
16395ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016396
16397case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016398 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016399 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016400 ac_top_srcdir=$ac_top_builddir_sub
16401 ac_abs_top_srcdir=$ac_pwd ;;
16402 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016403 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016404 ac_top_srcdir=$srcdir
16405 ac_abs_top_srcdir=$srcdir ;;
16406 *) # Relative name.
16407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16408 ac_top_srcdir=$ac_top_build_prefix$srcdir
16409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016410esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016413
Theodore Ts'oe1052142006-10-21 21:46:47 -040016414 case $ac_mode in
16415 :F)
16416 #
16417 # CONFIG_FILE
16418 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016419
16420 case $INSTALL in
16421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016423 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016424_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016425
16426cat >>$CONFIG_STATUS <<\_ACEOF
16427# If the template does not know about datarootdir, expand it.
16428# FIXME: This hack should be removed a few years after 2.60.
16429ac_datarootdir_hack=; ac_datarootdir_seen=
16430
16431case `sed -n '/datarootdir/ {
16432 p
16433 q
16434}
16435/@datadir@/p
16436/@docdir@/p
16437/@infodir@/p
16438/@localedir@/p
16439/@mandir@/p
16440' $ac_file_inputs` in
16441*datarootdir*) ac_datarootdir_seen=yes;;
16442*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16444echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16445_ACEOF
16446cat >>$CONFIG_STATUS <<_ACEOF
16447 ac_datarootdir_hack='
16448 s&@datadir@&$datadir&g
16449 s&@docdir@&$docdir&g
16450 s&@infodir@&$infodir&g
16451 s&@localedir@&$localedir&g
16452 s&@mandir@&$mandir&g
16453 s&\\\${datarootdir}&$datarootdir&g' ;;
16454esac
16455_ACEOF
16456
16457# Neutralize VPATH when `$srcdir' = `.'.
16458# Shell code in configure.ac might set extrasub.
16459# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016460cat >>$CONFIG_STATUS <<_ACEOF
16461 sed "$ac_vpsub
16462$extrasub
16463_ACEOF
16464cat >>$CONFIG_STATUS <<\_ACEOF
16465:t
16466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016467s&@configure_input@&$configure_input&;t t
16468s&@top_builddir@&$ac_top_builddir_sub&;t t
16469s&@srcdir@&$ac_srcdir&;t t
16470s&@abs_srcdir@&$ac_abs_srcdir&;t t
16471s&@top_srcdir@&$ac_top_srcdir&;t t
16472s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16473s&@builddir@&$ac_builddir&;t t
16474s&@abs_builddir@&$ac_abs_builddir&;t t
16475s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16476s&@INSTALL@&$ac_INSTALL&;t t
16477$ac_datarootdir_hack
16478" $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 -050016479
Theodore Ts'oe1052142006-10-21 21:46:47 -040016480test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16484which seems to be undefined. Please make sure it is defined." >&5
16485echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16486which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016487
Theodore Ts'oe1052142006-10-21 21:46:47 -040016488 rm -f "$tmp/stdin"
16489 case $ac_file in
16490 -) cat "$tmp/out"; rm -f "$tmp/out";;
16491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16492 esac
16493 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016494
16495
Theodore Ts'oe1052142006-10-21 21:46:47 -040016496 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16497echo "$as_me: executing $ac_file commands" >&6;}
16498 ;;
16499 esac
16500
16501
16502 case $ac_file$ac_mode in
16503 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016504 for ac_file in $CONFIG_FILES; do
16505 # Support "outfile[:infile[:infile...]]"
16506 case "$ac_file" in
16507 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016508 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016509 # PO directories have a Makefile.in generated from Makefile.in.in.
16510 case "$ac_file" in */Makefile.in)
16511 # Adjust a relative srcdir.
16512 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16513 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16514 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16515 # In autoconf-2.13 it is called $ac_given_srcdir.
16516 # In autoconf-2.50 it is called $srcdir.
16517 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16518 case "$ac_given_srcdir" in
16519 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16520 /*) top_srcdir="$ac_given_srcdir" ;;
16521 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16522 esac
16523 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16524 rm -f "$ac_dir/POTFILES"
16525 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16526 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 -050016527 POMAKEFILEDEPS="POTFILES.in"
16528 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016529 # on $ac_dir but don't depend on user-specified configuration
16530 # parameters.
16531 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16532 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016533 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016534 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16535 fi
16536 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16537 # Hide the ALL_LINGUAS assigment from automake.
16538 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016539 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16540 else
16541 # The set of available languages was given in configure.in.
16542 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016543 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016544 # Compute POFILES
16545 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16546 # Compute UPDATEPOFILES
16547 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16548 # Compute DUMMYPOFILES
16549 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16550 # Compute GMOFILES
16551 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016552 case "$ac_given_srcdir" in
16553 .) srcdirpre= ;;
16554 *) srcdirpre='$(srcdir)/' ;;
16555 esac
16556 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016557 UPDATEPOFILES=
16558 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016559 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016560 for lang in $ALL_LINGUAS; do
16561 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016562 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16563 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016564 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016565 done
16566 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16567 # environment variable.
16568 INST_LINGUAS=
16569 if test -n "$ALL_LINGUAS"; then
16570 for presentlang in $ALL_LINGUAS; do
16571 useit=no
16572 if test "%UNSET%" != "$LINGUAS"; then
16573 desiredlanguages="$LINGUAS"
16574 else
16575 desiredlanguages="$ALL_LINGUAS"
16576 fi
16577 for desiredlang in $desiredlanguages; do
16578 # Use the presentlang catalog if desiredlang is
16579 # a. equal to presentlang, or
16580 # b. a variant of presentlang (because in this case,
16581 # presentlang can be used as a fallback for messages
16582 # which are not translated in the desiredlang catalog).
16583 case "$desiredlang" in
16584 "$presentlang"*) useit=yes;;
16585 esac
16586 done
16587 if test $useit = yes; then
16588 INST_LINGUAS="$INST_LINGUAS $presentlang"
16589 fi
16590 done
16591 fi
16592 CATALOGS=
16593 if test -n "$INST_LINGUAS"; then
16594 for lang in $INST_LINGUAS; do
16595 CATALOGS="$CATALOGS $lang.gmo"
16596 done
16597 fi
16598 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016599 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 -040016600 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16601 if test -f "$f"; then
16602 case "$f" in
16603 *.orig | *.bak | *~) ;;
16604 *) cat "$f" >> "$ac_dir/Makefile" ;;
16605 esac
16606 fi
16607 done
16608 fi
16609 ;;
16610 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016611 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016612
Theodore Ts'oe1052142006-10-21 21:46:47 -040016613 esac
16614done # for ac_tag
16615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016616
16617{ (exit 0); exit 0; }
16618_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016619chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016620ac_clean_files=$ac_clean_files_save
16621
16622
16623# configure is writing to config.log, and then calls config.status.
16624# config.status does its own redirection, appending to config.log.
16625# Unfortunately, on DOS this fails, as config.log is still kept open
16626# by configure, so config.status won't be able to write to it; its
16627# output is simply discarded. So we exec the FD to /dev/null,
16628# effectively closing config.log, so it can be properly (re)opened and
16629# appended to by config.status. When coming back to configure, we
16630# need to make the FD available again.
16631if test "$no_create" != yes; then
16632 ac_cs_success=:
16633 ac_config_status_args=
16634 test "$silent" = yes &&
16635 ac_config_status_args="$ac_config_status_args --quiet"
16636 exec 5>/dev/null
16637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16638 exec 5>>config.log
16639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16640 # would make configure fail if this is the last instruction.
16641 $ac_cs_success || { (exit 1); exit 1; }
16642fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016643
Theodore Ts'oee683a12005-02-05 15:53:56 -050016644if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16645