blob: a6b787b4ad4e9f4c8da9f76bb707669b9e66e694 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
Theodore Ts'o55da9872008-09-02 23:12:38 -0400687LDFLAG_DYNAMIC
688PRIVATE_LIBS_CMT
Theodore Ts'oaf773652008-09-01 11:27:27 -0400689TEST_IO_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400690DEBUGFS_CMT
691IMAGER_CMT
692RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400693FSCK_PROG
694FSCK_MAN
695E2INITRD_PROG
696E2INITRD_MAN
Theodore Ts'o5610f992007-12-31 11:16:56 -0500697UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400698GETTEXT_PACKAGE
699PACKAGE
700VERSION
701SET_MAKE
702INSTALL_PROGRAM
703INSTALL_SCRIPT
704INSTALL_DATA
705MKINSTALLDIRS
706USE_NLS
707MSGFMT
708GMSGFMT
709XGETTEXT
710MSGMERGE
711RANLIB
712ALLOCA
713GLIBC21
714HAVE_POSIX_PRINTF
715HAVE_ASPRINTF
716HAVE_SNPRINTF
717HAVE_WPRINTF
718LIBICONV
719LTLIBICONV
720INTLBISON
721BUILD_INCLUDED_LIBINTL
722USE_INCLUDED_LIBINTL
723CATOBJEXT
724DATADIRNAME
725INSTOBJEXT
726GENCAT
727INTLOBJS
728INTL_LIBTOOL_SUFFIX_PREFIX
729INTLLIBS
730LIBINTL
731LTLIBINTL
732POSUB
733BINARY_TYPE
734LN
735LN_S
736MV
737CP
738RM
739CHMOD
740AWK
741SED
742PERL
743LDCONFIG
744AR
745STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530746MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400747BUILD_CC
748SIZEOF_SHORT
749SIZEOF_INT
750SIZEOF_LONG
751SIZEOF_LONG_LONG
752SOCKET_LIB
753DLOPEN_LIB
Theodore Ts'od7f45af2008-09-12 10:15:26 -0400754SEM_INIT_LIB
Theodore Ts'oe1052142006-10-21 21:46:47 -0400755UNI_DIFF_OPTS
756LINUX_CMT
757CYGWIN_CMT
758UNIX_CMT
759root_prefix
760root_bindir
761root_sbindir
762root_libdir
763root_sysconfdir
764LDFLAG_STATIC
765SS_DIR
766ET_DIR
767DO_TEST_SUITE
768INTL_FLAGS
769BUILD_CFLAGS
770BUILD_LDFLAGS
771LIBOBJS
772LTLIBOBJS'
773ac_subst_files='MCONFIG
774MAKEFILE_ELF
775MAKEFILE_BSDLIB
776MAKEFILE_PROFILE
777MAKEFILE_CHECKER
778MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400779ASM_TYPES_HEADER
780PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400781 ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400787LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400788CPPFLAGS
Theodore Ts'o7515a742008-08-26 23:56:00 -0400789CPP'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400790
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000791
792# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500793ac_init_help=
794ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000795# The variables have the same names as the options, with
796# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500797cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000798exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000799no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000800no_recursion=
801prefix=NONE
802program_prefix=NONE
803program_suffix=NONE
804program_transform_name=s,x,x,
805silent=
806site=
807srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000808verbose=
809x_includes=NONE
810x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500811
812# Installation directory options.
813# These are left unexpanded so users can "make install exec_prefix=/foo"
814# and all the variables that are supposed to be based on exec_prefix
815# by default will actually change.
816# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400817# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000818bindir='${exec_prefix}/bin'
819sbindir='${exec_prefix}/sbin'
820libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400821datarootdir='${prefix}/share'
822datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000823sysconfdir='${prefix}/etc'
824sharedstatedir='${prefix}/com'
825localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000826includedir='${prefix}/include'
827oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400828docdir='${datarootdir}/doc/${PACKAGE}'
829infodir='${datarootdir}/info'
830htmldir='${docdir}'
831dvidir='${docdir}'
832pdfdir='${docdir}'
833psdir='${docdir}'
834libdir='${exec_prefix}/lib'
835localedir='${datarootdir}/locale'
836mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000837
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000838ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400839ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840for ac_option
841do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400844 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000845 ac_prev=
846 continue
847 fi
848
Theodore Ts'oe1052142006-10-21 21:46:47 -0400849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
Theodore Ts'oe1052142006-10-21 21:46:47 -0400856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000859
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500863 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000864
865 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500866 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500868 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000879
Theodore Ts'oe1052142006-10-21 21:46:47 -0400880 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000881 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500883 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884
Theodore Ts'oe1052142006-10-21 21:46:47 -0400885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500893 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000894 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400898 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400899 eval enable_$ac_feature=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910
911 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500912 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000913 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400917 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400918 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500927 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000939
940 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500941 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500943 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944
Theodore Ts'oe1052142006-10-21 21:46:47 -0400945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
950
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500956 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000957
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500961 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000962
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500966 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000967
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500973 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000974
Theodore Ts'oe1052142006-10-21 21:46:47 -0400975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
979
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000980 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400981 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500985 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000986
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500990 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000991
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
995
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500997 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000998 no_create=yes ;;
999
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1003
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001011 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001012
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001016 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001017
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001023 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001024
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001030 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001031
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001047 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001048
Theodore Ts'oe1052142006-10-21 21:46:47 -04001049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1053
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1062
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001067 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001068
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001083 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001084
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001088 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001089
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001095 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001096
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 ac_prev=target_alias ;;
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 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001101
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1104
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001107
1108 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001115 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001116
1117 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001124 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001125
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1129
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001135 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001136
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001142 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001143
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147 ;;
1148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001155 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001156 export $ac_envvar ;;
1157
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001158 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001164 ;;
1165
1166 esac
1167done
1168
1169if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001173fi
1174
Theodore Ts'oe1052142006-10-21 21:46:47 -04001175# Be sure to have absolute directory names.
1176for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001180do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001181 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001182 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001188done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001190# There might be people who depend on the old broken behavior: `$host'
1191# used to hold the argument of --host etc.
1192# FIXME: To remove some day.
1193build=$build_alias
1194host=$host_alias
1195target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001197# FIXME: To remove some day.
1198if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1205 fi
1206fi
1207
1208ac_tool_prefix=
1209test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211test "$silent" = yes && exec 6>/dev/null
1212
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001213
Theodore Ts'oe1052142006-10-21 21:46:47 -04001214ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215ac_ls_di=`ls -di .` &&
1216ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1222
1223
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224# Find the source files, if location was not specified.
1225if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001251 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001252 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253 srcdir=..
1254 fi
1255else
1256 ac_srcdir_defaulted=no
1257fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001258if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001261 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001262fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001263ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001266 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001267 pwd)`
1268# When building in place, set srcdir=.
1269if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1271fi
1272# Remove unnecessary trailing slashes from srcdir.
1273# Double slashes in file names in object file debugging info
1274# mess up M-x gdb in Emacs.
1275case $srcdir in
1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277esac
1278for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001285#
1286# Report the --help message.
1287#
1288if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292\`configure' configures this package to adapt to many kinds of systems.
1293
1294Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297VAR=VALUE. See below for descriptions of some of the useful variables.
1298
1299Defaults for the options are specified in brackets.
1300
1301Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1317
1318By default, \`make install' will install all the files in
1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321for instance \`--prefix=\$HOME'.
1322
1323For better control, use the options below.
1324
1325Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001345_ACEOF
1346
1347 cat <<\_ACEOF
1348
1349System types:
1350 --build=BUILD configure for building on BUILD [guessed]
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1352_ACEOF
1353fi
1354
1355if test -n "$ac_init_help"; then
1356
1357 cat <<\_ACEOF
1358
1359Optional Features:
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001362 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001363 --enable-compression enable EXPERIMENTAL compression support
1364 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001365 --enable-elf-shlibs select ELF shared libraries
1366 --enable-bsd-shlibs select BSD shared libraries
1367 --enable-profile build profiling libraries
1368 --enable-checker build checker libraries
1369 --enable-jbd-debug enable journal debugging
1370 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001371 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001372 --disable-debugfs disable support of debugfs program
1373 --disable-imager disable support of e2image program
1374 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001375 --enable-fsck build fsck wrapper program
1376 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001377 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001378 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001379 --disable-nls do not use Native Language Support
1380 --disable-rpath do not hardcode runtime library paths
1381
1382Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001385 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001386 --with-cc=COMPILER select compiler to use
1387 --with-linker=LINKER select linker to use
1388 --with-ccopts=CCOPTS select compiler command line options
1389 --with-ldopts=LDOPTS select linker command line options
1390 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1391 --with-gnu-ld assume the C compiler uses GNU ld default=no
1392 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1393 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1394 --with-included-gettext use the GNU gettext library included here
1395 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1396 --without-libintl-prefix don't search for libintl in includedir and libdir
1397
1398Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001403 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001406 CPP C preprocessor
1407
1408Use these variables to override the choices made by `configure' or to help
1409it to find libraries and programs with nonstandard names/locations.
1410
1411_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001412ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001413fi
1414
1415if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001419 ac_builddir=.
1420
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421case "$ac_dir" in
1422.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 esac ;;
1431esac
1432ac_abs_top_builddir=$ac_pwd
1433ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434# for backward compatibility:
1435ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001436
1437case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001438 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001443 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1446 *) # Relative name.
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001450esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001451ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001452
Theodore Ts'oe1052142006-10-21 21:46:47 -04001453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461 else
1462 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001463 fi || ac_status=$?
1464 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465 done
1466fi
1467
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469if $ac_init_version; then
1470 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001471configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001472generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473
Theodore Ts'oe1052142006-10-21 21:46:47 -04001474Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14752002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001476This configure script is free software; the Free Software Foundation
1477gives unlimited permission to copy, distribute and modify it.
1478_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001481cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482This file contains any messages produced by compilers while
1483running configure, to aid debugging if configure makes a mistake.
1484
1485It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001486generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487
1488 $ $0 $@
1489
1490_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001491exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492{
1493cat <<_ASUNAME
1494## --------- ##
1495## Platform. ##
1496## --------- ##
1497
1498hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1499uname -m = `(uname -m) 2>/dev/null || echo unknown`
1500uname -r = `(uname -r) 2>/dev/null || echo unknown`
1501uname -s = `(uname -s) 2>/dev/null || echo unknown`
1502uname -v = `(uname -v) 2>/dev/null || echo unknown`
1503
1504/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1505/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1506
1507/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1508/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1509/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001510/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1512/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1513/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1514
1515_ASUNAME
1516
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 echo "PATH: $as_dir"
1523done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001524IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001525
1526} >&5
1527
1528cat >&5 <<_ACEOF
1529
1530
1531## ----------- ##
1532## Core tests. ##
1533## ----------- ##
1534
1535_ACEOF
1536
1537
1538# Keep a trace of the command line.
1539# Strip out --no-create and --no-recursion so they do not pile up.
1540# Strip out --silent because we don't want to record it for future runs.
1541# Also quote any args containing shell meta-characters.
1542# Make two passes to allow for proper duplicate-argument suppression.
1543ac_configure_args=
1544ac_configure_args0=
1545ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546ac_must_keep_next=false
1547for ac_pass in 1 2
1548do
1549 for ac_arg
1550 do
1551 case $ac_arg in
1552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554 | -silent | --silent | --silen | --sile | --sil)
1555 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001556 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1558 esac
1559 case $ac_pass in
1560 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1561 2)
1562 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1563 if test $ac_must_keep_next = true; then
1564 ac_must_keep_next=false # Got value, back to normal.
1565 else
1566 case $ac_arg in
1567 *=* | --config-cache | -C | -disable-* | --disable-* \
1568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1570 | -with-* | --with-* | -without-* | --without-* | --x)
1571 case "$ac_configure_args0 " in
1572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1573 esac
1574 ;;
1575 -* ) ac_must_keep_next=true ;;
1576 esac
1577 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001578 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579 ;;
1580 esac
1581 done
1582done
1583$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1584$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1585
1586# When interrupted or exit'd, cleanup temporary files, and complete
1587# config.log. We remove comments because anyway the quotes in there
1588# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001589# WARNING: Use '\'' to represent an apostrophe within the trap.
1590# 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 -05001591trap 'exit_status=$?
1592 # Save into config.log some information that might help in debugging.
1593 {
1594 echo
1595
1596 cat <<\_ASBOX
1597## ---------------- ##
1598## Cache variables. ##
1599## ---------------- ##
1600_ASBOX
1601 echo
1602 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603(
1604 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in #(
1607 *${as_nl}*)
1608 case $ac_var in #(
1609 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1610echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1611 esac
1612 case $ac_var in #(
1613 _ | IFS | as_nl) ;; #(
1614 *) $as_unset $ac_var ;;
1615 esac ;;
1616 esac
1617 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001618 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1620 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622 "s/'\''/'\''\\\\'\'''\''/g;
1623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1624 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001627 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001628 esac |
1629 sort
1630)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631 echo
1632
1633 cat <<\_ASBOX
1634## ----------------- ##
1635## Output variables. ##
1636## ----------------- ##
1637_ASBOX
1638 echo
1639 for ac_var in $ac_subst_vars
1640 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646 done | sort
1647 echo
1648
1649 if test -n "$ac_subst_files"; then
1650 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001651## ------------------- ##
1652## File substitutions. ##
1653## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654_ASBOX
1655 echo
1656 for ac_var in $ac_subst_files
1657 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001658 eval ac_val=\$$ac_var
1659 case $ac_val in
1660 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661 esac
1662 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001663 done | sort
1664 echo
1665 fi
1666
1667 if test -s confdefs.h; then
1668 cat <<\_ASBOX
1669## ----------- ##
1670## confdefs.h. ##
1671## ----------- ##
1672_ASBOX
1673 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001674 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001675 echo
1676 fi
1677 test "$ac_signal" != 0 &&
1678 echo "$as_me: caught signal $ac_signal"
1679 echo "$as_me: exit $exit_status"
1680 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001681 rm -f core *.core core.conftest.* &&
1682 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001683 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001684' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001685for ac_signal in 1 2 13 15; do
1686 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1687done
1688ac_signal=0
1689
1690# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001691rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001692
1693# Predefined preprocessor variables.
1694
1695cat >>confdefs.h <<_ACEOF
1696#define PACKAGE_NAME "$PACKAGE_NAME"
1697_ACEOF
1698
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_VERSION "$PACKAGE_VERSION"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_STRING "$PACKAGE_STRING"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1717_ACEOF
1718
1719
1720# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001721# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001722if test -n "$CONFIG_SITE"; then
1723 set x "$CONFIG_SITE"
1724elif test "x$prefix" != xNONE; then
1725 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1726else
1727 set x "$ac_default_prefix/share/config.site" \
1728 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001730shift
1731for ac_site_file
1732do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001733 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001734 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1735echo "$as_me: loading site script $ac_site_file" >&6;}
1736 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001737 . "$ac_site_file"
1738 fi
1739done
1740
1741if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001742 # Some versions of bash will fail to source /dev/null (special
1743 # files actually), so we avoid doing that.
1744 if test -f "$cache_file"; then
1745 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1746echo "$as_me: loading cache $cache_file" >&6;}
1747 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001748 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001750 esac
1751 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001752else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001753 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1754echo "$as_me: creating cache $cache_file" >&6;}
1755 >$cache_file
1756fi
1757
1758# Check that the precious variables saved in the cache have kept the same
1759# value.
1760ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001761for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001766 case $ac_old_set,$ac_new_set in
1767 set,)
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1771 ,set)
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1775 ,);;
1776 *)
1777 if test "x$ac_old_val" != "x$ac_new_val"; then
1778 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1781echo "$as_me: former value: $ac_old_val" >&2;}
1782 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1783echo "$as_me: current value: $ac_new_val" >&2;}
1784 ac_cache_corrupted=:
1785 fi;;
1786 esac
1787 # Pass precious variables to config.status.
1788 if test "$ac_new_set" = set; then
1789 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001790 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001791 *) ac_arg=$ac_var=$ac_new_val ;;
1792 esac
1793 case " $ac_configure_args " in
1794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1795 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 esac
1797 fi
1798done
1799if $ac_cache_corrupted; then
1800 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001805fi
1806
Theodore Ts'oe1052142006-10-21 21:46:47 -04001807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001823ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001824ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001829
1830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001831ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001832for ac_dir in config "$srcdir"/config; do
1833 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/install-sh -c"
1836 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001837 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/install.sh -c"
1840 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001841 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001842 ac_aux_dir=$ac_dir
1843 ac_install_sh="$ac_aux_dir/shtool install -c"
1844 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001845 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001846done
1847if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1849echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001850 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001852
1853# These three variables are undocumented and unsupported,
1854# and are intended to be withdrawn in a future Autoconf release.
1855# They can cause serious problems if a builder's source tree is in a directory
1856# whose full name contains unusual characters.
1857ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1858ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1859ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1860
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001861
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001862MCONFIG=./MCONFIG
1863
Theodore Ts'o74becf31997-04-26 14:37:06 +00001864BINARY_TYPE=bin
1865E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1866 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1867DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1868 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001869E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001870MONTH=`echo $DATE | awk -F- '{print $2}'`
1871YEAR=`echo $DATE | awk -F- '{print $3}'`
1872
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001873if expr $YEAR ">" 1900 > /dev/null ; then
1874 E2FSPROGS_YEAR=$YEAR
1875elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001876 E2FSPROGS_YEAR=19$YEAR
1877else
1878 E2FSPROGS_YEAR=20$YEAR
1879fi
1880
1881case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001882Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1883Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1884Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1885Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1886May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1887Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1888Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1889Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1890Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1891Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1892Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1893Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001894*) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1895echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001896esac
1897
Andreas Dilger927566a2006-11-12 19:41:25 -05001898base_ver=`echo $E2FSPROGS_VERSION | \
1899 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001900
1901date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1902
1903case $E2FSPROGS_VERSION in
1904*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001905 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001906 ;;
1907*)
1908 E2FSPROGS_PKGVER="$base_ver"
1909 ;;
1910esac
1911
1912unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001913{ echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1914echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1915{ echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1916echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001917
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001918
1919
1920
Andreas Dilger927566a2006-11-12 19:41:25 -05001921
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001922# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001923$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1924 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1925echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001926 { (exit 1); exit 1; }; }
1927
Theodore Ts'oe1052142006-10-21 21:46:47 -04001928{ echo "$as_me:$LINENO: checking build system type" >&5
1929echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001930if test "${ac_cv_build+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001933 ac_build_alias=$build_alias
1934test "x$ac_build_alias" = x &&
1935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1936test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001937 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1938echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1939 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001940ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1941 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1942echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001943 { (exit 1); exit 1; }; }
1944
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001945fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001946{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1947echo "${ECHO_T}$ac_cv_build" >&6; }
1948case $ac_cv_build in
1949*-*-*) ;;
1950*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1951echo "$as_me: error: invalid value of canonical build" >&2;}
1952 { (exit 1); exit 1; }; };;
1953esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001954build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001955ac_save_IFS=$IFS; IFS='-'
1956set x $ac_cv_build
1957shift
1958build_cpu=$1
1959build_vendor=$2
1960shift; shift
1961# Remember, the first character of IFS is used to create $*,
1962# except with old shells:
1963build_os=$*
1964IFS=$ac_save_IFS
1965case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001966
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001967
Theodore Ts'oe1052142006-10-21 21:46:47 -04001968{ echo "$as_me:$LINENO: checking host system type" >&5
1969echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001970if test "${ac_cv_host+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001973 if test "x$host_alias" = x; then
1974 ac_cv_host=$ac_cv_build
1975else
1976 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1977 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1978echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001979 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001980fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001981
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001982fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001983{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1984echo "${ECHO_T}$ac_cv_host" >&6; }
1985case $ac_cv_host in
1986*-*-*) ;;
1987*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1988echo "$as_me: error: invalid value of canonical host" >&2;}
1989 { (exit 1); exit 1; }; };;
1990esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001991host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001992ac_save_IFS=$IFS; IFS='-'
1993set x $ac_cv_host
1994shift
1995host_cpu=$1
1996host_vendor=$2
1997shift; shift
1998# Remember, the first character of IFS is used to create $*,
1999# except with old shells:
2000host_os=$*
2001IFS=$ac_save_IFS
2002case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002003
2004
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002005WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002006
Theodore Ts'oe1052142006-10-21 21:46:47 -04002007# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002008if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002009 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002010WITH_DIET_LIBC=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04002011{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2012echo "${ECHO_T}CC=$CC" >&6; }
2013fi
2014
2015# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002016if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002017 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002019CC=$withval
2020else
2021 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002022{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023echo "${ECHO_T}CC defaults to $CC" >&6; }
2024fi
2025export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS'
2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002037if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002039else
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002049 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 -05002050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002056IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002057
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002058fi
2059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002060CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002061if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002062 { echo "$as_me:$LINENO: result: $CC" >&5
2063echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002064else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002065 { echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002067fi
2068
Theodore Ts'oe1052142006-10-21 21:46:47 -04002069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002070fi
2071if test -z "$ac_cv_prog_CC"; then
2072 ac_ct_CC=$CC
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002075{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002089 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 -05002090 ac_cv_prog_ac_ct_CC="gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2093 fi
2094done
2095done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002096IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002097
2098fi
2099fi
2100ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002104else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002105 { echo "$as_me:$LINENO: result: no" >&5
2106echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002107fi
2108
Theodore Ts'oe1052142006-10-21 21:46:47 -04002109 if test "x$ac_ct_CC" = x; then
2110 CC=""
2111 else
2112 case $cross_compiling:$ac_tool_warned in
2113yes:)
2114{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115whose name does not start with the host triplet. If you think this
2116configuration is useful to you, please write to autoconf@gnu.org." >&5
2117echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118whose name does not start with the host triplet. If you think this
2119configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120ac_tool_warned=yes ;;
2121esac
2122 CC=$ac_ct_CC
2123 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002124else
2125 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002126fi
2127
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002128if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002129 if test -n "$ac_tool_prefix"; then
2130 # 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 -05002131set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002134if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002136else
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002146 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 -05002147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151done
2152done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002153IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002154
2155fi
2156fi
2157CC=$ac_cv_prog_CC
2158if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002159 { echo "$as_me:$LINENO: result: $CC" >&5
2160echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002161else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002162 { echo "$as_me:$LINENO: result: no" >&5
2163echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002164fi
2165
Theodore Ts'oe1052142006-10-21 21:46:47 -04002166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002167 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002168fi
2169if test -z "$CC"; then
2170 # Extract the first word of "cc", so it can be a program name with args.
2171set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002174if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2179else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002180 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002187 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 -05002188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189 ac_prog_rejected=yes
2190 continue
2191 fi
2192 ac_cv_prog_CC="cc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196done
2197done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002198IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002199
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002200if test $ac_prog_rejected = yes; then
2201 # We found a bogon in the path, so make sure we never use it.
2202 set dummy $ac_cv_prog_CC
2203 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002204 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002205 # We chose a different compiler from the bogus one.
2206 # However, it has the same basename, so the bogon will be chosen
2207 # first if we set CC to just the basename; use the full file name.
2208 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002210 fi
2211fi
2212fi
2213fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002214CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002215if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002216 { echo "$as_me:$LINENO: result: $CC" >&5
2217echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002218else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002219 { echo "$as_me:$LINENO: result: no" >&5
2220echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002221fi
2222
Theodore Ts'oe1052142006-10-21 21:46:47 -04002223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002224fi
2225if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002227 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002228 do
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002233if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002235else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002245 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 -05002246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2249 fi
2250done
2251done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002252IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002253
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002254fi
2255fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002256CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002257if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002258 { echo "$as_me:$LINENO: result: $CC" >&5
2259echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002260else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002261 { echo "$as_me:$LINENO: result: no" >&5
2262echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002263fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002264
Theodore Ts'oe1052142006-10-21 21:46:47 -04002265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002266 test -n "$CC" && break
2267 done
2268fi
2269if test -z "$CC"; then
2270 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002271 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002272do
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282else
2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002289 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 -05002290 ac_cv_prog_ac_ct_CC="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002293 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002294done
2295done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002296IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002297
2298fi
2299fi
2300ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002304else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305 { echo "$as_me:$LINENO: result: no" >&5
2306echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002307fi
2308
Theodore Ts'oe1052142006-10-21 21:46:47 -04002309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002310 test -n "$ac_ct_CC" && break
2311done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002312
Theodore Ts'oe1052142006-10-21 21:46:47 -04002313 if test "x$ac_ct_CC" = x; then
2314 CC=""
2315 else
2316 case $cross_compiling:$ac_tool_warned in
2317yes:)
2318{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319whose name does not start with the host triplet. If you think this
2320configuration is useful to you, please write to autoconf@gnu.org." >&5
2321echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322whose name does not start with the host triplet. If you think this
2323configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324ac_tool_warned=yes ;;
2325esac
2326 CC=$ac_ct_CC
2327 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002328fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002331
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338
2339# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002340echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002341ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002342{ (ac_try="$ac_compiler --version >&5"
2343case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346esac
2347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002352{ (ac_try="$ac_compiler -v >&5"
2353case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002362{ (ac_try="$ac_compiler -V >&5"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372
2373cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h. */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h. */
2379
2380int
2381main ()
2382{
2383
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388ac_clean_files_save=$ac_clean_files
2389ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390# Try to create an executable without -o first, disregard a.out.
2391# It will help us diagnose broken compilers, and finding out an intuition
2392# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002393{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002395ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396#
2397# List of possible output files, starting from the most likely.
2398# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399# only as a last resort. b.out is created by i960 compilers.
2400ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401#
2402# The IRIX 6 linker writes into existing files which may not be
2403# executable, retaining their permissions. Remove them first so a
2404# subsequent execution test works.
2405ac_rmfiles=
2406for ac_file in $ac_files
2407do
2408 case $ac_file in
2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2411 esac
2412done
2413rm -f $ac_rmfiles
2414
2415if { (ac_try="$ac_link_default"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427# in a Makefile. We should not override ac_cv_exeext if it was cached,
2428# so that the user can short-circuit this test for compilers unknown to
2429# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002430for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431do
2432 test -f "$ac_file" || continue
2433 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002435 ;;
2436 [ab].out )
2437 # We found the default executable, but exeext='' is most
2438 # certainly right.
2439 break;;
2440 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442 then :; else
2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 fi
2445 # We set ac_cv_exeext here because the later test for it is not
2446 # safe: cross compilers may not add the suffix if given an `-o'
2447 # argument, so we may need to know it at that point already.
2448 # Even if this section looks crufty: it has the advantage of
2449 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450 break;;
2451 * )
2452 break;;
2453 esac
2454done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002455test "$ac_cv_exeext" = no && ac_cv_exeext=
2456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002458 ac_file=''
2459fi
2460
2461{ echo "$as_me:$LINENO: result: $ac_file" >&5
2462echo "${ECHO_T}$ac_file" >&6; }
2463if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464 echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468See \`config.log' for more details." >&5
2469echo "$as_me: error: C compiler cannot create executables
2470See \`config.log' for more details." >&2;}
2471 { (exit 77); exit 77; }; }
2472fi
2473
2474ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002475
Theodore Ts'oe1052142006-10-21 21:46:47 -04002476# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002478{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481# If not cross compiling, check that we can run a simple program.
2482if test "$cross_compiling" != yes; then
2483 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487esac
2488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2493 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002494 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002495 if test "$cross_compiling" = maybe; then
2496 cross_compiling=yes
2497 else
2498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499If you meant to cross compile, use \`--host'.
2500See \`config.log' for more details." >&5
2501echo "$as_me: error: cannot run C compiled programs.
2502If you meant to cross compile, use \`--host'.
2503See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2505 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002506 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508{ echo "$as_me:$LINENO: result: yes" >&5
2509echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002519
Theodore Ts'oe1052142006-10-21 21:46:47 -04002520{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522if { (ac_try="$ac_link"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2534# work properly (i.e., refer to `conftest.exe'), while it won't with
2535# `rm'.
2536for ac_file in conftest.exe conftest conftest.*; do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002541 break;;
2542 * ) break;;
2543 esac
2544done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002545else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547See \`config.log' for more details." >&5
2548echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549See \`config.log' for more details." >&2;}
2550 { (exit 1); exit 1; }; }
2551fi
2552
2553rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002554{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002556
2557rm -f conftest.$ac_ext
2558EXEEXT=$ac_cv_exeext
2559ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002560{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002562if test "${ac_cv_objext+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565 cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h. */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h. */
2571
2572int
2573main ()
2574{
2575
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002581if { (ac_try="$ac_compile"
2582case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002591 for ac_file in conftest.o conftest.obj conftest.*; do
2592 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002593 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596 break;;
2597 esac
2598done
2599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604See \`config.log' for more details." >&5
2605echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2608fi
2609
2610rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002612{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002614OBJEXT=$ac_cv_objext
2615ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002616{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002618if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h. */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
2627
2628int
2629main ()
2630{
2631#ifndef __GNUC__
2632 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002633#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002634
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002635 ;
2636 return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002640if { (ac_try="$ac_compile"
2641case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644esac
2645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002647 ac_status=$?
2648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002656 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
Theodore Ts'oe1052142006-10-21 21:46:47 -04002661 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002662fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002663
2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002665ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002668{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002670GCC=`test $ac_compiler_gnu = yes && echo yes`
2671ac_test_CFLAGS=${CFLAGS+set}
2672ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002673{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002675if test "${ac_cv_prog_cc_g+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002677else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002678 ac_save_c_werror_flag=$ac_c_werror_flag
2679 ac_c_werror_flag=yes
2680 ac_cv_prog_cc_g=no
2681 CFLAGS="-g"
2682 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002683/* confdefs.h. */
2684_ACEOF
2685cat confdefs.h >>conftest.$ac_ext
2686cat >>conftest.$ac_ext <<_ACEOF
2687/* end confdefs.h. */
2688
2689int
2690main ()
2691{
2692
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002698if { (ac_try="$ac_compile"
2699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002714 ac_cv_prog_cc_g=yes
2715else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002716 echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002718
Theodore Ts'oe1052142006-10-21 21:46:47 -04002719 CFLAGS=""
2720 cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h. */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h. */
2726
2727int
2728main ()
2729{
2730
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (ac_try="$ac_compile"
2737case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002752 :
2753else
2754 echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 ac_c_werror_flag=$ac_save_c_werror_flag
2758 CFLAGS="-g"
2759 cat >conftest.$ac_ext <<_ACEOF
2760/* confdefs.h. */
2761_ACEOF
2762cat confdefs.h >>conftest.$ac_ext
2763cat >>conftest.$ac_ext <<_ACEOF
2764/* end confdefs.h. */
2765
2766int
2767main ()
2768{
2769
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (ac_try="$ac_compile"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002791 ac_cv_prog_cc_g=yes
2792else
2793 echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002798
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002800fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002801
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803fi
2804
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 ac_c_werror_flag=$ac_save_c_werror_flag
2807fi
2808{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002810if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002811 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002812elif test $ac_cv_prog_cc_g = yes; then
2813 if test "$GCC" = yes; then
2814 CFLAGS="-g -O2"
2815 else
2816 CFLAGS="-g"
2817 fi
2818else
2819 if test "$GCC" = yes; then
2820 CFLAGS="-O2"
2821 else
2822 CFLAGS=
2823 fi
2824fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002825{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002830 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002831ac_save_CC=$CC
2832cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h. */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h. */
2838#include <stdarg.h>
2839#include <stdio.h>
2840#include <sys/types.h>
2841#include <sys/stat.h>
2842/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843struct buf { int x; };
2844FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845static char *e (p, i)
2846 char **p;
2847 int i;
2848{
2849 return p[i];
2850}
2851static char *f (char * (*g) (char **, int), char **p, ...)
2852{
2853 char *s;
2854 va_list v;
2855 va_start (v,p);
2856 s = g (p, va_arg (v,int));
2857 va_end (v);
2858 return s;
2859}
2860
2861/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2862 function prototypes and stuff, but not '\xHH' hex character constants.
2863 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2866 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002867 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871 inside strings and character constants. */
2872#define FOO(x) 'x'
2873int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002875int test (int i, double x);
2876struct s1 {int (*f) (int a);};
2877struct s2 {int (*f) (double a);};
2878int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879int argc;
2880char **argv;
2881int
2882main ()
2883{
2884return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 ;
2886 return 0;
2887}
2888_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002889for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891do
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002894if { (ac_try="$ac_compile"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002901 ac_status=$?
2902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002906 (exit $ac_status); } && {
2907 test -z "$ac_c_werror_flag" ||
2908 test ! -s conftest.err
2909 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002911else
2912 echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
Theodore Ts'oe1052142006-10-21 21:46:47 -04002915
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917
2918rm -f core conftest.err conftest.$ac_objext
2919 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002921rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922CC=$ac_save_CC
2923
2924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002925# AC_CACHE_VAL
2926case "x$ac_cv_prog_cc_c89" in
2927 x)
2928 { echo "$as_me:$LINENO: result: none needed" >&5
2929echo "${ECHO_T}none needed" >&6; } ;;
2930 xno)
2931 { echo "$as_me:$LINENO: result: unsupported" >&5
2932echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002934 CC="$CC $ac_cv_prog_cc_c89"
2935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937esac
2938
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940ac_ext=c
2941ac_cpp='$CPP $CPPFLAGS'
2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002951{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002953# On Suns, sometimes $CPP names a directory.
2954if test -n "$CPP" && test -d "$CPP"; then
2955 CPP=
2956fi
2957if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002958 if test "${ac_cv_prog_CPP+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961 # Double quotes because CPP needs to be expanded
2962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2963 do
2964 ac_preproc_ok=false
2965for ac_c_preproc_warn_flag in '' yes
2966do
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002971 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
2979#ifdef __STDC__
2980# include <limits.h>
2981#else
2982# include <assert.h>
2983#endif
2984 Syntax error
2985_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002986if { (ac_try="$ac_cpp conftest.$ac_ext"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993 ac_status=$?
2994 grep -v '^ *+' conftest.er1 >conftest.err
2995 rm -f conftest.er1
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002998 (exit $ac_status); } >/dev/null && {
2999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003002 :
3003else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003004 echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007 # Broken: fails on valid input.
3008continue
3009fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011rm -f conftest.err conftest.$ac_ext
3012
Theodore Ts'oe1052142006-10-21 21:46:47 -04003013 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014 # can be detected and how.
3015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021#include <ac_nonexistent.h>
3022_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003023if { (ac_try="$ac_cpp conftest.$ac_ext"
3024case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003030 ac_status=$?
3031 grep -v '^ *+' conftest.er1 >conftest.err
3032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003035 (exit $ac_status); } >/dev/null && {
3036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 # Broken: success on invalid input.
3040continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 # Passes both tests.
3046ac_preproc_ok=:
3047break
3048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050rm -f conftest.err conftest.$ac_ext
3051
3052done
3053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054rm -f conftest.err conftest.$ac_ext
3055if $ac_preproc_ok; then
3056 break
3057fi
3058
3059 done
3060 ac_cv_prog_CPP=$CPP
3061
3062fi
3063 CPP=$ac_cv_prog_CPP
3064else
3065 ac_cv_prog_CPP=$CPP
3066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003067{ echo "$as_me:$LINENO: result: $CPP" >&5
3068echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003069ac_preproc_ok=false
3070for ac_c_preproc_warn_flag in '' yes
3071do
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084#ifdef __STDC__
3085# include <limits.h>
3086#else
3087# include <assert.h>
3088#endif
3089 Syntax error
3090_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003091if { (ac_try="$ac_cpp conftest.$ac_ext"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107 :
3108else
3109 echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 # Broken: fails on valid input.
3113continue
3114fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003115
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003116rm -f conftest.err conftest.$ac_ext
3117
Theodore Ts'oe1052142006-10-21 21:46:47 -04003118 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126#include <ac_nonexistent.h>
3127_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003128if { (ac_try="$ac_cpp conftest.$ac_ext"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144 # Broken: success on invalid input.
3145continue
3146else
3147 echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 # Passes both tests.
3151ac_preproc_ok=:
3152break
3153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003154
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155rm -f conftest.err conftest.$ac_ext
3156
3157done
3158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159rm -f conftest.err conftest.$ac_ext
3160if $ac_preproc_ok; then
3161 :
3162else
3163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164See \`config.log' for more details." >&5
3165echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166See \`config.log' for more details." >&2;}
3167 { (exit 1); exit 1; }; }
3168fi
3169
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003177# Check whether --with-linker was given.
3178if test "${with_linker+set}" = set; then
3179 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180echo "${ECHO_T}LD=$withval" >&6; }
3181LD=$withval
3182else
3183 if test -z "$LD" ; then LD=$CC; fi
3184{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185echo "${ECHO_T}LD defaults to $LD" >&6; }
3186fi
3187export LD
3188
3189
3190# Check whether --with-ccopts was given.
3191if test "${with_ccopts+set}" = set; then
3192 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193echo "${ECHO_T}CCOPTS is $withval" >&6; }
3194CFLAGS=$withval
3195fi
3196
3197
Theodore Ts'oe1052142006-10-21 21:46:47 -04003198{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003203 # Extract the first word of "grep ggrep" to use in msg output
3204if test -z "$GREP"; then
3205set dummy grep ggrep; ac_prog_name=$2
3206if test "${ac_cv_path_GREP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 ac_path_GREP_found=false
3210# Loop through the user's path and test for each of PROGNAME-LIST
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in grep ggrep; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003220 # Check for GNU ac_path_GREP and select it if it is found.
3221 # Check for GNU $ac_path_GREP
3222case `"$ac_path_GREP" --version 2>&1` in
3223*GNU*)
3224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3225*)
3226 ac_count=0
3227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3228 while :
3229 do
3230 cat "conftest.in" "conftest.in" >"conftest.tmp"
3231 mv "conftest.tmp" "conftest.in"
3232 cp "conftest.in" "conftest.nl"
3233 echo 'GREP' >> "conftest.nl"
3234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236 ac_count=`expr $ac_count + 1`
3237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238 # Best one so far, save it but keep looking for a better one
3239 ac_cv_path_GREP="$ac_path_GREP"
3240 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003241 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003242 # 10*(2^10) chars as input seems more than enough
3243 test $ac_count -gt 10 && break
3244 done
3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246esac
3247
3248
3249 $ac_path_GREP_found && break 3
3250 done
3251done
3252
3253done
3254IFS=$as_save_IFS
3255
3256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003257fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003258
3259GREP="$ac_cv_path_GREP"
3260if test -z "$GREP"; then
3261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263 { (exit 1); exit 1; }; }
3264fi
3265
3266else
3267 ac_cv_path_GREP=$GREP
3268fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003269
3270
Theodore Ts'oe1052142006-10-21 21:46:47 -04003271fi
3272{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274 GREP="$ac_cv_path_GREP"
3275
3276
3277{ echo "$as_me:$LINENO: checking for egrep" >&5
3278echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279if test "${ac_cv_path_EGREP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283 then ac_cv_path_EGREP="$GREP -E"
3284 else
3285 # Extract the first word of "egrep" to use in msg output
3286if test -z "$EGREP"; then
3287set dummy egrep; ac_prog_name=$2
3288if test "${ac_cv_path_EGREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291 ac_path_EGREP_found=false
3292# Loop through the user's path and test for each of PROGNAME-LIST
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_prog in egrep; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003302 # Check for GNU ac_path_EGREP and select it if it is found.
3303 # Check for GNU $ac_path_EGREP
3304case `"$ac_path_EGREP" --version 2>&1` in
3305*GNU*)
3306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3307*)
3308 ac_count=0
3309 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3310 while :
3311 do
3312 cat "conftest.in" "conftest.in" >"conftest.tmp"
3313 mv "conftest.tmp" "conftest.in"
3314 cp "conftest.in" "conftest.nl"
3315 echo 'EGREP' >> "conftest.nl"
3316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318 ac_count=`expr $ac_count + 1`
3319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320 # Best one so far, save it but keep looking for a better one
3321 ac_cv_path_EGREP="$ac_path_EGREP"
3322 ac_path_EGREP_max=$ac_count
3323 fi
3324 # 10*(2^10) chars as input seems more than enough
3325 test $ac_count -gt 10 && break
3326 done
3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3328esac
3329
3330
3331 $ac_path_EGREP_found && break 3
3332 done
3333done
3334
3335done
3336IFS=$as_save_IFS
3337
3338
3339fi
3340
3341EGREP="$ac_cv_path_EGREP"
3342if test -z "$EGREP"; then
3343 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345 { (exit 1); exit 1; }; }
3346fi
3347
3348else
3349 ac_cv_path_EGREP=$EGREP
3350fi
3351
3352
3353 fi
3354fi
3355{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357 EGREP="$ac_cv_path_EGREP"
3358
3359
3360{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003362if test "${ac_cv_header_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
3371#include <stdlib.h>
3372#include <stdarg.h>
3373#include <string.h>
3374#include <float.h>
3375
3376int
3377main ()
3378{
3379
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003385if { (ac_try="$ac_compile"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003401 ac_cv_header_stdc=yes
3402else
3403 echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
Theodore Ts'oe1052142006-10-21 21:46:47 -04003406 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003408
3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003410
3411if test $ac_cv_header_stdc = yes; then
3412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
3419#include <string.h>
3420
3421_ACEOF
3422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 $EGREP "memchr" >/dev/null 2>&1; then
3424 :
3425else
3426 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003427fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003428rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003429
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003430fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431
3432if test $ac_cv_header_stdc = yes; then
3433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440#include <stdlib.h>
3441
3442_ACEOF
3443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444 $EGREP "free" >/dev/null 2>&1; then
3445 :
3446else
3447 ac_cv_header_stdc=no
3448fi
3449rm -f conftest*
3450
3451fi
3452
3453if test $ac_cv_header_stdc = yes; then
3454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455 if test "$cross_compiling" = yes; then
3456 :
3457else
3458 cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
3464#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003465#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003466#if ((' ' & 0x0FF) == 0x020)
3467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469#else
3470# define ISLOWER(c) \
3471 (('a' <= (c) && (c) <= 'i') \
3472 || ('j' <= (c) && (c) <= 'r') \
3473 || ('s' <= (c) && (c) <= 'z'))
3474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3475#endif
3476
3477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3478int
3479main ()
3480{
3481 int i;
3482 for (i = 0; i < 256; i++)
3483 if (XOR (islower (i), ISLOWER (i))
3484 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003485 return 2;
3486 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487}
3488_ACEOF
3489rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003490if { (ac_try="$ac_link"
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503esac
3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 :
3510else
3511 echo "$as_me: program exited with status $ac_status" >&5
3512echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515( exit $ac_status )
3516ac_cv_header_stdc=no
3517fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3519fi
3520
3521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522fi
3523fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003524{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003526if test $ac_cv_header_stdc = yes; then
3527
3528cat >>confdefs.h <<\_ACEOF
3529#define STDC_HEADERS 1
3530_ACEOF
3531
3532fi
3533
3534# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545 inttypes.h stdint.h unistd.h
3546do
3547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553 cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
3559$ac_includes_default
3560
3561#include <$ac_header>
3562_ACEOF
3563rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003564if { (ac_try="$ac_compile"
3565case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568esac
3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003580 eval "$as_ac_Header=yes"
3581else
3582 echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
Theodore Ts'oe1052142006-10-21 21:46:47 -04003585 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587
3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003590ac_res=`eval echo '${'$as_ac_Header'}'`
3591 { echo "$as_me:$LINENO: result: $ac_res" >&5
3592echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003593if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594 cat >>confdefs.h <<_ACEOF
3595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596_ACEOF
3597
3598fi
3599
3600done
3601
3602
3603if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003604 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003609{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003611else
3612 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003613{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003615cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h. */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h. */
3621$ac_includes_default
3622#include <linux/fs.h>
3623_ACEOF
3624rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003625if { (ac_try="$ac_compile"
3626case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003641 ac_header_compiler=yes
3642else
3643 echo "$as_me: failed program was:" >&5
3644sed 's/^/| /' conftest.$ac_ext >&5
3645
Theodore Ts'oe1052142006-10-21 21:46:47 -04003646 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003647fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003648
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652
3653# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003654{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003656cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
3662#include <linux/fs.h>
3663_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003664if { (ac_try="$ac_cpp conftest.$ac_ext"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003676 (exit $ac_status); } >/dev/null && {
3677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003680 ac_header_preproc=yes
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ac_header_preproc=no
3686fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003688rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003691
3692# So? What about this header?
3693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694 yes:no: )
3695 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699 ac_header_preproc=yes
3700 ;;
3701 no:yes:* )
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3705echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3709echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003715 ;;
3716esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003717{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003719if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 ac_cv_header_linux_fs_h=$ac_header_preproc
3723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003724{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003726
3727fi
3728if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003729 linux_headers=yes
3730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003731 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003732fi
3733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003734
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003735if test "$linux_headers" != yes; then
3736 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003737fi
3738
Theodore Ts'oe1052142006-10-21 21:46:47 -04003739{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003741if test "$GCC" = yes
3742then
3743 case "$host_cpu" in
3744 alpha) addcflags="-mieee" ;;
3745 esac
3746fi
3747if test "x$addcflags" != x
3748then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003749 { echo "$as_me:$LINENO: result: $addcflags" >&5
3750echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003751 CFLAGS="$addcflags $CFLAGS"
3752else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003753 { echo "$as_me:$LINENO: result: (none)" >&5
3754echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003755fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003756LIB_EXT=.a
3757STATIC_LIB_EXT=.a
3758PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003759
Theodore Ts'oe1052142006-10-21 21:46:47 -04003760# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003761if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003762 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003764LDFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003765fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003766
Theodore Ts'oe1052142006-10-21 21:46:47 -04003767
3768# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003769if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003770 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003771else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003772 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003773fi
3774# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003775if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003776 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003777then
3778 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003779 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3780echo "${ECHO_T}Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003781else
3782 MAINTAINER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003783 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3784echo "${ECHO_T}Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003785fi
3786
3787else
3788 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003789{ echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3790echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003791
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
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003799 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3800echo "${ECHO_T}Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003801else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003802 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003803#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003804_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003805
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003806 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3807echo "${ECHO_T}Enabling compression support" >&6; }
3808 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3809echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003810fi
3811
3812else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003813 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3814echo "${ECHO_T}Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003815
Theodore Ts'oe1052142006-10-21 21:46:47 -04003816fi
3817
3818# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003819if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003820 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003821then
3822 HTREE_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003823 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3824echo "${ECHO_T}Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003825else
3826 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003827 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003828#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003829_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003830
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003831 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3832echo "${ECHO_T}Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003833fi
3834
3835else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003836 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003837cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003838#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003839_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003840
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003841{ echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3842echo "${ECHO_T}Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003843
Theodore Ts'oe1052142006-10-21 21:46:47 -04003844fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003845
Theodore Ts'oe1052142006-10-21 21:46:47 -04003846
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003847E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04003848LDFLAG_DYNAMIC=
3849PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003850# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003851if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003852 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003853then
3854 ELF_CMT=#
3855 MAKEFILE_ELF=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003856 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3857echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003858else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003859 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003860 ELF_CMT=
3861 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003862 case "$host_os" in
3863 solaris2.*)
3864 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3865 ;;
3866 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003867 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003868 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04003869 PRIVATE_LIBS_CMT=#
3870 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003871 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3872echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003873fi
3874
3875else
3876 MAKEFILE_ELF=/dev/null
3877ELF_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003878{ echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3879echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003880
Theodore Ts'oe1052142006-10-21 21:46:47 -04003881fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003882
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003883
Theodore Ts'oe1052142006-10-21 21:46:47 -04003884
3885# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003886if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003887 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003888then
3889 BSDLIB_CMT=#
3890 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003891 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3892echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003893else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003894 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003895 BSDLIB_CMT=
3896 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003897 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003898 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003899 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003900 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3901 LIB_EXT=.dylib
3902 ;;
3903 esac
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003904 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3905echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003906fi
3907
3908else
3909 MAKEFILE_BSDLIB=/dev/null
3910BSDLIB_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003911{ echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3912echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003913
Theodore Ts'oe1052142006-10-21 21:46:47 -04003914fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003915
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003916
Theodore Ts'oe1052142006-10-21 21:46:47 -04003917
3918# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003919if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003920 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003921then
3922 PROFILE_CMT=#
3923 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003924 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3925echo "${ECHO_T}Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003926else
3927 PROFILE_CMT=
3928 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3929 PROFILED_LIB_EXT=_p.a
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003930 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3931echo "${ECHO_T}Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003932fi
3933
3934else
3935 PROFILE_CMT=#
3936MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003937{ echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3938echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003939
Theodore Ts'oe1052142006-10-21 21:46:47 -04003940fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003941
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003942
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943
3944# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003945if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003946 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003947then
3948 CHECKER_CMT=#
3949 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003950 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3951echo "${ECHO_T}Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003952else
3953 CHECKER_CMT=
3954 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003955 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3956echo "${ECHO_T}Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003957fi
3958
3959else
3960 CHECKER_CMT=#
3961MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003962{ echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3963echo "${ECHO_T}Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003964
Theodore Ts'oe1052142006-10-21 21:46:47 -04003965fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003966
3967
3968
3969
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003970
Theodore Ts'oe1052142006-10-21 21:46:47 -04003971
Theodore Ts'o55da9872008-09-02 23:12:38 -04003972
3973
Theodore Ts'oe1052142006-10-21 21:46:47 -04003974# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003975if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003976 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003977then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003978 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3979echo "${ECHO_T}Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003980else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003981 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003982#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003983_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003984
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003985 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3986echo "${ECHO_T}Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003987fi
3988
3989else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003990 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3991echo "${ECHO_T}Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003992
Theodore Ts'oe1052142006-10-21 21:46:47 -04003993fi
3994
3995# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003996if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003997 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003998then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003999 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4000echo "${ECHO_T}Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004002 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004003#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004004_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004005
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004006 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4007echo "${ECHO_T}Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004008fi
4009
4010else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004011 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4012echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004013
Theodore Ts'oe1052142006-10-21 21:46:47 -04004014fi
4015
4016# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004017if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004018 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004019then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004020 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4021echo "${ECHO_T}Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004022 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004023else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004024 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004025 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004026#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004027_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004028
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004029 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4030echo "${ECHO_T}Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004031fi
4032
4033else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004034 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4035echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4036cat >>confdefs.h <<\_ACEOF
4037#define CONFIG_TESTIO_DEBUG 1
4038_ACEOF
4039
4040TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004041
Theodore Ts'oe1052142006-10-21 21:46:47 -04004042fi
4043
Theodore Ts'oaf773652008-09-01 11:27:27 -04004044
Theodore Ts'oe1052142006-10-21 21:46:47 -04004045# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004047 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004048then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004049 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4050echo "${ECHO_T}Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004051 DEBUGFS_CMT="#"
4052else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004053 DEBUGFS_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004054 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4055echo "${ECHO_T}Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004056fi
4057
4058else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004059 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4060echo "${ECHO_T}Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004061DEBUGFS_CMT=
4062
Theodore Ts'oe1052142006-10-21 21:46:47 -04004063fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004064
Theodore Ts'oe1052142006-10-21 21:46:47 -04004065
4066# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004067if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004068 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004069then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004070 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4071echo "${ECHO_T}Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004072 IMAGER_CMT="#"
4073else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004074 IMAGER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004075 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4076echo "${ECHO_T}Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004077fi
4078
4079else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004080 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4081echo "${ECHO_T}Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004082IMAGER_CMT=
4083
Theodore Ts'oe1052142006-10-21 21:46:47 -04004084fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004085
Theodore Ts'oe1052142006-10-21 21:46:47 -04004086
4087# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004088if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004089 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004090then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004091 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4092echo "${ECHO_T}Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004093 RESIZER_CMT="#"
4094else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004095 RESIZER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004096 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4097echo "${ECHO_T}Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004098fi
4099
4100else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004101 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4102echo "${ECHO_T}Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004103RESIZER_CMT=
4104
Theodore Ts'oe1052142006-10-21 21:46:47 -04004105fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004106
Theodore Ts'oe1052142006-10-21 21:46:47 -04004107
Theodore Ts'oe1052142006-10-21 21:46:47 -04004108# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004109if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004110 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004111then
4112 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004113 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4114echo "${ECHO_T}Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004115else
4116 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004117 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4118echo "${ECHO_T}Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004119fi
4120
4121else
4122 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004123 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004124 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004125 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4126echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004127 ;;
4128 *)
4129 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004130 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4131echo "${ECHO_T}Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004132esac
4133
Theodore Ts'oe1052142006-10-21 21:46:47 -04004134fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004135
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004136
Theodore Ts'oe1052142006-10-21 21:46:47 -04004137
4138# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004139if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004140 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004141then
4142 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004143 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4144echo "${ECHO_T}Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004145else
4146 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004147 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4148echo "${ECHO_T}Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004149fi
4150
4151else
4152 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004153{ echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4154echo "${ECHO_T}Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004155
Theodore Ts'oe1052142006-10-21 21:46:47 -04004156fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004157
4158
Theodore Ts'oe1052142006-10-21 21:46:47 -04004159
Theodore Ts'o32493942007-12-31 10:45:01 -05004160# Check whether --enable-tls was given.
4161if test "${enable_tls+set}" = set; then
4162 enableval=$enable_tls; if test "$enableval" = "no"
4163then
4164 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004165 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4166echo "${ECHO_T}Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004167else
4168 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004169 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4170echo "${ECHO_T}Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004171fi
4172
4173else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004174 if test -n "$WITH_DIET_LIBC"
4175then
4176 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004177 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4178echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004179else
4180 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004181 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4182echo "${ECHO_T}Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004183fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004184
4185fi
4186
4187if test "$try_tls" = "yes"
4188then
4189
4190 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4191echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4192 if test "${ac_cv_tls+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195
4196 ax_tls_keywords="__thread __declspec(thread) none"
4197 for ax_tls_keyword in $ax_tls_keywords; do
4198 case $ax_tls_keyword in
4199 none) ac_cv_tls=none ; break ;;
4200 *)
4201 cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <stdlib.h>
4208 static void
4209 foo(void) {
4210 static $ax_tls_keyword int bar;
4211 exit(1);
4212 }
4213int
4214main ()
4215{
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest.$ac_objext; then
4238 ac_cv_tls=$ax_tls_keyword ; break
4239else
4240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 ac_cv_tls=none
4244
4245fi
4246
4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 esac
4249 done
4250
4251fi
4252
4253
4254 if test "$ac_cv_tls" != "none"; then
4255
4256cat >>confdefs.h <<_ACEOF
4257#define TLS $ac_cv_tls
4258_ACEOF
4259
4260 fi
4261 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4262echo "${ECHO_T}$ac_cv_tls" >&6; }
4263
4264fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004265# Check whether --enable-uuidd was given.
4266if test "${enable_uuidd+set}" = set; then
4267 enableval=$enable_uuidd; if test "$enableval" = "no"
4268then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004269 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4270echo "${ECHO_T}Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004271 UUIDD_CMT="#"
4272else
4273 cat >>confdefs.h <<\_ACEOF
4274#define USE_UUIDD 1
4275_ACEOF
4276
4277 UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004278 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4279echo "${ECHO_T}Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004280fi
4281
4282else
4283 cat >>confdefs.h <<\_ACEOF
4284#define USE_UUIDD 1
4285_ACEOF
4286
4287UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004288{ echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4289echo "${ECHO_T}Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004290
4291fi
4292
4293
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004294MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004296GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004297PACKAGE=e2fsprogs
4298VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004299VERSION=0.14.1
4300cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004301#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004302_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004304cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004305#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004306_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004307
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004308
4309
4310
4311
Theodore Ts'oe1052142006-10-21 21:46:47 -04004312{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4314set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4315if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004316 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004317else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004318 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004319SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004320all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004321 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004323# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004324case `${MAKE-make} -f conftest.make 2>/dev/null` in
4325 *@@@%%%=?*=@@@%%%*)
4326 eval ac_cv_prog_make_${ac_make}_set=yes;;
4327 *)
4328 eval ac_cv_prog_make_${ac_make}_set=no;;
4329esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004330rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004332if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4333 { echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004335 SET_MAKE=
4336else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337 { echo "$as_me:$LINENO: result: no" >&5
4338echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004339 SET_MAKE="MAKE=${MAKE-make}"
4340fi
4341
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004342# Find a good install program. We prefer a C program (faster),
4343# so one script is as good as another. But avoid the broken or
4344# incompatible versions:
4345# SysV /etc/install, /usr/sbin/install
4346# SunOS /usr/etc/install
4347# IRIX /sbin/install
4348# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004349# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004353# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004354# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004355{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4356echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004357if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004358if test "${ac_cv_path_install+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004360else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 # Account for people who put trailing slashes in PATH elements.
4367case $as_dir/ in
4368 ./ | .// | /cC/* | \
4369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4371 /usr/ucb/* ) ;;
4372 *)
4373 # OSF1 and SCO ODT 3.0 have their own names for install.
4374 # Don't use installbsd from OSF since it installs stuff as root
4375 # by default.
4376 for ac_prog in ginstall scoinst install; do
4377 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004378 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 -04004379 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004381 # AIX install. It has an incompatible calling convention.
4382 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004383 elif test $ac_prog = install &&
4384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4385 # program-specific install script used by HP pwplus--don't use.
4386 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004387 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4389 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004390 fi
4391 fi
4392 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393 done
4394 ;;
4395esac
4396done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004397IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004398
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004399
4400fi
4401 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004402 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004403 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004404 # As a last resort, use the slow shell script. Don't cache a
4405 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004406 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004407 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004408 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004409 fi
4410fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004411{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4412echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004413
4414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4415# It thinks the first close brace ends the variable substitution.
4416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004419
4420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4421
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004422
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004423 MKINSTALLDIRS=
4424 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004425 case "$ac_aux_dir" in
4426 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4427 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4428 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004429 fi
4430 if test -z "$MKINSTALLDIRS"; then
4431 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4432 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004433
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004434
4435
Theodore Ts'oe1052142006-10-21 21:46:47 -04004436 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4437echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4438 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004439if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004440 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004441else
4442 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004443fi
4444
4445 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4446echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004447
4448
4449
4450
4451
4452
4453# Prepare PATH_SEPARATOR.
4454# The user is always right.
4455if test "${PATH_SEPARATOR+set}" != set; then
4456 echo "#! /bin/sh" >conf$$.sh
4457 echo "exit 0" >>conf$$.sh
4458 chmod +x conf$$.sh
4459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4460 PATH_SEPARATOR=';'
4461 else
4462 PATH_SEPARATOR=:
4463 fi
4464 rm -f conf$$.sh
4465fi
4466
4467# Find out how to test for executable files. Don't use a zero-byte file,
4468# as systems may use methods other than mode bits to determine executability.
4469cat >conf$$.file <<_ASEOF
4470#! /bin/sh
4471exit 0
4472_ASEOF
4473chmod +x conf$$.file
4474if test -x conf$$.file >/dev/null 2>&1; then
4475 ac_executable_p="test -x"
4476else
4477 ac_executable_p="test -f"
4478fi
4479rm -f conf$$.file
4480
4481# Extract the first word of "msgfmt", so it can be a program name with args.
4482set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004485if test "${ac_cv_path_MSGFMT+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487else
4488 case "$MSGFMT" in
4489 [\\/]* | ?:[\\/]*)
4490 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4491 ;;
4492 *)
4493 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4494 for ac_dir in $PATH; do
4495 IFS="$ac_save_IFS"
4496 test -z "$ac_dir" && ac_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4499 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4500 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4501 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4502 break 2
4503 fi
4504 fi
4505 done
4506 done
4507 IFS="$ac_save_IFS"
4508 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4509 ;;
4510esac
4511fi
4512MSGFMT="$ac_cv_path_MSGFMT"
4513if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004514 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4515echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004516else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004517 { echo "$as_me:$LINENO: result: no" >&5
4518echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004519fi
4520
4521 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4522set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004525if test "${ac_cv_path_GMSGFMT+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527else
4528 case $GMSGFMT in
4529 [\\/]* | ?:[\\/]*)
4530 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4531 ;;
4532 *)
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004539 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 -05004540 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544done
4545done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004546IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004547
4548 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4549 ;;
4550esac
4551fi
4552GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004553if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004554 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4555echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004556else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004557 { echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004559fi
4560
4561
4562
Theodore Ts'oe1052142006-10-21 21:46:47 -04004563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004564# Prepare PATH_SEPARATOR.
4565# The user is always right.
4566if test "${PATH_SEPARATOR+set}" != set; then
4567 echo "#! /bin/sh" >conf$$.sh
4568 echo "exit 0" >>conf$$.sh
4569 chmod +x conf$$.sh
4570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4571 PATH_SEPARATOR=';'
4572 else
4573 PATH_SEPARATOR=:
4574 fi
4575 rm -f conf$$.sh
4576fi
4577
4578# Find out how to test for executable files. Don't use a zero-byte file,
4579# as systems may use methods other than mode bits to determine executability.
4580cat >conf$$.file <<_ASEOF
4581#! /bin/sh
4582exit 0
4583_ASEOF
4584chmod +x conf$$.file
4585if test -x conf$$.file >/dev/null 2>&1; then
4586 ac_executable_p="test -x"
4587else
4588 ac_executable_p="test -f"
4589fi
4590rm -f conf$$.file
4591
4592# Extract the first word of "xgettext", so it can be a program name with args.
4593set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004596if test "${ac_cv_path_XGETTEXT+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 case "$XGETTEXT" in
4600 [\\/]* | ?:[\\/]*)
4601 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4602 ;;
4603 *)
4604 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4605 for ac_dir in $PATH; do
4606 IFS="$ac_save_IFS"
4607 test -z "$ac_dir" && ac_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4610 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4611 (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
4612 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4613 break 2
4614 fi
4615 fi
4616 done
4617 done
4618 IFS="$ac_save_IFS"
4619 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4620 ;;
4621esac
4622fi
4623XGETTEXT="$ac_cv_path_XGETTEXT"
4624if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004625 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4626echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004627else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004628 { echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004630fi
4631
4632 rm -f messages.po
4633
4634
4635# Prepare PATH_SEPARATOR.
4636# The user is always right.
4637if test "${PATH_SEPARATOR+set}" != set; then
4638 echo "#! /bin/sh" >conf$$.sh
4639 echo "exit 0" >>conf$$.sh
4640 chmod +x conf$$.sh
4641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4642 PATH_SEPARATOR=';'
4643 else
4644 PATH_SEPARATOR=:
4645 fi
4646 rm -f conf$$.sh
4647fi
4648
4649# Find out how to test for executable files. Don't use a zero-byte file,
4650# as systems may use methods other than mode bits to determine executability.
4651cat >conf$$.file <<_ASEOF
4652#! /bin/sh
4653exit 0
4654_ASEOF
4655chmod +x conf$$.file
4656if test -x conf$$.file >/dev/null 2>&1; then
4657 ac_executable_p="test -x"
4658else
4659 ac_executable_p="test -f"
4660fi
4661rm -f conf$$.file
4662
4663# Extract the first word of "msgmerge", so it can be a program name with args.
4664set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004667if test "${ac_cv_path_MSGMERGE+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 case "$MSGMERGE" in
4671 [\\/]* | ?:[\\/]*)
4672 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4673 ;;
4674 *)
4675 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4676 for ac_dir in $PATH; do
4677 IFS="$ac_save_IFS"
4678 test -z "$ac_dir" && ac_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4681 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4682 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4683 break 2
4684 fi
4685 fi
4686 done
4687 done
4688 IFS="$ac_save_IFS"
4689 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4690 ;;
4691esac
4692fi
4693MSGMERGE="$ac_cv_path_MSGMERGE"
4694if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004695 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4696echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004697else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004698 { echo "$as_me:$LINENO: result: no" >&5
4699echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004700fi
4701
4702
4703 if test "$GMSGFMT" != ":"; then
4704 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4705 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4706 : ;
4707 else
4708 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4710echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004711 GMSGFMT=":"
4712 fi
4713 fi
4714
4715 if test "$XGETTEXT" != ":"; then
4716 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4717 (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
4718 : ;
4719 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004720 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4721echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004722 XGETTEXT=":"
4723 fi
4724 rm -f messages.po
4725 fi
4726
Theodore Ts'oe1052142006-10-21 21:46:47 -04004727 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004728
4729
4730if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4732set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004735if test "${ac_cv_prog_RANLIB+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004737else
4738 if test -n "$RANLIB"; then
4739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4740else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004747 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 -05004748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004753done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004754IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004755
4756fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004757fi
4758RANLIB=$ac_cv_prog_RANLIB
4759if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004760 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4761echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004762else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004763 { echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004765fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004766
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004768fi
4769if test -z "$ac_cv_prog_RANLIB"; then
4770 ac_ct_RANLIB=$RANLIB
4771 # Extract the first word of "ranlib", so it can be a program name with args.
4772set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004775if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778 if test -n "$ac_ct_RANLIB"; then
4779 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004787 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 -05004788 ac_cv_prog_ac_ct_RANLIB="ranlib"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4791 fi
4792done
4793done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004794IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004796fi
4797fi
4798ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4799if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004800 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4801echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004802else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004803 { echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004805fi
4806
Theodore Ts'oe1052142006-10-21 21:46:47 -04004807 if test "x$ac_ct_RANLIB" = x; then
4808 RANLIB=":"
4809 else
4810 case $cross_compiling:$ac_tool_warned in
4811yes:)
4812{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4813whose name does not start with the host triplet. If you think this
4814configuration is useful to you, please write to autoconf@gnu.org." >&5
4815echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4816whose name does not start with the host triplet. If you think this
4817configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4818ac_tool_warned=yes ;;
4819esac
4820 RANLIB=$ac_ct_RANLIB
4821 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004822else
4823 RANLIB="$ac_cv_prog_RANLIB"
4824fi
4825
4826
Theodore Ts'oe1052142006-10-21 21:46:47 -04004827 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4828echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004829if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832 ac_check_lib_save_LIBS=$LIBS
4833LIBS="-lcposix $LIBS"
4834cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840
Theodore Ts'oe1052142006-10-21 21:46:47 -04004841/* Override any GCC internal prototype to avoid an error.
4842 Use char because int might match the return type of a GCC
4843 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004844#ifdef __cplusplus
4845extern "C"
4846#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004847char strerror ();
4848int
4849main ()
4850{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004851return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004852 ;
4853 return 0;
4854}
4855_ACEOF
4856rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004857if { (ac_try="$ac_link"
4858case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest$ac_exeext &&
4873 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004874 ac_cv_lib_cposix_strerror=yes
4875else
4876 echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
Theodore Ts'oe1052142006-10-21 21:46:47 -04004879 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004880fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004881
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004883 conftest$ac_exeext conftest.$ac_ext
4884LIBS=$ac_check_lib_save_LIBS
4885fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004886{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4887echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004888if test $ac_cv_lib_cposix_strerror = yes; then
4889 LIBS="$LIBS -lcposix"
4890fi
4891
4892
4893
Theodore Ts'oe1052142006-10-21 21:46:47 -04004894{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4895echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004896if test "${ac_cv_c_const+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899 cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h. */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h. */
4905
4906int
4907main ()
4908{
4909/* FIXME: Include the comments suggested by Paul. */
4910#ifndef __cplusplus
4911 /* Ultrix mips cc rejects this. */
4912 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004913 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004914 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004915 char const *const *pcpcc;
4916 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004917 /* NEC SVR4.0.2 mips cc rejects this. */
4918 struct point {int x, y;};
4919 static struct point const zero = {0,0};
4920 /* AIX XL C 1.02.0.0 rejects this.
4921 It does not let you subtract one const X* pointer from another in
4922 an arm of an if-expression whose if-part is not a constant
4923 expression */
4924 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004925 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004926 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004927 ++pcpcc;
4928 ppc = (char**) pcpcc;
4929 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004930 { /* SCO 3.2v4 cc rejects this. */
4931 char *t;
4932 char const *s = 0 ? (char *) 0 : (char const *) 0;
4933
4934 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004935 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004936 }
4937 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4938 int x[] = {25, 17};
4939 const int *foo = &x[0];
4940 ++foo;
4941 }
4942 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4943 typedef const int *iptr;
4944 iptr p = 0;
4945 ++p;
4946 }
4947 { /* AIX XL C 1.02.0.0 rejects this saying
4948 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4949 struct s { int j; const int *ap[3]; };
4950 struct s *b; b->j = 5;
4951 }
4952 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4953 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004954 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004955 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004956 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004957#endif
4958
4959 ;
4960 return 0;
4961}
4962_ACEOF
4963rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004964if { (ac_try="$ac_compile"
4965case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968esac
4969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004980 ac_cv_c_const=yes
4981else
4982 echo "$as_me: failed program was:" >&5
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
Theodore Ts'oe1052142006-10-21 21:46:47 -04004985 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004987
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004989fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004990{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4991echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004992if test $ac_cv_c_const = no; then
4993
4994cat >>confdefs.h <<\_ACEOF
4995#define const
4996_ACEOF
4997
4998fi
4999
5000
Theodore Ts'oe1052142006-10-21 21:46:47 -04005001 { echo "$as_me:$LINENO: checking for signed" >&5
5002echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005003if test "${bh_cv_c_signed+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006 cat >conftest.$ac_ext <<_ACEOF
5007/* confdefs.h. */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h. */
5012
5013int
5014main ()
5015{
5016signed char x;
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022if { (ac_try="$ac_compile"
5023case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026esac
5027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005034 (exit $ac_status); } && {
5035 test -z "$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005038 bh_cv_c_signed=yes
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
Theodore Ts'oe1052142006-10-21 21:46:47 -04005043 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5049echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050 if test $bh_cv_c_signed = no; then
5051
5052cat >>confdefs.h <<\_ACEOF
5053#define signed
5054_ACEOF
5055
5056 fi
5057
Theodore Ts'oe1052142006-10-21 21:46:47 -04005058{ echo "$as_me:$LINENO: checking for inline" >&5
5059echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005060if test "${ac_cv_c_inline+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 ac_cv_c_inline=no
5064for ac_kw in inline __inline__ __inline; do
5065 cat >conftest.$ac_ext <<_ACEOF
5066/* confdefs.h. */
5067_ACEOF
5068cat confdefs.h >>conftest.$ac_ext
5069cat >>conftest.$ac_ext <<_ACEOF
5070/* end confdefs.h. */
5071#ifndef __cplusplus
5072typedef int foo_t;
5073static $ac_kw foo_t static_foo () {return 0; }
5074$ac_kw foo_t foo () {return 0; }
5075#endif
5076
5077_ACEOF
5078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005079if { (ac_try="$ac_compile"
5080case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083esac
5084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005095 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005096else
5097 echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
Theodore Ts'oe1052142006-10-21 21:46:47 -04005100
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005102
5103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005105done
5106
5107fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005108{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5109echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005110
5111
5112case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005113 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005114 *)
5115 case $ac_cv_c_inline in
5116 no) ac_val=;;
5117 *) ac_val=$ac_cv_c_inline;;
5118 esac
5119 cat >>confdefs.h <<_ACEOF
5120#ifndef __cplusplus
5121#define inline $ac_val
5122#endif
5123_ACEOF
5124 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005125esac
5126
Theodore Ts'oe1052142006-10-21 21:46:47 -04005127{ echo "$as_me:$LINENO: checking for off_t" >&5
5128echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005129if test "${ac_cv_type_off_t+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005131else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005132 cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h. */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h. */
5138$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005139typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005140int
5141main ()
5142{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005143if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005144 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005145if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005146 return 0;
5147 ;
5148 return 0;
5149}
5150_ACEOF
5151rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005152if { (ac_try="$ac_compile"
5153case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5156esac
5157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005159 ac_status=$?
5160 grep -v '^ *+' conftest.er1 >conftest.err
5161 rm -f conftest.er1
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005164 (exit $ac_status); } && {
5165 test -z "$ac_c_werror_flag" ||
5166 test ! -s conftest.err
5167 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005168 ac_cv_type_off_t=yes
5169else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005170 echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005172
Theodore Ts'oe1052142006-10-21 21:46:47 -04005173 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005174fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005175
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005177fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005178{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5179echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005180if test $ac_cv_type_off_t = yes; then
5181 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005182else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005183
5184cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005185#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005186_ACEOF
5187
5188fi
5189
Theodore Ts'oe1052142006-10-21 21:46:47 -04005190{ echo "$as_me:$LINENO: checking for size_t" >&5
5191echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005192if test "${ac_cv_type_size_t+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 cat >conftest.$ac_ext <<_ACEOF
5196/* confdefs.h. */
5197_ACEOF
5198cat confdefs.h >>conftest.$ac_ext
5199cat >>conftest.$ac_ext <<_ACEOF
5200/* end confdefs.h. */
5201$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005202typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005203int
5204main ()
5205{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005206if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005207 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005208if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005209 return 0;
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005215if { (ac_try="$ac_compile"
5216case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219esac
5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005227 (exit $ac_status); } && {
5228 test -z "$ac_c_werror_flag" ||
5229 test ! -s conftest.err
5230 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005231 ac_cv_type_size_t=yes
5232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005233 echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
Theodore Ts'oe1052142006-10-21 21:46:47 -04005236 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005237fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005238
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005240fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005241{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5242echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005243if test $ac_cv_type_size_t = yes; then
5244 :
5245else
5246
5247cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005248#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005249_ACEOF
5250
5251fi
5252
5253
Theodore Ts'oe1052142006-10-21 21:46:47 -04005254 { echo "$as_me:$LINENO: checking for long long" >&5
5255echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005256if test "${ac_cv_type_long_long+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
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. */
5265long long ll = 1LL; int i = 63;
5266int
5267main ()
5268{
5269long long llmax = (long long) -1;
5270 return ll << i | ll >> i | llmax / ll | llmax % ll;
5271 ;
5272 return 0;
5273}
5274_ACEOF
5275rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005276if { (ac_try="$ac_link"
5277case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280esac
5281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005288 (exit $ac_status); } && {
5289 test -z "$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5291 } && test -s conftest$ac_exeext &&
5292 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005293 ac_cv_type_long_long=yes
5294else
5295 echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
Theodore Ts'oe1052142006-10-21 21:46:47 -04005298 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005300
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005302 conftest$ac_exeext conftest.$ac_ext
5303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005304{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5305echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005306 if test $ac_cv_type_long_long = yes; then
5307
5308cat >>confdefs.h <<\_ACEOF
5309#define HAVE_LONG_LONG 1
5310_ACEOF
5311
5312 fi
5313
5314
Theodore Ts'oe1052142006-10-21 21:46:47 -04005315 { echo "$as_me:$LINENO: checking for long double" >&5
5316echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005317if test "${gt_cv_c_long_double+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319else
5320 if test "$GCC" = yes; then
5321 gt_cv_c_long_double=yes
5322 else
5323 cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h. */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h. */
5329
5330 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5331 long double foo = 0.0;
5332 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5333 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5334
5335int
5336main ()
5337{
5338
5339 ;
5340 return 0;
5341}
5342_ACEOF
5343rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005344if { (ac_try="$ac_compile"
5345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005356 (exit $ac_status); } && {
5357 test -z "$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005360 gt_cv_c_long_double=yes
5361else
5362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
Theodore Ts'oe1052142006-10-21 21:46:47 -04005365 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005367
5368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005369 fi
5370fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005371{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5372echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005373 if test $gt_cv_c_long_double = yes; then
5374
5375cat >>confdefs.h <<\_ACEOF
5376#define HAVE_LONG_DOUBLE 1
5377_ACEOF
5378
5379 fi
5380
5381
Theodore Ts'oe1052142006-10-21 21:46:47 -04005382 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5383echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005384if test "${gt_cv_c_wchar_t+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 cat >conftest.$ac_ext <<_ACEOF
5388/* confdefs.h. */
5389_ACEOF
5390cat confdefs.h >>conftest.$ac_ext
5391cat >>conftest.$ac_ext <<_ACEOF
5392/* end confdefs.h. */
5393#include <stddef.h>
5394 wchar_t foo = (wchar_t)'\0';
5395int
5396main ()
5397{
5398
5399 ;
5400 return 0;
5401}
5402_ACEOF
5403rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404if { (ac_try="$ac_compile"
5405case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408esac
5409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005420 gt_cv_c_wchar_t=yes
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
Theodore Ts'oe1052142006-10-21 21:46:47 -04005425 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005427
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005430{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5431echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005432 if test $gt_cv_c_wchar_t = yes; then
5433
5434cat >>confdefs.h <<\_ACEOF
5435#define HAVE_WCHAR_T 1
5436_ACEOF
5437
5438 fi
5439
5440
Theodore Ts'oe1052142006-10-21 21:46:47 -04005441 { echo "$as_me:$LINENO: checking for wint_t" >&5
5442echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005443if test "${gt_cv_c_wint_t+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446 cat >conftest.$ac_ext <<_ACEOF
5447/* confdefs.h. */
5448_ACEOF
5449cat confdefs.h >>conftest.$ac_ext
5450cat >>conftest.$ac_ext <<_ACEOF
5451/* end confdefs.h. */
5452#include <wchar.h>
5453 wint_t foo = (wchar_t)'\0';
5454int
5455main ()
5456{
5457
5458 ;
5459 return 0;
5460}
5461_ACEOF
5462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005463if { (ac_try="$ac_compile"
5464case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467esac
5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005479 gt_cv_c_wint_t=yes
5480else
5481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
Theodore Ts'oe1052142006-10-21 21:46:47 -04005484 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005486
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005489{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5490echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005491 if test $gt_cv_c_wint_t = yes; then
5492
5493cat >>confdefs.h <<\_ACEOF
5494#define HAVE_WINT_T 1
5495_ACEOF
5496
5497 fi
5498
5499
Theodore Ts'oe1052142006-10-21 21:46:47 -04005500 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5501echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005502if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505 cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */
5511#include <sys/types.h>
5512#include <inttypes.h>
5513int
5514main ()
5515{
5516uintmax_t i = (uintmax_t) -1;
5517 ;
5518 return 0;
5519}
5520_ACEOF
5521rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005522if { (ac_try="$ac_compile"
5523case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526esac
5527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005538 jm_ac_cv_header_inttypes_h=yes
5539else
5540 echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
Theodore Ts'oe1052142006-10-21 21:46:47 -04005543 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005544fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005545
5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005548{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5549echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005550 if test $jm_ac_cv_header_inttypes_h = yes; then
5551
5552cat >>confdefs.h <<_ACEOF
5553#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5554_ACEOF
5555
5556 fi
5557
5558
Theodore Ts'oe1052142006-10-21 21:46:47 -04005559 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5560echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005561if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564 cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h. */
5570#include <sys/types.h>
5571#include <stdint.h>
5572int
5573main ()
5574{
5575uintmax_t i = (uintmax_t) -1;
5576 ;
5577 return 0;
5578}
5579_ACEOF
5580rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005597 jm_ac_cv_header_stdint_h=yes
5598else
5599 echo "$as_me: failed program was:" >&5
5600sed 's/^/| /' conftest.$ac_ext >&5
5601
Theodore Ts'oe1052142006-10-21 21:46:47 -04005602 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005603fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005604
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005606fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005607{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5608echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005609 if test $jm_ac_cv_header_stdint_h = yes; then
5610
5611cat >>confdefs.h <<_ACEOF
5612#define HAVE_STDINT_H_WITH_UINTMAX 1
5613_ACEOF
5614
5615 fi
5616
5617
5618
5619
Theodore Ts'oe1052142006-10-21 21:46:47 -04005620 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5621echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005622if test "${gt_cv_c_intmax_t+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h. */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h. */
5631
5632#include <stddef.h>
5633#include <stdlib.h>
5634#if HAVE_STDINT_H_WITH_UINTMAX
5635#include <stdint.h>
5636#endif
5637#if HAVE_INTTYPES_H_WITH_UINTMAX
5638#include <inttypes.h>
5639#endif
5640
5641int
5642main ()
5643{
5644intmax_t x = -1;
5645 ;
5646 return 0;
5647}
5648_ACEOF
5649rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005650if { (ac_try="$ac_compile"
5651case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005662 (exit $ac_status); } && {
5663 test -z "$ac_c_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005666 gt_cv_c_intmax_t=yes
5667else
5668 echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
Theodore Ts'oe1052142006-10-21 21:46:47 -04005671 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005672fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005673
5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005675fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005676{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5677echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005678 if test $gt_cv_c_intmax_t = yes; then
5679
5680cat >>confdefs.h <<\_ACEOF
5681#define HAVE_INTMAX_T 1
5682_ACEOF
5683
5684 fi
5685
5686
5687
Theodore Ts'oe1052142006-10-21 21:46:47 -04005688 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5689echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690if test "${gt_cv_func_printf_posix+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693
5694 if test "$cross_compiling" = yes; then
5695
5696 cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h. */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h. */
5702
5703#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5704 notposix
5705#endif
5706
5707_ACEOF
5708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 $EGREP "notposix" >/dev/null 2>&1; then
5710 gt_cv_func_printf_posix="guessing no"
5711else
5712 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005713fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005714rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005716
5717else
5718 cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
5724
5725#include <stdio.h>
5726#include <string.h>
5727/* The string "%2$d %1$d", with dollar characters protected from the shell's
5728 dollar expansion (possibly an autoconf bug). */
5729static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5730static char buf[100];
5731int main ()
5732{
5733 sprintf (buf, format, 33, 55);
5734 return (strcmp (buf, "55 33") != 0);
5735}
5736_ACEOF
5737rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005738if { (ac_try="$ac_link"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005748 { (case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 gt_cv_func_printf_posix=yes
5758else
5759 echo "$as_me: program exited with status $ac_status" >&5
5760echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763( exit $ac_status )
5764gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005765fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005766rm -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 -05005767fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005768
Theodore Ts'oe1052142006-10-21 21:46:47 -04005769
5770
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005772{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5773echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005774 case $gt_cv_func_printf_posix in
5775 *yes)
5776
5777cat >>confdefs.h <<\_ACEOF
5778#define HAVE_POSIX_PRINTF 1
5779_ACEOF
5780
5781 ;;
5782 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005783
5784# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5785# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005786{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5787echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005788if test "${ac_cv_working_alloca_h+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005790else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005791 cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h. */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005797#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798int
5799main ()
5800{
5801char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005802 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005803 ;
5804 return 0;
5805}
5806_ACEOF
5807rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005808if { (ac_try="$ac_link"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest$ac_exeext &&
5824 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005826else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005827 echo "$as_me: failed program was:" >&5
5828sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005829
Theodore Ts'oe1052142006-10-21 21:46:47 -04005830 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005832
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005834 conftest$ac_exeext conftest.$ac_ext
5835fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005836{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5837echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005838if test $ac_cv_working_alloca_h = yes; then
5839
5840cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005841#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005842_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005843
5844fi
5845
Theodore Ts'oe1052142006-10-21 21:46:47 -04005846{ echo "$as_me:$LINENO: checking for alloca" >&5
5847echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005848if test "${ac_cv_func_alloca_works+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005850else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005851 cat >conftest.$ac_ext <<_ACEOF
5852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005857#ifdef __GNUC__
5858# define alloca __builtin_alloca
5859#else
5860# ifdef _MSC_VER
5861# include <malloc.h>
5862# define alloca _alloca
5863# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005864# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005865# include <alloca.h>
5866# else
5867# ifdef _AIX
5868 #pragma alloca
5869# else
5870# ifndef alloca /* predefined by HP cc +Olibcalls */
5871char *alloca ();
5872# endif
5873# endif
5874# endif
5875# endif
5876#endif
5877
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005878int
5879main ()
5880{
5881char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04005882 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005883 ;
5884 return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005888if { (ac_try="$ac_link"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005900 (exit $ac_status); } && {
5901 test -z "$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest$ac_exeext &&
5904 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005905 ac_cv_func_alloca_works=yes
5906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005909
Theodore Ts'oe1052142006-10-21 21:46:47 -04005910 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005912
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005914 conftest$ac_exeext conftest.$ac_ext
5915fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005916{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5917echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005918
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005919if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005920
5921cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005922#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005923_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005924
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005925else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005926 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5927# that cause trouble. Some versions do not even contain alloca or
5928# contain a buggy version. If you still want to use their alloca,
5929# use ar to extract alloca.o from them instead of compiling alloca.c.
5930
Theodore Ts'oe1052142006-10-21 21:46:47 -04005931ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005932
5933cat >>confdefs.h <<\_ACEOF
5934#define C_ALLOCA 1
5935_ACEOF
5936
5937
Theodore Ts'oe1052142006-10-21 21:46:47 -04005938{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5939echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005940if test "${ac_cv_os_cray+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942else
5943 cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005949#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005950webecray
5951#else
5952wenotbecray
5953#endif
5954
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005955_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005958 ac_cv_os_cray=yes
5959else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005960 ac_cv_os_cray=no
5961fi
5962rm -f conftest*
5963
5964fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005965{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5966echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005967if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968 for ac_func in _getb67 GETB67 getb67; do
5969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005970{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5972if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005973 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005975 cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
5981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5983#define $ac_func innocuous_$ac_func
5984
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005985/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005986 which can conflict with char $ac_func (); below.
5987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 <limits.h> exists even on freestanding compilers. */
5989
5990#ifdef __STDC__
5991# include <limits.h>
5992#else
5993# include <assert.h>
5994#endif
5995
5996#undef $ac_func
5997
Theodore Ts'oe1052142006-10-21 21:46:47 -04005998/* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006001#ifdef __cplusplus
6002extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006003#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006004char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006005/* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006008#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006009choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006010#endif
6011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006012int
6013main ()
6014{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006015return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006016 ;
6017 return 0;
6018}
6019_ACEOF
6020rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006021if { (ac_try="$ac_link"
6022case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025esac
6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest$ac_exeext &&
6037 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006040 echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006042
Theodore Ts'oe1052142006-10-21 21:46:47 -04006043 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006045
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047 conftest$ac_exeext conftest.$ac_ext
6048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006049ac_res=`eval echo '${'$as_ac_var'}'`
6050 { echo "$as_me:$LINENO: result: $ac_res" >&5
6051echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052if test `eval echo '${'$as_ac_var'}'` = yes; then
6053
6054cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006055#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006056_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006057
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006059fi
6060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006062fi
6063
Theodore Ts'oe1052142006-10-21 21:46:47 -04006064{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6065echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066if test "${ac_cv_c_stack_direction+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006068else
6069 if test "$cross_compiling" = yes; then
6070 ac_cv_c_stack_direction=0
6071else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072 cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h. */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006078$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006080find_stack_direction ()
6081{
6082 static char *addr = 0;
6083 auto char dummy;
6084 if (addr == 0)
6085 {
6086 addr = &dummy;
6087 return find_stack_direction ();
6088 }
6089 else
6090 return (&dummy > addr) ? 1 : -1;
6091}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092
6093int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006094main ()
6095{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006096 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006097}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098_ACEOF
6099rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006100if { (ac_try="$ac_link"
6101case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110 { (case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113esac
6114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006119 ac_cv_c_stack_direction=1
6120else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 echo "$as_me: program exited with status $ac_status" >&5
6122echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006124
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006125( exit $ac_status )
6126ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006127fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006128rm -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 -05006129fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006130
6131
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006133{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6134echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006135
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006137#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138_ACEOF
6139
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006140
6141fi
6142
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143
6144
6145for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006146do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006154ac_res=`eval echo '${'$as_ac_Header'}'`
6155 { echo "$as_me:$LINENO: result: $ac_res" >&5
6156echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006157else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006158 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167$ac_includes_default
6168#include <$ac_header>
6169_ACEOF
6170rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006187 ac_header_compiler=yes
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
Theodore Ts'oe1052142006-10-21 21:46:47 -04006192 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006193fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006194
6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6197echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006198
6199# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006202cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h. */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h. */
6208#include <$ac_header>
6209_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006210if { (ac_try="$ac_cpp conftest.$ac_ext"
6211case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006222 (exit $ac_status); } >/dev/null && {
6223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006226 ac_header_preproc=yes
6227else
6228 echo "$as_me: failed program was:" >&5
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 ac_header_preproc=no
6232fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006234rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006235{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6236echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006237
6238# So? What about this header?
6239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6240 yes:no: )
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6245 ac_header_preproc=yes
6246 ;;
6247 no:yes:* )
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6255echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261 ;;
6262esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006263{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 eval "$as_ac_Header=\$ac_header_preproc"
6269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006270ac_res=`eval echo '${'$as_ac_Header'}'`
6271 { echo "$as_me:$LINENO: result: $ac_res" >&5
6272echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273
6274fi
6275if test `eval echo '${'$as_ac_Header'}'` = yes; then
6276 cat >>confdefs.h <<_ACEOF
6277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6278_ACEOF
6279
6280fi
6281
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006282done
6283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006284
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006285for ac_func in getpagesize
6286do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006288{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006291 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293 cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h. */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h. */
6299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6301#define $ac_func innocuous_$ac_func
6302
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006303/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304 which can conflict with char $ac_func (); below.
6305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6306 <limits.h> exists even on freestanding compilers. */
6307
6308#ifdef __STDC__
6309# include <limits.h>
6310#else
6311# include <assert.h>
6312#endif
6313
6314#undef $ac_func
6315
Theodore Ts'oe1052142006-10-21 21:46:47 -04006316/* Override any GCC internal prototype to avoid an error.
6317 Use char because int might match the return type of a GCC
6318 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319#ifdef __cplusplus
6320extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006321#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006322char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006323/* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006326#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006327choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006328#endif
6329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006330int
6331main ()
6332{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006333return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006334 ;
6335 return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006339if { (ac_try="$ac_link"
6340case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest$ac_exeext &&
6355 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006357else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006360
Theodore Ts'oe1052142006-10-21 21:46:47 -04006361 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006363
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006365 conftest$ac_exeext conftest.$ac_ext
6366fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006367ac_res=`eval echo '${'$as_ac_var'}'`
6368 { echo "$as_me:$LINENO: result: $ac_res" >&5
6369echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006370if test `eval echo '${'$as_ac_var'}'` = yes; then
6371 cat >>confdefs.h <<_ACEOF
6372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6373_ACEOF
6374
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006375fi
6376done
6377
Theodore Ts'oe1052142006-10-21 21:46:47 -04006378{ echo "$as_me:$LINENO: checking for working mmap" >&5
6379echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006380if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006382else
6383 if test "$cross_compiling" = yes; then
6384 ac_cv_func_mmap_fixed_mapped=no
6385else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006386 cat >conftest.$ac_ext <<_ACEOF
6387/* confdefs.h. */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h. */
6392$ac_includes_default
6393/* malloc might have been renamed as rpl_malloc. */
6394#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006395
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006396/* Thanks to Mike Haertel and Jim Avera for this test.
6397 Here is a matrix of mmap possibilities:
6398 mmap private not fixed
6399 mmap private fixed at somewhere currently unmapped
6400 mmap private fixed at somewhere already mapped
6401 mmap shared not fixed
6402 mmap shared fixed at somewhere currently unmapped
6403 mmap shared fixed at somewhere already mapped
6404 For private mappings, we should verify that changes cannot be read()
6405 back from the file, nor mmap's back from the file at a different
6406 address. (There have been systems where private was not correctly
6407 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006408 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006409 like early versions of FreeBSD and possibly contemporary NetBSD.)
6410 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006412
6413 Grep wants private fixed already mapped.
6414 The main things grep needs to know about mmap are:
6415 * does it exist and is it safe to write into the mmap'd area
6416 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006417
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006418#include <fcntl.h>
6419#include <sys/mman.h>
6420
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006421#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422char *malloc ();
6423#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006424
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006425/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006426#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006427/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006428# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006429# define HAVE_SYS_PARAM_H 1
6430# endif
6431
6432# ifdef _SC_PAGESIZE
6433# define getpagesize() sysconf(_SC_PAGESIZE)
6434# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006435# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006436# include <sys/param.h>
6437# ifdef EXEC_PAGESIZE
6438# define getpagesize() EXEC_PAGESIZE
6439# else /* no EXEC_PAGESIZE */
6440# ifdef NBPG
6441# define getpagesize() NBPG * CLSIZE
6442# ifndef CLSIZE
6443# define CLSIZE 1
6444# endif /* no CLSIZE */
6445# else /* no NBPG */
6446# ifdef NBPC
6447# define getpagesize() NBPC
6448# else /* no NBPC */
6449# ifdef PAGESIZE
6450# define getpagesize() PAGESIZE
6451# endif /* PAGESIZE */
6452# endif /* no NBPC */
6453# endif /* no NBPG */
6454# endif /* no EXEC_PAGESIZE */
6455# else /* no HAVE_SYS_PARAM_H */
6456# define getpagesize() 8192 /* punt totally */
6457# endif /* no HAVE_SYS_PARAM_H */
6458# endif /* no _SC_PAGESIZE */
6459
6460#endif /* no HAVE_GETPAGESIZE */
6461
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006462int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006463main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006464{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006465 char *data, *data2, *data3;
6466 int i, pagesize;
6467 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006469 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006471 /* First, make a file with some known garbage in it. */
6472 data = (char *) malloc (pagesize);
6473 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006474 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006475 for (i = 0; i < pagesize; ++i)
6476 *(data + i) = rand ();
6477 umask (0);
6478 fd = creat ("conftest.mmap", 0600);
6479 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006480 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006482 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006484
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485 /* Next, try to mmap the file at a fixed address which already has
6486 something else allocated at it. If we can, also make sure that
6487 we see the same garbage. */
6488 fd = open ("conftest.mmap", O_RDWR);
6489 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006490 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006491 data2 = (char *) malloc (2 * pagesize);
6492 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006493 return 1;
6494 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6496 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006497 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498 for (i = 0; i < pagesize; ++i)
6499 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006500 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006501
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502 /* Finally, make sure that changes to the mapped area do not
6503 percolate back to the file as seen by read(). (This is a bug on
6504 some variants of i386 svr4.0.) */
6505 for (i = 0; i < pagesize; ++i)
6506 *(data2 + i) = *(data2 + i) + 1;
6507 data3 = (char *) malloc (pagesize);
6508 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006509 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006511 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512 for (i = 0; i < pagesize; ++i)
6513 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006514 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006515 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006516 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006517}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518_ACEOF
6519rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006520if { (ac_try="$ac_link"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006530 { (case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533esac
6534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006539 ac_cv_func_mmap_fixed_mapped=yes
6540else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541 echo "$as_me: program exited with status $ac_status" >&5
6542echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545( exit $ac_status )
6546ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006548rm -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 -05006549fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006550
6551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006553{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6554echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006555if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006556
6557cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006558#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006559_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006560
6561fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006563
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006564
Theodore Ts'oe1052142006-10-21 21:46:47 -04006565 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6566echo $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 -05006567if test "${ac_cv_gnu_library_2_1+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006569else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006570 cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006576
6577#include <features.h>
6578#ifdef __GNU_LIBRARY__
6579 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6580 Lucky GNU user
6581 #endif
6582#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006583
6584_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006586 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006587 ac_cv_gnu_library_2_1=yes
6588else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006589 ac_cv_gnu_library_2_1=no
6590fi
6591rm -f conftest*
6592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593
6594
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006595fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006596{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6597echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006598
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006599 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006600
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006602
6603
Theodore Ts'oe1052142006-10-21 21:46:47 -04006604 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6605echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006608else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006610 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006612 # Guess based on the CPU.
6613 case "$host_cpu" in
6614 alpha* | i3456786 | m68k | s390*)
6615 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6616 *)
6617 gt_cv_int_divbyzero_sigfpe="guessing no";;
6618 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006619
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006620else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621 cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006627
6628#include <stdlib.h>
6629#include <signal.h>
6630
6631static void
6632#ifdef __cplusplus
6633sigfpe_handler (int sig)
6634#else
6635sigfpe_handler (sig) int sig;
6636#endif
6637{
6638 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6639 exit (sig != SIGFPE);
6640}
6641
6642int x = 1;
6643int y = 0;
6644int z;
6645int nan;
6646
6647int main ()
6648{
6649 signal (SIGFPE, sigfpe_handler);
6650/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6651#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6652 signal (SIGTRAP, sigfpe_handler);
6653#endif
6654/* Linux/SPARC yields signal SIGILL. */
6655#if defined (__sparc__) && defined (__linux__)
6656 signal (SIGILL, sigfpe_handler);
6657#endif
6658
6659 z = x / y;
6660 nan = y / y;
6661 exit (1);
6662}
6663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664_ACEOF
6665rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006666if { (ac_try="$ac_link"
6667case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670esac
6671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676 { (case "(($ac_try" in
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6679esac
6680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006685 gt_cv_int_divbyzero_sigfpe=yes
6686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006687 echo "$as_me: program exited with status $ac_status" >&5
6688echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
6691( exit $ac_status )
6692gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006693fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006694rm -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 -04006695fi
6696
Theodore Ts'oe1052142006-10-21 21:46:47 -04006697
6698
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006699fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006700{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6701echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006702 case "$gt_cv_int_divbyzero_sigfpe" in
6703 *yes) value=1;;
6704 *) value=0;;
6705 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706
6707cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006708#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006710
6711
6712
Theodore Ts'oe1052142006-10-21 21:46:47 -04006713 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6714echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h. */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h. */
6724unsigned long long ull = 1ULL; int i = 63;
6725int
6726main ()
6727{
6728unsigned long long ullmax = (unsigned long long) -1;
6729 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6730 ;
6731 return 0;
6732}
6733_ACEOF
6734rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006735if { (ac_try="$ac_link"
6736case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739esac
6740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest$ac_exeext &&
6751 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006752 ac_cv_type_unsigned_long_long=yes
6753else
6754 echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5
6756
Theodore Ts'oe1052142006-10-21 21:46:47 -04006757 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006759
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006761 conftest$ac_exeext conftest.$ac_ext
6762fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006763{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6764echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765 if test $ac_cv_type_unsigned_long_long = yes; then
6766
6767cat >>confdefs.h <<\_ACEOF
6768#define HAVE_UNSIGNED_LONG_LONG 1
6769_ACEOF
6770
6771 fi
6772
6773
6774
6775
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006776 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 -05006777
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006778 test $ac_cv_type_unsigned_long_long = yes \
6779 && ac_type='unsigned long long' \
6780 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781
6782cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006783#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784_ACEOF
6785
6786 else
6787
6788cat >>confdefs.h <<\_ACEOF
6789#define HAVE_UINTMAX_T 1
6790_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006791
6792 fi
6793
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006794
Theodore Ts'oe1052142006-10-21 21:46:47 -04006795 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6796echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797if test "${gt_cv_header_inttypes_h+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006799else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006800
6801 cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006807#include <sys/types.h>
6808#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006809int
6810main ()
6811{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813 ;
6814 return 0;
6815}
6816_ACEOF
6817rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006818if { (ac_try="$ac_compile"
6819case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822esac
6823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006834 gt_cv_header_inttypes_h=yes
6835else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836 echo "$as_me: failed program was:" >&5
6837sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006838
Theodore Ts'oe1052142006-10-21 21:46:47 -04006839 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006841
6842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843
6844fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006845{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6846echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006847 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848
6849cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006850#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006852
6853 fi
6854
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006857 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04006858 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6859echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006862else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006863
6864 cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h. */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006870#include <inttypes.h>
6871#ifdef PRId32
6872char *p = PRId32;
6873#endif
6874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006875int
6876main ()
6877{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879 ;
6880 return 0;
6881}
6882_ACEOF
6883rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006884if { (ac_try="$ac_compile"
6885case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888esac
6889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006900 gt_cv_inttypes_pri_broken=no
6901else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902 echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006904
Theodore Ts'oe1052142006-10-21 21:46:47 -04006905 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006907
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909
6910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006911{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6912echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006913 fi
6914 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915
6916cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006917#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006919
6920 fi
6921
6922
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006924for ac_header in stdint.h
6925do
6926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006933ac_res=`eval echo '${'$as_ac_Header'}'`
6934 { echo "$as_me:$LINENO: result: $ac_res" >&5
6935echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936else
6937 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006938{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006940cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
6946$ac_includes_default
6947#include <$ac_header>
6948_ACEOF
6949rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006950if { (ac_try="$ac_compile"
6951case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954esac
6955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966 ac_header_compiler=yes
6967else
6968 echo "$as_me: failed program was:" >&5
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
Theodore Ts'oe1052142006-10-21 21:46:47 -04006971 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006973
6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006977
6978# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006979{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006981cat >conftest.$ac_ext <<_ACEOF
6982/* confdefs.h. */
6983_ACEOF
6984cat confdefs.h >>conftest.$ac_ext
6985cat >>conftest.$ac_ext <<_ACEOF
6986/* end confdefs.h. */
6987#include <$ac_header>
6988_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006989if { (ac_try="$ac_cpp conftest.$ac_ext"
6990case "(($ac_try" in
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6993esac
6994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007001 (exit $ac_status); } >/dev/null && {
7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005 ac_header_preproc=yes
7006else
7007 echo "$as_me: failed program was:" >&5
7008sed 's/^/| /' conftest.$ac_ext >&5
7009
7010 ac_header_preproc=no
7011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007012
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007013rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7015echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016
7017# So? What about this header?
7018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7019 yes:no: )
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7024 ac_header_preproc=yes
7025 ;;
7026 no:yes:* )
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040 ;;
7041esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007042{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046else
7047 eval "$as_ac_Header=\$ac_header_preproc"
7048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007049ac_res=`eval echo '${'$as_ac_Header'}'`
7050 { echo "$as_me:$LINENO: result: $ac_res" >&5
7051echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052
7053fi
7054if test `eval echo '${'$as_ac_Header'}'` = yes; then
7055 cat >>confdefs.h <<_ACEOF
7056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7057_ACEOF
7058
7059fi
7060
7061done
7062
Theodore Ts'oe1052142006-10-21 21:46:47 -04007063 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7064echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007065 result=
7066 cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h. */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h. */
7072
7073#include <limits.h>
7074#if HAVE_STDINT_H
7075#include <stdint.h>
7076#endif
7077#ifdef SIZE_MAX
7078Found it
7079#endif
7080
7081_ACEOF
7082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 $EGREP "Found it" >/dev/null 2>&1; then
7084 result=yes
7085fi
7086rm -f conftest*
7087
7088 if test -z "$result"; then
7089 if test "$cross_compiling" = yes; then
7090 # Depending upon the size, compute the lo and hi bounds.
7091cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h. */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h. */
7097#include <stddef.h>
7098int
7099main ()
7100{
7101static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7102test_array [0] = 0
7103
7104 ;
7105 return 0;
7106}
7107_ACEOF
7108rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007109if { (ac_try="$ac_compile"
7110case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113esac
7114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125 ac_lo=0 ac_mid=0
7126 while :; do
7127 cat >conftest.$ac_ext <<_ACEOF
7128/* confdefs.h. */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>conftest.$ac_ext <<_ACEOF
7132/* end confdefs.h. */
7133#include <stddef.h>
7134int
7135main ()
7136{
7137static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7138test_array [0] = 0
7139
7140 ;
7141 return 0;
7142}
7143_ACEOF
7144rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007145if { (ac_try="$ac_compile"
7146case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149esac
7150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161 ac_hi=$ac_mid; break
7162else
7163 echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
Theodore Ts'oe1052142006-10-21 21:46:47 -04007166 ac_lo=`expr $ac_mid + 1`
7167 if test $ac_lo -le $ac_mid; then
7168 ac_lo= ac_hi=
7169 break
7170 fi
7171 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007173
7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175 done
7176else
7177 echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
Theodore Ts'oe1052142006-10-21 21:46:47 -04007180 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181/* confdefs.h. */
7182_ACEOF
7183cat confdefs.h >>conftest.$ac_ext
7184cat >>conftest.$ac_ext <<_ACEOF
7185/* end confdefs.h. */
7186#include <stddef.h>
7187int
7188main ()
7189{
7190static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7191test_array [0] = 0
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007198if { (ac_try="$ac_compile"
7199case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007214 ac_hi=-1 ac_mid=-1
7215 while :; do
7216 cat >conftest.$ac_ext <<_ACEOF
7217/* confdefs.h. */
7218_ACEOF
7219cat confdefs.h >>conftest.$ac_ext
7220cat >>conftest.$ac_ext <<_ACEOF
7221/* end confdefs.h. */
7222#include <stddef.h>
7223int
7224main ()
7225{
7226static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7227test_array [0] = 0
7228
7229 ;
7230 return 0;
7231}
7232_ACEOF
7233rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007234if { (ac_try="$ac_compile"
7235case "(($ac_try" in
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7238esac
7239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007250 ac_lo=$ac_mid; break
7251else
7252 echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
Theodore Ts'oe1052142006-10-21 21:46:47 -04007255 ac_hi=`expr '(' $ac_mid ')' - 1`
7256 if test $ac_mid -le $ac_hi; then
7257 ac_lo= ac_hi=
7258 break
7259 fi
7260 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007262
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264 done
7265else
7266 echo "$as_me: failed program was:" >&5
7267sed 's/^/| /' conftest.$ac_ext >&5
7268
Theodore Ts'oe1052142006-10-21 21:46:47 -04007269 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007271
7272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007273fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007274
7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007276# Binary search between lo and hi bounds.
7277while test "x$ac_lo" != "x$ac_hi"; do
7278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7279 cat >conftest.$ac_ext <<_ACEOF
7280/* confdefs.h. */
7281_ACEOF
7282cat confdefs.h >>conftest.$ac_ext
7283cat >>conftest.$ac_ext <<_ACEOF
7284/* end confdefs.h. */
7285#include <stddef.h>
7286int
7287main ()
7288{
7289static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7290test_array [0] = 0
7291
7292 ;
7293 return 0;
7294}
7295_ACEOF
7296rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007297if { (ac_try="$ac_compile"
7298case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301esac
7302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007313 ac_hi=$ac_mid
7314else
7315 echo "$as_me: failed program was:" >&5
7316sed 's/^/| /' conftest.$ac_ext >&5
7317
Theodore Ts'oe1052142006-10-21 21:46:47 -04007318 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007320
7321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322done
7323case $ac_lo in
7324?*) res_hi=$ac_lo;;
7325'') result=? ;;
7326esac
7327else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328 cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h. */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h. */
7334#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007335static long int longval () { return ~(size_t)0 / 10; }
7336static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337#include <stdio.h>
7338#include <stdlib.h>
7339int
7340main ()
7341{
7342
7343 FILE *f = fopen ("conftest.val", "w");
7344 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007345 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007346 if ((~(size_t)0 / 10) < 0)
7347 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007348 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007350 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007351 fprintf (f, "%ld\n", i);
7352 }
7353 else
7354 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007355 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007356 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007357 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007358 fprintf (f, "%lu\n", i);
7359 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007360 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007361
7362 ;
7363 return 0;
7364}
7365_ACEOF
7366rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007367if { (ac_try="$ac_link"
7368case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371esac
7372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007377 { (case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7380esac
7381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 res_hi=`cat conftest.val`
7387else
7388 echo "$as_me: program exited with status $ac_status" >&5
7389echo "$as_me: failed program was:" >&5
7390sed 's/^/| /' conftest.$ac_ext >&5
7391
7392( exit $ac_status )
7393result=?
7394fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007395rm -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 -05007396fi
7397rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399 if test "$cross_compiling" = yes; then
7400 # Depending upon the size, compute the lo and hi bounds.
7401cat >conftest.$ac_ext <<_ACEOF
7402/* confdefs.h. */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
7406/* end confdefs.h. */
7407#include <stddef.h>
7408int
7409main ()
7410{
7411static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7412test_array [0] = 0
7413
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007419if { (ac_try="$ac_compile"
7420case "(($ac_try" in
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7423esac
7424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007435 ac_lo=0 ac_mid=0
7436 while :; do
7437 cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h. */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h. */
7443#include <stddef.h>
7444int
7445main ()
7446{
7447static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7448test_array [0] = 0
7449
7450 ;
7451 return 0;
7452}
7453_ACEOF
7454rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007455if { (ac_try="$ac_compile"
7456case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459esac
7460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471 ac_hi=$ac_mid; break
7472else
7473 echo "$as_me: failed program was:" >&5
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
Theodore Ts'oe1052142006-10-21 21:46:47 -04007476 ac_lo=`expr $ac_mid + 1`
7477 if test $ac_lo -le $ac_mid; then
7478 ac_lo= ac_hi=
7479 break
7480 fi
7481 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007483
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485 done
7486else
7487 echo "$as_me: failed program was:" >&5
7488sed 's/^/| /' conftest.$ac_ext >&5
7489
Theodore Ts'oe1052142006-10-21 21:46:47 -04007490 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007491/* confdefs.h. */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h. */
7496#include <stddef.h>
7497int
7498main ()
7499{
7500static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7501test_array [0] = 0
7502
7503 ;
7504 return 0;
7505}
7506_ACEOF
7507rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007508if { (ac_try="$ac_compile"
7509case "(($ac_try" in
7510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511 *) ac_try_echo=$ac_try;;
7512esac
7513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7514 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007520 (exit $ac_status); } && {
7521 test -z "$ac_c_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524 ac_hi=-1 ac_mid=-1
7525 while :; do
7526 cat >conftest.$ac_ext <<_ACEOF
7527/* confdefs.h. */
7528_ACEOF
7529cat confdefs.h >>conftest.$ac_ext
7530cat >>conftest.$ac_ext <<_ACEOF
7531/* end confdefs.h. */
7532#include <stddef.h>
7533int
7534main ()
7535{
7536static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7537test_array [0] = 0
7538
7539 ;
7540 return 0;
7541}
7542_ACEOF
7543rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007544if { (ac_try="$ac_compile"
7545case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007560 ac_lo=$ac_mid; break
7561else
7562 echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
Theodore Ts'oe1052142006-10-21 21:46:47 -04007565 ac_hi=`expr '(' $ac_mid ')' - 1`
7566 if test $ac_mid -le $ac_hi; then
7567 ac_lo= ac_hi=
7568 break
7569 fi
7570 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007572
7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007574 done
7575else
7576 echo "$as_me: failed program was:" >&5
7577sed 's/^/| /' conftest.$ac_ext >&5
7578
Theodore Ts'oe1052142006-10-21 21:46:47 -04007579 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007581
7582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007584
7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007586# Binary search between lo and hi bounds.
7587while test "x$ac_lo" != "x$ac_hi"; do
7588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7589 cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h. */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h. */
7595#include <stddef.h>
7596int
7597main ()
7598{
7599static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7600test_array [0] = 0
7601
7602 ;
7603 return 0;
7604}
7605_ACEOF
7606rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007607if { (ac_try="$ac_compile"
7608case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611esac
7612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007623 ac_hi=$ac_mid
7624else
7625 echo "$as_me: failed program was:" >&5
7626sed 's/^/| /' conftest.$ac_ext >&5
7627
Theodore Ts'oe1052142006-10-21 21:46:47 -04007628 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007630
7631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007632done
7633case $ac_lo in
7634?*) res_lo=$ac_lo;;
7635'') result=? ;;
7636esac
7637else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638 cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007645static long int longval () { return ~(size_t)0 % 10; }
7646static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647#include <stdio.h>
7648#include <stdlib.h>
7649int
7650main ()
7651{
7652
7653 FILE *f = fopen ("conftest.val", "w");
7654 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007655 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656 if ((~(size_t)0 % 10) < 0)
7657 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007658 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007660 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007661 fprintf (f, "%ld\n", i);
7662 }
7663 else
7664 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007665 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007667 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007668 fprintf (f, "%lu\n", i);
7669 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007670 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007671
7672 ;
7673 return 0;
7674}
7675_ACEOF
7676rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007677if { (ac_try="$ac_link"
7678case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 res_lo=`cat conftest.val`
7697else
7698 echo "$as_me: program exited with status $ac_status" >&5
7699echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702( exit $ac_status )
7703result=?
7704fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007705rm -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 -05007706fi
7707rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709 if test "$cross_compiling" = yes; then
7710 # Depending upon the size, compute the lo and hi bounds.
7711cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
7717#include <stddef.h>
7718int
7719main ()
7720{
7721static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7722test_array [0] = 0
7723
7724 ;
7725 return 0;
7726}
7727_ACEOF
7728rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007729if { (ac_try="$ac_compile"
7730case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733esac
7734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745 ac_lo=0 ac_mid=0
7746 while :; do
7747 cat >conftest.$ac_ext <<_ACEOF
7748/* confdefs.h. */
7749_ACEOF
7750cat confdefs.h >>conftest.$ac_ext
7751cat >>conftest.$ac_ext <<_ACEOF
7752/* end confdefs.h. */
7753#include <stddef.h>
7754int
7755main ()
7756{
7757static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7758test_array [0] = 0
7759
7760 ;
7761 return 0;
7762}
7763_ACEOF
7764rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007765if { (ac_try="$ac_compile"
7766case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769esac
7770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781 ac_hi=$ac_mid; break
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
Theodore Ts'oe1052142006-10-21 21:46:47 -04007786 ac_lo=`expr $ac_mid + 1`
7787 if test $ac_lo -le $ac_mid; then
7788 ac_lo= ac_hi=
7789 break
7790 fi
7791 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007793
7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007795 done
7796else
7797 echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
Theodore Ts'oe1052142006-10-21 21:46:47 -04007800 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007801/* confdefs.h. */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h. */
7806#include <stddef.h>
7807int
7808main ()
7809{
7810static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7811test_array [0] = 0
7812
7813 ;
7814 return 0;
7815}
7816_ACEOF
7817rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007818if { (ac_try="$ac_compile"
7819case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822esac
7823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834 ac_hi=-1 ac_mid=-1
7835 while :; do
7836 cat >conftest.$ac_ext <<_ACEOF
7837/* confdefs.h. */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h. */
7842#include <stddef.h>
7843int
7844main ()
7845{
7846static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7847test_array [0] = 0
7848
7849 ;
7850 return 0;
7851}
7852_ACEOF
7853rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007854if { (ac_try="$ac_compile"
7855case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007870 ac_lo=$ac_mid; break
7871else
7872 echo "$as_me: failed program was:" >&5
7873sed 's/^/| /' conftest.$ac_ext >&5
7874
Theodore Ts'oe1052142006-10-21 21:46:47 -04007875 ac_hi=`expr '(' $ac_mid ')' - 1`
7876 if test $ac_mid -le $ac_hi; then
7877 ac_lo= ac_hi=
7878 break
7879 fi
7880 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007881fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007882
7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007884 done
7885else
7886 echo "$as_me: failed program was:" >&5
7887sed 's/^/| /' conftest.$ac_ext >&5
7888
Theodore Ts'oe1052142006-10-21 21:46:47 -04007889 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007890fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007891
7892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007893fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007894
7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007896# Binary search between lo and hi bounds.
7897while test "x$ac_lo" != "x$ac_hi"; do
7898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7899 cat >conftest.$ac_ext <<_ACEOF
7900/* confdefs.h. */
7901_ACEOF
7902cat confdefs.h >>conftest.$ac_ext
7903cat >>conftest.$ac_ext <<_ACEOF
7904/* end confdefs.h. */
7905#include <stddef.h>
7906int
7907main ()
7908{
7909static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7910test_array [0] = 0
7911
7912 ;
7913 return 0;
7914}
7915_ACEOF
7916rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007917if { (ac_try="$ac_compile"
7918case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921esac
7922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007933 ac_hi=$ac_mid
7934else
7935 echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
Theodore Ts'oe1052142006-10-21 21:46:47 -04007938 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007940
7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007942done
7943case $ac_lo in
7944?*) fits_in_uint=$ac_lo;;
7945'') result=? ;;
7946esac
7947else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007948 cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7954#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007955static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7956static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007957#include <stdio.h>
7958#include <stdlib.h>
7959int
7960main ()
7961{
7962
7963 FILE *f = fopen ("conftest.val", "w");
7964 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007965 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007966 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7967 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007968 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007969 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007970 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007971 fprintf (f, "%ld\n", i);
7972 }
7973 else
7974 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007975 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007976 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007977 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007978 fprintf (f, "%lu\n", i);
7979 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007980 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007981
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007987if { (ac_try="$ac_link"
7988case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007997 { (case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000esac
8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 fits_in_uint=`cat conftest.val`
8007else
8008 echo "$as_me: program exited with status $ac_status" >&5
8009echo "$as_me: failed program was:" >&5
8010sed 's/^/| /' conftest.$ac_ext >&5
8011
8012( exit $ac_status )
8013result=?
8014fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008015rm -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 -05008016fi
8017rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008019 if test "$fits_in_uint" = 1; then
8020 cat >conftest.$ac_ext <<_ACEOF
8021/* confdefs.h. */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h. */
8026#include <stddef.h>
8027 extern size_t foo;
8028 extern unsigned long foo;
8029
8030int
8031main ()
8032{
8033
8034 ;
8035 return 0;
8036}
8037_ACEOF
8038rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008039if { (ac_try="$ac_compile"
8040case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043esac
8044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008055 fits_in_uint=0
8056else
8057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
Theodore Ts'oe1052142006-10-21 21:46:47 -04008060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008061fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008062
8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008064 fi
8065 if test -z "$result"; then
8066 if test "$fits_in_uint" = 1; then
8067 result="$res_hi$res_lo"U
8068 else
8069 result="$res_hi$res_lo"UL
8070 fi
8071 else
8072 result='~(size_t)0'
8073 fi
8074 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008075 { echo "$as_me:$LINENO: result: $result" >&5
8076echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008077 if test "$result" != yes; then
8078
8079cat >>confdefs.h <<_ACEOF
8080#define SIZE_MAX $result
8081_ACEOF
8082
8083 fi
8084
8085
8086
8087
8088for ac_header in stdint.h
8089do
8090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008097ac_res=`eval echo '${'$as_ac_Header'}'`
8098 { echo "$as_me:$LINENO: result: $ac_res" >&5
8099echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008100else
8101 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008102{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008104cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h. */
8110$ac_includes_default
8111#include <$ac_header>
8112_ACEOF
8113rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008114if { (ac_try="$ac_compile"
8115case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008130 ac_header_compiler=yes
8131else
8132 echo "$as_me: failed program was:" >&5
8133sed 's/^/| /' conftest.$ac_ext >&5
8134
Theodore Ts'oe1052142006-10-21 21:46:47 -04008135 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008136fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008137
8138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008141
8142# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008143{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008145cat >conftest.$ac_ext <<_ACEOF
8146/* confdefs.h. */
8147_ACEOF
8148cat confdefs.h >>conftest.$ac_ext
8149cat >>conftest.$ac_ext <<_ACEOF
8150/* end confdefs.h. */
8151#include <$ac_header>
8152_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008153if { (ac_try="$ac_cpp conftest.$ac_ext"
8154case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008165 (exit $ac_status); } >/dev/null && {
8166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008169 ac_header_preproc=yes
8170else
8171 echo "$as_me: failed program was:" >&5
8172sed 's/^/| /' conftest.$ac_ext >&5
8173
8174 ac_header_preproc=no
8175fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008177rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008178{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008180
8181# So? What about this header?
8182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8183 yes:no: )
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8188 ac_header_preproc=yes
8189 ;;
8190 no:yes:* )
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008204 ;;
8205esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008206{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 eval "$as_ac_Header=\$ac_header_preproc"
8212fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008213ac_res=`eval echo '${'$as_ac_Header'}'`
8214 { echo "$as_me:$LINENO: result: $ac_res" >&5
8215echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008216
8217fi
8218if test `eval echo '${'$as_ac_Header'}'` = yes; then
8219 cat >>confdefs.h <<_ACEOF
8220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221_ACEOF
8222
8223fi
8224
8225done
8226
8227
8228
8229 if test "X$prefix" = "XNONE"; then
8230 acl_final_prefix="$ac_default_prefix"
8231 else
8232 acl_final_prefix="$prefix"
8233 fi
8234 if test "X$exec_prefix" = "XNONE"; then
8235 acl_final_exec_prefix='${prefix}'
8236 else
8237 acl_final_exec_prefix="$exec_prefix"
8238 fi
8239 acl_save_prefix="$prefix"
8240 prefix="$acl_final_prefix"
8241 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8242 prefix="$acl_save_prefix"
8243
8244
Theodore Ts'oe1052142006-10-21 21:46:47 -04008245# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008246if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008248else
8249 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008250fi
8251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008252# Prepare PATH_SEPARATOR.
8253# The user is always right.
8254if test "${PATH_SEPARATOR+set}" != set; then
8255 echo "#! /bin/sh" >conf$$.sh
8256 echo "exit 0" >>conf$$.sh
8257 chmod +x conf$$.sh
8258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8259 PATH_SEPARATOR=';'
8260 else
8261 PATH_SEPARATOR=:
8262 fi
8263 rm -f conf$$.sh
8264fi
8265ac_prog=ld
8266if test "$GCC" = yes; then
8267 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008268 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8269echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008270 case $host in
8271 *-*-mingw*)
8272 # gcc leaves a trailing carriage return which upsets mingw
8273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8274 *)
8275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8276 esac
8277 case $ac_prog in
8278 # Accept absolute paths.
8279 [\\/]* | [A-Za-z]:[\\/]*)
8280 re_direlt='/[^/][^/]*/\.\./'
8281 # Canonicalize the path of ld
8282 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8284 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8285 done
8286 test -z "$LD" && LD="$ac_prog"
8287 ;;
8288 "")
8289 # If it fails, then pretend we aren't using GCC.
8290 ac_prog=ld
8291 ;;
8292 *)
8293 # If it is relative, then search for the first ld in PATH.
8294 with_gnu_ld=unknown
8295 ;;
8296 esac
8297elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008298 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8299echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008301 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8302echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008303fi
8304if test "${acl_cv_path_LD+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306else
8307 if test -z "$LD"; then
8308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8309 for ac_dir in $PATH; do
8310 test -z "$ac_dir" && ac_dir=.
8311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8312 acl_cv_path_LD="$ac_dir/$ac_prog"
8313 # Check to see if the program is GNU ld. I'd rather use --version,
8314 # but apparently some GNU ld's only accept -v.
8315 # Break only if it was the GNU/non-GNU ld that we prefer.
8316 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8317 *GNU* | *'with BFD'*)
8318 test "$with_gnu_ld" != no && break ;;
8319 *)
8320 test "$with_gnu_ld" != yes && break ;;
8321 esac
8322 fi
8323 done
8324 IFS="$ac_save_ifs"
8325else
8326 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8327fi
8328fi
8329
8330LD="$acl_cv_path_LD"
8331if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008332 { echo "$as_me:$LINENO: result: $LD" >&5
8333echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008334else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008335 { echo "$as_me:$LINENO: result: no" >&5
8336echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008337fi
8338test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8339echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8340 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008341{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8342echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008343if test "${acl_cv_prog_gnu_ld+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8347case `$LD -v 2>&1 </dev/null` in
8348*GNU* | *'with BFD'*)
8349 acl_cv_prog_gnu_ld=yes ;;
8350*)
8351 acl_cv_prog_gnu_ld=no ;;
8352esac
8353fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008354{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8355echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008356with_gnu_ld=$acl_cv_prog_gnu_ld
8357
8358
8359
Theodore Ts'oe1052142006-10-21 21:46:47 -04008360 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8361echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008362if test "${acl_cv_rpath+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364else
8365
8366 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8367 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8368 . ./conftest.sh
8369 rm -f ./conftest.sh
8370 acl_cv_rpath=done
8371
8372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8374echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008375 wl="$acl_cv_wl"
8376 libext="$acl_cv_libext"
8377 shlibext="$acl_cv_shlibext"
8378 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8379 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8380 hardcode_direct="$acl_cv_hardcode_direct"
8381 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008382 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008384 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008385else
8386 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008387fi
8388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008389
8390
8391
8392
8393
8394
8395
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008396 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008397
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008398 acl_save_prefix="$prefix"
8399 prefix="$acl_final_prefix"
8400 acl_save_exec_prefix="$exec_prefix"
8401 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008402
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008403 eval additional_includedir=\"$includedir\"
8404 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008405
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008406 exec_prefix="$acl_save_exec_prefix"
8407 prefix="$acl_save_prefix"
8408
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008409
Theodore Ts'oe1052142006-10-21 21:46:47 -04008410# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008411if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008412 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008413 if test "X$withval" = "Xno"; then
8414 use_additional=no
8415 else
8416 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008417
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008418 acl_save_prefix="$prefix"
8419 prefix="$acl_final_prefix"
8420 acl_save_exec_prefix="$exec_prefix"
8421 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008422
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008423 eval additional_includedir=\"$includedir\"
8424 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008425
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008426 exec_prefix="$acl_save_exec_prefix"
8427 prefix="$acl_save_prefix"
8428
8429 else
8430 additional_includedir="$withval/include"
8431 additional_libdir="$withval/lib"
8432 fi
8433 fi
8434
Theodore Ts'oe1052142006-10-21 21:46:47 -04008435fi
8436
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008437 LIBICONV=
8438 LTLIBICONV=
8439 INCICONV=
8440 rpathdirs=
8441 ltrpathdirs=
8442 names_already_handled=
8443 names_next_round='iconv '
8444 while test -n "$names_next_round"; do
8445 names_this_round="$names_next_round"
8446 names_next_round=
8447 for name in $names_this_round; do
8448 already_handled=
8449 for n in $names_already_handled; do
8450 if test "$n" = "$name"; then
8451 already_handled=yes
8452 break
8453 fi
8454 done
8455 if test -z "$already_handled"; then
8456 names_already_handled="$names_already_handled $name"
8457 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8458 eval value=\"\$HAVE_LIB$uppername\"
8459 if test -n "$value"; then
8460 if test "$value" = yes; then
8461 eval value=\"\$LIB$uppername\"
8462 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8463 eval value=\"\$LTLIB$uppername\"
8464 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8465 else
8466 :
8467 fi
8468 else
8469 found_dir=
8470 found_la=
8471 found_so=
8472 found_a=
8473 if test $use_additional = yes; then
8474 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8475 found_dir="$additional_libdir"
8476 found_so="$additional_libdir/lib$name.$shlibext"
8477 if test -f "$additional_libdir/lib$name.la"; then
8478 found_la="$additional_libdir/lib$name.la"
8479 fi
8480 else
8481 if test -f "$additional_libdir/lib$name.$libext"; then
8482 found_dir="$additional_libdir"
8483 found_a="$additional_libdir/lib$name.$libext"
8484 if test -f "$additional_libdir/lib$name.la"; then
8485 found_la="$additional_libdir/lib$name.la"
8486 fi
8487 fi
8488 fi
8489 fi
8490 if test "X$found_dir" = "X"; then
8491 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008492
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008493 acl_save_prefix="$prefix"
8494 prefix="$acl_final_prefix"
8495 acl_save_exec_prefix="$exec_prefix"
8496 exec_prefix="$acl_final_exec_prefix"
8497 eval x=\"$x\"
8498 exec_prefix="$acl_save_exec_prefix"
8499 prefix="$acl_save_prefix"
8500
8501 case "$x" in
8502 -L*)
8503 dir=`echo "X$x" | sed -e 's/^X-L//'`
8504 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8505 found_dir="$dir"
8506 found_so="$dir/lib$name.$shlibext"
8507 if test -f "$dir/lib$name.la"; then
8508 found_la="$dir/lib$name.la"
8509 fi
8510 else
8511 if test -f "$dir/lib$name.$libext"; then
8512 found_dir="$dir"
8513 found_a="$dir/lib$name.$libext"
8514 if test -f "$dir/lib$name.la"; then
8515 found_la="$dir/lib$name.la"
8516 fi
8517 fi
8518 fi
8519 ;;
8520 esac
8521 if test "X$found_dir" != "X"; then
8522 break
8523 fi
8524 done
8525 fi
8526 if test "X$found_dir" != "X"; then
8527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8528 if test "X$found_so" != "X"; then
8529 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8531 else
8532 haveit=
8533 for x in $ltrpathdirs; do
8534 if test "X$x" = "X$found_dir"; then
8535 haveit=yes
8536 break
8537 fi
8538 done
8539 if test -z "$haveit"; then
8540 ltrpathdirs="$ltrpathdirs $found_dir"
8541 fi
8542 if test "$hardcode_direct" = yes; then
8543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8544 else
8545 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8547 haveit=
8548 for x in $rpathdirs; do
8549 if test "X$x" = "X$found_dir"; then
8550 haveit=yes
8551 break
8552 fi
8553 done
8554 if test -z "$haveit"; then
8555 rpathdirs="$rpathdirs $found_dir"
8556 fi
8557 else
8558 haveit=
8559 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008560
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008561 acl_save_prefix="$prefix"
8562 prefix="$acl_final_prefix"
8563 acl_save_exec_prefix="$exec_prefix"
8564 exec_prefix="$acl_final_exec_prefix"
8565 eval x=\"$x\"
8566 exec_prefix="$acl_save_exec_prefix"
8567 prefix="$acl_save_prefix"
8568
8569 if test "X$x" = "X-L$found_dir"; then
8570 haveit=yes
8571 break
8572 fi
8573 done
8574 if test -z "$haveit"; then
8575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8576 fi
8577 if test "$hardcode_minus_L" != no; then
8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8579 else
8580 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8581 fi
8582 fi
8583 fi
8584 fi
8585 else
8586 if test "X$found_a" != "X"; then
8587 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8588 else
8589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8590 fi
8591 fi
8592 additional_includedir=
8593 case "$found_dir" in
8594 */lib | */lib/)
8595 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8596 additional_includedir="$basedir/include"
8597 ;;
8598 esac
8599 if test "X$additional_includedir" != "X"; then
8600 if test "X$additional_includedir" != "X/usr/include"; then
8601 haveit=
8602 if test "X$additional_includedir" = "X/usr/local/include"; then
8603 if test -n "$GCC"; then
8604 case $host_os in
8605 linux*) haveit=yes;;
8606 esac
8607 fi
8608 fi
8609 if test -z "$haveit"; then
8610 for x in $CPPFLAGS $INCICONV; do
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"
8616 eval x=\"$x\"
8617 exec_prefix="$acl_save_exec_prefix"
8618 prefix="$acl_save_prefix"
8619
8620 if test "X$x" = "X-I$additional_includedir"; then
8621 haveit=yes
8622 break
8623 fi
8624 done
8625 if test -z "$haveit"; then
8626 if test -d "$additional_includedir"; then
8627 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8628 fi
8629 fi
8630 fi
8631 fi
8632 fi
8633 if test -n "$found_la"; then
8634 save_libdir="$libdir"
8635 case "$found_la" in
8636 */* | *\\*) . "$found_la" ;;
8637 *) . "./$found_la" ;;
8638 esac
8639 libdir="$save_libdir"
8640 for dep in $dependency_libs; do
8641 case "$dep" in
8642 -L*)
8643 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8644 if test "X$additional_libdir" != "X/usr/lib"; then
8645 haveit=
8646 if test "X$additional_libdir" = "X/usr/local/lib"; then
8647 if test -n "$GCC"; then
8648 case $host_os in
8649 linux*) haveit=yes;;
8650 esac
8651 fi
8652 fi
8653 if test -z "$haveit"; then
8654 haveit=
8655 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008656
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008657 acl_save_prefix="$prefix"
8658 prefix="$acl_final_prefix"
8659 acl_save_exec_prefix="$exec_prefix"
8660 exec_prefix="$acl_final_exec_prefix"
8661 eval x=\"$x\"
8662 exec_prefix="$acl_save_exec_prefix"
8663 prefix="$acl_save_prefix"
8664
8665 if test "X$x" = "X-L$additional_libdir"; then
8666 haveit=yes
8667 break
8668 fi
8669 done
8670 if test -z "$haveit"; then
8671 if test -d "$additional_libdir"; then
8672 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8673 fi
8674 fi
8675 haveit=
8676 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008677
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008678 acl_save_prefix="$prefix"
8679 prefix="$acl_final_prefix"
8680 acl_save_exec_prefix="$exec_prefix"
8681 exec_prefix="$acl_final_exec_prefix"
8682 eval x=\"$x\"
8683 exec_prefix="$acl_save_exec_prefix"
8684 prefix="$acl_save_prefix"
8685
8686 if test "X$x" = "X-L$additional_libdir"; then
8687 haveit=yes
8688 break
8689 fi
8690 done
8691 if test -z "$haveit"; then
8692 if test -d "$additional_libdir"; then
8693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8694 fi
8695 fi
8696 fi
8697 fi
8698 ;;
8699 -R*)
8700 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8701 if test "$enable_rpath" != no; then
8702 haveit=
8703 for x in $rpathdirs; do
8704 if test "X$x" = "X$dir"; then
8705 haveit=yes
8706 break
8707 fi
8708 done
8709 if test -z "$haveit"; then
8710 rpathdirs="$rpathdirs $dir"
8711 fi
8712 haveit=
8713 for x in $ltrpathdirs; do
8714 if test "X$x" = "X$dir"; then
8715 haveit=yes
8716 break
8717 fi
8718 done
8719 if test -z "$haveit"; then
8720 ltrpathdirs="$ltrpathdirs $dir"
8721 fi
8722 fi
8723 ;;
8724 -l*)
8725 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8726 ;;
8727 *.la)
8728 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8729 ;;
8730 *)
8731 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8732 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8733 ;;
8734 esac
8735 done
8736 fi
8737 else
8738 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8739 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8740 fi
8741 fi
8742 fi
8743 done
8744 done
8745 if test "X$rpathdirs" != "X"; then
8746 if test -n "$hardcode_libdir_separator"; then
8747 alldirs=
8748 for found_dir in $rpathdirs; do
8749 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8750 done
8751 acl_save_libdir="$libdir"
8752 libdir="$alldirs"
8753 eval flag=\"$hardcode_libdir_flag_spec\"
8754 libdir="$acl_save_libdir"
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8756 else
8757 for found_dir in $rpathdirs; do
8758 acl_save_libdir="$libdir"
8759 libdir="$found_dir"
8760 eval flag=\"$hardcode_libdir_flag_spec\"
8761 libdir="$acl_save_libdir"
8762 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8763 done
8764 fi
8765 fi
8766 if test "X$ltrpathdirs" != "X"; then
8767 for found_dir in $ltrpathdirs; do
8768 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8769 done
8770 fi
8771
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008772
8773
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008775
8776
8777
8778
Theodore Ts'oe1052142006-10-21 21:46:47 -04008779 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8780echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008781if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008783else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008784 cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h. */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h. */
8790$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008791typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792int
8793main ()
8794{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008795if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008797if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008798 return 0;
8799 ;
8800 return 0;
8801}
8802_ACEOF
8803rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008804if { (ac_try="$ac_compile"
8805case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8808esac
8809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008811 ac_status=$?
8812 grep -v '^ *+' conftest.er1 >conftest.err
8813 rm -f conftest.er1
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008816 (exit $ac_status); } && {
8817 test -z "$ac_c_werror_flag" ||
8818 test ! -s conftest.err
8819 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008820 ac_cv_type_ptrdiff_t=yes
8821else
8822 echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
Theodore Ts'oe1052142006-10-21 21:46:47 -04008825 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008827
8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008829fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008830{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8831echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832if test $ac_cv_type_ptrdiff_t = yes; then
8833 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008834else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008835
8836cat >>confdefs.h <<\_ACEOF
8837#define ptrdiff_t long
8838_ACEOF
8839
8840
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008841fi
8842
8843
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008844
8845
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008846
8847
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008848
8849
8850
8851
8852
8853for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008854stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008855do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008861 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008863ac_res=`eval echo '${'$as_ac_Header'}'`
8864 { echo "$as_me:$LINENO: result: $ac_res" >&5
8865echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008866else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008867 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008868{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008870cat >conftest.$ac_ext <<_ACEOF
8871/* confdefs.h. */
8872_ACEOF
8873cat confdefs.h >>conftest.$ac_ext
8874cat >>conftest.$ac_ext <<_ACEOF
8875/* end confdefs.h. */
8876$ac_includes_default
8877#include <$ac_header>
8878_ACEOF
8879rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008880if { (ac_try="$ac_compile"
8881case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896 ac_header_compiler=yes
8897else
8898 echo "$as_me: failed program was:" >&5
8899sed 's/^/| /' conftest.$ac_ext >&5
8900
Theodore Ts'oe1052142006-10-21 21:46:47 -04008901 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008903
8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8906echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008907
8908# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008909{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008911cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h. */
8917#include <$ac_header>
8918_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008919if { (ac_try="$ac_cpp conftest.$ac_ext"
8920case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923esac
8924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008931 (exit $ac_status); } >/dev/null && {
8932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8934 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008935 ac_header_preproc=yes
8936else
8937 echo "$as_me: failed program was:" >&5
8938sed 's/^/| /' conftest.$ac_ext >&5
8939
8940 ac_header_preproc=no
8941fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008943rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008944{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8945echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008946
8947# So? What about this header?
8948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8949 yes:no: )
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8954 ac_header_preproc=yes
8955 ;;
8956 no:yes:* )
8957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008969
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008970 ;;
8971esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976else
8977 eval "$as_ac_Header=\$ac_header_preproc"
8978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008979ac_res=`eval echo '${'$as_ac_Header'}'`
8980 { echo "$as_me:$LINENO: result: $ac_res" >&5
8981echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008982
8983fi
8984if test `eval echo '${'$as_ac_Header'}'` = yes; then
8985 cat >>confdefs.h <<_ACEOF
8986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987_ACEOF
8988
8989fi
8990
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008991done
8992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9017mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9018strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9019__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009020do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009022{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9024if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009025 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009026else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009027 cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035#define $ac_func innocuous_$ac_func
9036
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009037/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009038 which can conflict with char $ac_func (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9041
9042#ifdef __STDC__
9043# include <limits.h>
9044#else
9045# include <assert.h>
9046#endif
9047
9048#undef $ac_func
9049
Theodore Ts'oe1052142006-10-21 21:46:47 -04009050/* Override any GCC internal prototype to avoid an error.
9051 Use char because int might match the return type of a GCC
9052 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009053#ifdef __cplusplus
9054extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009055#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009056char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009057/* The GNU C library defines this for functions which it implements
9058 to always fail with ENOSYS. Some functions are actually named
9059 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009060#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009061choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009062#endif
9063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009064int
9065main ()
9066{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009067return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009068 ;
9069 return 0;
9070}
9071_ACEOF
9072rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009073if { (ac_try="$ac_link"
9074case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9077esac
9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest$ac_exeext &&
9089 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009090 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009092 echo "$as_me: failed program was:" >&5
9093sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009094
Theodore Ts'oe1052142006-10-21 21:46:47 -04009095 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009096fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009097
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009099 conftest$ac_exeext conftest.$ac_ext
9100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009101ac_res=`eval echo '${'$as_ac_var'}'`
9102 { echo "$as_me:$LINENO: result: $ac_res" >&5
9103echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104if test `eval echo '${'$as_ac_var'}'` = yes; then
9105 cat >>confdefs.h <<_ACEOF
9106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9107_ACEOF
9108
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009109fi
9110done
9111
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113
Theodore Ts'oe1052142006-10-21 21:46:47 -04009114 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9115echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009116if test "${ac_cv_have_decl__snprintf+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119 cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h. */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h. */
9125#include <stdio.h>
9126int
9127main ()
9128{
9129
9130#ifndef _snprintf
9131 char *p = (char *) _snprintf;
9132#endif
9133
9134 ;
9135 return 0;
9136}
9137_ACEOF
9138rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009139if { (ac_try="$ac_compile"
9140case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143esac
9144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009151 (exit $ac_status); } && {
9152 test -z "$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009155 ac_cv_have_decl__snprintf=yes
9156else
9157 echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
Theodore Ts'oe1052142006-10-21 21:46:47 -04009160 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009161fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009162
9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009165{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9166echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009167 if test $ac_cv_have_decl__snprintf = yes; then
9168 gt_value=1
9169 else
9170 gt_value=0
9171 fi
9172
9173cat >>confdefs.h <<_ACEOF
9174#define HAVE_DECL__SNPRINTF $gt_value
9175_ACEOF
9176
9177
9178
Theodore Ts'oe1052142006-10-21 21:46:47 -04009179 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9180echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009181if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183else
9184 cat >conftest.$ac_ext <<_ACEOF
9185/* confdefs.h. */
9186_ACEOF
9187cat confdefs.h >>conftest.$ac_ext
9188cat >>conftest.$ac_ext <<_ACEOF
9189/* end confdefs.h. */
9190#include <stdio.h>
9191int
9192main ()
9193{
9194
9195#ifndef _snwprintf
9196 char *p = (char *) _snwprintf;
9197#endif
9198
9199 ;
9200 return 0;
9201}
9202_ACEOF
9203rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009204if { (ac_try="$ac_compile"
9205case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208esac
9209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009216 (exit $ac_status); } && {
9217 test -z "$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220 ac_cv_have_decl__snwprintf=yes
9221else
9222 echo "$as_me: failed program was:" >&5
9223sed 's/^/| /' conftest.$ac_ext >&5
9224
Theodore Ts'oe1052142006-10-21 21:46:47 -04009225 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009226fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009227
9228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009230{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9231echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009232 if test $ac_cv_have_decl__snwprintf = yes; then
9233 gt_value=1
9234 else
9235 gt_value=0
9236 fi
9237
9238cat >>confdefs.h <<_ACEOF
9239#define HAVE_DECL__SNWPRINTF $gt_value
9240_ACEOF
9241
9242
9243
9244
Theodore Ts'oe1052142006-10-21 21:46:47 -04009245 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9246echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009247if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249else
9250 cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h. */
9256#include <stdio.h>
9257int
9258main ()
9259{
9260
9261#ifndef feof_unlocked
9262 char *p = (char *) feof_unlocked;
9263#endif
9264
9265 ;
9266 return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009270if { (ac_try="$ac_compile"
9271case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274esac
9275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286 ac_cv_have_decl_feof_unlocked=yes
9287else
9288 echo "$as_me: failed program was:" >&5
9289sed 's/^/| /' conftest.$ac_ext >&5
9290
Theodore Ts'oe1052142006-10-21 21:46:47 -04009291 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009292fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009293
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009296{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9297echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009298 if test $ac_cv_have_decl_feof_unlocked = yes; then
9299 gt_value=1
9300 else
9301 gt_value=0
9302 fi
9303
9304cat >>confdefs.h <<_ACEOF
9305#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9306_ACEOF
9307
9308
9309
Theodore Ts'oe1052142006-10-21 21:46:47 -04009310 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9311echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315 cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h. */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321#include <stdio.h>
9322int
9323main ()
9324{
9325
9326#ifndef fgets_unlocked
9327 char *p = (char *) fgets_unlocked;
9328#endif
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009335if { (ac_try="$ac_compile"
9336case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339esac
9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009351 ac_cv_have_decl_fgets_unlocked=yes
9352else
9353 echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
Theodore Ts'oe1052142006-10-21 21:46:47 -04009356 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009358
9359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009361{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9362echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009363 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9364 gt_value=1
9365 else
9366 gt_value=0
9367 fi
9368
9369cat >>confdefs.h <<_ACEOF
9370#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9371_ACEOF
9372
9373
9374
Theodore Ts'oe1052142006-10-21 21:46:47 -04009375 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9376echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009377if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379else
9380 cat >conftest.$ac_ext <<_ACEOF
9381/* confdefs.h. */
9382_ACEOF
9383cat confdefs.h >>conftest.$ac_ext
9384cat >>conftest.$ac_ext <<_ACEOF
9385/* end confdefs.h. */
9386#include <stdio.h>
9387int
9388main ()
9389{
9390
9391#ifndef getc_unlocked
9392 char *p = (char *) getc_unlocked;
9393#endif
9394
9395 ;
9396 return 0;
9397}
9398_ACEOF
9399rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009400if { (ac_try="$ac_compile"
9401case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404esac
9405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009416 ac_cv_have_decl_getc_unlocked=yes
9417else
9418 echo "$as_me: failed program was:" >&5
9419sed 's/^/| /' conftest.$ac_ext >&5
9420
Theodore Ts'oe1052142006-10-21 21:46:47 -04009421 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009422fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009423
9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009426{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9427echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009428 if test $ac_cv_have_decl_getc_unlocked = yes; then
9429 gt_value=1
9430 else
9431 gt_value=0
9432 fi
9433
9434cat >>confdefs.h <<_ACEOF
9435#define HAVE_DECL_GETC_UNLOCKED $gt_value
9436_ACEOF
9437
9438
9439
9440 case $gt_cv_func_printf_posix in
9441 *yes) HAVE_POSIX_PRINTF=1 ;;
9442 *) HAVE_POSIX_PRINTF=0 ;;
9443 esac
9444
9445 if test "$ac_cv_func_asprintf" = yes; then
9446 HAVE_ASPRINTF=1
9447 else
9448 HAVE_ASPRINTF=0
9449 fi
9450
9451 if test "$ac_cv_func_snprintf" = yes; then
9452 HAVE_SNPRINTF=1
9453 else
9454 HAVE_SNPRINTF=0
9455 fi
9456
9457 if test "$ac_cv_func_wprintf" = yes; then
9458 HAVE_WPRINTF=1
9459 else
9460 HAVE_WPRINTF=0
9461 fi
9462
9463
9464
9465
9466
9467
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009468
9469 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009471 for element in $INCICONV; do
9472 haveit=
9473 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475 acl_save_prefix="$prefix"
9476 prefix="$acl_final_prefix"
9477 acl_save_exec_prefix="$exec_prefix"
9478 exec_prefix="$acl_final_exec_prefix"
9479 eval x=\"$x\"
9480 exec_prefix="$acl_save_exec_prefix"
9481 prefix="$acl_save_prefix"
9482
9483 if test "X$x" = "X$element"; then
9484 haveit=yes
9485 break
9486 fi
9487 done
9488 if test -z "$haveit"; then
9489 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9490 fi
9491 done
9492
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009493
Theodore Ts'oe1052142006-10-21 21:46:47 -04009494 { echo "$as_me:$LINENO: checking for iconv" >&5
9495echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009496if test "${am_cv_func_iconv+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009498else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009500 am_cv_func_iconv="no, consider installing GNU libiconv"
9501 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009502 cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h. */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009508#include <stdlib.h>
9509#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009510int
9511main ()
9512{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009513iconv_t cd = iconv_open("","");
9514 iconv(cd,NULL,NULL,NULL,NULL);
9515 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009516 ;
9517 return 0;
9518}
9519_ACEOF
9520rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009521if { (ac_try="$ac_link"
9522case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525esac
9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009533 (exit $ac_status); } && {
9534 test -z "$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 } && test -s conftest$ac_exeext &&
9537 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009538 am_cv_func_iconv=yes
9539else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009540 echo "$as_me: failed program was:" >&5
9541sed 's/^/| /' conftest.$ac_ext >&5
9542
Theodore Ts'oe1052142006-10-21 21:46:47 -04009543
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009544fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009545
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009548 if test "$am_cv_func_iconv" != yes; then
9549 am_save_LIBS="$LIBS"
9550 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551 cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009557#include <stdlib.h>
9558#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559int
9560main ()
9561{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009562iconv_t cd = iconv_open("","");
9563 iconv(cd,NULL,NULL,NULL,NULL);
9564 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009565 ;
9566 return 0;
9567}
9568_ACEOF
9569rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009570if { (ac_try="$ac_link"
9571case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574esac
9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest$ac_exeext &&
9586 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009587 am_cv_lib_iconv=yes
9588 am_cv_func_iconv=yes
9589else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009590 echo "$as_me: failed program was:" >&5
9591sed 's/^/| /' conftest.$ac_ext >&5
9592
Theodore Ts'oe1052142006-10-21 21:46:47 -04009593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009594fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009595
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009598 LIBS="$am_save_LIBS"
9599 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009601fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009602{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9603echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009604 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009605
9606cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009607#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009608_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009609
9610 fi
9611 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009612 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9613echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9614 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9615echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009616 else
9617 CPPFLAGS="$am_save_CPPFLAGS"
9618 LIBICONV=
9619 LTLIBICONV=
9620 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009621
9622
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009623
9624 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009625 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9626echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009627 if test "${am_cv_proto_iconv+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009629else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009630
9631 cat >conftest.$ac_ext <<_ACEOF
9632/* confdefs.h. */
9633_ACEOF
9634cat confdefs.h >>conftest.$ac_ext
9635cat >>conftest.$ac_ext <<_ACEOF
9636/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009637
9638#include <stdlib.h>
9639#include <iconv.h>
9640extern
9641#ifdef __cplusplus
9642"C"
9643#endif
9644#if defined(__STDC__) || defined(__cplusplus)
9645size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9646#else
9647size_t iconv();
9648#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009649
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009650int
9651main ()
9652{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009653
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009659if { (ac_try="$ac_compile"
9660case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009675 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009676else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
Theodore Ts'oe1052142006-10-21 21:46:47 -04009680 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009682
9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009684 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 +00009685fi
9686
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009687 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009688 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009689 }$am_cv_proto_iconv" >&5
9690echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009691 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009692
9693cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009694#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009696
9697 fi
9698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699
Theodore Ts'oe1052142006-10-21 21:46:47 -04009700 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9701echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009702if test "${am_cv_langinfo_codeset+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009704else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009705 cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009711#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009712int
9713main ()
9714{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009715char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009716 ;
9717 return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009721if { (ac_try="$ac_link"
9722case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725esac
9726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest$ac_exeext &&
9737 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009738 am_cv_langinfo_codeset=yes
9739else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009740 echo "$as_me: failed program was:" >&5
9741sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009742
Theodore Ts'oe1052142006-10-21 21:46:47 -04009743 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009745
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009747 conftest$ac_exeext conftest.$ac_ext
9748
9749fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009750{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9751echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009752 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009753
9754cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009755#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009756_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009757
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009758 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009759
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009760 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009761
Theodore Ts'oe1052142006-10-21 21:46:47 -04009762 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9763echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009764if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009766else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009767 cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009773#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009774int
9775main ()
9776{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009777return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009778 ;
9779 return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009783if { (ac_try="$ac_link"
9784case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext &&
9799 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009800 am_cv_val_LC_MESSAGES=yes
9801else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009802 echo "$as_me: failed program was:" >&5
9803sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009804
Theodore Ts'oe1052142006-10-21 21:46:47 -04009805 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009806fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009809 conftest$ac_exeext conftest.$ac_ext
9810fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009811{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9812echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009813 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009814
9815cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009816#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009817_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009818
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009819 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009820
9821 fi
9822
9823 for ac_prog in bison
9824do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009826set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009829if test "${ac_cv_prog_INTLBISON+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009831else
9832 if test -n "$INTLBISON"; then
9833 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9834else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009841 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 -05009842 ac_cv_prog_INTLBISON="$ac_prog"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9845 fi
9846done
9847done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009848IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009849
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009850fi
9851fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009852INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009853if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009854 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9855echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009856else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857 { echo "$as_me:$LINENO: result: no" >&5
9858echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009859fi
9860
Theodore Ts'oe1052142006-10-21 21:46:47 -04009861
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009862 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009863done
9864
9865 if test -z "$INTLBISON"; then
9866 ac_verc_fail=yes
9867 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009868 { echo "$as_me:$LINENO: checking version of bison" >&5
9869echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009870 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9871 case $ac_prog_version in
9872 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9873 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9874 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9875 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9876 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009877 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9878echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009879 fi
9880 if test $ac_verc_fail = yes; then
9881 INTLBISON=:
9882 fi
9883
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009884
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009885
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009886
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009887
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009888
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009889
9890
9891
9892
9893
9894
9895
9896
9897
9898
Theodore Ts'oe1052142006-10-21 21:46:47 -04009899 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9900echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9901 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009902if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009903 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009904else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009905 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009906fi
9907
9908 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9909echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009910
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009912
9913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009914 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009915 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009916
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009917 LIBINTL=
9918 LTLIBINTL=
9919 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009920
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009921 if test "$USE_NLS" = "yes"; then
9922 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009923
Theodore Ts'oe1052142006-10-21 21:46:47 -04009924 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9925echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926
Theodore Ts'oe1052142006-10-21 21:46:47 -04009927# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009928if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009929 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009930else
9931 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009932fi
9933
9934 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9935echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009936
9937 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9938 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009940
9941
9942
9943
9944
Theodore Ts'oe1052142006-10-21 21:46:47 -04009945 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9946echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009949else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009950 cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h. */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009956#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009957extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009958extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009959int
9960main ()
9961{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009962bindtextdomain ("", "");
9963return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009964 ;
9965 return 0;
9966}
9967_ACEOF
9968rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009969if { (ac_try="$ac_link"
9970case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest$ac_exeext &&
9985 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009986 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009987else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009988 echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009990
Theodore Ts'oe1052142006-10-21 21:46:47 -04009991 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009993
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009995 conftest$ac_exeext conftest.$ac_ext
9996fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009997{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9998echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009999
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010000 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001
10002
10003
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010004 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010005
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010006 acl_save_prefix="$prefix"
10007 prefix="$acl_final_prefix"
10008 acl_save_exec_prefix="$exec_prefix"
10009 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010010
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010011 eval additional_includedir=\"$includedir\"
10012 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010014 exec_prefix="$acl_save_exec_prefix"
10015 prefix="$acl_save_prefix"
10016
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010017
Theodore Ts'oe1052142006-10-21 21:46:47 -040010018# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010019if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010020 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010021 if test "X$withval" = "Xno"; then
10022 use_additional=no
10023 else
10024 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010025
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010026 acl_save_prefix="$prefix"
10027 prefix="$acl_final_prefix"
10028 acl_save_exec_prefix="$exec_prefix"
10029 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010031 eval additional_includedir=\"$includedir\"
10032 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010034 exec_prefix="$acl_save_exec_prefix"
10035 prefix="$acl_save_prefix"
10036
10037 else
10038 additional_includedir="$withval/include"
10039 additional_libdir="$withval/lib"
10040 fi
10041 fi
10042
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043fi
10044
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010045 LIBINTL=
10046 LTLIBINTL=
10047 INCINTL=
10048 rpathdirs=
10049 ltrpathdirs=
10050 names_already_handled=
10051 names_next_round='intl '
10052 while test -n "$names_next_round"; do
10053 names_this_round="$names_next_round"
10054 names_next_round=
10055 for name in $names_this_round; do
10056 already_handled=
10057 for n in $names_already_handled; do
10058 if test "$n" = "$name"; then
10059 already_handled=yes
10060 break
10061 fi
10062 done
10063 if test -z "$already_handled"; then
10064 names_already_handled="$names_already_handled $name"
10065 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10066 eval value=\"\$HAVE_LIB$uppername\"
10067 if test -n "$value"; then
10068 if test "$value" = yes; then
10069 eval value=\"\$LIB$uppername\"
10070 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10071 eval value=\"\$LTLIB$uppername\"
10072 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10073 else
10074 :
10075 fi
10076 else
10077 found_dir=
10078 found_la=
10079 found_so=
10080 found_a=
10081 if test $use_additional = yes; then
10082 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10083 found_dir="$additional_libdir"
10084 found_so="$additional_libdir/lib$name.$shlibext"
10085 if test -f "$additional_libdir/lib$name.la"; then
10086 found_la="$additional_libdir/lib$name.la"
10087 fi
10088 else
10089 if test -f "$additional_libdir/lib$name.$libext"; then
10090 found_dir="$additional_libdir"
10091 found_a="$additional_libdir/lib$name.$libext"
10092 if test -f "$additional_libdir/lib$name.la"; then
10093 found_la="$additional_libdir/lib$name.la"
10094 fi
10095 fi
10096 fi
10097 fi
10098 if test "X$found_dir" = "X"; then
10099 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010100
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010101 acl_save_prefix="$prefix"
10102 prefix="$acl_final_prefix"
10103 acl_save_exec_prefix="$exec_prefix"
10104 exec_prefix="$acl_final_exec_prefix"
10105 eval x=\"$x\"
10106 exec_prefix="$acl_save_exec_prefix"
10107 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010108
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010109 case "$x" in
10110 -L*)
10111 dir=`echo "X$x" | sed -e 's/^X-L//'`
10112 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10113 found_dir="$dir"
10114 found_so="$dir/lib$name.$shlibext"
10115 if test -f "$dir/lib$name.la"; then
10116 found_la="$dir/lib$name.la"
10117 fi
10118 else
10119 if test -f "$dir/lib$name.$libext"; then
10120 found_dir="$dir"
10121 found_a="$dir/lib$name.$libext"
10122 if test -f "$dir/lib$name.la"; then
10123 found_la="$dir/lib$name.la"
10124 fi
10125 fi
10126 fi
10127 ;;
10128 esac
10129 if test "X$found_dir" != "X"; then
10130 break
10131 fi
10132 done
10133 fi
10134 if test "X$found_dir" != "X"; then
10135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10136 if test "X$found_so" != "X"; then
10137 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10139 else
10140 haveit=
10141 for x in $ltrpathdirs; do
10142 if test "X$x" = "X$found_dir"; then
10143 haveit=yes
10144 break
10145 fi
10146 done
10147 if test -z "$haveit"; then
10148 ltrpathdirs="$ltrpathdirs $found_dir"
10149 fi
10150 if test "$hardcode_direct" = yes; then
10151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10152 else
10153 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10154 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10155 haveit=
10156 for x in $rpathdirs; do
10157 if test "X$x" = "X$found_dir"; then
10158 haveit=yes
10159 break
10160 fi
10161 done
10162 if test -z "$haveit"; then
10163 rpathdirs="$rpathdirs $found_dir"
10164 fi
10165 else
10166 haveit=
10167 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010168
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010169 acl_save_prefix="$prefix"
10170 prefix="$acl_final_prefix"
10171 acl_save_exec_prefix="$exec_prefix"
10172 exec_prefix="$acl_final_exec_prefix"
10173 eval x=\"$x\"
10174 exec_prefix="$acl_save_exec_prefix"
10175 prefix="$acl_save_prefix"
10176
10177 if test "X$x" = "X-L$found_dir"; then
10178 haveit=yes
10179 break
10180 fi
10181 done
10182 if test -z "$haveit"; then
10183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10184 fi
10185 if test "$hardcode_minus_L" != no; then
10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10187 else
10188 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10189 fi
10190 fi
10191 fi
10192 fi
10193 else
10194 if test "X$found_a" != "X"; then
10195 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10196 else
10197 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10198 fi
10199 fi
10200 additional_includedir=
10201 case "$found_dir" in
10202 */lib | */lib/)
10203 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10204 additional_includedir="$basedir/include"
10205 ;;
10206 esac
10207 if test "X$additional_includedir" != "X"; then
10208 if test "X$additional_includedir" != "X/usr/include"; then
10209 haveit=
10210 if test "X$additional_includedir" = "X/usr/local/include"; then
10211 if test -n "$GCC"; then
10212 case $host_os in
10213 linux*) haveit=yes;;
10214 esac
10215 fi
10216 fi
10217 if test -z "$haveit"; then
10218 for x in $CPPFLAGS $INCINTL; do
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"
10224 eval x=\"$x\"
10225 exec_prefix="$acl_save_exec_prefix"
10226 prefix="$acl_save_prefix"
10227
10228 if test "X$x" = "X-I$additional_includedir"; then
10229 haveit=yes
10230 break
10231 fi
10232 done
10233 if test -z "$haveit"; then
10234 if test -d "$additional_includedir"; then
10235 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10236 fi
10237 fi
10238 fi
10239 fi
10240 fi
10241 if test -n "$found_la"; then
10242 save_libdir="$libdir"
10243 case "$found_la" in
10244 */* | *\\*) . "$found_la" ;;
10245 *) . "./$found_la" ;;
10246 esac
10247 libdir="$save_libdir"
10248 for dep in $dependency_libs; do
10249 case "$dep" in
10250 -L*)
10251 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10252 if test "X$additional_libdir" != "X/usr/lib"; then
10253 haveit=
10254 if test "X$additional_libdir" = "X/usr/local/lib"; then
10255 if test -n "$GCC"; then
10256 case $host_os in
10257 linux*) haveit=yes;;
10258 esac
10259 fi
10260 fi
10261 if test -z "$haveit"; then
10262 haveit=
10263 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010264
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010265 acl_save_prefix="$prefix"
10266 prefix="$acl_final_prefix"
10267 acl_save_exec_prefix="$exec_prefix"
10268 exec_prefix="$acl_final_exec_prefix"
10269 eval x=\"$x\"
10270 exec_prefix="$acl_save_exec_prefix"
10271 prefix="$acl_save_prefix"
10272
10273 if test "X$x" = "X-L$additional_libdir"; then
10274 haveit=yes
10275 break
10276 fi
10277 done
10278 if test -z "$haveit"; then
10279 if test -d "$additional_libdir"; then
10280 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10281 fi
10282 fi
10283 haveit=
10284 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010285
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010286 acl_save_prefix="$prefix"
10287 prefix="$acl_final_prefix"
10288 acl_save_exec_prefix="$exec_prefix"
10289 exec_prefix="$acl_final_exec_prefix"
10290 eval x=\"$x\"
10291 exec_prefix="$acl_save_exec_prefix"
10292 prefix="$acl_save_prefix"
10293
10294 if test "X$x" = "X-L$additional_libdir"; then
10295 haveit=yes
10296 break
10297 fi
10298 done
10299 if test -z "$haveit"; then
10300 if test -d "$additional_libdir"; then
10301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10302 fi
10303 fi
10304 fi
10305 fi
10306 ;;
10307 -R*)
10308 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10309 if test "$enable_rpath" != no; then
10310 haveit=
10311 for x in $rpathdirs; do
10312 if test "X$x" = "X$dir"; then
10313 haveit=yes
10314 break
10315 fi
10316 done
10317 if test -z "$haveit"; then
10318 rpathdirs="$rpathdirs $dir"
10319 fi
10320 haveit=
10321 for x in $ltrpathdirs; do
10322 if test "X$x" = "X$dir"; then
10323 haveit=yes
10324 break
10325 fi
10326 done
10327 if test -z "$haveit"; then
10328 ltrpathdirs="$ltrpathdirs $dir"
10329 fi
10330 fi
10331 ;;
10332 -l*)
10333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10334 ;;
10335 *.la)
10336 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10337 ;;
10338 *)
10339 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10340 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10341 ;;
10342 esac
10343 done
10344 fi
10345 else
10346 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10348 fi
10349 fi
10350 fi
10351 done
10352 done
10353 if test "X$rpathdirs" != "X"; then
10354 if test -n "$hardcode_libdir_separator"; then
10355 alldirs=
10356 for found_dir in $rpathdirs; do
10357 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10358 done
10359 acl_save_libdir="$libdir"
10360 libdir="$alldirs"
10361 eval flag=\"$hardcode_libdir_flag_spec\"
10362 libdir="$acl_save_libdir"
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10364 else
10365 for found_dir in $rpathdirs; do
10366 acl_save_libdir="$libdir"
10367 libdir="$found_dir"
10368 eval flag=\"$hardcode_libdir_flag_spec\"
10369 libdir="$acl_save_libdir"
10370 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10371 done
10372 fi
10373 fi
10374 if test "X$ltrpathdirs" != "X"; then
10375 for found_dir in $ltrpathdirs; do
10376 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10377 done
10378 fi
10379
Theodore Ts'oe1052142006-10-21 21:46:47 -040010380 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10381echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010382if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010384else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010385 gt_save_CPPFLAGS="$CPPFLAGS"
10386 CPPFLAGS="$CPPFLAGS $INCINTL"
10387 gt_save_LIBS="$LIBS"
10388 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010389 cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010395#include <libintl.h>
10396extern int _nl_msg_cat_cntr;
10397extern
10398#ifdef __cplusplus
10399"C"
10400#endif
10401const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010402int
10403main ()
10404{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010405bindtextdomain ("", "");
10406return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010407 ;
10408 return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest$ac_exeext &&
10428 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010429 gt_cv_func_gnugettext1_libintl=yes
10430else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010431 echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
Theodore Ts'oe1052142006-10-21 21:46:47 -040010434 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010435fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010436
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010438 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010439 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10440 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010441 cat >conftest.$ac_ext <<_ACEOF
10442/* confdefs.h. */
10443_ACEOF
10444cat confdefs.h >>conftest.$ac_ext
10445cat >>conftest.$ac_ext <<_ACEOF
10446/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010447#include <libintl.h>
10448extern int _nl_msg_cat_cntr;
10449extern
10450#ifdef __cplusplus
10451"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010452#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010453const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010454int
10455main ()
10456{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010457bindtextdomain ("", "");
10458return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010459 ;
10460 return 0;
10461}
10462_ACEOF
10463rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010464if { (ac_try="$ac_link"
10465case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468esac
10469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext &&
10480 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010481 LIBINTL="$LIBINTL $LIBICONV"
10482 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10483 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010484
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010485else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
Theodore Ts'oe1052142006-10-21 21:46:47 -040010489
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010491
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010493 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010494 fi
10495 CPPFLAGS="$gt_save_CPPFLAGS"
10496 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010497fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010498{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10499echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010500 fi
10501
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010502 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10503 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010504 && test "$PACKAGE" != gettext-runtime \
10505 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010506 gt_use_preinstalled_gnugettext=yes
10507 else
10508 LIBINTL=
10509 LTLIBINTL=
10510 INCINTL=
10511 fi
10512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010513
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010514 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10515 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010516 fi
10517 fi
10518
10519 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010521 USE_INCLUDED_LIBINTL=yes
10522 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10523 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10524 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010525 fi
10526
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010527 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10528 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10529 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010530 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010532
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010533 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10534 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010535
10536cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010537#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010538_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010539
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010540 else
10541 USE_NLS=no
10542 fi
10543 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010544
Theodore Ts'oe1052142006-10-21 21:46:47 -040010545 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10546echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10547 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10548echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010549 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010550 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10551echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010552 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10553 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10554 gt_source="external libintl"
10555 else
10556 gt_source="libc"
10557 fi
10558 else
10559 gt_source="included intl directory"
10560 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010561 { echo "$as_me:$LINENO: result: $gt_source" >&5
10562echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010563 fi
10564
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010565 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010566
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010567 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10568 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010569 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10570echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10571 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10572echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010573
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010574 for element in $INCINTL; do
10575 haveit=
10576 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010578 acl_save_prefix="$prefix"
10579 prefix="$acl_final_prefix"
10580 acl_save_exec_prefix="$exec_prefix"
10581 exec_prefix="$acl_final_exec_prefix"
10582 eval x=\"$x\"
10583 exec_prefix="$acl_save_exec_prefix"
10584 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010585
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010586 if test "X$x" = "X$element"; then
10587 haveit=yes
10588 break
10589 fi
10590 done
10591 if test -z "$haveit"; then
10592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10593 fi
10594 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010595
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010596 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010597
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599cat >>confdefs.h <<\_ACEOF
10600#define HAVE_GETTEXT 1
10601_ACEOF
10602
10603
10604cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010605#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010607
10608 fi
10609
10610 POSUB=po
10611 fi
10612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010613
10614 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010615 BUILD_INCLUDED_LIBINTL=yes
10616 fi
10617
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010618
10619
10620
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010621
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010622 nls_cv_header_intl=
10623 nls_cv_header_libgt=
10624
10625 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010627
10628 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010629
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010630
10631 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632
10633
10634 if test "$USE_INCLUDED_LIBINTL" = yes; then
10635 INTLOBJS="\$(GETTOBJS)"
10636 fi
10637
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010638
10639 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640
10641
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010642
10643 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010644
10645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010646
10647
10648
10649
10650
Theodore Ts'oe1052142006-10-21 21:46:47 -040010651{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10652echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10653set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10654if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010655 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010656else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010657 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010658SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010659all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010660 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010662# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010663case `${MAKE-make} -f conftest.make 2>/dev/null` in
10664 *@@@%%%=?*=@@@%%%*)
10665 eval ac_cv_prog_make_${ac_make}_set=yes;;
10666 *)
10667 eval ac_cv_prog_make_${ac_make}_set=no;;
10668esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010669rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010670fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010671if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10672 { echo "$as_me:$LINENO: result: yes" >&5
10673echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010674 SET_MAKE=
10675else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010676 { echo "$as_me:$LINENO: result: no" >&5
10677echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010678 SET_MAKE="MAKE=${MAKE-make}"
10679fi
10680
10681# Extract the first word of "ln", so it can be a program name with args.
10682set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010685if test "${ac_cv_path_LN+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010687else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688 case $LN in
10689 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010690 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10691 ;;
10692 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694for as_dir in $PATH
10695do
10696 IFS=$as_save_IFS
10697 test -z "$as_dir" && as_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010699 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 -050010700 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10702 break 2
10703 fi
10704done
10705done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010706IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010708 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10709 ;;
10710esac
10711fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010712LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010713if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010714 { echo "$as_me:$LINENO: result: $LN" >&5
10715echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010716else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010717 { echo "$as_me:$LINENO: result: no" >&5
10718echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010719fi
10720
Theodore Ts'oe1052142006-10-21 21:46:47 -040010721
10722{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10723echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724LN_S=$as_ln_s
10725if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010726 { echo "$as_me:$LINENO: result: yes" >&5
10727echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010728else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010729 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10730echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010731fi
10732
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010733# Extract the first word of "mv", so it can be a program name with args.
10734set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010737if test "${ac_cv_path_MV+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010739else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010740 case $MV in
10741 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010742 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10743 ;;
10744 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746for as_dir in $PATH
10747do
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010751 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 -050010752 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10755 fi
10756done
10757done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010758IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010759
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010760 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10761 ;;
10762esac
10763fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010764MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010765if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010766 { echo "$as_me:$LINENO: result: $MV" >&5
10767echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010768else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010769 { echo "$as_me:$LINENO: result: no" >&5
10770echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010771fi
10772
Theodore Ts'oe1052142006-10-21 21:46:47 -040010773
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010774# Extract the first word of "cp", so it can be a program name with args.
10775set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010778if test "${ac_cv_path_CP+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010780else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781 case $CP in
10782 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010783 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10784 ;;
10785 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010792 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 -050010793 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10796 fi
10797done
10798done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010799IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010800
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010801 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10802 ;;
10803esac
10804fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010805CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010806if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010807 { echo "$as_me:$LINENO: result: $CP" >&5
10808echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010809else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010810 { echo "$as_me:$LINENO: result: no" >&5
10811echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010812fi
10813
Theodore Ts'oe1052142006-10-21 21:46:47 -040010814
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010815# Extract the first word of "rm", so it can be a program name with args.
10816set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010819if test "${ac_cv_path_RM+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010821else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822 case $RM in
10823 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010824 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10825 ;;
10826 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in $PATH
10829do
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010833 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 -050010834 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10837 fi
10838done
10839done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010841
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010842 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10843 ;;
10844esac
10845fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010846RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010847if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010848 { echo "$as_me:$LINENO: result: $RM" >&5
10849echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010850else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010851 { echo "$as_me:$LINENO: result: no" >&5
10852echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010853fi
10854
Theodore Ts'oe1052142006-10-21 21:46:47 -040010855
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010856# Extract the first word of "chmod", so it can be a program name with args.
10857set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010860if test "${ac_cv_path_CHMOD+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010862else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863 case $CHMOD in
10864 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010865 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10866 ;;
10867 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $PATH
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010874 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 -050010875 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879done
10880done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010881IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010882
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010883 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10884 ;;
10885esac
10886fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010887CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010888if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010889 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10890echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010891else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010892 { echo "$as_me:$LINENO: result: no" >&5
10893echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010894fi
10895
Theodore Ts'oe1052142006-10-21 21:46:47 -040010896
Theodore Ts'o32237012005-01-17 19:13:39 -050010897for ac_prog in gawk mawk nawk awk
10898do
10899 # Extract the first word of "$ac_prog", so it can be a program name with args.
10900set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050010903if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010904 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010905else
Theodore Ts'o32237012005-01-17 19:13:39 -050010906 if test -n "$AWK"; then
10907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10908else
10909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010910for as_dir in $PATH
10911do
10912 IFS=$as_save_IFS
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010915 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 -050010916 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10918 break 2
10919 fi
10920done
10921done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010922IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010923
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010924fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010925fi
10926AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010927if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010928 { echo "$as_me:$LINENO: result: $AWK" >&5
10929echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010930else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010931 { echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010933fi
10934
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935
Theodore Ts'o32237012005-01-17 19:13:39 -050010936 test -n "$AWK" && break
10937done
10938
Theodore Ts'oe1052142006-10-21 21:46:47 -040010939{ echo "$as_me:$LINENO: checking for egrep" >&5
10940echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10941if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010944 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10945 then ac_cv_path_EGREP="$GREP -E"
10946 else
10947 # Extract the first word of "egrep" to use in msg output
10948if test -z "$EGREP"; then
10949set dummy egrep; ac_prog_name=$2
10950if test "${ac_cv_path_EGREP+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 ac_path_EGREP_found=false
10954# Loop through the user's path and test for each of PROGNAME-LIST
10955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10957do
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
10960 for ac_prog in egrep; do
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010963 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040010964 # Check for GNU ac_path_EGREP and select it if it is found.
10965 # Check for GNU $ac_path_EGREP
10966case `"$ac_path_EGREP" --version 2>&1` in
10967*GNU*)
10968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10969*)
10970 ac_count=0
10971 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10972 while :
10973 do
10974 cat "conftest.in" "conftest.in" >"conftest.tmp"
10975 mv "conftest.tmp" "conftest.in"
10976 cp "conftest.in" "conftest.nl"
10977 echo 'EGREP' >> "conftest.nl"
10978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10980 ac_count=`expr $ac_count + 1`
10981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10982 # Best one so far, save it but keep looking for a better one
10983 ac_cv_path_EGREP="$ac_path_EGREP"
10984 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050010985 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010986 # 10*(2^10) chars as input seems more than enough
10987 test $ac_count -gt 10 && break
10988 done
10989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10990esac
10991
10992
10993 $ac_path_EGREP_found && break 3
10994 done
10995done
10996
10997done
10998IFS=$as_save_IFS
10999
11000
Theodore Ts'o32237012005-01-17 19:13:39 -050011001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011002
11003EGREP="$ac_cv_path_EGREP"
11004if test -z "$EGREP"; then
11005 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11006echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11007 { (exit 1); exit 1; }; }
11008fi
11009
11010else
11011 ac_cv_path_EGREP=$EGREP
11012fi
11013
11014
11015 fi
11016fi
11017{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11018echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11019 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011020
11021
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011022# Extract the first word of "sed", so it can be a program name with args.
11023set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011026if test "${ac_cv_path_SED+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011029 case $SED in
11030 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011031 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11032 ;;
11033 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035for as_dir in $PATH
11036do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011040 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 -050011041 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 break 2
11044 fi
11045done
11046done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011047IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011048
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011049 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11050 ;;
11051esac
11052fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011053SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011054if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011055 { echo "$as_me:$LINENO: result: $SED" >&5
11056echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011057else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011058 { echo "$as_me:$LINENO: result: no" >&5
11059echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011060fi
11061
Theodore Ts'oe1052142006-10-21 21:46:47 -040011062
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011063# Extract the first word of "perl", so it can be a program name with args.
11064set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011067if test "${ac_cv_path_PERL+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011069else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011070 case $PERL in
11071 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011072 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11073 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011074 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011081 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 -050011082 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011088IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011089
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011090 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11091 ;;
11092esac
11093fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011094PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011095if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011096 { echo "$as_me:$LINENO: result: $PERL" >&5
11097echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011098else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011099 { echo "$as_me:$LINENO: result: no" >&5
11100echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011101fi
11102
Theodore Ts'oe1052142006-10-21 21:46:47 -040011103
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011104# Extract the first word of "ldconfig", so it can be a program name with args.
11105set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011108if test "${ac_cv_path_LDCONFIG+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011110else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011111 case $LDCONFIG in
11112 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011113 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11114 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011115 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011122 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 -050011123 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127done
11128done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011129IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011130
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011131 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11132 ;;
11133esac
11134fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011135LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011136if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011137 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11138echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011139else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011140 { echo "$as_me:$LINENO: result: no" >&5
11141echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011142fi
11143
Theodore Ts'oe1052142006-10-21 21:46:47 -040011144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011145if test -n "$ac_tool_prefix"; then
11146 # 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 +000011147set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011150if test "${ac_cv_prog_AR+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011152else
11153 if test -n "$AR"; then
11154 ac_cv_prog_AR="$AR" # Let the user override the test.
11155else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157for as_dir in $PATH
11158do
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011162 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 -050011163 ac_cv_prog_AR="${ac_tool_prefix}ar"
11164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11166 fi
11167done
11168done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011169IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011170
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011171fi
11172fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011173AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011174if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011175 { echo "$as_me:$LINENO: result: $AR" >&5
11176echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011177else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011178 { echo "$as_me:$LINENO: result: no" >&5
11179echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011180fi
11181
Theodore Ts'oe1052142006-10-21 21:46:47 -040011182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011183fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011184if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011185 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011186 # Extract the first word of "ar", so it can be a program name with args.
11187set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011190if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011192else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011193 if test -n "$ac_ct_AR"; then
11194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011195else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197for as_dir in $PATH
11198do
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011202 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 -050011203 ac_cv_prog_ac_ct_AR="ar"
11204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11206 fi
11207done
11208done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011209IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011210
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011211fi
11212fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011213ac_ct_AR=$ac_cv_prog_ac_ct_AR
11214if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11216echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011217else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011218 { echo "$as_me:$LINENO: result: no" >&5
11219echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011220fi
11221
Theodore Ts'oe1052142006-10-21 21:46:47 -040011222 if test "x$ac_ct_AR" = x; then
11223 AR="ar"
11224 else
11225 case $cross_compiling:$ac_tool_warned in
11226yes:)
11227{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11228whose name does not start with the host triplet. If you think this
11229configuration is useful to you, please write to autoconf@gnu.org." >&5
11230echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11231whose name does not start with the host triplet. If you think this
11232configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11233ac_tool_warned=yes ;;
11234esac
11235 AR=$ac_ct_AR
11236 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011237else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011238 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011239fi
11240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011241if test -n "$ac_tool_prefix"; then
11242 # 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 +000011243set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011246if test "${ac_cv_prog_RANLIB+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011248else
11249 if test -n "$RANLIB"; then
11250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11251else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253for as_dir in $PATH
11254do
11255 IFS=$as_save_IFS
11256 test -z "$as_dir" && as_dir=.
11257 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011258 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 -050011259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11261 break 2
11262 fi
11263done
11264done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011265IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011266
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011267fi
11268fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011269RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011270if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011271 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11272echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011273else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011274 { echo "$as_me:$LINENO: result: no" >&5
11275echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011276fi
11277
Theodore Ts'oe1052142006-10-21 21:46:47 -040011278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011279fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011280if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011281 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011282 # Extract the first word of "ranlib", so it can be a program name with args.
11283set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011286if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289 if test -n "$ac_ct_RANLIB"; then
11290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011298 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 -050011299 ac_cv_prog_ac_ct_RANLIB="ranlib"
11300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11302 fi
11303done
11304done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011305IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011306
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011307fi
11308fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11310if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011311 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11312echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011313else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011314 { echo "$as_me:$LINENO: result: no" >&5
11315echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011316fi
11317
Theodore Ts'oe1052142006-10-21 21:46:47 -040011318 if test "x$ac_ct_RANLIB" = x; then
11319 RANLIB=":"
11320 else
11321 case $cross_compiling:$ac_tool_warned in
11322yes:)
11323{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11324whose name does not start with the host triplet. If you think this
11325configuration is useful to you, please write to autoconf@gnu.org." >&5
11326echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11327whose name does not start with the host triplet. If you think this
11328configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11329ac_tool_warned=yes ;;
11330esac
11331 RANLIB=$ac_ct_RANLIB
11332 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011333else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011334 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011335fi
11336
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011337if test -n "$ac_tool_prefix"; then
11338 # 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 +000011339set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011342if test "${ac_cv_prog_STRIP+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011344else
11345 if test -n "$STRIP"; then
11346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11347else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349for as_dir in $PATH
11350do
11351 IFS=$as_save_IFS
11352 test -z "$as_dir" && as_dir=.
11353 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011354 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 -050011355 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11357 break 2
11358 fi
11359done
11360done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011361IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011362
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011363fi
11364fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011365STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011366if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011367 { echo "$as_me:$LINENO: result: $STRIP" >&5
11368echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011369else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011370 { echo "$as_me:$LINENO: result: no" >&5
11371echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011372fi
11373
Theodore Ts'oe1052142006-10-21 21:46:47 -040011374
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011376if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011377 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011378 # Extract the first word of "strip", so it can be a program name with args.
11379set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011380{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011382if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011384else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385 if test -n "$ac_ct_STRIP"; then
11386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011387else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011394 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 -050011395 ac_cv_prog_ac_ct_STRIP="strip"
11396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11398 fi
11399done
11400done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011401IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011402
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011403fi
11404fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011405ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11406if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011407 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11408echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011409else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011410 { echo "$as_me:$LINENO: result: no" >&5
11411echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412fi
11413
Theodore Ts'oe1052142006-10-21 21:46:47 -040011414 if test "x$ac_ct_STRIP" = x; then
11415 STRIP=":"
11416 else
11417 case $cross_compiling:$ac_tool_warned in
11418yes:)
11419{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11420whose name does not start with the host triplet. If you think this
11421configuration is useful to you, please write to autoconf@gnu.org." >&5
11422echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11423whose name does not start with the host triplet. If you think this
11424configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11425ac_tool_warned=yes ;;
11426esac
11427 STRIP=$ac_ct_STRIP
11428 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011429else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011430 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011431fi
11432
Manish Katiyar7321d942008-04-14 17:20:03 +053011433# Extract the first word of "makeinfo", so it can be a program name with args.
11434set dummy makeinfo; ac_word=$2
11435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11437if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439else
11440 if test -n "$MAKEINFO"; then
11441 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11442else
11443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $PATH
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_MAKEINFO="makeinfo"
11451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454done
11455done
11456IFS=$as_save_IFS
11457
11458fi
11459fi
11460MAKEINFO=$ac_cv_prog_MAKEINFO
11461if test -n "$MAKEINFO"; then
11462 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11463echo "${ECHO_T}$MAKEINFO" >&6; }
11464else
11465 { echo "$as_me:$LINENO: result: no" >&5
11466echo "${ECHO_T}no" >&6; }
11467fi
11468
11469
11470if test "_$MAKEINFO" = "_"; then
11471 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11472else
11473 case "$MAKEINFO" in
11474 */missing.*)
11475 { echo "$as_me:$LINENO: WARNING:
11476*** Makeinfo is missing. Info documentation will not be built." >&5
11477echo "$as_me: WARNING:
11478*** Makeinfo is missing. Info documentation will not be built." >&2;}
11479 ;;
11480 *)
11481 ;;
11482 esac
11483fi
11484
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011485# Find a good install program. We prefer a C program (faster),
11486# so one script is as good as another. But avoid the broken or
11487# incompatible versions:
11488# SysV /etc/install, /usr/sbin/install
11489# SunOS /usr/etc/install
11490# IRIX /sbin/install
11491# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011493# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011494# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11495# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011496# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011497# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011498{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11499echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011500if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501if test "${ac_cv_path_install+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011503else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505for as_dir in $PATH
11506do
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
11509 # Account for people who put trailing slashes in PATH elements.
11510case $as_dir/ in
11511 ./ | .// | /cC/* | \
11512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11513 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11514 /usr/ucb/* ) ;;
11515 *)
11516 # OSF1 and SCO ODT 3.0 have their own names for install.
11517 # Don't use installbsd from OSF since it installs stuff as root
11518 # by default.
11519 for ac_prog in ginstall scoinst install; do
11520 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011521 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 +000011522 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011524 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011525 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526 elif test $ac_prog = install &&
11527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11528 # program-specific install script used by HP pwplus--don't use.
11529 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11532 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011533 fi
11534 fi
11535 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536 done
11537 ;;
11538esac
11539done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011540IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011541
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011542
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011543fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011544 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011545 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011546 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011547 # As a last resort, use the slow shell script. Don't cache a
11548 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011549 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011550 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011552 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011554{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11555echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011556
11557# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11558# It thinks the first close brace ends the variable substitution.
11559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011562
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11564
Theodore Ts'o6c133521999-07-03 20:37:03 +000011565# See if we need a separate native compiler.
11566if test $cross_compiling = no; then
11567 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568
Theodore Ts'o6c133521999-07-03 20:37:03 +000011569else
11570 for ac_prog in gcc cc
11571do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011573set dummy $ac_prog; 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_BUILD_CC+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011578else
11579 if test -n "$BUILD_CC"; then
11580 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011584do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011585 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_BUILD_CC="$ac_prog"
11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11592 fi
11593done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011595IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597fi
11598fi
11599BUILD_CC=$ac_cv_prog_BUILD_CC
11600if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011601 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11602echo "${ECHO_T}$BUILD_CC" >&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'ob0cacab2004-11-30 19:00:19 -050011606fi
11607
Theodore Ts'oe1052142006-10-21 21:46:47 -040011608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011609 test -n "$BUILD_CC" && break
11610done
11611
11612fi
11613
Theodore Ts'o740837d2007-12-16 17:21:38 -050011614
11615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011644
Theodore Ts'o106ad962007-04-04 21:26:37 -040011645
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011646
11647
Theodore Ts'o3d058022008-07-12 22:06:30 -040011648
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040011649
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011650
11651for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011652do
11653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011660ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663else
11664 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011665{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011667cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h. */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h. */
11673$ac_includes_default
11674#include <$ac_header>
11675_ACEOF
11676rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011677if { (ac_try="$ac_compile"
11678case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693 ac_header_compiler=yes
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
Theodore Ts'oe1052142006-10-21 21:46:47 -040011698 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011700
11701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704
11705# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011706{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011708cat >conftest.$ac_ext <<_ACEOF
11709/* confdefs.h. */
11710_ACEOF
11711cat confdefs.h >>conftest.$ac_ext
11712cat >>conftest.$ac_ext <<_ACEOF
11713/* end confdefs.h. */
11714#include <$ac_header>
11715_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011716if { (ac_try="$ac_cpp conftest.$ac_ext"
11717case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720esac
11721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011728 (exit $ac_status); } >/dev/null && {
11729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11730 test ! -s conftest.err
11731 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011732 ac_header_preproc=yes
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_header_preproc=no
11738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011743
11744# So? What about this header?
11745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746 yes:no: )
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751 ac_header_preproc=yes
11752 ;;
11753 no:yes:* )
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011767 ;;
11768esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011769{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774 eval "$as_ac_Header=\$ac_header_preproc"
11775fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011776ac_res=`eval echo '${'$as_ac_Header'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011779
11780fi
11781if test `eval echo '${'$as_ac_Header'}'` = yes; then
11782 cat >>confdefs.h <<_ACEOF
11783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11784_ACEOF
11785
11786fi
11787
11788done
11789
11790
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011791
11792for ac_header in sys/disk.h sys/mount.h
11793do
11794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011795{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799else
11800 cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806
11807#if HAVE_SYS_QUEUE_H
11808#include <sys/queue.h>
11809#endif
11810
11811
11812#include <$ac_header>
11813_ACEOF
11814rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011815if { (ac_try="$ac_compile"
11816case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011827 (exit $ac_status); } && {
11828 test -z "$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011831 eval "$as_ac_Header=yes"
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
Theodore Ts'oe1052142006-10-21 21:46:47 -040011836 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011837fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838
11839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011840fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841ac_res=`eval echo '${'$as_ac_Header'}'`
11842 { echo "$as_me:$LINENO: result: $ac_res" >&5
11843echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011844if test `eval echo '${'$as_ac_Header'}'` = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11847_ACEOF
11848
11849fi
11850
11851done
11852
11853
11854for ac_header in net/if.h
11855do
11856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 cat >conftest.$ac_ext <<_ACEOF
11863/* confdefs.h. */
11864_ACEOF
11865cat confdefs.h >>conftest.$ac_ext
11866cat >>conftest.$ac_ext <<_ACEOF
11867/* end confdefs.h. */
11868
11869#if HAVE_SYS_TYPES_H
11870#include <sys/types.h>
11871#endif
11872#if HAVE_SYS_SOCKET
11873#include <sys/socket.h>
11874#endif
11875
11876
11877#include <$ac_header>
11878_ACEOF
11879rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011880if { (ac_try="$ac_compile"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011896 eval "$as_ac_Header=yes"
11897else
11898 echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011903
11904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011905fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011906ac_res=`eval echo '${'$as_ac_Header'}'`
11907 { echo "$as_me:$LINENO: result: $ac_res" >&5
11908echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011909if test `eval echo '${'$as_ac_Header'}'` = yes; then
11910 cat >>confdefs.h <<_ACEOF
11911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11912_ACEOF
11913
11914fi
11915
11916done
11917
11918
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919for ac_func in vprintf
11920do
11921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011922{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926else
11927 cat >conftest.$ac_ext <<_ACEOF
11928/* confdefs.h. */
11929_ACEOF
11930cat confdefs.h >>conftest.$ac_ext
11931cat >>conftest.$ac_ext <<_ACEOF
11932/* end confdefs.h. */
11933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11935#define $ac_func innocuous_$ac_func
11936
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011937/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938 which can conflict with char $ac_func (); below.
11939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11940 <limits.h> exists even on freestanding compilers. */
11941
11942#ifdef __STDC__
11943# include <limits.h>
11944#else
11945# include <assert.h>
11946#endif
11947
11948#undef $ac_func
11949
Theodore Ts'oe1052142006-10-21 21:46:47 -040011950/* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011953#ifdef __cplusplus
11954extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011956char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011957/* The GNU C library defines this for functions which it implements
11958 to always fail with ENOSYS. Some functions are actually named
11959 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011960#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011961choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011962#endif
11963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964int
11965main ()
11966{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011967return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011968 ;
11969 return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011973if { (ac_try="$ac_link"
11974case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977esac
11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest$ac_exeext &&
11989 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011992 echo "$as_me: failed program was:" >&5
11993sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011994
Theodore Ts'oe1052142006-10-21 21:46:47 -040011995 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011997
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999 conftest$ac_exeext conftest.$ac_ext
12000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012001ac_res=`eval echo '${'$as_ac_var'}'`
12002 { echo "$as_me:$LINENO: result: $ac_res" >&5
12003echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012004if test `eval echo '${'$as_ac_var'}'` = yes; then
12005 cat >>confdefs.h <<_ACEOF
12006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012008
Theodore Ts'oe1052142006-10-21 21:46:47 -040012009{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12010echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011if test "${ac_cv_func__doprnt+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012013else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012014 cat >conftest.$ac_ext <<_ACEOF
12015/* confdefs.h. */
12016_ACEOF
12017cat confdefs.h >>conftest.$ac_ext
12018cat >>conftest.$ac_ext <<_ACEOF
12019/* end confdefs.h. */
12020/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12022#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012023
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012024/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025 which can conflict with char _doprnt (); below.
12026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12027 <limits.h> exists even on freestanding compilers. */
12028
12029#ifdef __STDC__
12030# include <limits.h>
12031#else
12032# include <assert.h>
12033#endif
12034
12035#undef _doprnt
12036
Theodore Ts'oe1052142006-10-21 21:46:47 -040012037/* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012040#ifdef __cplusplus
12041extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012043char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012044/* The GNU C library defines this for functions which it implements
12045 to always fail with ENOSYS. Some functions are actually named
12046 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012047#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012048choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012049#endif
12050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012051int
12052main ()
12053{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012054return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012060if { (ac_try="$ac_link"
12061case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012078else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012081
Theodore Ts'oe1052142006-10-21 21:46:47 -040012082 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012084
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086 conftest$ac_exeext conftest.$ac_ext
12087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012088{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12089echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090if test $ac_cv_func__doprnt = yes; then
12091
12092cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012093#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012094_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012095
12096fi
12097
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098fi
12099done
12100
12101
Theodore Ts'oe1052142006-10-21 21:46:47 -040012102{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12103echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012104if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012106else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012107 cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012113#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115int
12116main ()
12117{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012118static struct dirent ac_aggr;
12119if (ac_aggr.d_reclen)
12120return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121 ;
12122 return 0;
12123}
12124_ACEOF
12125rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012126if { (ac_try="$ac_compile"
12127case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012142 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144 echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
Theodore Ts'oe1052142006-10-21 21:46:47 -040012147 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012148/* confdefs.h. */
12149_ACEOF
12150cat confdefs.h >>conftest.$ac_ext
12151cat >>conftest.$ac_ext <<_ACEOF
12152/* end confdefs.h. */
12153#include <dirent.h>
12154
12155int
12156main ()
12157{
12158static struct dirent ac_aggr;
12159if (sizeof ac_aggr.d_reclen)
12160return 0;
12161 ;
12162 return 0;
12163}
12164_ACEOF
12165rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166if { (ac_try="$ac_compile"
12167case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170esac
12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012182 ac_cv_member_struct_dirent_d_reclen=yes
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
Theodore Ts'oe1052142006-10-21 21:46:47 -040012187 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189
12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012192
12193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012194fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012195{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12196echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012197if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12198 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012199#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012201
12202fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012203
Theodore Ts'oe1052142006-10-21 21:46:47 -040012204{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12205echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012206if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012208else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209 cat >conftest.$ac_ext <<_ACEOF
12210/* confdefs.h. */
12211_ACEOF
12212cat confdefs.h >>conftest.$ac_ext
12213cat >>conftest.$ac_ext <<_ACEOF
12214/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012215#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012216
Theodore Ts'oe1052142006-10-21 21:46:47 -040012217typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218int
12219main ()
12220{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012221if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012222 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012223if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012224 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225 ;
12226 return 0;
12227}
12228_ACEOF
12229rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012230if { (ac_try="$ac_compile"
12231case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012246 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012247else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
Theodore Ts'oe1052142006-10-21 21:46:47 -040012251 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012252fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012253
12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012256{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12257echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012258if test $ac_cv_type_ssize_t = yes; then
12259 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012260#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012261_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012262
12263fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012264
Theodore Ts'oe1052142006-10-21 21:46:47 -040012265{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12266echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012267if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012268 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012269else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012270 cat >conftest.$ac_ext <<_ACEOF
12271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012276#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278int
12279main ()
12280{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012281#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012282 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012283#endif
12284
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285 ;
12286 return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012290if { (ac_try="$ac_compile"
12291case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012306 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012308 echo "$as_me: failed program was:" >&5
12309sed 's/^/| /' conftest.$ac_ext >&5
12310
Theodore Ts'oe1052142006-10-21 21:46:47 -040012311 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012312fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313
12314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012315fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012316{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12317echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012318if test $ac_cv_have_decl_llseek = yes; then
12319 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012320#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012321_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012322
12323fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012324
Theodore Ts'oe1052142006-10-21 21:46:47 -040012325{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12326echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012327if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012329else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330 cat >conftest.$ac_ext <<_ACEOF
12331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012336#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012337 #define _LARGEFILE64_SOURCE
12338 #include <unistd.h>
12339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012340int
12341main ()
12342{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012343#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012344 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012345#endif
12346
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012347 ;
12348 return 0;
12349}
12350_ACEOF
12351rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012352if { (ac_try="$ac_compile"
12353case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356esac
12357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012368 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012369else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012370 echo "$as_me: failed program was:" >&5
12371sed 's/^/| /' conftest.$ac_ext >&5
12372
Theodore Ts'oe1052142006-10-21 21:46:47 -040012373 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012374fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012375
12376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012377fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012378{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12379echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012380if test $ac_cv_have_decl_lseek64 = yes; then
12381 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012382#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012383_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012384
12385fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012386
Theodore Ts'oe1052142006-10-21 21:46:47 -040012387{ echo "$as_me:$LINENO: checking for short" >&5
12388echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389if test "${ac_cv_type_short+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391else
12392 cat >conftest.$ac_ext <<_ACEOF
12393/* confdefs.h. */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
12397/* end confdefs.h. */
12398$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012399typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400int
12401main ()
12402{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012403if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012404 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012405if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012406 return 0;
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012412if { (ac_try="$ac_compile"
12413case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416esac
12417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012428 ac_cv_type_short=yes
12429else
12430 echo "$as_me: failed program was:" >&5
12431sed 's/^/| /' conftest.$ac_ext >&5
12432
Theodore Ts'oe1052142006-10-21 21:46:47 -040012433 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012434fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012435
Theodore Ts'oe1052142006-10-21 21:46:47 -040012436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437fi
12438{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12439echo "${ECHO_T}$ac_cv_type_short" >&6; }
12440
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012441# The cast to long int works around a bug in the HP C Compiler
12442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12444# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012445{ echo "$as_me:$LINENO: checking size of short" >&5
12446echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012447if test "${ac_cv_sizeof_short+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012450 if test "$cross_compiling" = yes; then
12451 # Depending upon the size, compute the lo and hi bounds.
12452cat >conftest.$ac_ext <<_ACEOF
12453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
12458$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012459 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460int
12461main ()
12462{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012463static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012464test_array [0] = 0
12465
12466 ;
12467 return 0;
12468}
12469_ACEOF
12470rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012471if { (ac_try="$ac_compile"
12472case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475esac
12476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012483 (exit $ac_status); } && {
12484 test -z "$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012487 ac_lo=0 ac_mid=0
12488 while :; do
12489 cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012496 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012497int
12498main ()
12499{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012500static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501test_array [0] = 0
12502
12503 ;
12504 return 0;
12505}
12506_ACEOF
12507rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012508if { (ac_try="$ac_compile"
12509case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512esac
12513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012520 (exit $ac_status); } && {
12521 test -z "$ac_c_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524 ac_hi=$ac_mid; break
12525else
12526 echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
Theodore Ts'oe1052142006-10-21 21:46:47 -040012529 ac_lo=`expr $ac_mid + 1`
12530 if test $ac_lo -le $ac_mid; then
12531 ac_lo= ac_hi=
12532 break
12533 fi
12534 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012536
12537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012538 done
12539else
12540 echo "$as_me: failed program was:" >&5
12541sed 's/^/| /' conftest.$ac_ext >&5
12542
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012550 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012551int
12552main ()
12553{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012554static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012555test_array [0] = 0
12556
12557 ;
12558 return 0;
12559}
12560_ACEOF
12561rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012562if { (ac_try="$ac_compile"
12563case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566esac
12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012574 (exit $ac_status); } && {
12575 test -z "$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12577 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012578 ac_hi=-1 ac_mid=-1
12579 while :; do
12580 cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012587 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012588int
12589main ()
12590{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012591static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012592test_array [0] = 0
12593
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012599if { (ac_try="$ac_compile"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615 ac_lo=$ac_mid; break
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
Theodore Ts'oe1052142006-10-21 21:46:47 -040012620 ac_hi=`expr '(' $ac_mid ')' - 1`
12621 if test $ac_mid -le $ac_hi; then
12622 ac_lo= ac_hi=
12623 break
12624 fi
12625 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012626fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012627
12628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012629 done
12630else
12631 echo "$as_me: failed program was:" >&5
12632sed 's/^/| /' conftest.$ac_ext >&5
12633
Theodore Ts'oe1052142006-10-21 21:46:47 -040012634 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636
12637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012638fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012639
12640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012641# Binary search between lo and hi bounds.
12642while test "x$ac_lo" != "x$ac_hi"; do
12643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12644 cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012651 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012652int
12653main ()
12654{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012655static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012656test_array [0] = 0
12657
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012663if { (ac_try="$ac_compile"
12664case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012679 ac_hi=$ac_mid
12680else
12681 echo "$as_me: failed program was:" >&5
12682sed 's/^/| /' conftest.$ac_ext >&5
12683
Theodore Ts'oe1052142006-10-21 21:46:47 -040012684 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012686
12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012688done
12689case $ac_lo in
12690?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012691'') if test "$ac_cv_type_short" = yes; then
12692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012694echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012695See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012696 { (exit 77); exit 77; }; }
12697 else
12698 ac_cv_sizeof_short=0
12699 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012701else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012702 cat >conftest.$ac_ext <<_ACEOF
12703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
12707/* end confdefs.h. */
12708$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012709 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012710static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12711static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012712#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012713#include <stdlib.h>
12714int
12715main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012716{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012717
12718 FILE *f = fopen ("conftest.val", "w");
12719 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012720 return 1;
12721 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012722 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012723 long int i = longval ();
12724 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12725 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012726 fprintf (f, "%ld\n", i);
12727 }
12728 else
12729 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012730 unsigned long int i = ulongval ();
12731 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12732 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012733 fprintf (f, "%lu\n", i);
12734 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012735 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736
12737 ;
12738 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012739}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012740_ACEOF
12741rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012742if { (ac_try="$ac_link"
12743case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746esac
12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12755esac
12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012762else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012763 echo "$as_me: program exited with status $ac_status" >&5
12764echo "$as_me: failed program was:" >&5
12765sed 's/^/| /' conftest.$ac_ext >&5
12766
12767( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012768if test "$ac_cv_type_short" = yes; then
12769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012771echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012772See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012773 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012774 else
12775 ac_cv_sizeof_short=0
12776 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012778rm -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 -050012779fi
12780rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012782{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12783echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012784
12785
12786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012787cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012788#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012789_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012790
12791
Theodore Ts'oe1052142006-10-21 21:46:47 -040012792{ echo "$as_me:$LINENO: checking for int" >&5
12793echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012794if test "${ac_cv_type_int+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012804typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805int
12806main ()
12807{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012808if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012809 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012810if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012811 return 0;
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012817if { (ac_try="$ac_compile"
12818case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821esac
12822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012829 (exit $ac_status); } && {
12830 test -z "$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12832 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012833 ac_cv_type_int=yes
12834else
12835 echo "$as_me: failed program was:" >&5
12836sed 's/^/| /' conftest.$ac_ext >&5
12837
Theodore Ts'oe1052142006-10-21 21:46:47 -040012838 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012839fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012840
Theodore Ts'oe1052142006-10-21 21:46:47 -040012841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842fi
12843{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12844echo "${ECHO_T}$ac_cv_type_int" >&6; }
12845
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012846# The cast to long int works around a bug in the HP C Compiler
12847# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12848# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12849# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012850{ echo "$as_me:$LINENO: checking size of int" >&5
12851echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852if test "${ac_cv_sizeof_int+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012855 if test "$cross_compiling" = yes; then
12856 # Depending upon the size, compute the lo and hi bounds.
12857cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012864 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012865int
12866main ()
12867{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012868static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012869test_array [0] = 0
12870
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012876if { (ac_try="$ac_compile"
12877case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12880esac
12881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012883 ac_status=$?
12884 grep -v '^ *+' conftest.er1 >conftest.err
12885 rm -f conftest.er1
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012888 (exit $ac_status); } && {
12889 test -z "$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892 ac_lo=0 ac_mid=0
12893 while :; do
12894 cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
12900$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012901 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012902int
12903main ()
12904{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012905static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906test_array [0] = 0
12907
12908 ;
12909 return 0;
12910}
12911_ACEOF
12912rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012913if { (ac_try="$ac_compile"
12914case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12917esac
12918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012925 (exit $ac_status); } && {
12926 test -z "$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12928 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929 ac_hi=$ac_mid; break
12930else
12931 echo "$as_me: failed program was:" >&5
12932sed 's/^/| /' conftest.$ac_ext >&5
12933
Theodore Ts'oe1052142006-10-21 21:46:47 -040012934 ac_lo=`expr $ac_mid + 1`
12935 if test $ac_lo -le $ac_mid; then
12936 ac_lo= ac_hi=
12937 break
12938 fi
12939 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012941
12942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943 done
12944else
12945 echo "$as_me: failed program was:" >&5
12946sed 's/^/| /' conftest.$ac_ext >&5
12947
Theodore Ts'oe1052142006-10-21 21:46:47 -040012948 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012949/* confdefs.h. */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */
12954$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012955 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012956int
12957main ()
12958{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012959static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012960test_array [0] = 0
12961
12962 ;
12963 return 0;
12964}
12965_ACEOF
12966rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012967if { (ac_try="$ac_compile"
12968case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983 ac_hi=-1 ac_mid=-1
12984 while :; do
12985 cat >conftest.$ac_ext <<_ACEOF
12986/* confdefs.h. */
12987_ACEOF
12988cat confdefs.h >>conftest.$ac_ext
12989cat >>conftest.$ac_ext <<_ACEOF
12990/* end confdefs.h. */
12991$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012992 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012993int
12994main ()
12995{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012996static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997test_array [0] = 0
12998
12999 ;
13000 return 0;
13001}
13002_ACEOF
13003rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013004if { (ac_try="$ac_compile"
13005case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
13019 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013020 ac_lo=$ac_mid; break
13021else
13022 echo "$as_me: failed program was:" >&5
13023sed 's/^/| /' conftest.$ac_ext >&5
13024
Theodore Ts'oe1052142006-10-21 21:46:47 -040013025 ac_hi=`expr '(' $ac_mid ')' - 1`
13026 if test $ac_mid -le $ac_hi; then
13027 ac_lo= ac_hi=
13028 break
13029 fi
13030 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013032
13033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013034 done
13035else
13036 echo "$as_me: failed program was:" >&5
13037sed 's/^/| /' conftest.$ac_ext >&5
13038
Theodore Ts'oe1052142006-10-21 21:46:47 -040013039 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041
13042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013043fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013044
13045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013046# Binary search between lo and hi bounds.
13047while test "x$ac_lo" != "x$ac_hi"; do
13048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013056 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013057int
13058main ()
13059{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013061test_array [0] = 0
13062
13063 ;
13064 return 0;
13065}
13066_ACEOF
13067rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013068if { (ac_try="$ac_compile"
13069case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013084 ac_hi=$ac_mid
13085else
13086 echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
Theodore Ts'oe1052142006-10-21 21:46:47 -040013089 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013090fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013091
13092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093done
13094case $ac_lo in
13095?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013096'') if test "$ac_cv_type_int" = yes; then
13097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013098See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013099echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013100See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013101 { (exit 77); exit 77; }; }
13102 else
13103 ac_cv_sizeof_int=0
13104 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013106else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013107 cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013114 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013115static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13116static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013117#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013118#include <stdlib.h>
13119int
13120main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013121{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013122
13123 FILE *f = fopen ("conftest.val", "w");
13124 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013125 return 1;
13126 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013127 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013128 long int i = longval ();
13129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13130 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013131 fprintf (f, "%ld\n", i);
13132 }
13133 else
13134 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013135 unsigned long int i = ulongval ();
13136 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13137 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013138 fprintf (f, "%lu\n", i);
13139 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013140 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013141
13142 ;
13143 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013144}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013145_ACEOF
13146rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013147if { (ac_try="$ac_link"
13148case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013157 { (case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160esac
13161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013167else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013168 echo "$as_me: program exited with status $ac_status" >&5
13169echo "$as_me: failed program was:" >&5
13170sed 's/^/| /' conftest.$ac_ext >&5
13171
13172( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013173if test "$ac_cv_type_int" = yes; then
13174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013176echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013177See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013178 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013179 else
13180 ac_cv_sizeof_int=0
13181 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013182fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013183rm -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 -050013184fi
13185rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013186fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013187{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13188echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013189
13190
13191
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013192cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013193#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013194_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013195
13196
Theodore Ts'oe1052142006-10-21 21:46:47 -040013197{ echo "$as_me:$LINENO: checking for long" >&5
13198echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013199if test "${ac_cv_type_long+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202 cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013209typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013210int
13211main ()
13212{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013213if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013214 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013215if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013216 return 0;
13217 ;
13218 return 0;
13219}
13220_ACEOF
13221rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013222if { (ac_try="$ac_compile"
13223case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226esac
13227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013238 ac_cv_type_long=yes
13239else
13240 echo "$as_me: failed program was:" >&5
13241sed 's/^/| /' conftest.$ac_ext >&5
13242
Theodore Ts'oe1052142006-10-21 21:46:47 -040013243 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013244fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013245
Theodore Ts'oe1052142006-10-21 21:46:47 -040013246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247fi
13248{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13249echo "${ECHO_T}$ac_cv_type_long" >&6; }
13250
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013251# The cast to long int works around a bug in the HP C Compiler
13252# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13253# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13254# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013255{ echo "$as_me:$LINENO: checking size of long" >&5
13256echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013257if test "${ac_cv_sizeof_long+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013260 if test "$cross_compiling" = yes; then
13261 # Depending upon the size, compute the lo and hi bounds.
13262cat >conftest.$ac_ext <<_ACEOF
13263/* confdefs.h. */
13264_ACEOF
13265cat confdefs.h >>conftest.$ac_ext
13266cat >>conftest.$ac_ext <<_ACEOF
13267/* end confdefs.h. */
13268$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013269 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013270int
13271main ()
13272{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013273static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013274test_array [0] = 0
13275
13276 ;
13277 return 0;
13278}
13279_ACEOF
13280rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013281if { (ac_try="$ac_compile"
13282case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013293 (exit $ac_status); } && {
13294 test -z "$ac_c_werror_flag" ||
13295 test ! -s conftest.err
13296 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013297 ac_lo=0 ac_mid=0
13298 while :; do
13299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
13305$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013306 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013307int
13308main ()
13309{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013310static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013311test_array [0] = 0
13312
13313 ;
13314 return 0;
13315}
13316_ACEOF
13317rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013318if { (ac_try="$ac_compile"
13319case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13322esac
13323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013334 ac_hi=$ac_mid; break
13335else
13336 echo "$as_me: failed program was:" >&5
13337sed 's/^/| /' conftest.$ac_ext >&5
13338
Theodore Ts'oe1052142006-10-21 21:46:47 -040013339 ac_lo=`expr $ac_mid + 1`
13340 if test $ac_lo -le $ac_mid; then
13341 ac_lo= ac_hi=
13342 break
13343 fi
13344 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013346
13347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013348 done
13349else
13350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
Theodore Ts'oe1052142006-10-21 21:46:47 -040013353 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013354/* confdefs.h. */
13355_ACEOF
13356cat confdefs.h >>conftest.$ac_ext
13357cat >>conftest.$ac_ext <<_ACEOF
13358/* end confdefs.h. */
13359$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013360 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013361int
13362main ()
13363{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013364static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013365test_array [0] = 0
13366
13367 ;
13368 return 0;
13369}
13370_ACEOF
13371rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013372if { (ac_try="$ac_compile"
13373case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013388 ac_hi=-1 ac_mid=-1
13389 while :; do
13390 cat >conftest.$ac_ext <<_ACEOF
13391/* confdefs.h. */
13392_ACEOF
13393cat confdefs.h >>conftest.$ac_ext
13394cat >>conftest.$ac_ext <<_ACEOF
13395/* end confdefs.h. */
13396$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013397 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013398int
13399main ()
13400{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013401static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013402test_array [0] = 0
13403
13404 ;
13405 return 0;
13406}
13407_ACEOF
13408rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013409if { (ac_try="$ac_compile"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013421 (exit $ac_status); } && {
13422 test -z "$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013425 ac_lo=$ac_mid; break
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
Theodore Ts'oe1052142006-10-21 21:46:47 -040013430 ac_hi=`expr '(' $ac_mid ')' - 1`
13431 if test $ac_mid -le $ac_hi; then
13432 ac_lo= ac_hi=
13433 break
13434 fi
13435 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013437
13438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013439 done
13440else
13441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
Theodore Ts'oe1052142006-10-21 21:46:47 -040013444 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446
13447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013448fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013449
13450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013451# Binary search between lo and hi bounds.
13452while test "x$ac_lo" != "x$ac_hi"; do
13453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13454 cat >conftest.$ac_ext <<_ACEOF
13455/* confdefs.h. */
13456_ACEOF
13457cat confdefs.h >>conftest.$ac_ext
13458cat >>conftest.$ac_ext <<_ACEOF
13459/* end confdefs.h. */
13460$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013461 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013462int
13463main ()
13464{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013465static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013466test_array [0] = 0
13467
13468 ;
13469 return 0;
13470}
13471_ACEOF
13472rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013473if { (ac_try="$ac_compile"
13474case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13477esac
13478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013485 (exit $ac_status); } && {
13486 test -z "$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013489 ac_hi=$ac_mid
13490else
13491 echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
Theodore Ts'oe1052142006-10-21 21:46:47 -040013494 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013495fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013496
13497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498done
13499case $ac_lo in
13500?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013501'') if test "$ac_cv_type_long" = yes; then
13502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013503See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013504echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013505See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013506 { (exit 77); exit 77; }; }
13507 else
13508 ac_cv_sizeof_long=0
13509 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013510esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013511else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013512 cat >conftest.$ac_ext <<_ACEOF
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013519 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013520static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13521static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013522#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013523#include <stdlib.h>
13524int
13525main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013526{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013527
13528 FILE *f = fopen ("conftest.val", "w");
13529 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013530 return 1;
13531 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013532 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013533 long int i = longval ();
13534 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13535 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013536 fprintf (f, "%ld\n", i);
13537 }
13538 else
13539 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013540 unsigned long int i = ulongval ();
13541 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13542 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543 fprintf (f, "%lu\n", i);
13544 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013545 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013546
13547 ;
13548 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013549}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013550_ACEOF
13551rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013552if { (ac_try="$ac_link"
13553case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13556esac
13557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13565esac
13566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013568 ac_status=$?
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013572else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013573 echo "$as_me: program exited with status $ac_status" >&5
13574echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013578if test "$ac_cv_type_long" = yes; then
13579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013581echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013582See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013583 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013584 else
13585 ac_cv_sizeof_long=0
13586 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013587fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013588rm -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 -050013589fi
13590rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013592{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13593echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013594
13595
13596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013597cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013598#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013599_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013600
13601
Theodore Ts'oe1052142006-10-21 21:46:47 -040013602{ echo "$as_me:$LINENO: checking for long long" >&5
13603echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013604if test "${ac_cv_type_long_long+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13606else
13607 cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
13613$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013614typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615int
13616main ()
13617{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013618if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013619 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013620if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013621 return 0;
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013627if { (ac_try="$ac_compile"
13628case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631esac
13632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013639 (exit $ac_status); } && {
13640 test -z "$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13642 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013643 ac_cv_type_long_long=yes
13644else
13645 echo "$as_me: failed program was:" >&5
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
Theodore Ts'oe1052142006-10-21 21:46:47 -040013648 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013649fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013650
Theodore Ts'oe1052142006-10-21 21:46:47 -040013651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652fi
13653{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13654echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13655
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013656# The cast to long int works around a bug in the HP C Compiler
13657# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13658# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13659# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013660{ echo "$as_me:$LINENO: checking size of long long" >&5
13661echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013662if test "${ac_cv_sizeof_long_long+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013665 if test "$cross_compiling" = yes; then
13666 # Depending upon the size, compute the lo and hi bounds.
13667cat >conftest.$ac_ext <<_ACEOF
13668/* confdefs.h. */
13669_ACEOF
13670cat confdefs.h >>conftest.$ac_ext
13671cat >>conftest.$ac_ext <<_ACEOF
13672/* end confdefs.h. */
13673$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013674 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013675int
13676main ()
13677{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013679test_array [0] = 0
13680
13681 ;
13682 return 0;
13683}
13684_ACEOF
13685rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013686if { (ac_try="$ac_compile"
13687case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690esac
13691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693 ac_status=$?
13694 grep -v '^ *+' conftest.er1 >conftest.err
13695 rm -f conftest.er1
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013698 (exit $ac_status); } && {
13699 test -z "$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13701 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013702 ac_lo=0 ac_mid=0
13703 while :; do
13704 cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013711 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013712int
13713main ()
13714{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013715static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013716test_array [0] = 0
13717
13718 ;
13719 return 0;
13720}
13721_ACEOF
13722rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013723if { (ac_try="$ac_compile"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013739 ac_hi=$ac_mid; break
13740else
13741 echo "$as_me: failed program was:" >&5
13742sed 's/^/| /' conftest.$ac_ext >&5
13743
Theodore Ts'oe1052142006-10-21 21:46:47 -040013744 ac_lo=`expr $ac_mid + 1`
13745 if test $ac_lo -le $ac_mid; then
13746 ac_lo= ac_hi=
13747 break
13748 fi
13749 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013750fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013751
13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013753 done
13754else
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
Theodore Ts'oe1052142006-10-21 21:46:47 -040013758 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013759/* confdefs.h. */
13760_ACEOF
13761cat confdefs.h >>conftest.$ac_ext
13762cat >>conftest.$ac_ext <<_ACEOF
13763/* end confdefs.h. */
13764$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013765 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013766int
13767main ()
13768{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013769static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013770test_array [0] = 0
13771
13772 ;
13773 return 0;
13774}
13775_ACEOF
13776rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013777if { (ac_try="$ac_compile"
13778case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13792 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013793 ac_hi=-1 ac_mid=-1
13794 while :; do
13795 cat >conftest.$ac_ext <<_ACEOF
13796/* confdefs.h. */
13797_ACEOF
13798cat confdefs.h >>conftest.$ac_ext
13799cat >>conftest.$ac_ext <<_ACEOF
13800/* end confdefs.h. */
13801$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013802 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013803int
13804main ()
13805{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013806static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013807test_array [0] = 0
13808
13809 ;
13810 return 0;
13811}
13812_ACEOF
13813rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013814if { (ac_try="$ac_compile"
13815case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818esac
13819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013830 ac_lo=$ac_mid; break
13831else
13832 echo "$as_me: failed program was:" >&5
13833sed 's/^/| /' conftest.$ac_ext >&5
13834
Theodore Ts'oe1052142006-10-21 21:46:47 -040013835 ac_hi=`expr '(' $ac_mid ')' - 1`
13836 if test $ac_mid -le $ac_hi; then
13837 ac_lo= ac_hi=
13838 break
13839 fi
13840 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013841fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013842
13843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013844 done
13845else
13846 echo "$as_me: failed program was:" >&5
13847sed 's/^/| /' conftest.$ac_ext >&5
13848
Theodore Ts'oe1052142006-10-21 21:46:47 -040013849 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013851
13852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013854
13855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013856# Binary search between lo and hi bounds.
13857while test "x$ac_lo" != "x$ac_hi"; do
13858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13859 cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h. */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h. */
13865$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013866 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867int
13868main ()
13869{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013870static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013871test_array [0] = 0
13872
13873 ;
13874 return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013878if { (ac_try="$ac_compile"
13879case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013890 (exit $ac_status); } && {
13891 test -z "$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013894 ac_hi=$ac_mid
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
Theodore Ts'oe1052142006-10-21 21:46:47 -040013899 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013900fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013901
13902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013903done
13904case $ac_lo in
13905?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013906'') if test "$ac_cv_type_long_long" = yes; then
13907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013908See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013909echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013910See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013911 { (exit 77); exit 77; }; }
13912 else
13913 ac_cv_sizeof_long_long=0
13914 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013915esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013917 cat >conftest.$ac_ext <<_ACEOF
13918/* confdefs.h. */
13919_ACEOF
13920cat confdefs.h >>conftest.$ac_ext
13921cat >>conftest.$ac_ext <<_ACEOF
13922/* end confdefs.h. */
13923$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013924 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013925static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13926static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013927#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013928#include <stdlib.h>
13929int
13930main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013931{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932
13933 FILE *f = fopen ("conftest.val", "w");
13934 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013935 return 1;
13936 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013937 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013938 long int i = longval ();
13939 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13940 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013941 fprintf (f, "%ld\n", i);
13942 }
13943 else
13944 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013945 unsigned long int i = ulongval ();
13946 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13947 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013948 fprintf (f, "%lu\n", i);
13949 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013950 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951
13952 ;
13953 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013954}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013955_ACEOF
13956rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013957if { (ac_try="$ac_link"
13958case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13961esac
13962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013967 { (case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970esac
13971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013978 echo "$as_me: program exited with status $ac_status" >&5
13979echo "$as_me: failed program was:" >&5
13980sed 's/^/| /' conftest.$ac_ext >&5
13981
13982( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013983if test "$ac_cv_type_long_long" = yes; then
13984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013986echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013987See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013988 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013989 else
13990 ac_cv_sizeof_long_long=0
13991 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013992fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013993rm -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 -050013994fi
13995rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013996fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013997{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13998echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013999
14000
14001
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014002cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014003#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014005
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014006
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014007SIZEOF_SHORT=$ac_cv_sizeof_short
14008SIZEOF_INT=$ac_cv_sizeof_int
14009SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014010SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14011
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014012
14013
14014
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14016echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014017if test "${ac_cv_c_bigendian+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020 # See if sys/param.h defines the BYTE_ORDER macro.
14021cat >conftest.$ac_ext <<_ACEOF
14022/* confdefs.h. */
14023_ACEOF
14024cat confdefs.h >>conftest.$ac_ext
14025cat >>conftest.$ac_ext <<_ACEOF
14026/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014027#include <sys/types.h>
14028#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014030int
14031main ()
14032{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014033#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14034 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014035 bogus endian macros
14036#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043if { (ac_try="$ac_compile"
14044case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047esac
14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014059 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014060cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h. */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
14065/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014066#include <sys/types.h>
14067#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014069int
14070main ()
14071{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014072#if BYTE_ORDER != BIG_ENDIAN
14073 not big endian
14074#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014075
14076 ;
14077 return 0;
14078}
14079_ACEOF
14080rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014081if { (ac_try="$ac_compile"
14082case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14085esac
14086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088 ac_status=$?
14089 grep -v '^ *+' conftest.er1 >conftest.err
14090 rm -f conftest.er1
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014093 (exit $ac_status); } && {
14094 test -z "$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014097 ac_cv_c_bigendian=yes
14098else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014099 echo "$as_me: failed program was:" >&5
14100sed 's/^/| /' conftest.$ac_ext >&5
14101
Theodore Ts'oe1052142006-10-21 21:46:47 -040014102 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014103fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014104
14105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014106else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014111if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014112 # try to guess the endianness by grepping values into an object file
14113 ac_cv_c_bigendian=unknown
14114 cat >conftest.$ac_ext <<_ACEOF
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014120short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14121short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014122void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14124short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014125void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14126int
14127main ()
14128{
14129 _ascii (); _ebcdic ();
14130 ;
14131 return 0;
14132}
14133_ACEOF
14134rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014135if { (ac_try="$ac_compile"
14136case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14139esac
14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014147 (exit $ac_status); } && {
14148 test -z "$ac_c_werror_flag" ||
14149 test ! -s conftest.err
14150 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014151 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14152 ac_cv_c_bigendian=yes
14153fi
14154if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14155 if test "$ac_cv_c_bigendian" = unknown; then
14156 ac_cv_c_bigendian=no
14157 else
14158 # finding both strings is unlikely to happen, but who knows?
14159 ac_cv_c_bigendian=unknown
14160 fi
14161fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014163 echo "$as_me: failed program was:" >&5
14164sed 's/^/| /' conftest.$ac_ext >&5
14165
Theodore Ts'oe1052142006-10-21 21:46:47 -040014166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014168
14169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170else
14171 cat >conftest.$ac_ext <<_ACEOF
14172/* confdefs.h. */
14173_ACEOF
14174cat confdefs.h >>conftest.$ac_ext
14175cat >>conftest.$ac_ext <<_ACEOF
14176/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014177$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014178int
14179main ()
14180{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014181
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014182 /* Are we little or big endian? From Harbison&Steele. */
14183 union
14184 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014185 long int l;
14186 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014187 } u;
14188 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014189 return u.c[sizeof (long int) - 1] == 1;
14190
14191 ;
14192 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014193}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014194_ACEOF
14195rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014196if { (ac_try="$ac_link"
14197case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014215 ac_cv_c_bigendian=no
14216else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014217 echo "$as_me: program exited with status $ac_status" >&5
14218echo "$as_me: failed program was:" >&5
14219sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014221( exit $ac_status )
14222ac_cv_c_bigendian=yes
14223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014224rm -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 -040014225fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014226
14227
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014229
14230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014231fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014232{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14233echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234case $ac_cv_c_bigendian in
14235 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014236
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014238#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239_ACEOF
14240 ;;
14241 no)
14242 ;;
14243 *)
14244 { { echo "$as_me:$LINENO: error: unknown endianness
14245presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14246echo "$as_me: error: unknown endianness
14247presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14248 { (exit 1); exit 1; }; } ;;
14249esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014250
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014251BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014252ASM_TYPES_HEADER=./asm_types.h
14253
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014254echo "/* These defines are needed for the public ext2fs.h header file */" \
14255 > public_config.h
14256if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14257 uniq tmp_config.$$ >> public_config.h
14258else
14259 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14260fi
14261if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14262 uniq tmp_config.$$ >> public_config.h
14263else
14264 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14265fi
14266rm -f tmp_config.$$
14267PUBLIC_CONFIG_HEADER=./public_config.h
14268
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014270for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014271do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014277 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014278fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014279ac_res=`eval echo '${'$as_ac_Header'}'`
14280 { echo "$as_me:$LINENO: result: $ac_res" >&5
14281echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014283 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014286cat >conftest.$ac_ext <<_ACEOF
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
14292$ac_includes_default
14293#include <$ac_header>
14294_ACEOF
14295rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014296if { (ac_try="$ac_compile"
14297case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300esac
14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014303 ac_status=$?
14304 grep -v '^ *+' conftest.er1 >conftest.err
14305 rm -f conftest.er1
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014312 ac_header_compiler=yes
14313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
Theodore Ts'oe1052142006-10-21 21:46:47 -040014317 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014318fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014319
14320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14322echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014323
14324# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014327cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h. */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h. */
14333#include <$ac_header>
14334_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014335if { (ac_try="$ac_cpp conftest.$ac_ext"
14336case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14339esac
14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014347 (exit $ac_status); } >/dev/null && {
14348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14350 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351 ac_header_preproc=yes
14352else
14353 echo "$as_me: failed program was:" >&5
14354sed 's/^/| /' conftest.$ac_ext >&5
14355
14356 ac_header_preproc=no
14357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014359rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14361echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014362
14363# So? What about this header?
14364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14365 yes:no: )
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14370 ac_header_preproc=yes
14371 ;;
14372 no:yes:* )
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014385
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386 ;;
14387esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014388{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392else
14393 eval "$as_ac_Header=\$ac_header_preproc"
14394fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014395ac_res=`eval echo '${'$as_ac_Header'}'`
14396 { echo "$as_me:$LINENO: result: $ac_res" >&5
14397echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014398
14399fi
14400if test `eval echo '${'$as_ac_Header'}'` = yes; then
14401 cat >>confdefs.h <<_ACEOF
14402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14403_ACEOF
14404
14405fi
14406
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014407done
14408
Theodore Ts'oe1052142006-10-21 21:46:47 -040014409{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14410echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014411if test "${ac_cv_type_intptr_t+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014413else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014414 cat >conftest.$ac_ext <<_ACEOF
14415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
14419/* end confdefs.h. */
14420$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014421typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422int
14423main ()
14424{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014425if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014426 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014427if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428 return 0;
14429 ;
14430 return 0;
14431}
14432_ACEOF
14433rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014434if { (ac_try="$ac_compile"
14435case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438esac
14439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014450 ac_cv_type_intptr_t=yes
14451else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452 echo "$as_me: failed program was:" >&5
14453sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014454
Theodore Ts'oe1052142006-10-21 21:46:47 -040014455 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014456fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014457
14458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014459fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014460{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14461echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014462if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463
14464cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014465#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466_ACEOF
14467
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014469fi
14470
Theodore Ts'oe1052142006-10-21 21:46:47 -040014471{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14472echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014473if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475else
14476 cat >conftest.$ac_ext <<_ACEOF
14477/* confdefs.h. */
14478_ACEOF
14479cat confdefs.h >>conftest.$ac_ext
14480cat >>conftest.$ac_ext <<_ACEOF
14481/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014482#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014483int
14484main ()
14485{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014486struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487 ;
14488 return 0;
14489}
14490_ACEOF
14491rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014492if { (ac_try="$ac_compile"
14493case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14496esac
14497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014499 ac_status=$?
14500 grep -v '^ *+' conftest.er1 >conftest.err
14501 rm -f conftest.er1
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014504 (exit $ac_status); } && {
14505 test -z "$ac_c_werror_flag" ||
14506 test ! -s conftest.err
14507 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014508 e2fsprogs_cv_struct_st_flags=yes
14509else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014510 echo "$as_me: failed program was:" >&5
14511sed 's/^/| /' conftest.$ac_ext >&5
14512
Theodore Ts'oe1052142006-10-21 21:46:47 -040014513 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014514fi
14515
Theodore Ts'oe1052142006-10-21 21:46:47 -040014516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517fi
14518
14519{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14520echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014521if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014522 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14523echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014524 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014526else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014527 cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014533#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014534int
14535main ()
14536{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014537struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014538 ;
14539 return 0;
14540}
14541_ACEOF
14542rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014543if { (ac_try="$ac_compile"
14544case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014550 ac_status=$?
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014555 (exit $ac_status); } && {
14556 test -z "$ac_c_werror_flag" ||
14557 test ! -s conftest.err
14558 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014559 e2fsprogs_cv_struct_st_flags_immut=yes
14560else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
Theodore Ts'oe1052142006-10-21 21:46:47 -040014564 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014565fi
14566
Theodore Ts'oe1052142006-10-21 21:46:47 -040014567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568fi
14569
14570 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14571echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014572 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014573 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014574#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014575_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014576
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014577 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014578fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014579{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14580echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014581if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014582 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014583else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014584 cat >conftest.$ac_ext <<_ACEOF
14585/* confdefs.h. */
14586_ACEOF
14587cat confdefs.h >>conftest.$ac_ext
14588cat >>conftest.$ac_ext <<_ACEOF
14589/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014590#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014591 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014593int
14594main ()
14595{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014596static struct sockaddr ac_aggr;
14597if (ac_aggr.sa_len)
14598return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014599 ;
14600 return 0;
14601}
14602_ACEOF
14603rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014604if { (ac_try="$ac_compile"
14605case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14608esac
14609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014620 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014621else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014622 echo "$as_me: failed program was:" >&5
14623sed 's/^/| /' conftest.$ac_ext >&5
14624
Theodore Ts'oe1052142006-10-21 21:46:47 -040014625 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014626/* confdefs.h. */
14627_ACEOF
14628cat confdefs.h >>conftest.$ac_ext
14629cat >>conftest.$ac_ext <<_ACEOF
14630/* end confdefs.h. */
14631#include <sys/types.h>
14632 #include <sys/socket.h>
14633
14634int
14635main ()
14636{
14637static struct sockaddr ac_aggr;
14638if (sizeof ac_aggr.sa_len)
14639return 0;
14640 ;
14641 return 0;
14642}
14643_ACEOF
14644rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645if { (ac_try="$ac_compile"
14646case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014657 (exit $ac_status); } && {
14658 test -z "$ac_c_werror_flag" ||
14659 test ! -s conftest.err
14660 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014661 ac_cv_member_struct_sockaddr_sa_len=yes
14662else
14663 echo "$as_me: failed program was:" >&5
14664sed 's/^/| /' conftest.$ac_ext >&5
14665
Theodore Ts'oe1052142006-10-21 21:46:47 -040014666 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014668
14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014670fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014671
14672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014673fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014674{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14675echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014676if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014677
14678cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014679#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014680_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014681
14682fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014702
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014703
14704
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014705
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014706
Theodore Ts'o106ad962007-04-04 21:26:37 -040014707
14708
14709
Theodore Ts'o740837d2007-12-16 17:21:38 -050014710
14711
Theodore Ts'o261cd392008-01-21 13:45:00 -050014712
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014713
14714
14715for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014716do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014721 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014722else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014723 cat >conftest.$ac_ext <<_ACEOF
14724/* confdefs.h. */
14725_ACEOF
14726cat confdefs.h >>conftest.$ac_ext
14727cat >>conftest.$ac_ext <<_ACEOF
14728/* end confdefs.h. */
14729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14731#define $ac_func innocuous_$ac_func
14732
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014733/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014734 which can conflict with char $ac_func (); below.
14735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14736 <limits.h> exists even on freestanding compilers. */
14737
14738#ifdef __STDC__
14739# include <limits.h>
14740#else
14741# include <assert.h>
14742#endif
14743
14744#undef $ac_func
14745
Theodore Ts'oe1052142006-10-21 21:46:47 -040014746/* Override any GCC internal prototype to avoid an error.
14747 Use char because int might match the return type of a GCC
14748 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014749#ifdef __cplusplus
14750extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014751#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014752char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014753/* The GNU C library defines this for functions which it implements
14754 to always fail with ENOSYS. Some functions are actually named
14755 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014756#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014757choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014758#endif
14759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014760int
14761main ()
14762{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014763return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014764 ;
14765 return 0;
14766}
14767_ACEOF
14768rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014769if { (ac_try="$ac_link"
14770case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773esac
14774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest$ac_exeext &&
14785 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014787else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014788 echo "$as_me: failed program was:" >&5
14789sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014790
Theodore Ts'oe1052142006-10-21 21:46:47 -040014791 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014793
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014795 conftest$ac_exeext conftest.$ac_ext
14796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014797ac_res=`eval echo '${'$as_ac_var'}'`
14798 { echo "$as_me:$LINENO: result: $ac_res" >&5
14799echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014800if test `eval echo '${'$as_ac_var'}'` = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14803_ACEOF
14804
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014805fi
14806done
14807
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014808SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014809{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14810echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014811if test "${ac_cv_lib_socket_socket+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014813else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014814 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014815LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014816cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
14822
Theodore Ts'oe1052142006-10-21 21:46:47 -040014823/* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014826#ifdef __cplusplus
14827extern "C"
14828#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014829char socket ();
14830int
14831main ()
14832{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014833return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014834 ;
14835 return 0;
14836}
14837_ACEOF
14838rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014839if { (ac_try="$ac_link"
14840case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14843esac
14844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest$ac_exeext &&
14855 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014856 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014857else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014860
Theodore Ts'oe1052142006-10-21 21:46:47 -040014861 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014863
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014865 conftest$ac_exeext conftest.$ac_ext
14866LIBS=$ac_check_lib_save_LIBS
14867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014868{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14869echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014870if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014871 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014872fi
14873
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014874
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014875DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014876{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014880else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014881 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014882LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014883cat >conftest.$ac_ext <<_ACEOF
14884/* confdefs.h. */
14885_ACEOF
14886cat confdefs.h >>conftest.$ac_ext
14887cat >>conftest.$ac_ext <<_ACEOF
14888/* end confdefs.h. */
14889
Theodore Ts'oe1052142006-10-21 21:46:47 -040014890/* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014893#ifdef __cplusplus
14894extern "C"
14895#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014896char dlopen ();
14897int
14898main ()
14899{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014900return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014901 ;
14902 return 0;
14903}
14904_ACEOF
14905rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014906if { (ac_try="$ac_link"
14907case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14910esac
14911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest$ac_exeext &&
14922 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014923 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014924else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014925 echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014927
Theodore Ts'oe1052142006-10-21 21:46:47 -040014928 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014930
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014932 conftest$ac_exeext conftest.$ac_ext
14933LIBS=$ac_check_lib_save_LIBS
14934fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14936echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014937if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014938 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014939cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014940#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014941_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014942
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014943fi
14944
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014945
Theodore Ts'oe1052142006-10-21 21:46:47 -040014946{ echo "$as_me:$LINENO: checking for optreset" >&5
14947echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948if test "${ac_cv_have_optreset+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014950else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951 cat >conftest.$ac_ext <<_ACEOF
14952/* confdefs.h. */
14953_ACEOF
14954cat confdefs.h >>conftest.$ac_ext
14955cat >>conftest.$ac_ext <<_ACEOF
14956/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014957#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014958
14959_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014961 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014962 ac_cv_have_optreset=yes
14963else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014964 ac_cv_have_optreset=no
14965fi
14966rm -f conftest*
14967
14968fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014969{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14970echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014971if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014973#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014974_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014975
14976fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040014977SEM_INIT_LIB=''
14978{ echo "$as_me:$LINENO: checking for sem_init" >&5
14979echo $ECHO_N "checking for sem_init... $ECHO_C" >&6; }
14980if test "${ac_cv_func_sem_init+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14982else
14983 cat >conftest.$ac_ext <<_ACEOF
14984/* confdefs.h. */
14985_ACEOF
14986cat confdefs.h >>conftest.$ac_ext
14987cat >>conftest.$ac_ext <<_ACEOF
14988/* end confdefs.h. */
14989/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
14990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14991#define sem_init innocuous_sem_init
14992
14993/* System header to define __stub macros and hopefully few prototypes,
14994 which can conflict with char sem_init (); below.
14995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14996 <limits.h> exists even on freestanding compilers. */
14997
14998#ifdef __STDC__
14999# include <limits.h>
15000#else
15001# include <assert.h>
15002#endif
15003
15004#undef sem_init
15005
15006/* Override any GCC internal prototype to avoid an error.
15007 Use char because int might match the return type of a GCC
15008 builtin and then its argument prototype would still apply. */
15009#ifdef __cplusplus
15010extern "C"
15011#endif
15012char sem_init ();
15013/* The GNU C library defines this for functions which it implements
15014 to always fail with ENOSYS. Some functions are actually named
15015 something starting with __ and the normal name is an alias. */
15016#if defined __stub_sem_init || defined __stub___sem_init
15017choke me
15018#endif
15019
15020int
15021main ()
15022{
15023return sem_init ();
15024 ;
15025 return 0;
15026}
15027_ACEOF
15028rm -f conftest.$ac_objext conftest$ac_exeext
15029if { (ac_try="$ac_link"
15030case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033esac
15034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_link") 2>conftest.er1
15036 ac_status=$?
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } && {
15042 test -z "$ac_c_werror_flag" ||
15043 test ! -s conftest.err
15044 } && test -s conftest$ac_exeext &&
15045 $as_test_x conftest$ac_exeext; then
15046 ac_cv_func_sem_init=yes
15047else
15048 echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 ac_cv_func_sem_init=no
15052fi
15053
15054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15055 conftest$ac_exeext conftest.$ac_ext
15056fi
15057{ echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
15058echo "${ECHO_T}$ac_cv_func_sem_init" >&6; }
15059if test $ac_cv_func_sem_init = yes; then
15060 :
15061else
15062 { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
15063echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
15064if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15066else
15067 ac_check_lib_save_LIBS=$LIBS
15068LIBS="-lpthread $LIBS"
15069cat >conftest.$ac_ext <<_ACEOF
15070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
15074/* end confdefs.h. */
15075
15076/* Override any GCC internal prototype to avoid an error.
15077 Use char because int might match the return type of a GCC
15078 builtin and then its argument prototype would still apply. */
15079#ifdef __cplusplus
15080extern "C"
15081#endif
15082char sem_init ();
15083int
15084main ()
15085{
15086return sem_init ();
15087 ;
15088 return 0;
15089}
15090_ACEOF
15091rm -f conftest.$ac_objext conftest$ac_exeext
15092if { (ac_try="$ac_link"
15093case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_link") 2>conftest.er1
15099 ac_status=$?
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && {
15105 test -z "$ac_c_werror_flag" ||
15106 test ! -s conftest.err
15107 } && test -s conftest$ac_exeext &&
15108 $as_test_x conftest$ac_exeext; then
15109 ac_cv_lib_pthread_sem_init=yes
15110else
15111 echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114 ac_cv_lib_pthread_sem_init=no
15115fi
15116
15117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15118 conftest$ac_exeext conftest.$ac_ext
15119LIBS=$ac_check_lib_save_LIBS
15120fi
15121{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
15122echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
15123if test $ac_cv_lib_pthread_sem_init = yes; then
15124 cat >>confdefs.h <<\_ACEOF
15125#define HAVE_SEM_INIT 1
15126_ACEOF
15127
15128 SEM_INIT_LIB=-lpthread
15129else
15130 { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
15131echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; }
15132if test "${ac_cv_lib_rt_sem_init+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134else
15135 ac_check_lib_save_LIBS=$LIBS
15136LIBS="-lrt $LIBS"
15137cat >conftest.$ac_ext <<_ACEOF
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143
15144/* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15147#ifdef __cplusplus
15148extern "C"
15149#endif
15150char sem_init ();
15151int
15152main ()
15153{
15154return sem_init ();
15155 ;
15156 return 0;
15157}
15158_ACEOF
15159rm -f conftest.$ac_objext conftest$ac_exeext
15160if { (ac_try="$ac_link"
15161case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164esac
15165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_link") 2>conftest.er1
15167 ac_status=$?
15168 grep -v '^ *+' conftest.er1 >conftest.err
15169 rm -f conftest.er1
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } && {
15173 test -z "$ac_c_werror_flag" ||
15174 test ! -s conftest.err
15175 } && test -s conftest$ac_exeext &&
15176 $as_test_x conftest$ac_exeext; then
15177 ac_cv_lib_rt_sem_init=yes
15178else
15179 echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181
15182 ac_cv_lib_rt_sem_init=no
15183fi
15184
15185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186 conftest$ac_exeext conftest.$ac_ext
15187LIBS=$ac_check_lib_save_LIBS
15188fi
15189{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
15190echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; }
15191if test $ac_cv_lib_rt_sem_init = yes; then
15192 cat >>confdefs.h <<\_ACEOF
15193#define HAVE_SEM_INIT 1
15194_ACEOF
15195
15196 SEM_INIT_LIB=-lrt
15197else
15198 { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
15199echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; }
15200if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203 ac_check_lib_save_LIBS=$LIBS
15204LIBS="-lposix4 $LIBS"
15205cat >conftest.$ac_ext <<_ACEOF
15206/* confdefs.h. */
15207_ACEOF
15208cat confdefs.h >>conftest.$ac_ext
15209cat >>conftest.$ac_ext <<_ACEOF
15210/* end confdefs.h. */
15211
15212/* Override any GCC internal prototype to avoid an error.
15213 Use char because int might match the return type of a GCC
15214 builtin and then its argument prototype would still apply. */
15215#ifdef __cplusplus
15216extern "C"
15217#endif
15218char sem_init ();
15219int
15220main ()
15221{
15222return sem_init ();
15223 ;
15224 return 0;
15225}
15226_ACEOF
15227rm -f conftest.$ac_objext conftest$ac_exeext
15228if { (ac_try="$ac_link"
15229case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232esac
15233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_link") 2>conftest.er1
15235 ac_status=$?
15236 grep -v '^ *+' conftest.er1 >conftest.err
15237 rm -f conftest.er1
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } && {
15241 test -z "$ac_c_werror_flag" ||
15242 test ! -s conftest.err
15243 } && test -s conftest$ac_exeext &&
15244 $as_test_x conftest$ac_exeext; then
15245 ac_cv_lib_posix4_sem_init=yes
15246else
15247 echo "$as_me: failed program was:" >&5
15248sed 's/^/| /' conftest.$ac_ext >&5
15249
15250 ac_cv_lib_posix4_sem_init=no
15251fi
15252
15253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15254 conftest$ac_exeext conftest.$ac_ext
15255LIBS=$ac_check_lib_save_LIBS
15256fi
15257{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
15258echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; }
15259if test $ac_cv_lib_posix4_sem_init = yes; then
15260 cat >>confdefs.h <<\_ACEOF
15261#define HAVE_SEM_INIT 1
15262_ACEOF
15263
15264 SEM_INIT_LIB=-lposix4
15265fi
15266
15267fi
15268
15269fi
15270
15271fi
15272
Theodore Ts'oe1052142006-10-21 21:46:47 -040015273{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15274echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015275if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015276 UNI_DIFF_OPTS=-u
15277else
15278 UNI_DIFF_OPTS=-c
15279fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015280{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15281echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015282
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015283case "$host_os" in
15284linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015285 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015286#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015287_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015288
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015289 ;;
15290esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015291LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015292CYGWIN_CMT="#"
15293UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015294case "$host_os" in
15295linux*)
15296 LINUX_CMT=
15297 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015298cygwin)
15299 CYGWIN_CMT=
15300 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015301 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015302esac
15303
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015304
15305
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015306case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015307linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015308 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15309 root_prefix="";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015310 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15311echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015312 fi
15313 ;;
15314esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015315case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015316linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015317 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015318 prefix="/usr";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015319 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15320echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015321 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015322 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15323echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015324 mandir=/usr/share/man
15325 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015326 fi
15327;;
15328esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015329if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015330 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015331 root_prefix="$ac_default_prefix"
15332 else
15333 root_prefix="$prefix"
15334 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015335 root_bindir=$bindir
15336 root_sbindir=$sbindir
15337 root_libdir=$libdir
15338 root_sysconfdir=$sysconfdir
15339else
15340 root_bindir='${root_prefix}/bin'
15341 root_sbindir='${root_prefix}/sbin'
15342 root_libdir='${root_prefix}/lib'
15343 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015344fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015345if test "$bindir" != '${exec_prefix}/bin'; then
15346 root_bindir=$bindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015347 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15348echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015349fi
15350if test "$sbindir" != '${exec_prefix}/sbin'; then
15351 root_sbindir=$sbindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015352 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15353echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015354fi
15355if test "$libdir" != '${exec_prefix}/lib'; then
15356 root_libdir=$libdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015357 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15358echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015359fi
15360if test "$sysconfdir" != '${prefix}/etc'; then
15361 root_sysconfdir=$sysconfdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015362 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15363echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015364fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015365
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015366
15367
15368
15369
Theodore Ts'oe1052142006-10-21 21:46:47 -040015370{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15371echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015372if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015374else
15375 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015376cat >conftest.$ac_ext <<_ACEOF
15377/* confdefs.h. */
15378_ACEOF
15379cat confdefs.h >>conftest.$ac_ext
15380cat >>conftest.$ac_ext <<_ACEOF
15381/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015382#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015383int
15384main ()
15385{
Theodore Ts'oae851481997-04-29 18:13:24 +000015386fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015387 ;
15388 return 0;
15389}
15390_ACEOF
15391rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015392if { (ac_try="$ac_link"
15393case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396esac
15397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest$ac_exeext &&
15408 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015409 ac_cv_e2fsprogs_use_static=yes
15410else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015411 echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
Theodore Ts'oe1052142006-10-21 21:46:47 -040015414 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015415fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015416
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015418 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015419LDFLAGS=$SAVE_LDFLAGS
15420fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015421
Theodore Ts'odefde781999-01-04 07:39:19 +000015422case "$host_os" in
15423solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015424 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015425;;
15426esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015427{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15428echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015429LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015430if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015431 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015432fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015433
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015434case "$host_os" in
15435darwin*)
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015436 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15437echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015438 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015439#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015440_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015441
15442 ;;
15443esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015444SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15445ET_DIR=`cd ${srcdir}/lib/et; pwd`
15446
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015447
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015448if test "$cross_compiling" = yes ; then
15449 DO_TEST_SUITE=
15450else
15451 DO_TEST_SUITE=check
15452fi
15453
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015454INTL_FLAGS=
15455if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15456 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15457fi
15458
Theodore Ts'odd947da2005-11-09 18:37:07 -040015459if test $cross_compiling = no; then
15460 BUILD_CFLAGS="$CFLAGS"
15461 BUILD_LDFLAGS="$LDFLAGS"
15462else
15463 BUILD_CFLAGS=
15464 BUILD_LDFLAGS=
15465fi
15466
15467
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015468test -d lib || mkdir lib
15469test -d include || mkdir include
15470test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015471test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015472for i in MCONFIG Makefile e2fsprogs.spec \
15473 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015474 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15475 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015476 lib/uuid/Makefile lib/uuid/uuid_types.h \
15477 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015478 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15479 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015480 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015481 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15482 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15483 if test -d `dirname ${srcdir}/$i` ; then
15484 outlist="$outlist $i"
15485 fi
15486done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015487ac_config_files="$ac_config_files $outlist"
15488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015489cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015490# This file is a shell script that caches the results of configure
15491# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015492# scripts and configure runs, see configure's option --config-cache.
15493# It is not useful on other systems. If it contains results you don't
15494# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015495#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015496# config.status only pays attention to the cache file if you give it
15497# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015498#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015499# `ac_cv_env_foo' variables (set or unset) will be overridden when
15500# loading this file, other *unset* `ac_cv_foo' will be assigned the
15501# following values.
15502
15503_ACEOF
15504
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015505# The following way of writing the cache mishandles newlines in values,
15506# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015507# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015508# Ultrix sh set writes to stderr and can't be redirected directly,
15509# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015510(
15511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15512 eval ac_val=\$$ac_var
15513 case $ac_val in #(
15514 *${as_nl}*)
15515 case $ac_var in #(
15516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15517echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15518 esac
15519 case $ac_var in #(
15520 _ | IFS | as_nl) ;; #(
15521 *) $as_unset $ac_var ;;
15522 esac ;;
15523 esac
15524 done
15525
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015526 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15528 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015529 # `set' does not quote correctly, so add quotes (double-quote
15530 # substitution turns \\\\ into \\, and sed turns \\ into \).
15531 sed -n \
15532 "s/'/'\\\\''/g;
15533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015534 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015535 *)
15536 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015538 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015539 esac |
15540 sort
15541) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015542 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015543 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015544 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015545 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15547 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15549 :end' >>confcache
15550if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15551 if test -w "$cache_file"; then
15552 test "x$cache_file" != "x/dev/null" &&
15553 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15554echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015555 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015556 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015557 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15558echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015559 fi
15560fi
15561rm -f confcache
15562
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015563test "x$prefix" = xNONE && prefix=$ac_default_prefix
15564# Let make expand exec_prefix.
15565test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15566
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015567# Transform confdefs.h into DEFS.
15568# Protect against shell expansion while executing Makefile rules.
15569# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015570#
15571# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015572# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015573# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015574ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015575t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015576:clear
15577s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015578t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015579s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015581b any
15582:quote
15583s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15584s/\[/\\&/g
15585s/\]/\\&/g
15586s/\$/$$/g
15587H
15588:any
15589${
15590 g
15591 s/^\n//
15592 s/\n/ /g
15593 p
15594}
15595'
15596DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015597
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015599ac_libobjs=
15600ac_ltlibobjs=
15601for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15602 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15604 ac_i=`echo "$ac_i" | sed "$ac_script"`
15605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15606 # will be set to the directory where LIBOBJS objects are built.
15607 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15608 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015609done
15610LIBOBJS=$ac_libobjs
15611
15612LTLIBOBJS=$ac_ltlibobjs
15613
15614
15615
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015616: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015617ac_clean_files_save=$ac_clean_files
15618ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15619{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15620echo "$as_me: creating $CONFIG_STATUS" >&6;}
15621cat >$CONFIG_STATUS <<_ACEOF
15622#! $SHELL
15623# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015624# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015625# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015626# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015628debug=false
15629ac_cs_recheck=false
15630ac_cs_silent=false
15631SHELL=\${CONFIG_SHELL-$SHELL}
15632_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015634cat >>$CONFIG_STATUS <<\_ACEOF
15635## --------------------- ##
15636## M4sh Initialization. ##
15637## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015638
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015639# Be more Bourne compatible
15640DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15642 emulate sh
15643 NULLCMD=:
15644 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15645 # is contrary to our usage. Disable this feature.
15646 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015647 setopt NO_GLOB_SUBST
15648else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015649 case `(set -o) 2>/dev/null` in
15650 *posix*) set -o posix ;;
15651esac
15652
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015653fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015654
15655
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015656
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015657
Theodore Ts'oe1052142006-10-21 21:46:47 -040015658# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015659# Avoid depending upon Character Ranges.
15660as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15661as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15662as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15663as_cr_digits='0123456789'
15664as_cr_alnum=$as_cr_Letters$as_cr_digits
15665
15666# The user is always right.
15667if test "${PATH_SEPARATOR+set}" != set; then
15668 echo "#! /bin/sh" >conf$$.sh
15669 echo "exit 0" >>conf$$.sh
15670 chmod +x conf$$.sh
15671 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15672 PATH_SEPARATOR=';'
15673 else
15674 PATH_SEPARATOR=:
15675 fi
15676 rm -f conf$$.sh
15677fi
15678
Theodore Ts'oe1052142006-10-21 21:46:47 -040015679# Support unset when possible.
15680if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15681 as_unset=unset
15682else
15683 as_unset=false
15684fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015685
Theodore Ts'oe1052142006-10-21 21:46:47 -040015686
15687# IFS
15688# We need space, tab and new line, in precisely that order. Quoting is
15689# there to prevent editors from complaining about space-tab.
15690# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15691# splitting by setting IFS to empty value.)
15692as_nl='
15693'
15694IFS=" "" $as_nl"
15695
15696# Find who we are. Look in the path if we contain no directory separator.
15697case $0 in
15698 *[\\/]* ) as_myself=$0 ;;
15699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015700for as_dir in $PATH
15701do
15702 IFS=$as_save_IFS
15703 test -z "$as_dir" && as_dir=.
15704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15705done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015706IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015707
Theodore Ts'oe1052142006-10-21 21:46:47 -040015708 ;;
15709esac
15710# We did not find ourselves, most probably we were run as `sh COMMAND'
15711# in which case we are not to be found in the path.
15712if test "x$as_myself" = x; then
15713 as_myself=$0
15714fi
15715if test ! -f "$as_myself"; then
15716 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15717 { (exit 1); exit 1; }
15718fi
15719
15720# Work around bugs in pre-3.0 UWIN ksh.
15721for as_var in ENV MAIL MAILPATH
15722do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15723done
15724PS1='$ '
15725PS2='> '
15726PS4='+ '
15727
15728# NLS nuisances.
15729for as_var in \
15730 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15731 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15732 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015733do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015734 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15735 eval $as_var=C; export $as_var
15736 else
15737 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15738 fi
15739done
15740
15741# Required to use basename.
15742if expr a : '\(a\)' >/dev/null 2>&1 &&
15743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15744 as_expr=expr
15745else
15746 as_expr=false
15747fi
15748
15749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15750 as_basename=basename
15751else
15752 as_basename=false
15753fi
15754
15755
15756# Name of the executable.
15757as_me=`$as_basename -- "$0" ||
15758$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15759 X"$0" : 'X\(//\)$' \| \
15760 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15761echo X/"$0" |
15762 sed '/^.*\/\([^/][^/]*\)\/*$/{
15763 s//\1/
15764 q
15765 }
15766 /^X\/\(\/\/\)$/{
15767 s//\1/
15768 q
15769 }
15770 /^X\/\(\/\).*/{
15771 s//\1/
15772 q
15773 }
15774 s/.*/./; q'`
15775
15776# CDPATH.
15777$as_unset CDPATH
15778
15779
15780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015781 as_lineno_1=$LINENO
15782 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015783 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015784 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015785
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15787 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015788 # line-number line after each line using $LINENO; the second 'sed'
15789 # does the real work. The second script uses 'N' to pair each
15790 # line-number line with the line containing $LINENO, and appends
15791 # trailing '-' during substitution so that $LINENO is not a special
15792 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015793 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015794 # scripts with optimization help from Paolo Bonzini. Blame Lee
15795 # E. McMahon (1931-1989) for sed's syntax. :-)
15796 sed -n '
15797 p
15798 /[$]LINENO/=
15799 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015800 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015801 s/[$]LINENO.*/&-/
15802 t lineno
15803 b
15804 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015805 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015806 :loop
15807 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015808 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015809 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015810 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015811 chmod +x "$as_me.lineno" ||
15812 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015813 { (exit 1); exit 1; }; }
15814
15815 # Don't try to exec as it changes $[0], causing all sort of problems
15816 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015817 # original and so on. Autoconf is especially sensitive to this).
15818 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015819 # Exit status is that of the last command.
15820 exit
15821}
15822
15823
Theodore Ts'oe1052142006-10-21 21:46:47 -040015824if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15825 as_dirname=dirname
15826else
15827 as_dirname=false
15828fi
15829
15830ECHO_C= ECHO_N= ECHO_T=
15831case `echo -n x` in
15832-n*)
15833 case `echo 'x\c'` in
15834 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15835 *) ECHO_C='\c';;
15836 esac;;
15837*)
15838 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015839esac
15840
Theodore Ts'oe1052142006-10-21 21:46:47 -040015841if expr a : '\(a\)' >/dev/null 2>&1 &&
15842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015843 as_expr=expr
15844else
15845 as_expr=false
15846fi
15847
15848rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015849if test -d conf$$.dir; then
15850 rm -f conf$$.dir/conf$$.file
15851else
15852 rm -f conf$$.dir
15853 mkdir conf$$.dir
15854fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015855echo >conf$$.file
15856if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015857 as_ln_s='ln -s'
15858 # ... but there are two gotchas:
15859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15861 # In both cases, we have to default to `cp -p'.
15862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015863 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015864elif ln conf$$.file conf$$ 2>/dev/null; then
15865 as_ln_s=ln
15866else
15867 as_ln_s='cp -p'
15868fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15870rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015871
15872if mkdir -p . 2>/dev/null; then
15873 as_mkdir_p=:
15874else
15875 test -d ./-p && rmdir ./-p
15876 as_mkdir_p=false
15877fi
15878
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015879if test -x / >/dev/null 2>&1; then
15880 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015881else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015882 if ls -dL / >/dev/null 2>&1; then
15883 as_ls_L_option=L
15884 else
15885 as_ls_L_option=
15886 fi
15887 as_test_x='
15888 eval sh -c '\''
15889 if test -d "$1"; then
15890 test -d "$1/.";
15891 else
15892 case $1 in
15893 -*)set "./$1";;
15894 esac;
15895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15896 ???[sx]*):;;*)false;;esac;fi
15897 '\'' sh
15898 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015899fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015900as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015901
15902# Sed expression to map a string onto a valid CPP name.
15903as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15904
15905# Sed expression to map a string onto a valid variable name.
15906as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15907
15908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015909exec 6>&1
15910
Theodore Ts'oe1052142006-10-21 21:46:47 -040015911# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015912# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015913# values after options handling.
15914ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015915This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015916generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015917
15918 CONFIG_FILES = $CONFIG_FILES
15919 CONFIG_HEADERS = $CONFIG_HEADERS
15920 CONFIG_LINKS = $CONFIG_LINKS
15921 CONFIG_COMMANDS = $CONFIG_COMMANDS
15922 $ $0 $@
15923
Theodore Ts'oe1052142006-10-21 21:46:47 -040015924on `(hostname || uname -n) 2>/dev/null | sed 1q`
15925"
15926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015927_ACEOF
15928
Theodore Ts'oe1052142006-10-21 21:46:47 -040015929cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015930# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015931config_files="$ac_config_files"
15932config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015933
Theodore Ts'oe1052142006-10-21 21:46:47 -040015934_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015935
15936cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015937ac_cs_usage="\
15938\`$as_me' instantiates files from templates according to the
15939current configuration.
15940
15941Usage: $0 [OPTIONS] [FILE]...
15942
15943 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015944 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015945 -q, --quiet do not print progress messages
15946 -d, --debug don't remove temporary files
15947 --recheck update $as_me by reconfiguring in the same conditions
15948 --file=FILE[:TEMPLATE]
15949 instantiate the configuration file FILE
15950
15951Configuration files:
15952$config_files
15953
15954Configuration commands:
15955$config_commands
15956
15957Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015958
Theodore Ts'oe1052142006-10-21 21:46:47 -040015959_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015960cat >>$CONFIG_STATUS <<_ACEOF
15961ac_cs_version="\\
15962config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015963configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015964 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015965
Theodore Ts'oe1052142006-10-21 21:46:47 -040015966Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015967This config.status script is free software; the Free Software Foundation
15968gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015969
15970ac_pwd='$ac_pwd'
15971srcdir='$srcdir'
15972INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015973_ACEOF
15974
15975cat >>$CONFIG_STATUS <<\_ACEOF
15976# If no file are specified by the user, then we need to provide default
15977# value. By we need to know if files were specified by the user.
15978ac_need_defaults=:
15979while test $# != 0
15980do
15981 case $1 in
15982 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015985 ac_shift=:
15986 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015987 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015988 ac_option=$1
15989 ac_optarg=$2
15990 ac_shift=shift
15991 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015992 esac
15993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015994 case $ac_option in
15995 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15997 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15999 echo "$ac_cs_version"; exit ;;
16000 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016001 debug=: ;;
16002 --file | --fil | --fi | --f )
16003 $ac_shift
16004 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16005 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016006 --he | --h | --help | --hel | -h )
16007 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16010 ac_cs_silent=: ;;
16011
16012 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016013 -*) { echo "$as_me: error: unrecognized option: $1
16014Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016015 { (exit 1); exit 1; }; } ;;
16016
Theodore Ts'oe1052142006-10-21 21:46:47 -040016017 *) ac_config_targets="$ac_config_targets $1"
16018 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016019
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016020 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016021 shift
16022done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016024ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016025
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016026if $ac_cs_silent; then
16027 exec 6>/dev/null
16028 ac_configure_extra_args="$ac_configure_extra_args --silent"
16029fi
16030
16031_ACEOF
16032cat >>$CONFIG_STATUS <<_ACEOF
16033if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016034 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16035 CONFIG_SHELL=$SHELL
16036 export CONFIG_SHELL
16037 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016038fi
16039
16040_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016041cat >>$CONFIG_STATUS <<\_ACEOF
16042exec 5>>config.log
16043{
16044 echo
16045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16046## Running $as_me. ##
16047_ASBOX
16048 echo "$ac_log"
16049} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016050
Theodore Ts'oe1052142006-10-21 21:46:47 -040016051_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016052cat >>$CONFIG_STATUS <<_ACEOF
16053#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016054# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016055#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016056# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016057 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016058 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016059 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016060 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16061 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016062
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016064_ACEOF
16065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016066cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016067
16068# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016069for ac_config_target in $ac_config_targets
16070do
Theodore Ts'oe1052142006-10-21 21:46:47 -040016071 case $ac_config_target in
16072 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16073 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16076echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16077 { (exit 1); exit 1; }; };;
16078 esac
16079done
16080
Theodore Ts'oe1052142006-10-21 21:46:47 -040016081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016082# If the user did not use the arguments to specify the items to instantiate,
16083# then the envvar interface is used. Set only those that are not.
16084# We use the long form for the default assignment because of an extremely
16085# bizarre bug on SunOS 4.1.3.
16086if $ac_need_defaults; then
16087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16089fi
16090
16091# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040016092# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016093# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016094# Hook for its removal unless debugging.
16095# Note that there is a small window in which the directory will not be cleaned:
16096# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016097$debug ||
16098{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016099 tmp=
16100 trap 'exit_status=$?
16101 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16102' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016103 trap '{ (exit 1); exit 1; }' 1 2 13 15
16104}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016105# Create a (secure) tmp directory for tmp files.
16106
16107{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016109 test -n "$tmp" && test -d "$tmp"
16110} ||
16111{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016112 tmp=./conf$$-$RANDOM
16113 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016114} ||
16115{
16116 echo "$me: cannot create a temporary directory in ." >&2
16117 { (exit 1); exit 1; }
16118}
16119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016120#
Theodore Ts'oe1052142006-10-21 21:46:47 -040016121# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016122#
16123
16124# No need to generate the scripts if there are no CONFIG_FILES.
16125# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040016126if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016127
16128_ACEOF
16129
Theodore Ts'oe1052142006-10-21 21:46:47 -040016130# Create sed commands to just substitute file output variables.
16131
16132# Remaining file output variables are in a fragment that also has non-file
16133# output varibles.
16134
16135
16136
16137ac_delim='%!_!# '
16138for ac_last_try in false false false false false :; do
16139 cat >conf$$subs.sed <<_ACEOF
16140SHELL!$SHELL$ac_delim
16141PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16142PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16143PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16144PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16145PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16146PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16147exec_prefix!$exec_prefix$ac_delim
16148prefix!$prefix$ac_delim
16149program_transform_name!$program_transform_name$ac_delim
16150bindir!$bindir$ac_delim
16151sbindir!$sbindir$ac_delim
16152libexecdir!$libexecdir$ac_delim
16153datarootdir!$datarootdir$ac_delim
16154datadir!$datadir$ac_delim
16155sysconfdir!$sysconfdir$ac_delim
16156sharedstatedir!$sharedstatedir$ac_delim
16157localstatedir!$localstatedir$ac_delim
16158includedir!$includedir$ac_delim
16159oldincludedir!$oldincludedir$ac_delim
16160docdir!$docdir$ac_delim
16161infodir!$infodir$ac_delim
16162htmldir!$htmldir$ac_delim
16163dvidir!$dvidir$ac_delim
16164pdfdir!$pdfdir$ac_delim
16165psdir!$psdir$ac_delim
16166libdir!$libdir$ac_delim
16167localedir!$localedir$ac_delim
16168mandir!$mandir$ac_delim
16169DEFS!$DEFS$ac_delim
16170ECHO_C!$ECHO_C$ac_delim
16171ECHO_N!$ECHO_N$ac_delim
16172ECHO_T!$ECHO_T$ac_delim
16173LIBS!$LIBS$ac_delim
16174build_alias!$build_alias$ac_delim
16175host_alias!$host_alias$ac_delim
16176target_alias!$target_alias$ac_delim
16177E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16178E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16179E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16180E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016181E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016182build!$build$ac_delim
16183build_cpu!$build_cpu$ac_delim
16184build_vendor!$build_vendor$ac_delim
16185build_os!$build_os$ac_delim
16186host!$host$ac_delim
16187host_cpu!$host_cpu$ac_delim
16188host_vendor!$host_vendor$ac_delim
16189host_os!$host_os$ac_delim
16190CC!$CC$ac_delim
16191CFLAGS!$CFLAGS$ac_delim
16192LDFLAGS!$LDFLAGS$ac_delim
16193CPPFLAGS!$CPPFLAGS$ac_delim
16194ac_ct_CC!$ac_ct_CC$ac_delim
16195EXEEXT!$EXEEXT$ac_delim
16196OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016197CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016198LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016199GREP!$GREP$ac_delim
16200EGREP!$EGREP$ac_delim
16201LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16202MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16203HTREE_CMT!$HTREE_CMT$ac_delim
16204ELF_CMT!$ELF_CMT$ac_delim
16205BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16206PROFILE_CMT!$PROFILE_CMT$ac_delim
16207CHECKER_CMT!$CHECKER_CMT$ac_delim
16208LIB_EXT!$LIB_EXT$ac_delim
16209STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16210PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'o55da9872008-09-02 23:12:38 -040016211LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim
16212PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016213_ACEOF
16214
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016216 break
16217 elif $ac_last_try; then
16218 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16219echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16220 { (exit 1); exit 1; }; }
16221 else
16222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016223 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016224done
16225
16226ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16227if test -n "$ac_eof"; then
16228 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16229 ac_eof=`expr $ac_eof + 1`
16230fi
16231
16232cat >>$CONFIG_STATUS <<_ACEOF
16233cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16234/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16235/^[ ]*@MCONFIG@[ ]*$/{
16236r $MCONFIG
16237d
16238}
16239/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16240r $MAKEFILE_ELF
16241d
16242}
16243/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16244r $MAKEFILE_BSDLIB
16245d
16246}
16247/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16248r $MAKEFILE_PROFILE
16249d
16250}
16251/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16252r $MAKEFILE_CHECKER
16253d
16254}
16255/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16256r $MAKEFILE_LIBRARY
16257d
16258}
16259/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16260r $ASM_TYPES_HEADER
16261d
16262}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016263/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16264r $PUBLIC_CONFIG_HEADER
16265d
16266}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016267_ACEOF
16268sed '
16269s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16270s/^/s,@/; s/!/@,|#_!!_#|/
16271:n
16272t n
16273s/'"$ac_delim"'$/,g/; t
16274s/$/\\/; p
16275N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16276' >>$CONFIG_STATUS <conf$$subs.sed
16277rm -f conf$$subs.sed
16278cat >>$CONFIG_STATUS <<_ACEOF
16279CEOF$ac_eof
16280_ACEOF
16281
16282
16283ac_delim='%!_!# '
16284for ac_last_try in false false false false false :; do
16285 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o55da9872008-09-02 23:12:38 -040016286TEST_IO_CMT!$TEST_IO_CMT$ac_delim
16287DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
Theodore Ts'oaf773652008-09-01 11:27:27 -040016288IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016289RESIZER_CMT!$RESIZER_CMT$ac_delim
16290FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016291FSCK_MAN!$FSCK_MAN$ac_delim
16292E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16293E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016294UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016295GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16296PACKAGE!$PACKAGE$ac_delim
16297VERSION!$VERSION$ac_delim
16298SET_MAKE!$SET_MAKE$ac_delim
16299INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16300INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16301INSTALL_DATA!$INSTALL_DATA$ac_delim
16302MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16303USE_NLS!$USE_NLS$ac_delim
16304MSGFMT!$MSGFMT$ac_delim
16305GMSGFMT!$GMSGFMT$ac_delim
16306XGETTEXT!$XGETTEXT$ac_delim
16307MSGMERGE!$MSGMERGE$ac_delim
16308RANLIB!$RANLIB$ac_delim
16309ALLOCA!$ALLOCA$ac_delim
16310GLIBC21!$GLIBC21$ac_delim
16311HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16312HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16313HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16314HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16315LIBICONV!$LIBICONV$ac_delim
16316LTLIBICONV!$LTLIBICONV$ac_delim
16317INTLBISON!$INTLBISON$ac_delim
16318BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16319USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16320CATOBJEXT!$CATOBJEXT$ac_delim
16321DATADIRNAME!$DATADIRNAME$ac_delim
16322INSTOBJEXT!$INSTOBJEXT$ac_delim
16323GENCAT!$GENCAT$ac_delim
16324INTLOBJS!$INTLOBJS$ac_delim
16325INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16326INTLLIBS!$INTLLIBS$ac_delim
16327LIBINTL!$LIBINTL$ac_delim
16328LTLIBINTL!$LTLIBINTL$ac_delim
16329POSUB!$POSUB$ac_delim
16330BINARY_TYPE!$BINARY_TYPE$ac_delim
16331LN!$LN$ac_delim
16332LN_S!$LN_S$ac_delim
16333MV!$MV$ac_delim
16334CP!$CP$ac_delim
16335RM!$RM$ac_delim
16336CHMOD!$CHMOD$ac_delim
16337AWK!$AWK$ac_delim
16338SED!$SED$ac_delim
16339PERL!$PERL$ac_delim
16340LDCONFIG!$LDCONFIG$ac_delim
16341AR!$AR$ac_delim
16342STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016343MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016344BUILD_CC!$BUILD_CC$ac_delim
16345SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16346SIZEOF_INT!$SIZEOF_INT$ac_delim
16347SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16348SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16349SOCKET_LIB!$SOCKET_LIB$ac_delim
16350DLOPEN_LIB!$DLOPEN_LIB$ac_delim
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016351SEM_INIT_LIB!$SEM_INIT_LIB$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016352UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16353LINUX_CMT!$LINUX_CMT$ac_delim
16354CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16355UNIX_CMT!$UNIX_CMT$ac_delim
16356root_prefix!$root_prefix$ac_delim
16357root_bindir!$root_bindir$ac_delim
16358root_sbindir!$root_sbindir$ac_delim
16359root_libdir!$root_libdir$ac_delim
16360root_sysconfdir!$root_sysconfdir$ac_delim
16361LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16362SS_DIR!$SS_DIR$ac_delim
16363ET_DIR!$ET_DIR$ac_delim
16364DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16365INTL_FLAGS!$INTL_FLAGS$ac_delim
16366BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16367BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16368LIBOBJS!$LIBOBJS$ac_delim
16369LTLIBOBJS!$LTLIBOBJS$ac_delim
16370_ACEOF
16371
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016373 break
16374 elif $ac_last_try; then
16375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16376echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16377 { (exit 1); exit 1; }; }
16378 else
16379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16380 fi
16381done
16382
16383ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16384if test -n "$ac_eof"; then
16385 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16386 ac_eof=`expr $ac_eof + 1`
16387fi
16388
16389cat >>$CONFIG_STATUS <<_ACEOF
16390cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16391/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16392_ACEOF
16393sed '
16394s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16395s/^/s,@/; s/!/@,|#_!!_#|/
16396:n
16397t n
16398s/'"$ac_delim"'$/,g/; t
16399s/$/\\/; p
16400N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16401' >>$CONFIG_STATUS <conf$$subs.sed
16402rm -f conf$$subs.sed
16403cat >>$CONFIG_STATUS <<_ACEOF
16404:end
16405s/|#_!!_#|//g
16406CEOF$ac_eof
16407_ACEOF
16408
16409
16410# VPATH may cause trouble with some makes, so we remove $(srcdir),
16411# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16412# trailing colons and then remove the whole line if VPATH becomes empty
16413# (actually we leave an empty line to preserve line numbers).
16414if test "x$srcdir" = x.; then
16415 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16416s/:*\$(srcdir):*/:/
16417s/:*\${srcdir}:*/:/
16418s/:*@srcdir@:*/:/
16419s/^\([^=]*=[ ]*\):*/\1/
16420s/:*$//
16421s/^[^=]*=[ ]*$//
16422}'
16423fi
16424
16425cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016426fi # test -n "$CONFIG_FILES"
16427
Theodore Ts'oe1052142006-10-21 21:46:47 -040016428
16429for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16430do
16431 case $ac_tag in
16432 :[FHLC]) ac_mode=$ac_tag; continue;;
16433 esac
16434 case $ac_mode$ac_tag in
16435 :[FHL]*:*);;
16436 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16437echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16438 { (exit 1); exit 1; }; };;
16439 :[FH]-) ac_tag=-:-;;
16440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16441 esac
16442 ac_save_IFS=$IFS
16443 IFS=:
16444 set x $ac_tag
16445 IFS=$ac_save_IFS
16446 shift
16447 ac_file=$1
16448 shift
16449
16450 case $ac_mode in
16451 :L) ac_source=$1;;
16452 :[FH])
16453 ac_file_inputs=
16454 for ac_f
16455 do
16456 case $ac_f in
16457 -) ac_f="$tmp/stdin";;
16458 *) # Look for the file first in the build tree, then in the source tree
16459 # (if the path is not absolute). The absolute path cannot be DOS-style,
16460 # because $ac_f cannot contain `:'.
16461 test -f "$ac_f" ||
16462 case $ac_f in
16463 [\\/$]*) false;;
16464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16465 esac ||
16466 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16467echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16468 { (exit 1); exit 1; }; };;
16469 esac
16470 ac_file_inputs="$ac_file_inputs $ac_f"
16471 done
16472
16473 # Let's still pretend it is `configure' which instantiates (i.e., don't
16474 # use $as_me), people would be surprised to read:
16475 # /* config.h. Generated by config.status. */
16476 configure_input="Generated from "`IFS=:
16477 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16478 if test x"$ac_file" != x-; then
16479 configure_input="$ac_file. $configure_input"
16480 { echo "$as_me:$LINENO: creating $ac_file" >&5
16481echo "$as_me: creating $ac_file" >&6;}
16482 fi
16483
16484 case $ac_tag in
16485 *:-:* | *:-) cat >"$tmp/stdin";;
16486 esac
16487 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016488 esac
16489
Theodore Ts'oe1052142006-10-21 21:46:47 -040016490 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016491$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16492 X"$ac_file" : 'X\(//\)[^/]' \| \
16493 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016495echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16497 s//\1/
16498 q
16499 }
16500 /^X\(\/\/\)[^/].*/{
16501 s//\1/
16502 q
16503 }
16504 /^X\(\/\/\)$/{
16505 s//\1/
16506 q
16507 }
16508 /^X\(\/\).*/{
16509 s//\1/
16510 q
16511 }
16512 s/.*/./; q'`
16513 { as_dir="$ac_dir"
16514 case $as_dir in #(
16515 -*) as_dir=./$as_dir;;
16516 esac
16517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016518 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016519 while :; do
16520 case $as_dir in #(
16521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16522 *) as_qdir=$as_dir;;
16523 esac
16524 as_dirs="'$as_qdir' $as_dirs"
16525 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016526$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16527 X"$as_dir" : 'X\(//\)[^/]' \| \
16528 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016530echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16532 s//\1/
16533 q
16534 }
16535 /^X\(\/\/\)[^/].*/{
16536 s//\1/
16537 q
16538 }
16539 /^X\(\/\/\)$/{
16540 s//\1/
16541 q
16542 }
16543 /^X\(\/\).*/{
16544 s//\1/
16545 q
16546 }
16547 s/.*/./; q'`
16548 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016549 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016550 test -z "$as_dirs" || eval "mkdir $as_dirs"
16551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16552echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016553 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016554 ac_builddir=.
16555
Theodore Ts'oe1052142006-10-21 21:46:47 -040016556case "$ac_dir" in
16557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16558*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016560 # A ".." for each directory in $ac_dir_suffix.
16561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16562 case $ac_top_builddir_sub in
16563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16565 esac ;;
16566esac
16567ac_abs_top_builddir=$ac_pwd
16568ac_abs_builddir=$ac_pwd$ac_dir_suffix
16569# for backward compatibility:
16570ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016571
16572case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016573 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016574 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016575 ac_top_srcdir=$ac_top_builddir_sub
16576 ac_abs_top_srcdir=$ac_pwd ;;
16577 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016578 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016579 ac_top_srcdir=$srcdir
16580 ac_abs_top_srcdir=$srcdir ;;
16581 *) # Relative name.
16582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16583 ac_top_srcdir=$ac_top_build_prefix$srcdir
16584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016585esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016588
Theodore Ts'oe1052142006-10-21 21:46:47 -040016589 case $ac_mode in
16590 :F)
16591 #
16592 # CONFIG_FILE
16593 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016594
16595 case $INSTALL in
16596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016598 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016599_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016600
16601cat >>$CONFIG_STATUS <<\_ACEOF
16602# If the template does not know about datarootdir, expand it.
16603# FIXME: This hack should be removed a few years after 2.60.
16604ac_datarootdir_hack=; ac_datarootdir_seen=
16605
16606case `sed -n '/datarootdir/ {
16607 p
16608 q
16609}
16610/@datadir@/p
16611/@docdir@/p
16612/@infodir@/p
16613/@localedir@/p
16614/@mandir@/p
16615' $ac_file_inputs` in
16616*datarootdir*) ac_datarootdir_seen=yes;;
16617*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16618 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16619echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16620_ACEOF
16621cat >>$CONFIG_STATUS <<_ACEOF
16622 ac_datarootdir_hack='
16623 s&@datadir@&$datadir&g
16624 s&@docdir@&$docdir&g
16625 s&@infodir@&$infodir&g
16626 s&@localedir@&$localedir&g
16627 s&@mandir@&$mandir&g
16628 s&\\\${datarootdir}&$datarootdir&g' ;;
16629esac
16630_ACEOF
16631
16632# Neutralize VPATH when `$srcdir' = `.'.
16633# Shell code in configure.ac might set extrasub.
16634# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016635cat >>$CONFIG_STATUS <<_ACEOF
16636 sed "$ac_vpsub
16637$extrasub
16638_ACEOF
16639cat >>$CONFIG_STATUS <<\_ACEOF
16640:t
16641/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016642s&@configure_input@&$configure_input&;t t
16643s&@top_builddir@&$ac_top_builddir_sub&;t t
16644s&@srcdir@&$ac_srcdir&;t t
16645s&@abs_srcdir@&$ac_abs_srcdir&;t t
16646s&@top_srcdir@&$ac_top_srcdir&;t t
16647s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16648s&@builddir@&$ac_builddir&;t t
16649s&@abs_builddir@&$ac_abs_builddir&;t t
16650s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16651s&@INSTALL@&$ac_INSTALL&;t t
16652$ac_datarootdir_hack
16653" $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 -050016654
Theodore Ts'oe1052142006-10-21 21:46:47 -040016655test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16658 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16659which seems to be undefined. Please make sure it is defined." >&5
16660echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16661which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016662
Theodore Ts'oe1052142006-10-21 21:46:47 -040016663 rm -f "$tmp/stdin"
16664 case $ac_file in
16665 -) cat "$tmp/out"; rm -f "$tmp/out";;
16666 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16667 esac
16668 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016669
16670
Theodore Ts'oe1052142006-10-21 21:46:47 -040016671 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16672echo "$as_me: executing $ac_file commands" >&6;}
16673 ;;
16674 esac
16675
16676
16677 case $ac_file$ac_mode in
16678 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016679 for ac_file in $CONFIG_FILES; do
16680 # Support "outfile[:infile[:infile...]]"
16681 case "$ac_file" in
16682 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016683 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016684 # PO directories have a Makefile.in generated from Makefile.in.in.
16685 case "$ac_file" in */Makefile.in)
16686 # Adjust a relative srcdir.
16687 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16688 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16689 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16690 # In autoconf-2.13 it is called $ac_given_srcdir.
16691 # In autoconf-2.50 it is called $srcdir.
16692 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16693 case "$ac_given_srcdir" in
16694 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16695 /*) top_srcdir="$ac_given_srcdir" ;;
16696 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16697 esac
16698 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16699 rm -f "$ac_dir/POTFILES"
16700 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16701 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 -050016702 POMAKEFILEDEPS="POTFILES.in"
16703 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016704 # on $ac_dir but don't depend on user-specified configuration
16705 # parameters.
16706 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16707 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016708 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016709 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16710 fi
16711 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16712 # Hide the ALL_LINGUAS assigment from automake.
16713 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016714 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16715 else
16716 # The set of available languages was given in configure.in.
16717 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016718 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016719 # Compute POFILES
16720 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16721 # Compute UPDATEPOFILES
16722 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16723 # Compute DUMMYPOFILES
16724 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16725 # Compute GMOFILES
16726 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016727 case "$ac_given_srcdir" in
16728 .) srcdirpre= ;;
16729 *) srcdirpre='$(srcdir)/' ;;
16730 esac
16731 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016732 UPDATEPOFILES=
16733 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016734 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016735 for lang in $ALL_LINGUAS; do
16736 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016737 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16738 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016739 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016740 done
16741 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16742 # environment variable.
16743 INST_LINGUAS=
16744 if test -n "$ALL_LINGUAS"; then
16745 for presentlang in $ALL_LINGUAS; do
16746 useit=no
16747 if test "%UNSET%" != "$LINGUAS"; then
16748 desiredlanguages="$LINGUAS"
16749 else
16750 desiredlanguages="$ALL_LINGUAS"
16751 fi
16752 for desiredlang in $desiredlanguages; do
16753 # Use the presentlang catalog if desiredlang is
16754 # a. equal to presentlang, or
16755 # b. a variant of presentlang (because in this case,
16756 # presentlang can be used as a fallback for messages
16757 # which are not translated in the desiredlang catalog).
16758 case "$desiredlang" in
16759 "$presentlang"*) useit=yes;;
16760 esac
16761 done
16762 if test $useit = yes; then
16763 INST_LINGUAS="$INST_LINGUAS $presentlang"
16764 fi
16765 done
16766 fi
16767 CATALOGS=
16768 if test -n "$INST_LINGUAS"; then
16769 for lang in $INST_LINGUAS; do
16770 CATALOGS="$CATALOGS $lang.gmo"
16771 done
16772 fi
16773 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016774 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 -040016775 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16776 if test -f "$f"; then
16777 case "$f" in
16778 *.orig | *.bak | *~) ;;
16779 *) cat "$f" >> "$ac_dir/Makefile" ;;
16780 esac
16781 fi
16782 done
16783 fi
16784 ;;
16785 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016786 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016787
Theodore Ts'oe1052142006-10-21 21:46:47 -040016788 esac
16789done # for ac_tag
16790
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016791
16792{ (exit 0); exit 0; }
16793_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016794chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016795ac_clean_files=$ac_clean_files_save
16796
16797
16798# configure is writing to config.log, and then calls config.status.
16799# config.status does its own redirection, appending to config.log.
16800# Unfortunately, on DOS this fails, as config.log is still kept open
16801# by configure, so config.status won't be able to write to it; its
16802# output is simply discarded. So we exec the FD to /dev/null,
16803# effectively closing config.log, so it can be properly (re)opened and
16804# appended to by config.status. When coming back to configure, we
16805# need to make the FD available again.
16806if test "$no_create" != yes; then
16807 ac_cs_success=:
16808 ac_config_status_args=
16809 test "$silent" = yes &&
16810 ac_config_status_args="$ac_config_status_args --quiet"
16811 exec 5>/dev/null
16812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16813 exec 5>>config.log
16814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16815 # would make configure fail if this is the last instruction.
16816 $ac_cs_success || { (exit 1); exit 1; }
16817fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016818
Theodore Ts'oee683a12005-02-05 15:53:56 -050016819if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi