blob: 898225899e1852c6b43ab09ba0defad66882dd8e [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400687DEBUGFS_CMT
688IMAGER_CMT
689RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400690FSCK_PROG
691FSCK_MAN
692E2INITRD_PROG
693E2INITRD_MAN
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500694PKG_CONFIG
Theodore Ts'oe1052142006-10-21 21:46:47 -0400695DEVMAPPER_REQ
696DEVMAPPER_PC_LIBS
697DEVMAPPER_LIBS
698STATIC_DEVMAPPER_LIBS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500699STATIC_BLKID_DEVMAPPER_LIBS
Theodore Ts'o5610f992007-12-31 11:16:56 -0500700UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400701GETTEXT_PACKAGE
702PACKAGE
703VERSION
704SET_MAKE
705INSTALL_PROGRAM
706INSTALL_SCRIPT
707INSTALL_DATA
708MKINSTALLDIRS
709USE_NLS
710MSGFMT
711GMSGFMT
712XGETTEXT
713MSGMERGE
714RANLIB
715ALLOCA
716GLIBC21
717HAVE_POSIX_PRINTF
718HAVE_ASPRINTF
719HAVE_SNPRINTF
720HAVE_WPRINTF
721LIBICONV
722LTLIBICONV
723INTLBISON
724BUILD_INCLUDED_LIBINTL
725USE_INCLUDED_LIBINTL
726CATOBJEXT
727DATADIRNAME
728INSTOBJEXT
729GENCAT
730INTLOBJS
731INTL_LIBTOOL_SUFFIX_PREFIX
732INTLLIBS
733LIBINTL
734LTLIBINTL
735POSUB
736BINARY_TYPE
737LN
738LN_S
739MV
740CP
741RM
742CHMOD
743AWK
744SED
745PERL
746LDCONFIG
747AR
748STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530749MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400750BUILD_CC
751SIZEOF_SHORT
752SIZEOF_INT
753SIZEOF_LONG
754SIZEOF_LONG_LONG
755SOCKET_LIB
756DLOPEN_LIB
757UNI_DIFF_OPTS
758LINUX_CMT
759CYGWIN_CMT
760UNIX_CMT
761root_prefix
762root_bindir
763root_sbindir
764root_libdir
765root_sysconfdir
766LDFLAG_STATIC
767SS_DIR
768ET_DIR
769DO_TEST_SUITE
770INTL_FLAGS
771BUILD_CFLAGS
772BUILD_LDFLAGS
773LIBOBJS
774LTLIBOBJS'
775ac_subst_files='MCONFIG
776MAKEFILE_ELF
777MAKEFILE_BSDLIB
778MAKEFILE_PROFILE
779MAKEFILE_CHECKER
780MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400781ASM_TYPES_HEADER
782PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400783 ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400789LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400790CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500791CPP
792PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400793
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000794
795# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500796ac_init_help=
797ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000798# The variables have the same names as the options, with
799# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500800cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000801exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000802no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000811verbose=
812x_includes=NONE
813x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400820# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000829includedir='${prefix}/include'
830oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400831docdir='${datarootdir}/doc/${PACKAGE}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000843for ac_option
844do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400847 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000848 ac_prev=
849 continue
850 fi
851
Theodore Ts'oe1052142006-10-21 21:46:47 -0400852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
Theodore Ts'oe1052142006-10-21 21:46:47 -0400859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000862
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500866 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867
868 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500869 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500871 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882
Theodore Ts'oe1052142006-10-21 21:46:47 -0400883 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500886 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000887
Theodore Ts'oe1052142006-10-21 21:46:47 -0400888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000897 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902 eval enable_$ac_feature=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000913
914 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942
943 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500944 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500946 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000947
Theodore Ts'oe1052142006-10-21 21:46:47 -0400948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500959 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500964 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500969 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500976 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000977
Theodore Ts'oe1052142006-10-21 21:46:47 -0400978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400984 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000994
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001000 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001014 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001015
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001019 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001050 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001051
Theodore Ts'oe1052142006-10-21 21:46:47 -04001052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001081 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001092
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001100 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110
1111 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119
1120 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001127 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001138 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 ;;
1151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001158 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 export $ac_envvar ;;
1160
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001161 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176fi
1177
Theodore Ts'oe1052142006-10-21 21:46:47 -04001178# Be sure to have absolute directory names.
1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001185 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209fi
1210
1211ac_tool_prefix=
1212test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214test "$silent" = yes && exec 6>/dev/null
1215
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001216
Theodore Ts'oe1052142006-10-21 21:46:47 -04001217ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218ac_ls_di=`ls -di .` &&
1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1225
1226
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001255 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001264 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001270 pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295\`configure' configures this package to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001348_ACEOF
1349
1350 cat <<\_ACEOF
1351
1352System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359
1360 cat <<\_ACEOF
1361
1362Optional Features:
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001365 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001380 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001381 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001382 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1385
1386Optional Packages:
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001389 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001390 --with-cc=COMPILER select compiler to use
1391 --with-linker=LINKER select linker to use
1392 --with-ccopts=CCOPTS select compiler command line options
1393 --with-ldopts=LDOPTS select linker command line options
1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search for libintl in includedir and libdir
1401
1402Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001407 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001410 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001411 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
1416_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001417ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001418fi
1419
1420if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001423 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001424 ac_builddir=.
1425
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426case "$ac_dir" in
1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436esac
1437ac_abs_top_builddir=$ac_pwd
1438ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439# for backward compatibility:
1440ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001441
1442case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001443 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001455esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457
Theodore Ts'oe1052142006-10-21 21:46:47 -04001458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466 else
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 done
1471fi
1472
Theodore Ts'oe1052142006-10-21 21:46:47 -04001473test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474if $ac_init_version; then
1475 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001476configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001477generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478
Theodore Ts'oe1052142006-10-21 21:46:47 -04001479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001484 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001485fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001486cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001487This file contains any messages produced by compilers while
1488running configure, to aid debugging if configure makes a mistake.
1489
1490It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001491generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492
1493 $ $0 $@
1494
1495_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001496exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497{
1498cat <<_ASUNAME
1499## --------- ##
1500## Platform. ##
1501## --------- ##
1502
1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511
1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1519
1520_ASUNAME
1521
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1528done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001530
1531} >&5
1532
1533cat >&5 <<_ACEOF
1534
1535
1536## ----------- ##
1537## Core tests. ##
1538## ----------- ##
1539
1540_ACEOF
1541
1542
1543# Keep a trace of the command line.
1544# Strip out --no-create and --no-recursion so they do not pile up.
1545# Strip out --silent because we don't want to record it for future runs.
1546# Also quote any args containing shell meta-characters.
1547# Make two passes to allow for proper duplicate-argument suppression.
1548ac_configure_args=
1549ac_configure_args0=
1550ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551ac_must_keep_next=false
1552for ac_pass in 1 2
1553do
1554 for ac_arg
1555 do
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 esac
1564 case $ac_pass in
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 2)
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1570 else
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1579 ;;
1580 -* ) ac_must_keep_next=true ;;
1581 esac
1582 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001583 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584 ;;
1585 esac
1586 done
1587done
1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591# When interrupted or exit'd, cleanup temporary files, and complete
1592# config.log. We remove comments because anyway the quotes in there
1593# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001594# WARNING: Use '\'' to represent an apostrophe within the trap.
1595# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001596trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1598 {
1599 echo
1600
1601 cat <<\_ASBOX
1602## ---------------- ##
1603## Cache variables. ##
1604## ---------------- ##
1605_ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608(
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 esac |
1634 sort
1635)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636 echo
1637
1638 cat <<\_ASBOX
1639## ----------------- ##
1640## Output variables. ##
1641## ----------------- ##
1642_ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1645 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651 done | sort
1652 echo
1653
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656## ------------------- ##
1657## File substitutions. ##
1658## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659_ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1662 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668 done | sort
1669 echo
1670 fi
1671
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674## ----------- ##
1675## confdefs.h. ##
1676## ----------- ##
1677_ASBOX
1678 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001679 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001680 echo
1681 fi
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1685 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001688 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001689' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692done
1693ac_signal=0
1694
1695# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001696rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001697
1698# Predefined preprocessor variables.
1699
1700cat >>confdefs.h <<_ACEOF
1701#define PACKAGE_NAME "$PACKAGE_NAME"
1702_ACEOF
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define PACKAGE_VERSION "$PACKAGE_VERSION"
1712_ACEOF
1713
1714
1715cat >>confdefs.h <<_ACEOF
1716#define PACKAGE_STRING "$PACKAGE_STRING"
1717_ACEOF
1718
1719
1720cat >>confdefs.h <<_ACEOF
1721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722_ACEOF
1723
1724
1725# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001726# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001727if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731else
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001735shift
1736for ac_site_file
1737do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001738 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001742 . "$ac_site_file"
1743 fi
1744done
1745
1746if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751echo "$as_me: loading cache $cache_file" >&6;}
1752 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001755 esac
1756 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759echo "$as_me: creating cache $cache_file" >&6;}
1760 >$cache_file
1761fi
1762
1763# Check that the precious variables saved in the cache have kept the same
1764# value.
1765ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001766for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001771 case $ac_old_set,$ac_new_set in
1772 set,)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,set)
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1780 ,);;
1781 *)
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 esac
1802 fi
1803done
1804if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001810fi
1811
Theodore Ts'oe1052142006-10-21 21:46:47 -04001812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001828ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834
1835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001836ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001837for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001839 ac_aux_dir=$ac_dir
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1841 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001842 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001843 ac_aux_dir=$ac_dir
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1845 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001846 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001847 ac_aux_dir=$ac_dir
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1849 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001850 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001851done
1852if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001855 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001856fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001857
1858# These three variables are undocumented and unsupported,
1859# and are intended to be withdrawn in a future Autoconf release.
1860# They can cause serious problems if a builder's source tree is in a directory
1861# whose full name contains unusual characters.
1862ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001866
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001867MCONFIG=./MCONFIG
1868
Theodore Ts'o74becf31997-04-26 14:37:06 +00001869BINARY_TYPE=bin
1870E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001874E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001875MONTH=`echo $DATE | awk -F- '{print $2}'`
1876YEAR=`echo $DATE | awk -F- '{print $3}'`
1877
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001878if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001881 E2FSPROGS_YEAR=19$YEAR
1882else
1883 E2FSPROGS_YEAR=20$YEAR
1884fi
1885
1886case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001887Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001899*) echo "Unknown month $MONTH??" ;;
1900esac
1901
Andreas Dilger927566a2006-11-12 19:41:25 -05001902base_ver=`echo $E2FSPROGS_VERSION | \
1903 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001904
1905date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1906
1907case $E2FSPROGS_VERSION in
1908*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001909 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001910 ;;
1911*)
1912 E2FSPROGS_PKGVER="$base_ver"
1913 ;;
1914esac
1915
1916unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001917echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1918echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1919
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001920
1921
1922
Andreas Dilger927566a2006-11-12 19:41:25 -05001923
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001924# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001925$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1926 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1927echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001928 { (exit 1); exit 1; }; }
1929
Theodore Ts'oe1052142006-10-21 21:46:47 -04001930{ echo "$as_me:$LINENO: checking build system type" >&5
1931echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001932if test "${ac_cv_build+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001935 ac_build_alias=$build_alias
1936test "x$ac_build_alias" = x &&
1937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1938test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001939 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001942ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1944echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001945 { (exit 1); exit 1; }; }
1946
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001947fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001948{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1949echo "${ECHO_T}$ac_cv_build" >&6; }
1950case $ac_cv_build in
1951*-*-*) ;;
1952*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1953echo "$as_me: error: invalid value of canonical build" >&2;}
1954 { (exit 1); exit 1; }; };;
1955esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001956build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001957ac_save_IFS=$IFS; IFS='-'
1958set x $ac_cv_build
1959shift
1960build_cpu=$1
1961build_vendor=$2
1962shift; shift
1963# Remember, the first character of IFS is used to create $*,
1964# except with old shells:
1965build_os=$*
1966IFS=$ac_save_IFS
1967case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001968
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001969
Theodore Ts'oe1052142006-10-21 21:46:47 -04001970{ echo "$as_me:$LINENO: checking host system type" >&5
1971echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001972if test "${ac_cv_host+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001975 if test "x$host_alias" = x; then
1976 ac_cv_host=$ac_cv_build
1977else
1978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1980echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001981 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001982fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001983
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001984fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001985{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1986echo "${ECHO_T}$ac_cv_host" >&6; }
1987case $ac_cv_host in
1988*-*-*) ;;
1989*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1990echo "$as_me: error: invalid value of canonical host" >&2;}
1991 { (exit 1); exit 1; }; };;
1992esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001993host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001994ac_save_IFS=$IFS; IFS='-'
1995set x $ac_cv_host
1996shift
1997host_cpu=$1
1998host_vendor=$2
1999shift; shift
2000# Remember, the first character of IFS is used to create $*,
2001# except with old shells:
2002host_os=$*
2003IFS=$ac_save_IFS
2004case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002005
2006
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002007
Theodore Ts'oe1052142006-10-21 21:46:47 -04002008# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002009if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002010 withval=$with_diet_libc; CC="diet cc -nostdinc"
2011{ 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
3765else
3766 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003767fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003768
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769
3770# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003771if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003773else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003774 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003775fi
3776# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003777if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003778 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003779then
3780 MAINTAINER_CMT=#
3781 echo "Disabling maintainer mode"
3782else
3783 MAINTAINER_CMT=
3784 echo "Enabling maintainer mode"
3785fi
3786
3787else
3788 MAINTAINER_CMT=#
3789echo "Disabling maintainer mode by default"
3790
Theodore Ts'oe1052142006-10-21 21:46:47 -04003791fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003792
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793
3794# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003795if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003796 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003797then
3798 echo "Disabling compression support"
3799else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003800 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003801#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003802_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003803
3804 echo "Enabling compression support"
3805 echo "WARNING: Compression support is experimental"
3806fi
3807
3808else
3809 echo "Disabling compression support by default"
3810
Theodore Ts'oe1052142006-10-21 21:46:47 -04003811fi
3812
3813# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003814if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003815 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003816then
3817 HTREE_CMT=#
3818 echo "Disabling htree directory support"
3819else
3820 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003821 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003822#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003823_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003824
3825 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003826fi
3827
3828else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003829 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003830cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003831#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003832_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003833
3834echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003835
Theodore Ts'oe1052142006-10-21 21:46:47 -04003836fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003837
Theodore Ts'oe1052142006-10-21 21:46:47 -04003838
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003839E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003840# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003841if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003842 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003843then
3844 ELF_CMT=#
3845 MAKEFILE_ELF=/dev/null
3846 echo "Disabling ELF shared libraries"
3847else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003848 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003849 ELF_CMT=
3850 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003851 case "$host_os" in
3852 solaris2.*)
3853 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3854 ;;
3855 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003856 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003857 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003858 echo "Enabling ELF shared libraries"
3859fi
3860
3861else
3862 MAKEFILE_ELF=/dev/null
3863ELF_CMT=#
3864echo "Disabling ELF shared libraries by default"
3865
Theodore Ts'oe1052142006-10-21 21:46:47 -04003866fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003867
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003868
Theodore Ts'oe1052142006-10-21 21:46:47 -04003869
3870# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003871if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003872 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003873then
3874 BSDLIB_CMT=#
3875 MAKEFILE_BSDLIB=/dev/null
3876 echo "Disabling BSD shared libraries"
3877else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003878 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003879 BSDLIB_CMT=
3880 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003881 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003882 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003883 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003884 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3885 LIB_EXT=.dylib
3886 ;;
3887 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003888 echo "Enabling BSD shared libraries"
3889fi
3890
3891else
3892 MAKEFILE_BSDLIB=/dev/null
3893BSDLIB_CMT=#
3894echo "Disabling BSD shared libraries by default"
3895
Theodore Ts'oe1052142006-10-21 21:46:47 -04003896fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003897
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003898
Theodore Ts'oe1052142006-10-21 21:46:47 -04003899
3900# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003901if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003902 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003903then
3904 PROFILE_CMT=#
3905 MAKEFILE_PROFILE=/dev/null
3906 echo "Disabling profiling libraries"
3907else
3908 PROFILE_CMT=
3909 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3910 PROFILED_LIB_EXT=_p.a
3911 echo "Building profiling libraries"
3912fi
3913
3914else
3915 PROFILE_CMT=#
3916MAKEFILE_PROFILE=/dev/null
3917echo "Disabling profiling libraries by default"
3918
Theodore Ts'oe1052142006-10-21 21:46:47 -04003919fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003920
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003921
Theodore Ts'oe1052142006-10-21 21:46:47 -04003922
3923# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003924if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003925 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003926then
3927 CHECKER_CMT=#
3928 MAKEFILE_CHECKER=/dev/null
3929 echo "Disabling checker libraries"
3930else
3931 CHECKER_CMT=
3932 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3933 echo "Building checker libraries"
3934fi
3935
3936else
3937 CHECKER_CMT=#
3938MAKEFILE_CHECKER=/dev/null
3939echo "Disabling checker libraries by default"
3940
Theodore Ts'oe1052142006-10-21 21:46:47 -04003941fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003942
3943
3944
3945
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003946
Theodore Ts'oe1052142006-10-21 21:46:47 -04003947
3948# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003949if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003950 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003951then
3952 echo "Disabling journal debugging"
3953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003954 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003955#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003956_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003957
3958 echo "Enabling journal debugging"
3959fi
3960
3961else
3962 echo "Disabling journal debugging by default"
3963
Theodore Ts'oe1052142006-10-21 21:46:47 -04003964fi
3965
3966# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003967if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003968 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003969then
3970 echo "Disabling blkid debugging"
3971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003972 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003973#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003974_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003975
3976 echo "Enabling blkid debugging"
3977fi
3978
3979else
3980 echo "Disabling blkid debugging by default"
3981
Theodore Ts'oe1052142006-10-21 21:46:47 -04003982fi
3983
3984# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003985if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003986 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003987then
3988 echo "Disabling testio debugging"
3989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003990 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003991#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003992_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003993
3994 echo "Enabling testio debugging"
3995fi
3996
3997else
3998 echo "Disabling testio debugging by default"
3999
Theodore Ts'oe1052142006-10-21 21:46:47 -04004000fi
4001
Theodore Ts'oe1052142006-10-21 21:46:47 -04004002# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004003if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004004 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004005then
4006 echo "Disabling debugfs support"
4007 DEBUGFS_CMT="#"
4008else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004009 DEBUGFS_CMT=
4010 echo "Enabling debugfs support"
4011fi
4012
4013else
4014 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004015DEBUGFS_CMT=
4016
Theodore Ts'oe1052142006-10-21 21:46:47 -04004017fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004018
Theodore Ts'oe1052142006-10-21 21:46:47 -04004019
4020# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004021if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004022 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004023then
4024 echo "Disabling e2image support"
4025 IMAGER_CMT="#"
4026else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004027 IMAGER_CMT=
4028 echo "Enabling e2image support"
4029fi
4030
4031else
4032 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004033IMAGER_CMT=
4034
Theodore Ts'oe1052142006-10-21 21:46:47 -04004035fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004036
Theodore Ts'oe1052142006-10-21 21:46:47 -04004037
4038# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004039if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004040 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004041then
4042 echo "Disabling e2resize support"
4043 RESIZER_CMT="#"
4044else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004045 RESIZER_CMT=
4046 echo "Enabling e2resize support"
4047fi
4048
4049else
4050 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004051RESIZER_CMT=
4052
Theodore Ts'oe1052142006-10-21 21:46:47 -04004053fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004054
Theodore Ts'oe1052142006-10-21 21:46:47 -04004055
Theodore Ts'oe1052142006-10-21 21:46:47 -04004056# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004057if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004058 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004059then
4060 FSCK_PROG='' FSCK_MAN=''
4061 echo "Not building fsck wrapper"
4062else
4063 FSCK_PROG=fsck FSCK_MAN=fsck.8
4064 echo "Building fsck wrapper"
4065fi
4066
4067else
4068 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004069 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004070 FSCK_PROG='' FSCK_MAN=''
4071 echo "Not building fsck wrapper by default"
4072 ;;
4073 *)
4074 FSCK_PROG=fsck FSCK_MAN=fsck.8
4075 echo "Building fsck wrapper by default"
4076esac
4077
Theodore Ts'oe1052142006-10-21 21:46:47 -04004078fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004079
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004080
Theodore Ts'oe1052142006-10-21 21:46:47 -04004081
4082# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004083if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004084 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004085then
4086 E2INITRD_PROG='' E2INITRD_MAN=''
4087 echo "Not building e2initrd helper"
4088else
4089 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4090 echo "Building e2initrd helper"
4091fi
4092
4093else
4094 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4095echo "Building e2initrd helper by default"
4096
Theodore Ts'oe1052142006-10-21 21:46:47 -04004097fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004098
4099
Theodore Ts'oe1052142006-10-21 21:46:47 -04004100
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004101STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004102# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004103if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004104 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004105then
4106 echo "Disabling device-mapper support"
4107 DEVMAPPER_REQ=''
4108 DEVMAPPER_LIBS=''
4109 STATIC_DEVMAPPER_LIBS=''
4110else
4111 cat >>confdefs.h <<\_ACEOF
4112#define HAVE_DEVMAPPER 1
4113_ACEOF
4114
4115 echo "Enabling device-mapper support"
4116
Karel Zak4db2f592006-03-08 14:17:28 -05004117
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004118
4119if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4122set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4125if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 case $PKG_CONFIG in
4129 [\\/]* | ?:[\\/]*)
4130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4131 ;;
4132 *)
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145done
4146IFS=$as_save_IFS
4147
4148 ;;
4149esac
4150fi
4151PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4152if test -n "$PKG_CONFIG"; then
4153 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4154echo "${ECHO_T}$PKG_CONFIG" >&6; }
4155else
4156 { echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6; }
4158fi
4159
4160
4161fi
4162if test -z "$ac_cv_path_PKG_CONFIG"; then
4163 ac_pt_PKG_CONFIG=$PKG_CONFIG
4164 # Extract the first word of "pkg-config", so it can be a program name with args.
4165set dummy pkg-config; ac_word=$2
4166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171 case $ac_pt_PKG_CONFIG in
4172 [\\/]* | ?:[\\/]*)
4173 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4174 ;;
4175 *)
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188done
4189IFS=$as_save_IFS
4190
4191 ;;
4192esac
4193fi
4194ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4195if test -n "$ac_pt_PKG_CONFIG"; then
4196 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4197echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4198else
4199 { echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6; }
4201fi
4202
4203 if test "x$ac_pt_PKG_CONFIG" = x; then
4204 PKG_CONFIG=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207yes:)
4208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209whose name does not start with the host triplet. If you think this
4210configuration is useful to you, please write to autoconf@gnu.org." >&5
4211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212whose name does not start with the host triplet. If you think this
4213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214ac_tool_warned=yes ;;
4215esac
4216 PKG_CONFIG=$ac_pt_PKG_CONFIG
4217 fi
4218else
4219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4220fi
4221
4222fi
4223if test -n "$PKG_CONFIG"; then
4224 _pkg_min_version=0.9.0
4225 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4226echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4227 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4228 { echo "$as_me:$LINENO: result: yes" >&5
4229echo "${ECHO_T}yes" >&6; }
4230 else
4231 { echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6; }
4233 PKG_CONFIG=""
4234 fi
4235
4236fi
4237
4238 if test -z "$PKG_CONFIG"; then
4239 echo "pkg-config not installed; please install it."
4240 exit 1;
4241 fi
4242
4243 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4244echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4245if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248 ac_check_lib_save_LIBS=$LIBS
4249LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4250cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256
4257/* Override any GCC internal prototype to avoid an error.
4258 Use char because int might match the return type of a GCC
4259 builtin and then its argument prototype would still apply. */
4260#ifdef __cplusplus
4261extern "C"
4262#endif
4263char dm_tree_create ();
4264int
4265main ()
4266{
4267return dm_tree_create ();
4268 ;
4269 return 0;
4270}
4271_ACEOF
4272rm -f conftest.$ac_objext conftest$ac_exeext
4273if { (ac_try="$ac_link"
4274case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest$ac_exeext &&
4289 $as_test_x conftest$ac_exeext; then
4290 ac_cv_lib_devmapper_dm_tree_create=yes
4291else
4292 echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ac_cv_lib_devmapper_dm_tree_create=no
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext conftest.$ac_ext
4300LIBS=$ac_check_lib_save_LIBS
4301fi
4302{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4303echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4304if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4305 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4306 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4307 DEVMAPPER_REQ="devmapper";
4308 DEVMAPPER_PC_LIBS="-ldevmapper"
4309else
4310 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4311echo "$as_me: error: device-mapper library not found" >&2;}
4312 { (exit 1); exit 1; }; }
4313fi
4314
4315 # work around stupid devmapper.pc bug in Debian
4316 case "$STATIC_DEVMAPPER_LIBS" in
4317 *pthread*)
4318 ;;
4319 *)
4320 echo "Working around Debian bug #390243..."
4321 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4322 ;;
4323 esac
4324 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4325 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4327 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004328fi
4329
4330else
4331 echo "Disabling device-mapper support by default"
4332
Theodore Ts'oe1052142006-10-21 21:46:47 -04004333fi
4334
Karel Zak4db2f592006-03-08 14:17:28 -05004335
4336
4337
4338
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004339
Theodore Ts'o32493942007-12-31 10:45:01 -05004340# Check whether --enable-tls was given.
4341if test "${enable_tls+set}" = set; then
4342 enableval=$enable_tls; if test "$enableval" = "no"
4343then
4344 try_tls=""
4345 echo "Disabling thread local support"
4346else
4347 try_tls="yes"
4348 echo "Enabling thread local support"
4349fi
4350
4351else
4352 try_tls="yes"
4353echo "Try using thread local support by default"
4354
4355fi
4356
4357if test "$try_tls" = "yes"
4358then
4359
4360 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4361echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4362 if test "${ac_cv_tls+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365
4366 ax_tls_keywords="__thread __declspec(thread) none"
4367 for ax_tls_keyword in $ax_tls_keywords; do
4368 case $ax_tls_keyword in
4369 none) ac_cv_tls=none ; break ;;
4370 *)
4371 cat >conftest.$ac_ext <<_ACEOF
4372/* confdefs.h. */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h. */
4377#include <stdlib.h>
4378 static void
4379 foo(void) {
4380 static $ax_tls_keyword int bar;
4381 exit(1);
4382 }
4383int
4384main ()
4385{
4386
4387 ;
4388 return 0;
4389}
4390_ACEOF
4391rm -f conftest.$ac_objext
4392if { (ac_try="$ac_compile"
4393case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396esac
4397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_compile") 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
4408 ac_cv_tls=$ax_tls_keyword ; break
4409else
4410 echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ac_cv_tls=none
4414
4415fi
4416
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 esac
4419 done
4420
4421fi
4422
4423
4424 if test "$ac_cv_tls" != "none"; then
4425
4426cat >>confdefs.h <<_ACEOF
4427#define TLS $ac_cv_tls
4428_ACEOF
4429
4430 fi
4431 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4432echo "${ECHO_T}$ac_cv_tls" >&6; }
4433
4434fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004435# Check whether --enable-uuidd was given.
4436if test "${enable_uuidd+set}" = set; then
4437 enableval=$enable_uuidd; if test "$enableval" = "no"
4438then
4439 echo "Not building uuidd"
4440 UUIDD_CMT="#"
4441else
4442 cat >>confdefs.h <<\_ACEOF
4443#define USE_UUIDD 1
4444_ACEOF
4445
4446 UUIDD_CMT=""
4447 echo "Building uuidd"
4448fi
4449
4450else
4451 cat >>confdefs.h <<\_ACEOF
4452#define USE_UUIDD 1
4453_ACEOF
4454
4455UUIDD_CMT=""
4456echo "Building uuidd by default"
4457
4458fi
4459
4460
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004461MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004463GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004464PACKAGE=e2fsprogs
4465VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004466VERSION=0.14.1
4467cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004468#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004469_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004471cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004472#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004473_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004474
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004475
4476
4477
4478
Theodore Ts'oe1052142006-10-21 21:46:47 -04004479{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4481set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4482if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004483 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004484else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004485 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004486SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004487all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004488 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004489_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004490# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004491case `${MAKE-make} -f conftest.make 2>/dev/null` in
4492 *@@@%%%=?*=@@@%%%*)
4493 eval ac_cv_prog_make_${ac_make}_set=yes;;
4494 *)
4495 eval ac_cv_prog_make_${ac_make}_set=no;;
4496esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004497rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004499if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4500 { echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004502 SET_MAKE=
4503else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004504 { echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004506 SET_MAKE="MAKE=${MAKE-make}"
4507fi
4508
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004509# Find a good install program. We prefer a C program (faster),
4510# so one script is as good as another. But avoid the broken or
4511# incompatible versions:
4512# SysV /etc/install, /usr/sbin/install
4513# SunOS /usr/etc/install
4514# IRIX /sbin/install
4515# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004516# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004520# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004521# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004522{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004524if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004525if test "${ac_cv_path_install+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004527else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 # Account for people who put trailing slashes in PATH elements.
4534case $as_dir/ in
4535 ./ | .// | /cC/* | \
4536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4538 /usr/ucb/* ) ;;
4539 *)
4540 # OSF1 and SCO ODT 3.0 have their own names for install.
4541 # Don't use installbsd from OSF since it installs stuff as root
4542 # by default.
4543 for ac_prog in ginstall scoinst install; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004545 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 -04004546 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004548 # AIX install. It has an incompatible calling convention.
4549 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004550 elif test $ac_prog = install &&
4551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4552 # program-specific install script used by HP pwplus--don't use.
4553 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004554 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4556 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004557 fi
4558 fi
4559 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004560 done
4561 ;;
4562esac
4563done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004564IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004565
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004566
4567fi
4568 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004569 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004570 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004571 # As a last resort, use the slow shell script. Don't cache a
4572 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004573 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004574 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004576 fi
4577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004578{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4579echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004580
4581# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582# It thinks the first close brace ends the variable substitution.
4583test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004585test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004586
4587test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4588
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004590 MKINSTALLDIRS=
4591 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004592 case "$ac_aux_dir" in
4593 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4594 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4595 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004596 fi
4597 if test -z "$MKINSTALLDIRS"; then
4598 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4599 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004601
4602
Theodore Ts'oe1052142006-10-21 21:46:47 -04004603 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4604echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4605 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004606if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004607 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004608else
4609 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004610fi
4611
4612 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4613echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004614
4615
4616
4617
4618
4619
4620# Prepare PATH_SEPARATOR.
4621# The user is always right.
4622if test "${PATH_SEPARATOR+set}" != set; then
4623 echo "#! /bin/sh" >conf$$.sh
4624 echo "exit 0" >>conf$$.sh
4625 chmod +x conf$$.sh
4626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4627 PATH_SEPARATOR=';'
4628 else
4629 PATH_SEPARATOR=:
4630 fi
4631 rm -f conf$$.sh
4632fi
4633
4634# Find out how to test for executable files. Don't use a zero-byte file,
4635# as systems may use methods other than mode bits to determine executability.
4636cat >conf$$.file <<_ASEOF
4637#! /bin/sh
4638exit 0
4639_ASEOF
4640chmod +x conf$$.file
4641if test -x conf$$.file >/dev/null 2>&1; then
4642 ac_executable_p="test -x"
4643else
4644 ac_executable_p="test -f"
4645fi
4646rm -f conf$$.file
4647
4648# Extract the first word of "msgfmt", so it can be a program name with args.
4649set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004652if test "${ac_cv_path_MSGFMT+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 case "$MSGFMT" in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH; do
4662 IFS="$ac_save_IFS"
4663 test -z "$ac_dir" && ac_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4667 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4668 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4669 break 2
4670 fi
4671 fi
4672 done
4673 done
4674 IFS="$ac_save_IFS"
4675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4676 ;;
4677esac
4678fi
4679MSGFMT="$ac_cv_path_MSGFMT"
4680if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004681 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4682echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004683else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004684 { echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004686fi
4687
4688 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4689set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004692if test "${ac_cv_path_GMSGFMT+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case $GMSGFMT in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004706 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 -05004707 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004713IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004714
4715 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4716 ;;
4717esac
4718fi
4719GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004720if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004721 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4722echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004723else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004724 { echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004726fi
4727
4728
4729
Theodore Ts'oe1052142006-10-21 21:46:47 -04004730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004731# Prepare PATH_SEPARATOR.
4732# The user is always right.
4733if test "${PATH_SEPARATOR+set}" != set; then
4734 echo "#! /bin/sh" >conf$$.sh
4735 echo "exit 0" >>conf$$.sh
4736 chmod +x conf$$.sh
4737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4738 PATH_SEPARATOR=';'
4739 else
4740 PATH_SEPARATOR=:
4741 fi
4742 rm -f conf$$.sh
4743fi
4744
4745# Find out how to test for executable files. Don't use a zero-byte file,
4746# as systems may use methods other than mode bits to determine executability.
4747cat >conf$$.file <<_ASEOF
4748#! /bin/sh
4749exit 0
4750_ASEOF
4751chmod +x conf$$.file
4752if test -x conf$$.file >/dev/null 2>&1; then
4753 ac_executable_p="test -x"
4754else
4755 ac_executable_p="test -f"
4756fi
4757rm -f conf$$.file
4758
4759# Extract the first word of "xgettext", so it can be a program name with args.
4760set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004763if test "${ac_cv_path_XGETTEXT+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766 case "$XGETTEXT" in
4767 [\\/]* | ?:[\\/]*)
4768 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4769 ;;
4770 *)
4771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
4773 IFS="$ac_save_IFS"
4774 test -z "$ac_dir" && ac_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4777 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4778 (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
4779 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4780 break 2
4781 fi
4782 fi
4783 done
4784 done
4785 IFS="$ac_save_IFS"
4786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4787 ;;
4788esac
4789fi
4790XGETTEXT="$ac_cv_path_XGETTEXT"
4791if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004792 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4793echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004794else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004795 { echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004797fi
4798
4799 rm -f messages.po
4800
4801
4802# Prepare PATH_SEPARATOR.
4803# The user is always right.
4804if test "${PATH_SEPARATOR+set}" != set; then
4805 echo "#! /bin/sh" >conf$$.sh
4806 echo "exit 0" >>conf$$.sh
4807 chmod +x conf$$.sh
4808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4809 PATH_SEPARATOR=';'
4810 else
4811 PATH_SEPARATOR=:
4812 fi
4813 rm -f conf$$.sh
4814fi
4815
4816# Find out how to test for executable files. Don't use a zero-byte file,
4817# as systems may use methods other than mode bits to determine executability.
4818cat >conf$$.file <<_ASEOF
4819#! /bin/sh
4820exit 0
4821_ASEOF
4822chmod +x conf$$.file
4823if test -x conf$$.file >/dev/null 2>&1; then
4824 ac_executable_p="test -x"
4825else
4826 ac_executable_p="test -f"
4827fi
4828rm -f conf$$.file
4829
4830# Extract the first word of "msgmerge", so it can be a program name with args.
4831set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004834if test "${ac_cv_path_MSGMERGE+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837 case "$MSGMERGE" in
4838 [\\/]* | ?:[\\/]*)
4839 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4840 ;;
4841 *)
4842 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4843 for ac_dir in $PATH; do
4844 IFS="$ac_save_IFS"
4845 test -z "$ac_dir" && ac_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4848 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4849 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4850 break 2
4851 fi
4852 fi
4853 done
4854 done
4855 IFS="$ac_save_IFS"
4856 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4857 ;;
4858esac
4859fi
4860MSGMERGE="$ac_cv_path_MSGMERGE"
4861if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004862 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4863echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004864else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004865 { echo "$as_me:$LINENO: result: no" >&5
4866echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004867fi
4868
4869
4870 if test "$GMSGFMT" != ":"; then
4871 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4872 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4873 : ;
4874 else
4875 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004876 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4877echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004878 GMSGFMT=":"
4879 fi
4880 fi
4881
4882 if test "$XGETTEXT" != ":"; then
4883 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4884 (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
4885 : ;
4886 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004887 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4888echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004889 XGETTEXT=":"
4890 fi
4891 rm -f messages.po
4892 fi
4893
Theodore Ts'oe1052142006-10-21 21:46:47 -04004894 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004895
4896
4897if test -n "$ac_tool_prefix"; then
4898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4899set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004902if test "${ac_cv_prog_RANLIB+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004904else
4905 if test -n "$RANLIB"; then
4906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004914 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 -05004915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004920done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004921IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004922
4923fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004924fi
4925RANLIB=$ac_cv_prog_RANLIB
4926if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004927 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4928echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004929else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004930 { echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004932fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004933
Theodore Ts'oe1052142006-10-21 21:46:47 -04004934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004935fi
4936if test -z "$ac_cv_prog_RANLIB"; then
4937 ac_ct_RANLIB=$RANLIB
4938 # Extract the first word of "ranlib", so it can be a program name with args.
4939set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004942if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
4945 if test -n "$ac_ct_RANLIB"; then
4946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004954 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 -05004955 ac_cv_prog_ac_ct_RANLIB="ranlib"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004961IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004963fi
4964fi
4965ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4966if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4968echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004969else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004970 { echo "$as_me:$LINENO: result: no" >&5
4971echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004972fi
4973
Theodore Ts'oe1052142006-10-21 21:46:47 -04004974 if test "x$ac_ct_RANLIB" = x; then
4975 RANLIB=":"
4976 else
4977 case $cross_compiling:$ac_tool_warned in
4978yes:)
4979{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4980whose name does not start with the host triplet. If you think this
4981configuration is useful to you, please write to autoconf@gnu.org." >&5
4982echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4983whose name does not start with the host triplet. If you think this
4984configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4985ac_tool_warned=yes ;;
4986esac
4987 RANLIB=$ac_ct_RANLIB
4988 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004989else
4990 RANLIB="$ac_cv_prog_RANLIB"
4991fi
4992
4993
Theodore Ts'oe1052142006-10-21 21:46:47 -04004994 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4995echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004996if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999 ac_check_lib_save_LIBS=$LIBS
5000LIBS="-lcposix $LIBS"
5001cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h. */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h. */
5007
Theodore Ts'oe1052142006-10-21 21:46:47 -04005008/* Override any GCC internal prototype to avoid an error.
5009 Use char because int might match the return type of a GCC
5010 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005011#ifdef __cplusplus
5012extern "C"
5013#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005014char strerror ();
5015int
5016main ()
5017{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005018return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005019 ;
5020 return 0;
5021}
5022_ACEOF
5023rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005024if { (ac_try="$ac_link"
5025case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028esac
5029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest$ac_exeext &&
5040 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005041 ac_cv_lib_cposix_strerror=yes
5042else
5043 echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
Theodore Ts'oe1052142006-10-21 21:46:47 -04005046 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050 conftest$ac_exeext conftest.$ac_ext
5051LIBS=$ac_check_lib_save_LIBS
5052fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005053{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5054echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005055if test $ac_cv_lib_cposix_strerror = yes; then
5056 LIBS="$LIBS -lcposix"
5057fi
5058
5059
5060
Theodore Ts'oe1052142006-10-21 21:46:47 -04005061{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5062echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005063if test "${ac_cv_c_const+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h. */
5072
5073int
5074main ()
5075{
5076/* FIXME: Include the comments suggested by Paul. */
5077#ifndef __cplusplus
5078 /* Ultrix mips cc rejects this. */
5079 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005080 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005081 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005082 char const *const *pcpcc;
5083 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084 /* NEC SVR4.0.2 mips cc rejects this. */
5085 struct point {int x, y;};
5086 static struct point const zero = {0,0};
5087 /* AIX XL C 1.02.0.0 rejects this.
5088 It does not let you subtract one const X* pointer from another in
5089 an arm of an if-expression whose if-part is not a constant
5090 expression */
5091 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005092 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005093 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005094 ++pcpcc;
5095 ppc = (char**) pcpcc;
5096 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005097 { /* SCO 3.2v4 cc rejects this. */
5098 char *t;
5099 char const *s = 0 ? (char *) 0 : (char const *) 0;
5100
5101 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005102 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005103 }
5104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5105 int x[] = {25, 17};
5106 const int *foo = &x[0];
5107 ++foo;
5108 }
5109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5110 typedef const int *iptr;
5111 iptr p = 0;
5112 ++p;
5113 }
5114 { /* AIX XL C 1.02.0.0 rejects this saying
5115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5116 struct s { int j; const int *ap[3]; };
5117 struct s *b; b->j = 5;
5118 }
5119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5120 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005121 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005122 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005123 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005124#endif
5125
5126 ;
5127 return 0;
5128}
5129_ACEOF
5130rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005131if { (ac_try="$ac_compile"
5132case "(($ac_try" in
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5135esac
5136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005143 (exit $ac_status); } && {
5144 test -z "$ac_c_werror_flag" ||
5145 test ! -s conftest.err
5146 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005147 ac_cv_c_const=yes
5148else
5149 echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
Theodore Ts'oe1052142006-10-21 21:46:47 -04005152 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005153fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005154
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005156fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005157{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5158echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005159if test $ac_cv_c_const = no; then
5160
5161cat >>confdefs.h <<\_ACEOF
5162#define const
5163_ACEOF
5164
5165fi
5166
5167
Theodore Ts'oe1052142006-10-21 21:46:47 -04005168 { echo "$as_me:$LINENO: checking for signed" >&5
5169echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005170if test "${bh_cv_c_signed+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173 cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h. */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h. */
5179
5180int
5181main ()
5182{
5183signed char x;
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005189if { (ac_try="$ac_compile"
5190case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193esac
5194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005205 bh_cv_c_signed=yes
5206else
5207 echo "$as_me: failed program was:" >&5
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
Theodore Ts'oe1052142006-10-21 21:46:47 -04005210 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005212
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005214fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005215{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5216echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005217 if test $bh_cv_c_signed = no; then
5218
5219cat >>confdefs.h <<\_ACEOF
5220#define signed
5221_ACEOF
5222
5223 fi
5224
Theodore Ts'oe1052142006-10-21 21:46:47 -04005225{ echo "$as_me:$LINENO: checking for inline" >&5
5226echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005227if test "${ac_cv_c_inline+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 ac_cv_c_inline=no
5231for ac_kw in inline __inline__ __inline; do
5232 cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h. */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h. */
5238#ifndef __cplusplus
5239typedef int foo_t;
5240static $ac_kw foo_t static_foo () {return 0; }
5241$ac_kw foo_t foo () {return 0; }
5242#endif
5243
5244_ACEOF
5245rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005246if { (ac_try="$ac_compile"
5247case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250esac
5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005262 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
Theodore Ts'oe1052142006-10-21 21:46:47 -04005267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005269
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005272done
5273
5274fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005275{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5276echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005277
5278
5279case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005280 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005281 *)
5282 case $ac_cv_c_inline in
5283 no) ac_val=;;
5284 *) ac_val=$ac_cv_c_inline;;
5285 esac
5286 cat >>confdefs.h <<_ACEOF
5287#ifndef __cplusplus
5288#define inline $ac_val
5289#endif
5290_ACEOF
5291 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005292esac
5293
Theodore Ts'oe1052142006-10-21 21:46:47 -04005294{ echo "$as_me:$LINENO: checking for off_t" >&5
5295echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005296if test "${ac_cv_type_off_t+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005299 cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h. */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h. */
5305$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005306typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005307int
5308main ()
5309{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005310if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005311 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005312if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005313 return 0;
5314 ;
5315 return 0;
5316}
5317_ACEOF
5318rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005319if { (ac_try="$ac_compile"
5320case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323esac
5324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005335 ac_cv_type_off_t=yes
5336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005337 echo "$as_me: failed program was:" >&5
5338sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005339
Theodore Ts'oe1052142006-10-21 21:46:47 -04005340 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005342
5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005345{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5346echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005347if test $ac_cv_type_off_t = yes; then
5348 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005350
5351cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005352#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005353_ACEOF
5354
5355fi
5356
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357{ echo "$as_me:$LINENO: checking for size_t" >&5
5358echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005359if test "${ac_cv_type_size_t+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362 cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h. */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h. */
5368$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005369typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005370int
5371main ()
5372{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005373if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005374 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005376 return 0;
5377 ;
5378 return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005382if { (ac_try="$ac_compile"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005398 ac_cv_type_size_t=yes
5399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005400 echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
Theodore Ts'oe1052142006-10-21 21:46:47 -04005403 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005405
5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005408{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5409echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005410if test $ac_cv_type_size_t = yes; then
5411 :
5412else
5413
5414cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005415#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005416_ACEOF
5417
5418fi
5419
5420
Theodore Ts'oe1052142006-10-21 21:46:47 -04005421 { echo "$as_me:$LINENO: checking for long long" >&5
5422echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005423if test "${ac_cv_type_long_long+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426 cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432long long ll = 1LL; int i = 63;
5433int
5434main ()
5435{
5436long long llmax = (long long) -1;
5437 return ll << i | ll >> i | llmax / ll | llmax % ll;
5438 ;
5439 return 0;
5440}
5441_ACEOF
5442rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005443if { (ac_try="$ac_link"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005460 ac_cv_type_long_long=yes
5461else
5462 echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
Theodore Ts'oe1052142006-10-21 21:46:47 -04005465 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005466fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005467
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005469 conftest$ac_exeext conftest.$ac_ext
5470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5472echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473 if test $ac_cv_type_long_long = yes; then
5474
5475cat >>confdefs.h <<\_ACEOF
5476#define HAVE_LONG_LONG 1
5477_ACEOF
5478
5479 fi
5480
5481
Theodore Ts'oe1052142006-10-21 21:46:47 -04005482 { echo "$as_me:$LINENO: checking for long double" >&5
5483echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484if test "${gt_cv_c_long_double+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486else
5487 if test "$GCC" = yes; then
5488 gt_cv_c_long_double=yes
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496
5497 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5498 long double foo = 0.0;
5499 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5500 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5501
5502int
5503main ()
5504{
5505
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005511if { (ac_try="$ac_compile"
5512case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005527 gt_cv_c_long_double=yes
5528else
5529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
Theodore Ts'oe1052142006-10-21 21:46:47 -04005532 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005533fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005534
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005536 fi
5537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005538{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5539echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005540 if test $gt_cv_c_long_double = yes; then
5541
5542cat >>confdefs.h <<\_ACEOF
5543#define HAVE_LONG_DOUBLE 1
5544_ACEOF
5545
5546 fi
5547
5548
Theodore Ts'oe1052142006-10-21 21:46:47 -04005549 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5550echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005551if test "${gt_cv_c_wchar_t+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554 cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h. */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h. */
5560#include <stddef.h>
5561 wchar_t foo = (wchar_t)'\0';
5562int
5563main ()
5564{
5565
5566 ;
5567 return 0;
5568}
5569_ACEOF
5570rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005571if { (ac_try="$ac_compile"
5572case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005587 gt_cv_c_wchar_t=yes
5588else
5589 echo "$as_me: failed program was:" >&5
5590sed 's/^/| /' conftest.$ac_ext >&5
5591
Theodore Ts'oe1052142006-10-21 21:46:47 -04005592 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005594
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005596fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005597{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5598echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005599 if test $gt_cv_c_wchar_t = yes; then
5600
5601cat >>confdefs.h <<\_ACEOF
5602#define HAVE_WCHAR_T 1
5603_ACEOF
5604
5605 fi
5606
5607
Theodore Ts'oe1052142006-10-21 21:46:47 -04005608 { echo "$as_me:$LINENO: checking for wint_t" >&5
5609echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005610if test "${gt_cv_c_wint_t+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613 cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h. */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h. */
5619#include <wchar.h>
5620 wint_t foo = (wchar_t)'\0';
5621int
5622main ()
5623{
5624
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005630if { (ac_try="$ac_compile"
5631case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646 gt_cv_c_wint_t=yes
5647else
5648 echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
Theodore Ts'oe1052142006-10-21 21:46:47 -04005651 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005653
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005655fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005656{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5657echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005658 if test $gt_cv_c_wint_t = yes; then
5659
5660cat >>confdefs.h <<\_ACEOF
5661#define HAVE_WINT_T 1
5662_ACEOF
5663
5664 fi
5665
5666
Theodore Ts'oe1052142006-10-21 21:46:47 -04005667 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5668echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 cat >conftest.$ac_ext <<_ACEOF
5673/* confdefs.h. */
5674_ACEOF
5675cat confdefs.h >>conftest.$ac_ext
5676cat >>conftest.$ac_ext <<_ACEOF
5677/* end confdefs.h. */
5678#include <sys/types.h>
5679#include <inttypes.h>
5680int
5681main ()
5682{
5683uintmax_t i = (uintmax_t) -1;
5684 ;
5685 return 0;
5686}
5687_ACEOF
5688rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005689if { (ac_try="$ac_compile"
5690case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005705 jm_ac_cv_header_inttypes_h=yes
5706else
5707 echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
Theodore Ts'oe1052142006-10-21 21:46:47 -04005710 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005712
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005714fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005715{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5716echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717 if test $jm_ac_cv_header_inttypes_h = yes; then
5718
5719cat >>confdefs.h <<_ACEOF
5720#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5721_ACEOF
5722
5723 fi
5724
5725
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5727echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005728if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731 cat >conftest.$ac_ext <<_ACEOF
5732/* confdefs.h. */
5733_ACEOF
5734cat confdefs.h >>conftest.$ac_ext
5735cat >>conftest.$ac_ext <<_ACEOF
5736/* end confdefs.h. */
5737#include <sys/types.h>
5738#include <stdint.h>
5739int
5740main ()
5741{
5742uintmax_t i = (uintmax_t) -1;
5743 ;
5744 return 0;
5745}
5746_ACEOF
5747rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005748if { (ac_try="$ac_compile"
5749case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005764 jm_ac_cv_header_stdint_h=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
Theodore Ts'oe1052142006-10-21 21:46:47 -04005769 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005771
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005773fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005774{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5775echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776 if test $jm_ac_cv_header_stdint_h = yes; then
5777
5778cat >>confdefs.h <<_ACEOF
5779#define HAVE_STDINT_H_WITH_UINTMAX 1
5780_ACEOF
5781
5782 fi
5783
5784
5785
5786
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5788echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005789if test "${gt_cv_c_intmax_t+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792 cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798
5799#include <stddef.h>
5800#include <stdlib.h>
5801#if HAVE_STDINT_H_WITH_UINTMAX
5802#include <stdint.h>
5803#endif
5804#if HAVE_INTTYPES_H_WITH_UINTMAX
5805#include <inttypes.h>
5806#endif
5807
5808int
5809main ()
5810{
5811intmax_t x = -1;
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833 gt_cv_c_intmax_t=yes
5834else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
Theodore Ts'oe1052142006-10-21 21:46:47 -04005838 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005839fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005840
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005842fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005843{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5844echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005845 if test $gt_cv_c_intmax_t = yes; then
5846
5847cat >>confdefs.h <<\_ACEOF
5848#define HAVE_INTMAX_T 1
5849_ACEOF
5850
5851 fi
5852
5853
5854
Theodore Ts'oe1052142006-10-21 21:46:47 -04005855 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5856echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005857if test "${gt_cv_func_printf_posix+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860
5861 if test "$cross_compiling" = yes; then
5862
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869
5870#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5871 notposix
5872#endif
5873
5874_ACEOF
5875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876 $EGREP "notposix" >/dev/null 2>&1; then
5877 gt_cv_func_printf_posix="guessing no"
5878else
5879 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005880fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005881rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005883
5884else
5885 cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
5891
5892#include <stdio.h>
5893#include <string.h>
5894/* The string "%2$d %1$d", with dollar characters protected from the shell's
5895 dollar expansion (possibly an autoconf bug). */
5896static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5897static char buf[100];
5898int main ()
5899{
5900 sprintf (buf, format, 33, 55);
5901 return (strcmp (buf, "55 33") != 0);
5902}
5903_ACEOF
5904rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005905if { (ac_try="$ac_link"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 gt_cv_func_printf_posix=yes
5925else
5926 echo "$as_me: program exited with status $ac_status" >&5
5927echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930( exit $ac_status )
5931gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005933rm -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 -05005934fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005935
Theodore Ts'oe1052142006-10-21 21:46:47 -04005936
5937
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005938fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005939{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5940echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005941 case $gt_cv_func_printf_posix in
5942 *yes)
5943
5944cat >>confdefs.h <<\_ACEOF
5945#define HAVE_POSIX_PRINTF 1
5946_ACEOF
5947
5948 ;;
5949 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005950
5951# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5952# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005953{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5954echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005955if test "${ac_cv_working_alloca_h+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005964#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005965int
5966main ()
5967{
5968char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005969 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970 ;
5971 return 0;
5972}
5973_ACEOF
5974rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005975if { (ac_try="$ac_link"
5976case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest$ac_exeext &&
5991 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005993else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994 echo "$as_me: failed program was:" >&5
5995sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005996
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005999
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006001 conftest$ac_exeext conftest.$ac_ext
6002fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006003{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6004echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006005if test $ac_cv_working_alloca_h = yes; then
6006
6007cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006008#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006009_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006010
6011fi
6012
Theodore Ts'oe1052142006-10-21 21:46:47 -04006013{ echo "$as_me:$LINENO: checking for alloca" >&5
6014echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006015if test "${ac_cv_func_alloca_works+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018 cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024#ifdef __GNUC__
6025# define alloca __builtin_alloca
6026#else
6027# ifdef _MSC_VER
6028# include <malloc.h>
6029# define alloca _alloca
6030# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006031# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006032# include <alloca.h>
6033# else
6034# ifdef _AIX
6035 #pragma alloca
6036# else
6037# ifndef alloca /* predefined by HP cc +Olibcalls */
6038char *alloca ();
6039# endif
6040# endif
6041# endif
6042# endif
6043#endif
6044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045int
6046main ()
6047{
6048char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006049 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050 ;
6051 return 0;
6052}
6053_ACEOF
6054rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006055if { (ac_try="$ac_link"
6056case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059esac
6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest$ac_exeext &&
6071 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006072 ac_cv_func_alloca_works=yes
6073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074 echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006076
Theodore Ts'oe1052142006-10-21 21:46:47 -04006077 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006079
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081 conftest$ac_exeext conftest.$ac_ext
6082fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006083{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6084echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006086if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087
6088cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006089#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006091
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6094# that cause trouble. Some versions do not even contain alloca or
6095# contain a buggy version. If you still want to use their alloca,
6096# use ar to extract alloca.o from them instead of compiling alloca.c.
6097
Theodore Ts'oe1052142006-10-21 21:46:47 -04006098ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006099
6100cat >>confdefs.h <<\_ACEOF
6101#define C_ALLOCA 1
6102_ACEOF
6103
6104
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6106echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107if test "${ac_cv_os_cray+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109else
6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006116#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006117webecray
6118#else
6119wenotbecray
6120#endif
6121
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006124 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006125 ac_cv_os_cray=yes
6126else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006127 ac_cv_os_cray=no
6128fi
6129rm -f conftest*
6130
6131fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006132{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6133echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006134if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135 for ac_func in _getb67 GETB67 getb67; do
6136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006137{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6150#define $ac_func innocuous_$ac_func
6151
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006152/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153 which can conflict with char $ac_func (); below.
6154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155 <limits.h> exists even on freestanding compilers. */
6156
6157#ifdef __STDC__
6158# include <limits.h>
6159#else
6160# include <assert.h>
6161#endif
6162
6163#undef $ac_func
6164
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165/* Override any GCC internal prototype to avoid an error.
6166 Use char because int might match the return type of a GCC
6167 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168#ifdef __cplusplus
6169extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006172/* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006175#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006176choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006177#endif
6178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179int
6180main ()
6181{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006182return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006183 ;
6184 return 0;
6185}
6186_ACEOF
6187rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006188if { (ac_try="$ac_link"
6189case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192esac
6193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest$ac_exeext &&
6204 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006205 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006206else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006207 echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006209
Theodore Ts'oe1052142006-10-21 21:46:47 -04006210 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006212
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006214 conftest$ac_exeext conftest.$ac_ext
6215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006216ac_res=`eval echo '${'$as_ac_var'}'`
6217 { echo "$as_me:$LINENO: result: $ac_res" >&5
6218echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006219if test `eval echo '${'$as_ac_var'}'` = yes; then
6220
6221cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006222#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006223_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006225 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006226fi
6227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006228 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006229fi
6230
Theodore Ts'oe1052142006-10-21 21:46:47 -04006231{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6232echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233if test "${ac_cv_c_stack_direction+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006235else
6236 if test "$cross_compiling" = yes; then
6237 ac_cv_c_stack_direction=0
6238else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239 cat >conftest.$ac_ext <<_ACEOF
6240/* confdefs.h. */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006245$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006246int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006247find_stack_direction ()
6248{
6249 static char *addr = 0;
6250 auto char dummy;
6251 if (addr == 0)
6252 {
6253 addr = &dummy;
6254 return find_stack_direction ();
6255 }
6256 else
6257 return (&dummy > addr) ? 1 : -1;
6258}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006259
6260int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006261main ()
6262{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006263 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006264}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006265_ACEOF
6266rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006267if { (ac_try="$ac_link"
6268case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006286 ac_cv_c_stack_direction=1
6287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006288 echo "$as_me: program exited with status $ac_status" >&5
6289echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006291
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006292( exit $ac_status )
6293ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006294fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006295rm -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 -05006296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006297
6298
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006300{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6301echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006304#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006305_ACEOF
6306
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006307
6308fi
6309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310
6311
6312for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006313do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006320fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006321ac_res=`eval echo '${'$as_ac_Header'}'`
6322 { echo "$as_me:$LINENO: result: $ac_res" >&5
6323echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006324else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006325 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006328cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h. */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h. */
6334$ac_includes_default
6335#include <$ac_header>
6336_ACEOF
6337rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006338if { (ac_try="$ac_compile"
6339case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006354 ac_header_compiler=yes
6355else
6356 echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
Theodore Ts'oe1052142006-10-21 21:46:47 -04006359 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006361
6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006365
6366# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h. */
6375#include <$ac_header>
6376_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006377if { (ac_try="$ac_cpp conftest.$ac_ext"
6378case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381esac
6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006389 (exit $ac_status); } >/dev/null && {
6390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393 ac_header_preproc=yes
6394else
6395 echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 ac_header_preproc=no
6399fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006401rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404
6405# So? What about this header?
6406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6407 yes:no: )
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6412 ac_header_preproc=yes
6413 ;;
6414 no:yes:* )
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6418echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6422echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006428 ;;
6429esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006430{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435 eval "$as_ac_Header=\$ac_header_preproc"
6436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006437ac_res=`eval echo '${'$as_ac_Header'}'`
6438 { echo "$as_me:$LINENO: result: $ac_res" >&5
6439echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440
6441fi
6442if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445_ACEOF
6446
6447fi
6448
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006449done
6450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006452for ac_func in getpagesize
6453do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006455{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6456echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6457if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006460 cat >conftest.$ac_ext <<_ACEOF
6461/* confdefs.h. */
6462_ACEOF
6463cat confdefs.h >>conftest.$ac_ext
6464cat >>conftest.$ac_ext <<_ACEOF
6465/* end confdefs.h. */
6466/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468#define $ac_func innocuous_$ac_func
6469
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006470/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6474
6475#ifdef __STDC__
6476# include <limits.h>
6477#else
6478# include <assert.h>
6479#endif
6480
6481#undef $ac_func
6482
Theodore Ts'oe1052142006-10-21 21:46:47 -04006483/* Override any GCC internal prototype to avoid an error.
6484 Use char because int might match the return type of a GCC
6485 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486#ifdef __cplusplus
6487extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006490/* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006493#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006494choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006495#endif
6496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497int
6498main ()
6499{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006500return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501 ;
6502 return 0;
6503}
6504_ACEOF
6505rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006506if { (ac_try="$ac_link"
6507case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006513 ac_status=$?
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest$ac_exeext &&
6522 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006523 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006524else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525 echo "$as_me: failed program was:" >&5
6526sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006527
Theodore Ts'oe1052142006-10-21 21:46:47 -04006528 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006530
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532 conftest$ac_exeext conftest.$ac_ext
6533fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006534ac_res=`eval echo '${'$as_ac_var'}'`
6535 { echo "$as_me:$LINENO: result: $ac_res" >&5
6536echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537if test `eval echo '${'$as_ac_var'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6540_ACEOF
6541
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006542fi
6543done
6544
Theodore Ts'oe1052142006-10-21 21:46:47 -04006545{ echo "$as_me:$LINENO: checking for working mmap" >&5
6546echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006547if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006549else
6550 if test "$cross_compiling" = yes; then
6551 ac_cv_func_mmap_fixed_mapped=no
6552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h. */
6559$ac_includes_default
6560/* malloc might have been renamed as rpl_malloc. */
6561#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006562
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006563/* Thanks to Mike Haertel and Jim Avera for this test.
6564 Here is a matrix of mmap possibilities:
6565 mmap private not fixed
6566 mmap private fixed at somewhere currently unmapped
6567 mmap private fixed at somewhere already mapped
6568 mmap shared not fixed
6569 mmap shared fixed at somewhere currently unmapped
6570 mmap shared fixed at somewhere already mapped
6571 For private mappings, we should verify that changes cannot be read()
6572 back from the file, nor mmap's back from the file at a different
6573 address. (There have been systems where private was not correctly
6574 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006576 like early versions of FreeBSD and possibly contemporary NetBSD.)
6577 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006578 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006579
6580 Grep wants private fixed already mapped.
6581 The main things grep needs to know about mmap are:
6582 * does it exist and is it safe to write into the mmap'd area
6583 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006585#include <fcntl.h>
6586#include <sys/mman.h>
6587
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006588#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589char *malloc ();
6590#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006593#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006594/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006595# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006596# define HAVE_SYS_PARAM_H 1
6597# endif
6598
6599# ifdef _SC_PAGESIZE
6600# define getpagesize() sysconf(_SC_PAGESIZE)
6601# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006602# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006603# include <sys/param.h>
6604# ifdef EXEC_PAGESIZE
6605# define getpagesize() EXEC_PAGESIZE
6606# else /* no EXEC_PAGESIZE */
6607# ifdef NBPG
6608# define getpagesize() NBPG * CLSIZE
6609# ifndef CLSIZE
6610# define CLSIZE 1
6611# endif /* no CLSIZE */
6612# else /* no NBPG */
6613# ifdef NBPC
6614# define getpagesize() NBPC
6615# else /* no NBPC */
6616# ifdef PAGESIZE
6617# define getpagesize() PAGESIZE
6618# endif /* PAGESIZE */
6619# endif /* no NBPC */
6620# endif /* no NBPG */
6621# endif /* no EXEC_PAGESIZE */
6622# else /* no HAVE_SYS_PARAM_H */
6623# define getpagesize() 8192 /* punt totally */
6624# endif /* no HAVE_SYS_PARAM_H */
6625# endif /* no _SC_PAGESIZE */
6626
6627#endif /* no HAVE_GETPAGESIZE */
6628
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006629int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006631{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006632 char *data, *data2, *data3;
6633 int i, pagesize;
6634 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638 /* First, make a file with some known garbage in it. */
6639 data = (char *) malloc (pagesize);
6640 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006641 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642 for (i = 0; i < pagesize; ++i)
6643 *(data + i) = rand ();
6644 umask (0);
6645 fd = creat ("conftest.mmap", 0600);
6646 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006647 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006648 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006649 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006650 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652 /* Next, try to mmap the file at a fixed address which already has
6653 something else allocated at it. If we can, also make sure that
6654 we see the same garbage. */
6655 fd = open ("conftest.mmap", O_RDWR);
6656 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006657 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658 data2 = (char *) malloc (2 * pagesize);
6659 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006660 return 1;
6661 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6663 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006664 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665 for (i = 0; i < pagesize; ++i)
6666 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006667 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669 /* Finally, make sure that changes to the mapped area do not
6670 percolate back to the file as seen by read(). (This is a bug on
6671 some variants of i386 svr4.0.) */
6672 for (i = 0; i < pagesize; ++i)
6673 *(data2 + i) = *(data2 + i) + 1;
6674 data3 = (char *) malloc (pagesize);
6675 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006678 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679 for (i = 0; i < pagesize; ++i)
6680 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006681 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006683 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006684}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685_ACEOF
6686rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006687if { (ac_try="$ac_link"
6688case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691esac
6692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006697 { (case "(($ac_try" in
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6700esac
6701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006703 ac_status=$?
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006706 ac_cv_func_mmap_fixed_mapped=yes
6707else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708 echo "$as_me: program exited with status $ac_status" >&5
6709echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006712( exit $ac_status )
6713ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006714fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006715rm -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 -05006716fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006717
6718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006720{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6721echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006722if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723
6724cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006725#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006727
6728fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006730
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006731
Theodore Ts'oe1052142006-10-21 21:46:47 -04006732 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6733echo $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 -05006734if test "${ac_cv_gnu_library_2_1+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006736else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737 cat >conftest.$ac_ext <<_ACEOF
6738/* confdefs.h. */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006743
6744#include <features.h>
6745#ifdef __GNU_LIBRARY__
6746 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6747 Lucky GNU user
6748 #endif
6749#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006750
6751_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006754 ac_cv_gnu_library_2_1=yes
6755else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006756 ac_cv_gnu_library_2_1=no
6757fi
6758rm -f conftest*
6759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760
6761
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006762fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006763{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6764echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006765
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006766 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006767
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006768
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769
6770
Theodore Ts'oe1052142006-10-21 21:46:47 -04006771 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6772echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006775else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006777 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006779 # Guess based on the CPU.
6780 case "$host_cpu" in
6781 alpha* | i3456786 | m68k | s390*)
6782 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6783 *)
6784 gt_cv_int_divbyzero_sigfpe="guessing no";;
6785 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006787else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788 cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794
6795#include <stdlib.h>
6796#include <signal.h>
6797
6798static void
6799#ifdef __cplusplus
6800sigfpe_handler (int sig)
6801#else
6802sigfpe_handler (sig) int sig;
6803#endif
6804{
6805 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6806 exit (sig != SIGFPE);
6807}
6808
6809int x = 1;
6810int y = 0;
6811int z;
6812int nan;
6813
6814int main ()
6815{
6816 signal (SIGFPE, sigfpe_handler);
6817/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6818#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6819 signal (SIGTRAP, sigfpe_handler);
6820#endif
6821/* Linux/SPARC yields signal SIGILL. */
6822#if defined (__sparc__) && defined (__linux__)
6823 signal (SIGILL, sigfpe_handler);
6824#endif
6825
6826 z = x / y;
6827 nan = y / y;
6828 exit (1);
6829}
6830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831_ACEOF
6832rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006833if { (ac_try="$ac_link"
6834case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837esac
6838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006843 { (case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846esac
6847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006852 gt_cv_int_divbyzero_sigfpe=yes
6853else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006854 echo "$as_me: program exited with status $ac_status" >&5
6855echo "$as_me: failed program was:" >&5
6856sed 's/^/| /' conftest.$ac_ext >&5
6857
6858( exit $ac_status )
6859gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006860fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006861rm -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 -04006862fi
6863
Theodore Ts'oe1052142006-10-21 21:46:47 -04006864
6865
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006867{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6868echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006869 case "$gt_cv_int_divbyzero_sigfpe" in
6870 *yes) value=1;;
6871 *) value=0;;
6872 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006873
6874cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006875#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006877
6878
6879
Theodore Ts'oe1052142006-10-21 21:46:47 -04006880 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6881echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885 cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h. */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h. */
6891unsigned long long ull = 1ULL; int i = 63;
6892int
6893main ()
6894{
6895unsigned long long ullmax = (unsigned long long) -1;
6896 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6897 ;
6898 return 0;
6899}
6900_ACEOF
6901rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006902if { (ac_try="$ac_link"
6903case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6906esac
6907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext &&
6918 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919 ac_cv_type_unsigned_long_long=yes
6920else
6921 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
6923
Theodore Ts'oe1052142006-10-21 21:46:47 -04006924 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006925fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006926
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006927rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006928 conftest$ac_exeext conftest.$ac_ext
6929fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006930{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6931echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006932 if test $ac_cv_type_unsigned_long_long = yes; then
6933
6934cat >>confdefs.h <<\_ACEOF
6935#define HAVE_UNSIGNED_LONG_LONG 1
6936_ACEOF
6937
6938 fi
6939
6940
6941
6942
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006943 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 -05006944
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006945 test $ac_cv_type_unsigned_long_long = yes \
6946 && ac_type='unsigned long long' \
6947 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948
6949cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006950#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006951_ACEOF
6952
6953 else
6954
6955cat >>confdefs.h <<\_ACEOF
6956#define HAVE_UINTMAX_T 1
6957_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006958
6959 fi
6960
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006961
Theodore Ts'oe1052142006-10-21 21:46:47 -04006962 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6963echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964if test "${gt_cv_header_inttypes_h+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006966else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967
6968 cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006974#include <sys/types.h>
6975#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976int
6977main ()
6978{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980 ;
6981 return 0;
6982}
6983_ACEOF
6984rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006985if { (ac_try="$ac_compile"
6986case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989esac
6990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007001 gt_cv_header_inttypes_h=yes
7002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003 echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007005
Theodore Ts'oe1052142006-10-21 21:46:47 -04007006 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007008
7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007010
7011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007012{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7013echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007014 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015
7016cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007017#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007019
7020 fi
7021
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007024 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007025 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7026echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030
7031 cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h. */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007037#include <inttypes.h>
7038#ifdef PRId32
7039char *p = PRId32;
7040#endif
7041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007042int
7043main ()
7044{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046 ;
7047 return 0;
7048}
7049_ACEOF
7050rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007051if { (ac_try="$ac_compile"
7052case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055esac
7056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058 ac_status=$?
7059 grep -v '^ *+' conftest.er1 >conftest.err
7060 rm -f conftest.er1
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007067 gt_cv_inttypes_pri_broken=no
7068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069 echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007071
Theodore Ts'oe1052142006-10-21 21:46:47 -04007072 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007074
7075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007076
7077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007078{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7079echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007080 fi
7081 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007082
7083cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007084#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007086
7087 fi
7088
7089
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007091for ac_header in stdint.h
7092do
7093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007100ac_res=`eval echo '${'$as_ac_Header'}'`
7101 { echo "$as_me:$LINENO: result: $ac_res" >&5
7102echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103else
7104 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107cat >conftest.$ac_ext <<_ACEOF
7108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h. */
7113$ac_includes_default
7114#include <$ac_header>
7115_ACEOF
7116rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007117if { (ac_try="$ac_compile"
7118case "(($ac_try" in
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7121esac
7122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007133 ac_header_compiler=yes
7134else
7135 echo "$as_me: failed program was:" >&5
7136sed 's/^/| /' conftest.$ac_ext >&5
7137
Theodore Ts'oe1052142006-10-21 21:46:47 -04007138 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007140
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144
7145# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007146{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154#include <$ac_header>
7155_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007156if { (ac_try="$ac_cpp conftest.$ac_ext"
7157case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160esac
7161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007168 (exit $ac_status); } >/dev/null && {
7169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172 ac_header_preproc=yes
7173else
7174 echo "$as_me: failed program was:" >&5
7175sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 ac_header_preproc=no
7178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007181{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183
7184# So? What about this header?
7185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186 yes:no: )
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191 ac_header_preproc=yes
7192 ;;
7193 no:yes:* )
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7201echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007207 ;;
7208esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214 eval "$as_ac_Header=\$ac_header_preproc"
7215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007216ac_res=`eval echo '${'$as_ac_Header'}'`
7217 { echo "$as_me:$LINENO: result: $ac_res" >&5
7218echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007219
7220fi
7221if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224_ACEOF
7225
7226fi
7227
7228done
7229
Theodore Ts'oe1052142006-10-21 21:46:47 -04007230 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7231echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232 result=
7233 cat >conftest.$ac_ext <<_ACEOF
7234/* confdefs.h. */
7235_ACEOF
7236cat confdefs.h >>conftest.$ac_ext
7237cat >>conftest.$ac_ext <<_ACEOF
7238/* end confdefs.h. */
7239
7240#include <limits.h>
7241#if HAVE_STDINT_H
7242#include <stdint.h>
7243#endif
7244#ifdef SIZE_MAX
7245Found it
7246#endif
7247
7248_ACEOF
7249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 $EGREP "Found it" >/dev/null 2>&1; then
7251 result=yes
7252fi
7253rm -f conftest*
7254
7255 if test -z "$result"; then
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258cat >conftest.$ac_ext <<_ACEOF
7259/* confdefs.h. */
7260_ACEOF
7261cat confdefs.h >>conftest.$ac_ext
7262cat >>conftest.$ac_ext <<_ACEOF
7263/* end confdefs.h. */
7264#include <stddef.h>
7265int
7266main ()
7267{
7268static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7269test_array [0] = 0
7270
7271 ;
7272 return 0;
7273}
7274_ACEOF
7275rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007276if { (ac_try="$ac_compile"
7277case "(($ac_try" in
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7280esac
7281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292 ac_lo=0 ac_mid=0
7293 while :; do
7294 cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
7300#include <stddef.h>
7301int
7302main ()
7303{
7304static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7305test_array [0] = 0
7306
7307 ;
7308 return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328 ac_hi=$ac_mid; break
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
Theodore Ts'oe1052142006-10-21 21:46:47 -04007333 ac_lo=`expr $ac_mid + 1`
7334 if test $ac_lo -le $ac_mid; then
7335 ac_lo= ac_hi=
7336 break
7337 fi
7338 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007340
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007342 done
7343else
7344 echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
Theodore Ts'oe1052142006-10-21 21:46:47 -04007347 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348/* confdefs.h. */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h. */
7353#include <stddef.h>
7354int
7355main ()
7356{
7357static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7358test_array [0] = 0
7359
7360 ;
7361 return 0;
7362}
7363_ACEOF
7364rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007365if { (ac_try="$ac_compile"
7366case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369esac
7370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381 ac_hi=-1 ac_mid=-1
7382 while :; do
7383 cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h. */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h. */
7389#include <stddef.h>
7390int
7391main ()
7392{
7393static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7394test_array [0] = 0
7395
7396 ;
7397 return 0;
7398}
7399_ACEOF
7400rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007401if { (ac_try="$ac_compile"
7402case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405esac
7406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417 ac_lo=$ac_mid; break
7418else
7419 echo "$as_me: failed program was:" >&5
7420sed 's/^/| /' conftest.$ac_ext >&5
7421
Theodore Ts'oe1052142006-10-21 21:46:47 -04007422 ac_hi=`expr '(' $ac_mid ')' - 1`
7423 if test $ac_mid -le $ac_hi; then
7424 ac_lo= ac_hi=
7425 break
7426 fi
7427 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007429
7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007431 done
7432else
7433 echo "$as_me: failed program was:" >&5
7434sed 's/^/| /' conftest.$ac_ext >&5
7435
Theodore Ts'oe1052142006-10-21 21:46:47 -04007436 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007437fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007438
7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007441
7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443# Binary search between lo and hi bounds.
7444while test "x$ac_lo" != "x$ac_hi"; do
7445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7446 cat >conftest.$ac_ext <<_ACEOF
7447/* confdefs.h. */
7448_ACEOF
7449cat confdefs.h >>conftest.$ac_ext
7450cat >>conftest.$ac_ext <<_ACEOF
7451/* end confdefs.h. */
7452#include <stddef.h>
7453int
7454main ()
7455{
7456static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7457test_array [0] = 0
7458
7459 ;
7460 return 0;
7461}
7462_ACEOF
7463rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007464if { (ac_try="$ac_compile"
7465case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468esac
7469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007480 ac_hi=$ac_mid
7481else
7482 echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
Theodore Ts'oe1052142006-10-21 21:46:47 -04007485 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007487
7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489done
7490case $ac_lo in
7491?*) res_hi=$ac_lo;;
7492'') result=? ;;
7493esac
7494else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495 cat >conftest.$ac_ext <<_ACEOF
7496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
7501#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007502static long int longval () { return ~(size_t)0 / 10; }
7503static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504#include <stdio.h>
7505#include <stdlib.h>
7506int
7507main ()
7508{
7509
7510 FILE *f = fopen ("conftest.val", "w");
7511 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007512 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513 if ((~(size_t)0 / 10) < 0)
7514 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007515 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007517 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518 fprintf (f, "%ld\n", i);
7519 }
7520 else
7521 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007522 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007524 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007525 fprintf (f, "%lu\n", i);
7526 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007527 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007534if { (ac_try="$ac_link"
7535case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
7539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007544 { (case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
7548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 res_hi=`cat conftest.val`
7554else
7555 echo "$as_me: program exited with status $ac_status" >&5
7556echo "$as_me: failed program was:" >&5
7557sed 's/^/| /' conftest.$ac_ext >&5
7558
7559( exit $ac_status )
7560result=?
7561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007562rm -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 -05007563fi
7564rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007566 if test "$cross_compiling" = yes; then
7567 # Depending upon the size, compute the lo and hi bounds.
7568cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
7574#include <stddef.h>
7575int
7576main ()
7577{
7578static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7579test_array [0] = 0
7580
7581 ;
7582 return 0;
7583}
7584_ACEOF
7585rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007586if { (ac_try="$ac_compile"
7587case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590esac
7591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602 ac_lo=0 ac_mid=0
7603 while :; do
7604 cat >conftest.$ac_ext <<_ACEOF
7605/* confdefs.h. */
7606_ACEOF
7607cat confdefs.h >>conftest.$ac_ext
7608cat >>conftest.$ac_ext <<_ACEOF
7609/* end confdefs.h. */
7610#include <stddef.h>
7611int
7612main ()
7613{
7614static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7615test_array [0] = 0
7616
7617 ;
7618 return 0;
7619}
7620_ACEOF
7621rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007622if { (ac_try="$ac_compile"
7623case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626esac
7627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638 ac_hi=$ac_mid; break
7639else
7640 echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
Theodore Ts'oe1052142006-10-21 21:46:47 -04007643 ac_lo=`expr $ac_mid + 1`
7644 if test $ac_lo -le $ac_mid; then
7645 ac_lo= ac_hi=
7646 break
7647 fi
7648 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007650
7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007652 done
7653else
7654 echo "$as_me: failed program was:" >&5
7655sed 's/^/| /' conftest.$ac_ext >&5
7656
Theodore Ts'oe1052142006-10-21 21:46:47 -04007657 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007658/* confdefs.h. */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h. */
7663#include <stddef.h>
7664int
7665main ()
7666{
7667static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7668test_array [0] = 0
7669
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007675if { (ac_try="$ac_compile"
7676case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679esac
7680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691 ac_hi=-1 ac_mid=-1
7692 while :; do
7693 cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h. */
7699#include <stddef.h>
7700int
7701main ()
7702{
7703static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7704test_array [0] = 0
7705
7706 ;
7707 return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007711if { (ac_try="$ac_compile"
7712case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715esac
7716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727 ac_lo=$ac_mid; break
7728else
7729 echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
Theodore Ts'oe1052142006-10-21 21:46:47 -04007732 ac_hi=`expr '(' $ac_mid ')' - 1`
7733 if test $ac_mid -le $ac_hi; then
7734 ac_lo= ac_hi=
7735 break
7736 fi
7737 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007739
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007741 done
7742else
7743 echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
Theodore Ts'oe1052142006-10-21 21:46:47 -04007746 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007748
7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007750fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007751
7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007753# Binary search between lo and hi bounds.
7754while test "x$ac_lo" != "x$ac_hi"; do
7755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756 cat >conftest.$ac_ext <<_ACEOF
7757/* confdefs.h. */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
7761/* end confdefs.h. */
7762#include <stddef.h>
7763int
7764main ()
7765{
7766static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7767test_array [0] = 0
7768
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007774if { (ac_try="$ac_compile"
7775case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778esac
7779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007790 ac_hi=$ac_mid
7791else
7792 echo "$as_me: failed program was:" >&5
7793sed 's/^/| /' conftest.$ac_ext >&5
7794
Theodore Ts'oe1052142006-10-21 21:46:47 -04007795 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007797
7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007799done
7800case $ac_lo in
7801?*) res_lo=$ac_lo;;
7802'') result=? ;;
7803esac
7804else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007805 cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
7811#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007812static long int longval () { return ~(size_t)0 % 10; }
7813static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007814#include <stdio.h>
7815#include <stdlib.h>
7816int
7817main ()
7818{
7819
7820 FILE *f = fopen ("conftest.val", "w");
7821 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007822 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007823 if ((~(size_t)0 % 10) < 0)
7824 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007825 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007826 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007827 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828 fprintf (f, "%ld\n", i);
7829 }
7830 else
7831 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007832 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007834 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007835 fprintf (f, "%lu\n", i);
7836 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007837 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007838
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007844if { (ac_try="$ac_link"
7845case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 res_lo=`cat conftest.val`
7864else
7865 echo "$as_me: program exited with status $ac_status" >&5
7866echo "$as_me: failed program was:" >&5
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869( exit $ac_status )
7870result=?
7871fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007872rm -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 -05007873fi
7874rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007876 if test "$cross_compiling" = yes; then
7877 # Depending upon the size, compute the lo and hi bounds.
7878cat >conftest.$ac_ext <<_ACEOF
7879/* confdefs.h. */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h. */
7884#include <stddef.h>
7885int
7886main ()
7887{
7888static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7889test_array [0] = 0
7890
7891 ;
7892 return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007896if { (ac_try="$ac_compile"
7897case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900esac
7901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007912 ac_lo=0 ac_mid=0
7913 while :; do
7914 cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h. */
7920#include <stddef.h>
7921int
7922main ()
7923{
7924static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7925test_array [0] = 0
7926
7927 ;
7928 return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007932if { (ac_try="$ac_compile"
7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007948 ac_hi=$ac_mid; break
7949else
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
Theodore Ts'oe1052142006-10-21 21:46:47 -04007953 ac_lo=`expr $ac_mid + 1`
7954 if test $ac_lo -le $ac_mid; then
7955 ac_lo= ac_hi=
7956 break
7957 fi
7958 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007960
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007962 done
7963else
7964 echo "$as_me: failed program was:" >&5
7965sed 's/^/| /' conftest.$ac_ext >&5
7966
Theodore Ts'oe1052142006-10-21 21:46:47 -04007967 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
7973#include <stddef.h>
7974int
7975main ()
7976{
7977static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7978test_array [0] = 0
7979
7980 ;
7981 return 0;
7982}
7983_ACEOF
7984rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007985if { (ac_try="$ac_compile"
7986case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989esac
7990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992 ac_status=$?
7993 grep -v '^ *+' conftest.er1 >conftest.err
7994 rm -f conftest.er1
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008001 ac_hi=-1 ac_mid=-1
8002 while :; do
8003 cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h. */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h. */
8009#include <stddef.h>
8010int
8011main ()
8012{
8013static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8014test_array [0] = 0
8015
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008021if { (ac_try="$ac_compile"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008037 ac_lo=$ac_mid; break
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
Theodore Ts'oe1052142006-10-21 21:46:47 -04008042 ac_hi=`expr '(' $ac_mid ')' - 1`
8043 if test $ac_mid -le $ac_hi; then
8044 ac_lo= ac_hi=
8045 break
8046 fi
8047 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008049
8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051 done
8052else
8053 echo "$as_me: failed program was:" >&5
8054sed 's/^/| /' conftest.$ac_ext >&5
8055
Theodore Ts'oe1052142006-10-21 21:46:47 -04008056 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008057fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008058
8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008060fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008061
8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008063# Binary search between lo and hi bounds.
8064while test "x$ac_lo" != "x$ac_hi"; do
8065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8066 cat >conftest.$ac_ext <<_ACEOF
8067/* confdefs.h. */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h. */
8072#include <stddef.h>
8073int
8074main ()
8075{
8076static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8077test_array [0] = 0
8078
8079 ;
8080 return 0;
8081}
8082_ACEOF
8083rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008084if { (ac_try="$ac_compile"
8085case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088esac
8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008100 ac_hi=$ac_mid
8101else
8102 echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
Theodore Ts'oe1052142006-10-21 21:46:47 -04008105 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008107
8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008109done
8110case $ac_lo in
8111?*) fits_in_uint=$ac_lo;;
8112'') result=? ;;
8113esac
8114else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008122static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8123static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008124#include <stdio.h>
8125#include <stdlib.h>
8126int
8127main ()
8128{
8129
8130 FILE *f = fopen ("conftest.val", "w");
8131 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008132 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008133 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8134 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008135 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008136 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008137 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008138 fprintf (f, "%ld\n", i);
8139 }
8140 else
8141 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008142 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008143 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008144 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008145 fprintf (f, "%lu\n", i);
8146 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008147 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008148
8149 ;
8150 return 0;
8151}
8152_ACEOF
8153rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008154if { (ac_try="$ac_link"
8155case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167esac
8168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 fits_in_uint=`cat conftest.val`
8174else
8175 echo "$as_me: program exited with status $ac_status" >&5
8176echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179( exit $ac_status )
8180result=?
8181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008182rm -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 -05008183fi
8184rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008186 if test "$fits_in_uint" = 1; then
8187 cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h. */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h. */
8193#include <stddef.h>
8194 extern size_t foo;
8195 extern unsigned long foo;
8196
8197int
8198main ()
8199{
8200
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008206if { (ac_try="$ac_compile"
8207case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008222 fits_in_uint=0
8223else
8224 echo "$as_me: failed program was:" >&5
8225sed 's/^/| /' conftest.$ac_ext >&5
8226
Theodore Ts'oe1052142006-10-21 21:46:47 -04008227
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008228fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229
8230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008231 fi
8232 if test -z "$result"; then
8233 if test "$fits_in_uint" = 1; then
8234 result="$res_hi$res_lo"U
8235 else
8236 result="$res_hi$res_lo"UL
8237 fi
8238 else
8239 result='~(size_t)0'
8240 fi
8241 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008242 { echo "$as_me:$LINENO: result: $result" >&5
8243echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008244 if test "$result" != yes; then
8245
8246cat >>confdefs.h <<_ACEOF
8247#define SIZE_MAX $result
8248_ACEOF
8249
8250 fi
8251
8252
8253
8254
8255for ac_header in stdint.h
8256do
8257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008264ac_res=`eval echo '${'$as_ac_Header'}'`
8265 { echo "$as_me:$LINENO: result: $ac_res" >&5
8266echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008267else
8268 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008269{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008271cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
8277$ac_includes_default
8278#include <$ac_header>
8279_ACEOF
8280rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008281if { (ac_try="$ac_compile"
8282case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008297 ac_header_compiler=yes
8298else
8299 echo "$as_me: failed program was:" >&5
8300sed 's/^/| /' conftest.$ac_ext >&5
8301
Theodore Ts'oe1052142006-10-21 21:46:47 -04008302 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008303fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008304
8305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008308
8309# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008310{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008312cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h. */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h. */
8318#include <$ac_header>
8319_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008320if { (ac_try="$ac_cpp conftest.$ac_ext"
8321case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008332 (exit $ac_status); } >/dev/null && {
8333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336 ac_header_preproc=yes
8337else
8338 echo "$as_me: failed program was:" >&5
8339sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_header_preproc=no
8342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008343
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008345{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008347
8348# So? What about this header?
8349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350 yes:no: )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355 ac_header_preproc=yes
8356 ;;
8357 no:yes:* )
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008370
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371 ;;
8372esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 eval "$as_ac_Header=\$ac_header_preproc"
8379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008380ac_res=`eval echo '${'$as_ac_Header'}'`
8381 { echo "$as_me:$LINENO: result: $ac_res" >&5
8382echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383
8384fi
8385if test `eval echo '${'$as_ac_Header'}'` = yes; then
8386 cat >>confdefs.h <<_ACEOF
8387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8388_ACEOF
8389
8390fi
8391
8392done
8393
8394
8395
8396 if test "X$prefix" = "XNONE"; then
8397 acl_final_prefix="$ac_default_prefix"
8398 else
8399 acl_final_prefix="$prefix"
8400 fi
8401 if test "X$exec_prefix" = "XNONE"; then
8402 acl_final_exec_prefix='${prefix}'
8403 else
8404 acl_final_exec_prefix="$exec_prefix"
8405 fi
8406 acl_save_prefix="$prefix"
8407 prefix="$acl_final_prefix"
8408 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8409 prefix="$acl_save_prefix"
8410
8411
Theodore Ts'oe1052142006-10-21 21:46:47 -04008412# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008413if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008415else
8416 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008417fi
8418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008419# Prepare PATH_SEPARATOR.
8420# The user is always right.
8421if test "${PATH_SEPARATOR+set}" != set; then
8422 echo "#! /bin/sh" >conf$$.sh
8423 echo "exit 0" >>conf$$.sh
8424 chmod +x conf$$.sh
8425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8426 PATH_SEPARATOR=';'
8427 else
8428 PATH_SEPARATOR=:
8429 fi
8430 rm -f conf$$.sh
8431fi
8432ac_prog=ld
8433if test "$GCC" = yes; then
8434 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008435 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8436echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008437 case $host in
8438 *-*-mingw*)
8439 # gcc leaves a trailing carriage return which upsets mingw
8440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8441 *)
8442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8443 esac
8444 case $ac_prog in
8445 # Accept absolute paths.
8446 [\\/]* | [A-Za-z]:[\\/]*)
8447 re_direlt='/[^/][^/]*/\.\./'
8448 # Canonicalize the path of ld
8449 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8451 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8452 done
8453 test -z "$LD" && LD="$ac_prog"
8454 ;;
8455 "")
8456 # If it fails, then pretend we aren't using GCC.
8457 ac_prog=ld
8458 ;;
8459 *)
8460 # If it is relative, then search for the first ld in PATH.
8461 with_gnu_ld=unknown
8462 ;;
8463 esac
8464elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008465 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8466echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008467else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008468 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8469echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470fi
8471if test "${acl_cv_path_LD+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 if test -z "$LD"; then
8475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8476 for ac_dir in $PATH; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8479 acl_cv_path_LD="$ac_dir/$ac_prog"
8480 # Check to see if the program is GNU ld. I'd rather use --version,
8481 # but apparently some GNU ld's only accept -v.
8482 # Break only if it was the GNU/non-GNU ld that we prefer.
8483 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8484 *GNU* | *'with BFD'*)
8485 test "$with_gnu_ld" != no && break ;;
8486 *)
8487 test "$with_gnu_ld" != yes && break ;;
8488 esac
8489 fi
8490 done
8491 IFS="$ac_save_ifs"
8492else
8493 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8494fi
8495fi
8496
8497LD="$acl_cv_path_LD"
8498if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008499 { echo "$as_me:$LINENO: result: $LD" >&5
8500echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008501else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008502 { echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008504fi
8505test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8506echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8507 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008508{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8509echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008510if test "${acl_cv_prog_gnu_ld+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8512else
8513 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8514case `$LD -v 2>&1 </dev/null` in
8515*GNU* | *'with BFD'*)
8516 acl_cv_prog_gnu_ld=yes ;;
8517*)
8518 acl_cv_prog_gnu_ld=no ;;
8519esac
8520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008521{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8522echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008523with_gnu_ld=$acl_cv_prog_gnu_ld
8524
8525
8526
Theodore Ts'oe1052142006-10-21 21:46:47 -04008527 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8528echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008529if test "${acl_cv_rpath+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
8532
8533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8535 . ./conftest.sh
8536 rm -f ./conftest.sh
8537 acl_cv_rpath=done
8538
8539fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008540{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8541echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008542 wl="$acl_cv_wl"
8543 libext="$acl_cv_libext"
8544 shlibext="$acl_cv_shlibext"
8545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8547 hardcode_direct="$acl_cv_hardcode_direct"
8548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008549 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008550if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008551 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008552else
8553 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008554fi
8555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008556
8557
8558
8559
8560
8561
8562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008563 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008564
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008565 acl_save_prefix="$prefix"
8566 prefix="$acl_final_prefix"
8567 acl_save_exec_prefix="$exec_prefix"
8568 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008569
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008570 eval additional_includedir=\"$includedir\"
8571 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008573 exec_prefix="$acl_save_exec_prefix"
8574 prefix="$acl_save_prefix"
8575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008576
Theodore Ts'oe1052142006-10-21 21:46:47 -04008577# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008578if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008579 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008580 if test "X$withval" = "Xno"; then
8581 use_additional=no
8582 else
8583 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008585 acl_save_prefix="$prefix"
8586 prefix="$acl_final_prefix"
8587 acl_save_exec_prefix="$exec_prefix"
8588 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008589
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008590 eval additional_includedir=\"$includedir\"
8591 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593 exec_prefix="$acl_save_exec_prefix"
8594 prefix="$acl_save_prefix"
8595
8596 else
8597 additional_includedir="$withval/include"
8598 additional_libdir="$withval/lib"
8599 fi
8600 fi
8601
Theodore Ts'oe1052142006-10-21 21:46:47 -04008602fi
8603
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008604 LIBICONV=
8605 LTLIBICONV=
8606 INCICONV=
8607 rpathdirs=
8608 ltrpathdirs=
8609 names_already_handled=
8610 names_next_round='iconv '
8611 while test -n "$names_next_round"; do
8612 names_this_round="$names_next_round"
8613 names_next_round=
8614 for name in $names_this_round; do
8615 already_handled=
8616 for n in $names_already_handled; do
8617 if test "$n" = "$name"; then
8618 already_handled=yes
8619 break
8620 fi
8621 done
8622 if test -z "$already_handled"; then
8623 names_already_handled="$names_already_handled $name"
8624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8625 eval value=\"\$HAVE_LIB$uppername\"
8626 if test -n "$value"; then
8627 if test "$value" = yes; then
8628 eval value=\"\$LIB$uppername\"
8629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8630 eval value=\"\$LTLIB$uppername\"
8631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8632 else
8633 :
8634 fi
8635 else
8636 found_dir=
8637 found_la=
8638 found_so=
8639 found_a=
8640 if test $use_additional = yes; then
8641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8642 found_dir="$additional_libdir"
8643 found_so="$additional_libdir/lib$name.$shlibext"
8644 if test -f "$additional_libdir/lib$name.la"; then
8645 found_la="$additional_libdir/lib$name.la"
8646 fi
8647 else
8648 if test -f "$additional_libdir/lib$name.$libext"; then
8649 found_dir="$additional_libdir"
8650 found_a="$additional_libdir/lib$name.$libext"
8651 if test -f "$additional_libdir/lib$name.la"; then
8652 found_la="$additional_libdir/lib$name.la"
8653 fi
8654 fi
8655 fi
8656 fi
8657 if test "X$found_dir" = "X"; then
8658 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008659
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008660 acl_save_prefix="$prefix"
8661 prefix="$acl_final_prefix"
8662 acl_save_exec_prefix="$exec_prefix"
8663 exec_prefix="$acl_final_exec_prefix"
8664 eval x=\"$x\"
8665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8667
8668 case "$x" in
8669 -L*)
8670 dir=`echo "X$x" | sed -e 's/^X-L//'`
8671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8672 found_dir="$dir"
8673 found_so="$dir/lib$name.$shlibext"
8674 if test -f "$dir/lib$name.la"; then
8675 found_la="$dir/lib$name.la"
8676 fi
8677 else
8678 if test -f "$dir/lib$name.$libext"; then
8679 found_dir="$dir"
8680 found_a="$dir/lib$name.$libext"
8681 if test -f "$dir/lib$name.la"; then
8682 found_la="$dir/lib$name.la"
8683 fi
8684 fi
8685 fi
8686 ;;
8687 esac
8688 if test "X$found_dir" != "X"; then
8689 break
8690 fi
8691 done
8692 fi
8693 if test "X$found_dir" != "X"; then
8694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8695 if test "X$found_so" != "X"; then
8696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8698 else
8699 haveit=
8700 for x in $ltrpathdirs; do
8701 if test "X$x" = "X$found_dir"; then
8702 haveit=yes
8703 break
8704 fi
8705 done
8706 if test -z "$haveit"; then
8707 ltrpathdirs="$ltrpathdirs $found_dir"
8708 fi
8709 if test "$hardcode_direct" = yes; then
8710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8711 else
8712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8714 haveit=
8715 for x in $rpathdirs; do
8716 if test "X$x" = "X$found_dir"; then
8717 haveit=yes
8718 break
8719 fi
8720 done
8721 if test -z "$haveit"; then
8722 rpathdirs="$rpathdirs $found_dir"
8723 fi
8724 else
8725 haveit=
8726 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008727
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008728 acl_save_prefix="$prefix"
8729 prefix="$acl_final_prefix"
8730 acl_save_exec_prefix="$exec_prefix"
8731 exec_prefix="$acl_final_exec_prefix"
8732 eval x=\"$x\"
8733 exec_prefix="$acl_save_exec_prefix"
8734 prefix="$acl_save_prefix"
8735
8736 if test "X$x" = "X-L$found_dir"; then
8737 haveit=yes
8738 break
8739 fi
8740 done
8741 if test -z "$haveit"; then
8742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8743 fi
8744 if test "$hardcode_minus_L" != no; then
8745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8746 else
8747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8748 fi
8749 fi
8750 fi
8751 fi
8752 else
8753 if test "X$found_a" != "X"; then
8754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8755 else
8756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8757 fi
8758 fi
8759 additional_includedir=
8760 case "$found_dir" in
8761 */lib | */lib/)
8762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8763 additional_includedir="$basedir/include"
8764 ;;
8765 esac
8766 if test "X$additional_includedir" != "X"; then
8767 if test "X$additional_includedir" != "X/usr/include"; then
8768 haveit=
8769 if test "X$additional_includedir" = "X/usr/local/include"; then
8770 if test -n "$GCC"; then
8771 case $host_os in
8772 linux*) haveit=yes;;
8773 esac
8774 fi
8775 fi
8776 if test -z "$haveit"; then
8777 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008779 acl_save_prefix="$prefix"
8780 prefix="$acl_final_prefix"
8781 acl_save_exec_prefix="$exec_prefix"
8782 exec_prefix="$acl_final_exec_prefix"
8783 eval x=\"$x\"
8784 exec_prefix="$acl_save_exec_prefix"
8785 prefix="$acl_save_prefix"
8786
8787 if test "X$x" = "X-I$additional_includedir"; then
8788 haveit=yes
8789 break
8790 fi
8791 done
8792 if test -z "$haveit"; then
8793 if test -d "$additional_includedir"; then
8794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8795 fi
8796 fi
8797 fi
8798 fi
8799 fi
8800 if test -n "$found_la"; then
8801 save_libdir="$libdir"
8802 case "$found_la" in
8803 */* | *\\*) . "$found_la" ;;
8804 *) . "./$found_la" ;;
8805 esac
8806 libdir="$save_libdir"
8807 for dep in $dependency_libs; do
8808 case "$dep" in
8809 -L*)
8810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8811 if test "X$additional_libdir" != "X/usr/lib"; then
8812 haveit=
8813 if test "X$additional_libdir" = "X/usr/local/lib"; then
8814 if test -n "$GCC"; then
8815 case $host_os in
8816 linux*) haveit=yes;;
8817 esac
8818 fi
8819 fi
8820 if test -z "$haveit"; then
8821 haveit=
8822 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008823
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008824 acl_save_prefix="$prefix"
8825 prefix="$acl_final_prefix"
8826 acl_save_exec_prefix="$exec_prefix"
8827 exec_prefix="$acl_final_exec_prefix"
8828 eval x=\"$x\"
8829 exec_prefix="$acl_save_exec_prefix"
8830 prefix="$acl_save_prefix"
8831
8832 if test "X$x" = "X-L$additional_libdir"; then
8833 haveit=yes
8834 break
8835 fi
8836 done
8837 if test -z "$haveit"; then
8838 if test -d "$additional_libdir"; then
8839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8840 fi
8841 fi
8842 haveit=
8843 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 acl_save_prefix="$prefix"
8846 prefix="$acl_final_prefix"
8847 acl_save_exec_prefix="$exec_prefix"
8848 exec_prefix="$acl_final_exec_prefix"
8849 eval x=\"$x\"
8850 exec_prefix="$acl_save_exec_prefix"
8851 prefix="$acl_save_prefix"
8852
8853 if test "X$x" = "X-L$additional_libdir"; then
8854 haveit=yes
8855 break
8856 fi
8857 done
8858 if test -z "$haveit"; then
8859 if test -d "$additional_libdir"; then
8860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8861 fi
8862 fi
8863 fi
8864 fi
8865 ;;
8866 -R*)
8867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8868 if test "$enable_rpath" != no; then
8869 haveit=
8870 for x in $rpathdirs; do
8871 if test "X$x" = "X$dir"; then
8872 haveit=yes
8873 break
8874 fi
8875 done
8876 if test -z "$haveit"; then
8877 rpathdirs="$rpathdirs $dir"
8878 fi
8879 haveit=
8880 for x in $ltrpathdirs; do
8881 if test "X$x" = "X$dir"; then
8882 haveit=yes
8883 break
8884 fi
8885 done
8886 if test -z "$haveit"; then
8887 ltrpathdirs="$ltrpathdirs $dir"
8888 fi
8889 fi
8890 ;;
8891 -l*)
8892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8893 ;;
8894 *.la)
8895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8896 ;;
8897 *)
8898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8900 ;;
8901 esac
8902 done
8903 fi
8904 else
8905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8907 fi
8908 fi
8909 fi
8910 done
8911 done
8912 if test "X$rpathdirs" != "X"; then
8913 if test -n "$hardcode_libdir_separator"; then
8914 alldirs=
8915 for found_dir in $rpathdirs; do
8916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8917 done
8918 acl_save_libdir="$libdir"
8919 libdir="$alldirs"
8920 eval flag=\"$hardcode_libdir_flag_spec\"
8921 libdir="$acl_save_libdir"
8922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8923 else
8924 for found_dir in $rpathdirs; do
8925 acl_save_libdir="$libdir"
8926 libdir="$found_dir"
8927 eval flag=\"$hardcode_libdir_flag_spec\"
8928 libdir="$acl_save_libdir"
8929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8930 done
8931 fi
8932 fi
8933 if test "X$ltrpathdirs" != "X"; then
8934 for found_dir in $ltrpathdirs; do
8935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8936 done
8937 fi
8938
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008939
8940
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008942
8943
8944
8945
Theodore Ts'oe1052142006-10-21 21:46:47 -04008946 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8947echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008948if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008950else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951 cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
8957$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008958typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008959int
8960main ()
8961{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008962if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008963 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008964if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008965 return 0;
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008971if { (ac_try="$ac_compile"
8972case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975esac
8976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008987 ac_cv_type_ptrdiff_t=yes
8988else
8989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
Theodore Ts'oe1052142006-10-21 21:46:47 -04008992 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008993fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008994
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008996fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008997{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8998echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008999if test $ac_cv_type_ptrdiff_t = yes; then
9000 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009002
9003cat >>confdefs.h <<\_ACEOF
9004#define ptrdiff_t long
9005_ACEOF
9006
9007
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009008fi
9009
9010
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009011
9012
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009013
9014
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009015
9016
9017
9018
9019
9020for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009021stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009022do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009028 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009030ac_res=`eval echo '${'$as_ac_Header'}'`
9031 { echo "$as_me:$LINENO: result: $ac_res" >&5
9032echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009033else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009034 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009035{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009037cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043$ac_includes_default
9044#include <$ac_header>
9045_ACEOF
9046rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009047if { (ac_try="$ac_compile"
9048case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051esac
9052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063 ac_header_compiler=yes
9064else
9065 echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
Theodore Ts'oe1052142006-10-21 21:46:47 -04009068 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009070
9071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009074
9075# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009076{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009078cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h. */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h. */
9084#include <$ac_header>
9085_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009086if { (ac_try="$ac_cpp conftest.$ac_ext"
9087case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009098 (exit $ac_status); } >/dev/null && {
9099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009102 ac_header_preproc=yes
9103else
9104 echo "$as_me: failed program was:" >&5
9105sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_header_preproc=no
9108fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009110rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009111{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9112echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113
9114# So? What about this header?
9115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9116 yes:no: )
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9121 ac_header_preproc=yes
9122 ;;
9123 no:yes:* )
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009137 ;;
9138esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009139{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009142 echo $ECHO_N "(cached) $ECHO_C" >&6
9143else
9144 eval "$as_ac_Header=\$ac_header_preproc"
9145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009146ac_res=`eval echo '${'$as_ac_Header'}'`
9147 { echo "$as_me:$LINENO: result: $ac_res" >&5
9148echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009149
9150fi
9151if test `eval echo '${'$as_ac_Header'}'` = yes; then
9152 cat >>confdefs.h <<_ACEOF
9153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9154_ACEOF
9155
9156fi
9157
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009158done
9159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9184mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9185strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9186__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009187do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009189{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009192 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009193else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009194 cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
9200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9202#define $ac_func innocuous_$ac_func
9203
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009204/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009205 which can conflict with char $ac_func (); below.
9206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207 <limits.h> exists even on freestanding compilers. */
9208
9209#ifdef __STDC__
9210# include <limits.h>
9211#else
9212# include <assert.h>
9213#endif
9214
9215#undef $ac_func
9216
Theodore Ts'oe1052142006-10-21 21:46:47 -04009217/* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220#ifdef __cplusplus
9221extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009224/* The GNU C library defines this for functions which it implements
9225 to always fail with ENOSYS. Some functions are actually named
9226 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009227#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009228choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009229#endif
9230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009231int
9232main ()
9233{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009234return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009235 ;
9236 return 0;
9237}
9238_ACEOF
9239rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009240if { (ac_try="$ac_link"
9241case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244esac
9245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest$ac_exeext &&
9256 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009257 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009258else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009259 echo "$as_me: failed program was:" >&5
9260sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009261
Theodore Ts'oe1052142006-10-21 21:46:47 -04009262 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009264
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266 conftest$ac_exeext conftest.$ac_ext
9267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009268ac_res=`eval echo '${'$as_ac_var'}'`
9269 { echo "$as_me:$LINENO: result: $ac_res" >&5
9270echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271if test `eval echo '${'$as_ac_var'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9274_ACEOF
9275
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009276fi
9277done
9278
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280
Theodore Ts'oe1052142006-10-21 21:46:47 -04009281 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9282echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283if test "${ac_cv_have_decl__snprintf+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286 cat >conftest.$ac_ext <<_ACEOF
9287/* confdefs.h. */
9288_ACEOF
9289cat confdefs.h >>conftest.$ac_ext
9290cat >>conftest.$ac_ext <<_ACEOF
9291/* end confdefs.h. */
9292#include <stdio.h>
9293int
9294main ()
9295{
9296
9297#ifndef _snprintf
9298 char *p = (char *) _snprintf;
9299#endif
9300
9301 ;
9302 return 0;
9303}
9304_ACEOF
9305rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009306if { (ac_try="$ac_compile"
9307case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310esac
9311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009322 ac_cv_have_decl__snprintf=yes
9323else
9324 echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
Theodore Ts'oe1052142006-10-21 21:46:47 -04009327 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009329
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009332{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9333echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009334 if test $ac_cv_have_decl__snprintf = yes; then
9335 gt_value=1
9336 else
9337 gt_value=0
9338 fi
9339
9340cat >>confdefs.h <<_ACEOF
9341#define HAVE_DECL__SNPRINTF $gt_value
9342_ACEOF
9343
9344
9345
Theodore Ts'oe1052142006-10-21 21:46:47 -04009346 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9347echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009348if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351 cat >conftest.$ac_ext <<_ACEOF
9352/* confdefs.h. */
9353_ACEOF
9354cat confdefs.h >>conftest.$ac_ext
9355cat >>conftest.$ac_ext <<_ACEOF
9356/* end confdefs.h. */
9357#include <stdio.h>
9358int
9359main ()
9360{
9361
9362#ifndef _snwprintf
9363 char *p = (char *) _snwprintf;
9364#endif
9365
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009371if { (ac_try="$ac_compile"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387 ac_cv_have_decl__snwprintf=yes
9388else
9389 echo "$as_me: failed program was:" >&5
9390sed 's/^/| /' conftest.$ac_ext >&5
9391
Theodore Ts'oe1052142006-10-21 21:46:47 -04009392 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009393fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009394
9395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009396fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009397{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9398echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009399 if test $ac_cv_have_decl__snwprintf = yes; then
9400 gt_value=1
9401 else
9402 gt_value=0
9403 fi
9404
9405cat >>confdefs.h <<_ACEOF
9406#define HAVE_DECL__SNWPRINTF $gt_value
9407_ACEOF
9408
9409
9410
9411
Theodore Ts'oe1052142006-10-21 21:46:47 -04009412 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9413echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009414if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417 cat >conftest.$ac_ext <<_ACEOF
9418/* confdefs.h. */
9419_ACEOF
9420cat confdefs.h >>conftest.$ac_ext
9421cat >>conftest.$ac_ext <<_ACEOF
9422/* end confdefs.h. */
9423#include <stdio.h>
9424int
9425main ()
9426{
9427
9428#ifndef feof_unlocked
9429 char *p = (char *) feof_unlocked;
9430#endif
9431
9432 ;
9433 return 0;
9434}
9435_ACEOF
9436rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009437if { (ac_try="$ac_compile"
9438case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441esac
9442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009453 ac_cv_have_decl_feof_unlocked=yes
9454else
9455 echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
Theodore Ts'oe1052142006-10-21 21:46:47 -04009458 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009459fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009460
9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009462fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009463{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9464echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465 if test $ac_cv_have_decl_feof_unlocked = yes; then
9466 gt_value=1
9467 else
9468 gt_value=0
9469 fi
9470
9471cat >>confdefs.h <<_ACEOF
9472#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9473_ACEOF
9474
9475
9476
Theodore Ts'oe1052142006-10-21 21:46:47 -04009477 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9478echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 cat >conftest.$ac_ext <<_ACEOF
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
9488#include <stdio.h>
9489int
9490main ()
9491{
9492
9493#ifndef fgets_unlocked
9494 char *p = (char *) fgets_unlocked;
9495#endif
9496
9497 ;
9498 return 0;
9499}
9500_ACEOF
9501rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009502if { (ac_try="$ac_compile"
9503case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009518 ac_cv_have_decl_fgets_unlocked=yes
9519else
9520 echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
Theodore Ts'oe1052142006-10-21 21:46:47 -04009523 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009524fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009525
9526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009528{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9529echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009530 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9531 gt_value=1
9532 else
9533 gt_value=0
9534 fi
9535
9536cat >>confdefs.h <<_ACEOF
9537#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9538_ACEOF
9539
9540
9541
Theodore Ts'oe1052142006-10-21 21:46:47 -04009542 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9543echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009544if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547 cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h. */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h. */
9553#include <stdio.h>
9554int
9555main ()
9556{
9557
9558#ifndef getc_unlocked
9559 char *p = (char *) getc_unlocked;
9560#endif
9561
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009567if { (ac_try="$ac_compile"
9568case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583 ac_cv_have_decl_getc_unlocked=yes
9584else
9585 echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
Theodore Ts'oe1052142006-10-21 21:46:47 -04009588 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009590
9591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009593{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9594echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009595 if test $ac_cv_have_decl_getc_unlocked = yes; then
9596 gt_value=1
9597 else
9598 gt_value=0
9599 fi
9600
9601cat >>confdefs.h <<_ACEOF
9602#define HAVE_DECL_GETC_UNLOCKED $gt_value
9603_ACEOF
9604
9605
9606
9607 case $gt_cv_func_printf_posix in
9608 *yes) HAVE_POSIX_PRINTF=1 ;;
9609 *) HAVE_POSIX_PRINTF=0 ;;
9610 esac
9611
9612 if test "$ac_cv_func_asprintf" = yes; then
9613 HAVE_ASPRINTF=1
9614 else
9615 HAVE_ASPRINTF=0
9616 fi
9617
9618 if test "$ac_cv_func_snprintf" = yes; then
9619 HAVE_SNPRINTF=1
9620 else
9621 HAVE_SNPRINTF=0
9622 fi
9623
9624 if test "$ac_cv_func_wprintf" = yes; then
9625 HAVE_WPRINTF=1
9626 else
9627 HAVE_WPRINTF=0
9628 fi
9629
9630
9631
9632
9633
9634
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009635
9636 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009637
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009638 for element in $INCICONV; do
9639 haveit=
9640 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009641
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009642 acl_save_prefix="$prefix"
9643 prefix="$acl_final_prefix"
9644 acl_save_exec_prefix="$exec_prefix"
9645 exec_prefix="$acl_final_exec_prefix"
9646 eval x=\"$x\"
9647 exec_prefix="$acl_save_exec_prefix"
9648 prefix="$acl_save_prefix"
9649
9650 if test "X$x" = "X$element"; then
9651 haveit=yes
9652 break
9653 fi
9654 done
9655 if test -z "$haveit"; then
9656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9657 fi
9658 done
9659
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009660
Theodore Ts'oe1052142006-10-21 21:46:47 -04009661 { echo "$as_me:$LINENO: checking for iconv" >&5
9662echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009663if test "${am_cv_func_iconv+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009665else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009666
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009667 am_cv_func_iconv="no, consider installing GNU libiconv"
9668 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009669 cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009675#include <stdlib.h>
9676#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677int
9678main ()
9679{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009680iconv_t cd = iconv_open("","");
9681 iconv(cd,NULL,NULL,NULL,NULL);
9682 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683 ;
9684 return 0;
9685}
9686_ACEOF
9687rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009688if { (ac_try="$ac_link"
9689case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692esac
9693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009705 am_cv_func_iconv=yes
9706else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
Theodore Ts'oe1052142006-10-21 21:46:47 -04009710
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009712
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009714 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009715 if test "$am_cv_func_iconv" != yes; then
9716 am_save_LIBS="$LIBS"
9717 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009718 cat >conftest.$ac_ext <<_ACEOF
9719/* confdefs.h. */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009724#include <stdlib.h>
9725#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726int
9727main ()
9728{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009729iconv_t cd = iconv_open("","");
9730 iconv(cd,NULL,NULL,NULL,NULL);
9731 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009732 ;
9733 return 0;
9734}
9735_ACEOF
9736rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009737if { (ac_try="$ac_link"
9738case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741esac
9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744 ac_status=$?
9745 grep -v '^ *+' conftest.er1 >conftest.err
9746 rm -f conftest.er1
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009749 (exit $ac_status); } && {
9750 test -z "$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 } && test -s conftest$ac_exeext &&
9753 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009754 am_cv_lib_iconv=yes
9755 am_cv_func_iconv=yes
9756else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009757 echo "$as_me: failed program was:" >&5
9758sed 's/^/| /' conftest.$ac_ext >&5
9759
Theodore Ts'oe1052142006-10-21 21:46:47 -04009760
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009761fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009762
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009764 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009765 LIBS="$am_save_LIBS"
9766 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009768fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009769{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9770echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009771 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772
9773cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009774#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009775_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009776
9777 fi
9778 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009779 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9780echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9781 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9782echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009783 else
9784 CPPFLAGS="$am_save_CPPFLAGS"
9785 LIBICONV=
9786 LTLIBICONV=
9787 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009788
9789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009790
9791 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009792 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9793echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009794 if test "${am_cv_proto_iconv+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009796else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009797
9798 cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009804
9805#include <stdlib.h>
9806#include <iconv.h>
9807extern
9808#ifdef __cplusplus
9809"C"
9810#endif
9811#if defined(__STDC__) || defined(__cplusplus)
9812size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9813#else
9814size_t iconv();
9815#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009816
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009817int
9818main ()
9819{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009821 ;
9822 return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009826if { (ac_try="$ac_compile"
9827case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009842 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009843else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
Theodore Ts'oe1052142006-10-21 21:46:47 -04009847 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009849
9850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009851 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 +00009852fi
9853
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009854 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009855 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009856 }$am_cv_proto_iconv" >&5
9857echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009858 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009859
9860cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009861#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009862_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009863
9864 fi
9865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009866
Theodore Ts'oe1052142006-10-21 21:46:47 -04009867 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9868echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009869if test "${am_cv_langinfo_codeset+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009871else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872 cat >conftest.$ac_ext <<_ACEOF
9873/* confdefs.h. */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009878#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009879int
9880main ()
9881{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009882char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009905 am_cv_langinfo_codeset=yes
9906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009909
Theodore Ts'oe1052142006-10-21 21:46:47 -04009910 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009911fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009912
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009914 conftest$ac_exeext conftest.$ac_ext
9915
9916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009917{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9918echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009919 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920
9921cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009922#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009923_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009924
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009925 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009926
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009927 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009928
Theodore Ts'oe1052142006-10-21 21:46:47 -04009929 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9930echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934 cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h. */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009940#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941int
9942main ()
9943{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009944return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009950if { (ac_try="$ac_link"
9951case "(($ac_try" in
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest$ac_exeext &&
9966 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009967 am_cv_val_LC_MESSAGES=yes
9968else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009969 echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009971
Theodore Ts'oe1052142006-10-21 21:46:47 -04009972 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009974
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976 conftest$ac_exeext conftest.$ac_ext
9977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009978{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9979echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009980 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009981
9982cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009983#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009984_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009985
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009986 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009987
9988 fi
9989
9990 for ac_prog in bison
9991do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009993set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009996if test "${ac_cv_prog_INTLBISON+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009998else
9999 if test -n "$INTLBISON"; then
10000 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010008 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 -050010009 ac_cv_prog_INTLBISON="$ac_prog"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010015IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010016
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010017fi
10018fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010019INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010020if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010021 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10022echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010023else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010024 { echo "$as_me:$LINENO: result: no" >&5
10025echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010026fi
10027
Theodore Ts'oe1052142006-10-21 21:46:47 -040010028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010030done
10031
10032 if test -z "$INTLBISON"; then
10033 ac_verc_fail=yes
10034 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010035 { echo "$as_me:$LINENO: checking version of bison" >&5
10036echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010037 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10038 case $ac_prog_version in
10039 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10040 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10041 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10042 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10043 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010044 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10045echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010046 fi
10047 if test $ac_verc_fail = yes; then
10048 INTLBISON=:
10049 fi
10050
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010051
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010052
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010053
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010054
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010055
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010056
10057
10058
10059
10060
10061
10062
10063
10064
10065
Theodore Ts'oe1052142006-10-21 21:46:47 -040010066 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10067echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10068 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010069if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010070 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010071else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010072 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010073fi
10074
10075 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10076echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010077
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010079
10080
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010081 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010082 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010083
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010084 LIBINTL=
10085 LTLIBINTL=
10086 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010087
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010088 if test "$USE_NLS" = "yes"; then
10089 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010090
Theodore Ts'oe1052142006-10-21 21:46:47 -040010091 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10092echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010093
Theodore Ts'oe1052142006-10-21 21:46:47 -040010094# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010095if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010096 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010097else
10098 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010099fi
10100
10101 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10102echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010103
10104 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10105 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010107
10108
10109
10110
10111
Theodore Ts'oe1052142006-10-21 21:46:47 -040010112 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10113echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010114if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010116else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010117 cat >conftest.$ac_ext <<_ACEOF
10118/* confdefs.h. */
10119_ACEOF
10120cat confdefs.h >>conftest.$ac_ext
10121cat >>conftest.$ac_ext <<_ACEOF
10122/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010123#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010124extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010125extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126int
10127main ()
10128{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010129bindtextdomain ("", "");
10130return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010131 ;
10132 return 0;
10133}
10134_ACEOF
10135rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010136if { (ac_try="$ac_link"
10137case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140esac
10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext &&
10152 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010153 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010154else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010157
Theodore Ts'oe1052142006-10-21 21:46:47 -040010158 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010160
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010162 conftest$ac_exeext conftest.$ac_ext
10163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010164{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10165echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010166
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010167 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010168
10169
10170
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010171 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010172
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010173 acl_save_prefix="$prefix"
10174 prefix="$acl_final_prefix"
10175 acl_save_exec_prefix="$exec_prefix"
10176 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010178 eval additional_includedir=\"$includedir\"
10179 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010180
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010181 exec_prefix="$acl_save_exec_prefix"
10182 prefix="$acl_save_prefix"
10183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184
Theodore Ts'oe1052142006-10-21 21:46:47 -040010185# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010186if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010187 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010188 if test "X$withval" = "Xno"; then
10189 use_additional=no
10190 else
10191 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010192
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010193 acl_save_prefix="$prefix"
10194 prefix="$acl_final_prefix"
10195 acl_save_exec_prefix="$exec_prefix"
10196 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010197
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010198 eval additional_includedir=\"$includedir\"
10199 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010201 exec_prefix="$acl_save_exec_prefix"
10202 prefix="$acl_save_prefix"
10203
10204 else
10205 additional_includedir="$withval/include"
10206 additional_libdir="$withval/lib"
10207 fi
10208 fi
10209
Theodore Ts'oe1052142006-10-21 21:46:47 -040010210fi
10211
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010212 LIBINTL=
10213 LTLIBINTL=
10214 INCINTL=
10215 rpathdirs=
10216 ltrpathdirs=
10217 names_already_handled=
10218 names_next_round='intl '
10219 while test -n "$names_next_round"; do
10220 names_this_round="$names_next_round"
10221 names_next_round=
10222 for name in $names_this_round; do
10223 already_handled=
10224 for n in $names_already_handled; do
10225 if test "$n" = "$name"; then
10226 already_handled=yes
10227 break
10228 fi
10229 done
10230 if test -z "$already_handled"; then
10231 names_already_handled="$names_already_handled $name"
10232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10233 eval value=\"\$HAVE_LIB$uppername\"
10234 if test -n "$value"; then
10235 if test "$value" = yes; then
10236 eval value=\"\$LIB$uppername\"
10237 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10238 eval value=\"\$LTLIB$uppername\"
10239 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10240 else
10241 :
10242 fi
10243 else
10244 found_dir=
10245 found_la=
10246 found_so=
10247 found_a=
10248 if test $use_additional = yes; then
10249 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10250 found_dir="$additional_libdir"
10251 found_so="$additional_libdir/lib$name.$shlibext"
10252 if test -f "$additional_libdir/lib$name.la"; then
10253 found_la="$additional_libdir/lib$name.la"
10254 fi
10255 else
10256 if test -f "$additional_libdir/lib$name.$libext"; then
10257 found_dir="$additional_libdir"
10258 found_a="$additional_libdir/lib$name.$libext"
10259 if test -f "$additional_libdir/lib$name.la"; then
10260 found_la="$additional_libdir/lib$name.la"
10261 fi
10262 fi
10263 fi
10264 fi
10265 if test "X$found_dir" = "X"; then
10266 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10272 eval x=\"$x\"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010275
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010276 case "$x" in
10277 -L*)
10278 dir=`echo "X$x" | sed -e 's/^X-L//'`
10279 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10280 found_dir="$dir"
10281 found_so="$dir/lib$name.$shlibext"
10282 if test -f "$dir/lib$name.la"; then
10283 found_la="$dir/lib$name.la"
10284 fi
10285 else
10286 if test -f "$dir/lib$name.$libext"; then
10287 found_dir="$dir"
10288 found_a="$dir/lib$name.$libext"
10289 if test -f "$dir/lib$name.la"; then
10290 found_la="$dir/lib$name.la"
10291 fi
10292 fi
10293 fi
10294 ;;
10295 esac
10296 if test "X$found_dir" != "X"; then
10297 break
10298 fi
10299 done
10300 fi
10301 if test "X$found_dir" != "X"; then
10302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10303 if test "X$found_so" != "X"; then
10304 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10305 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10306 else
10307 haveit=
10308 for x in $ltrpathdirs; do
10309 if test "X$x" = "X$found_dir"; then
10310 haveit=yes
10311 break
10312 fi
10313 done
10314 if test -z "$haveit"; then
10315 ltrpathdirs="$ltrpathdirs $found_dir"
10316 fi
10317 if test "$hardcode_direct" = yes; then
10318 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10319 else
10320 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10321 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10322 haveit=
10323 for x in $rpathdirs; do
10324 if test "X$x" = "X$found_dir"; then
10325 haveit=yes
10326 break
10327 fi
10328 done
10329 if test -z "$haveit"; then
10330 rpathdirs="$rpathdirs $found_dir"
10331 fi
10332 else
10333 haveit=
10334 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010335
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010336 acl_save_prefix="$prefix"
10337 prefix="$acl_final_prefix"
10338 acl_save_exec_prefix="$exec_prefix"
10339 exec_prefix="$acl_final_exec_prefix"
10340 eval x=\"$x\"
10341 exec_prefix="$acl_save_exec_prefix"
10342 prefix="$acl_save_prefix"
10343
10344 if test "X$x" = "X-L$found_dir"; then
10345 haveit=yes
10346 break
10347 fi
10348 done
10349 if test -z "$haveit"; then
10350 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10351 fi
10352 if test "$hardcode_minus_L" != no; then
10353 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10354 else
10355 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10356 fi
10357 fi
10358 fi
10359 fi
10360 else
10361 if test "X$found_a" != "X"; then
10362 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10363 else
10364 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10365 fi
10366 fi
10367 additional_includedir=
10368 case "$found_dir" in
10369 */lib | */lib/)
10370 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10371 additional_includedir="$basedir/include"
10372 ;;
10373 esac
10374 if test "X$additional_includedir" != "X"; then
10375 if test "X$additional_includedir" != "X/usr/include"; then
10376 haveit=
10377 if test "X$additional_includedir" = "X/usr/local/include"; then
10378 if test -n "$GCC"; then
10379 case $host_os in
10380 linux*) haveit=yes;;
10381 esac
10382 fi
10383 fi
10384 if test -z "$haveit"; then
10385 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010386
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010387 acl_save_prefix="$prefix"
10388 prefix="$acl_final_prefix"
10389 acl_save_exec_prefix="$exec_prefix"
10390 exec_prefix="$acl_final_exec_prefix"
10391 eval x=\"$x\"
10392 exec_prefix="$acl_save_exec_prefix"
10393 prefix="$acl_save_prefix"
10394
10395 if test "X$x" = "X-I$additional_includedir"; then
10396 haveit=yes
10397 break
10398 fi
10399 done
10400 if test -z "$haveit"; then
10401 if test -d "$additional_includedir"; then
10402 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10403 fi
10404 fi
10405 fi
10406 fi
10407 fi
10408 if test -n "$found_la"; then
10409 save_libdir="$libdir"
10410 case "$found_la" in
10411 */* | *\\*) . "$found_la" ;;
10412 *) . "./$found_la" ;;
10413 esac
10414 libdir="$save_libdir"
10415 for dep in $dependency_libs; do
10416 case "$dep" in
10417 -L*)
10418 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10419 if test "X$additional_libdir" != "X/usr/lib"; then
10420 haveit=
10421 if test "X$additional_libdir" = "X/usr/local/lib"; then
10422 if test -n "$GCC"; then
10423 case $host_os in
10424 linux*) haveit=yes;;
10425 esac
10426 fi
10427 fi
10428 if test -z "$haveit"; then
10429 haveit=
10430 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010431
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010432 acl_save_prefix="$prefix"
10433 prefix="$acl_final_prefix"
10434 acl_save_exec_prefix="$exec_prefix"
10435 exec_prefix="$acl_final_exec_prefix"
10436 eval x=\"$x\"
10437 exec_prefix="$acl_save_exec_prefix"
10438 prefix="$acl_save_prefix"
10439
10440 if test "X$x" = "X-L$additional_libdir"; then
10441 haveit=yes
10442 break
10443 fi
10444 done
10445 if test -z "$haveit"; then
10446 if test -d "$additional_libdir"; then
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10448 fi
10449 fi
10450 haveit=
10451 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010452
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10457 eval x=\"$x\"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
10460
10461 if test "X$x" = "X-L$additional_libdir"; then
10462 haveit=yes
10463 break
10464 fi
10465 done
10466 if test -z "$haveit"; then
10467 if test -d "$additional_libdir"; then
10468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10469 fi
10470 fi
10471 fi
10472 fi
10473 ;;
10474 -R*)
10475 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10476 if test "$enable_rpath" != no; then
10477 haveit=
10478 for x in $rpathdirs; do
10479 if test "X$x" = "X$dir"; then
10480 haveit=yes
10481 break
10482 fi
10483 done
10484 if test -z "$haveit"; then
10485 rpathdirs="$rpathdirs $dir"
10486 fi
10487 haveit=
10488 for x in $ltrpathdirs; do
10489 if test "X$x" = "X$dir"; then
10490 haveit=yes
10491 break
10492 fi
10493 done
10494 if test -z "$haveit"; then
10495 ltrpathdirs="$ltrpathdirs $dir"
10496 fi
10497 fi
10498 ;;
10499 -l*)
10500 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10501 ;;
10502 *.la)
10503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10504 ;;
10505 *)
10506 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10508 ;;
10509 esac
10510 done
10511 fi
10512 else
10513 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10515 fi
10516 fi
10517 fi
10518 done
10519 done
10520 if test "X$rpathdirs" != "X"; then
10521 if test -n "$hardcode_libdir_separator"; then
10522 alldirs=
10523 for found_dir in $rpathdirs; do
10524 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10525 done
10526 acl_save_libdir="$libdir"
10527 libdir="$alldirs"
10528 eval flag=\"$hardcode_libdir_flag_spec\"
10529 libdir="$acl_save_libdir"
10530 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10531 else
10532 for found_dir in $rpathdirs; do
10533 acl_save_libdir="$libdir"
10534 libdir="$found_dir"
10535 eval flag=\"$hardcode_libdir_flag_spec\"
10536 libdir="$acl_save_libdir"
10537 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10538 done
10539 fi
10540 fi
10541 if test "X$ltrpathdirs" != "X"; then
10542 for found_dir in $ltrpathdirs; do
10543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10544 done
10545 fi
10546
Theodore Ts'oe1052142006-10-21 21:46:47 -040010547 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10548echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010549if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010551else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010552 gt_save_CPPFLAGS="$CPPFLAGS"
10553 CPPFLAGS="$CPPFLAGS $INCINTL"
10554 gt_save_LIBS="$LIBS"
10555 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010556 cat >conftest.$ac_ext <<_ACEOF
10557/* confdefs.h. */
10558_ACEOF
10559cat confdefs.h >>conftest.$ac_ext
10560cat >>conftest.$ac_ext <<_ACEOF
10561/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010562#include <libintl.h>
10563extern int _nl_msg_cat_cntr;
10564extern
10565#ifdef __cplusplus
10566"C"
10567#endif
10568const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010569int
10570main ()
10571{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010572bindtextdomain ("", "");
10573return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010579if { (ac_try="$ac_link"
10580case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583esac
10584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest$ac_exeext &&
10595 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010596 gt_cv_func_gnugettext1_libintl=yes
10597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010598 echo "$as_me: failed program was:" >&5
10599sed 's/^/| /' conftest.$ac_ext >&5
10600
Theodore Ts'oe1052142006-10-21 21:46:47 -040010601 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010603
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010606 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10607 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608 cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010614#include <libintl.h>
10615extern int _nl_msg_cat_cntr;
10616extern
10617#ifdef __cplusplus
10618"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010619#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010620const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621int
10622main ()
10623{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010624bindtextdomain ("", "");
10625return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626 ;
10627 return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010631if { (ac_try="$ac_link"
10632case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635esac
10636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010648 LIBINTL="$LIBINTL $LIBICONV"
10649 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10650 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010651
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010652else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010653 echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
Theodore Ts'oe1052142006-10-21 21:46:47 -040010656
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010658
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010661 fi
10662 CPPFLAGS="$gt_save_CPPFLAGS"
10663 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010665{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10666echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010667 fi
10668
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010669 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10670 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010671 && test "$PACKAGE" != gettext-runtime \
10672 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010673 gt_use_preinstalled_gnugettext=yes
10674 else
10675 LIBINTL=
10676 LTLIBINTL=
10677 INCINTL=
10678 fi
10679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010681 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10682 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010683 fi
10684 fi
10685
10686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010687 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010688 USE_INCLUDED_LIBINTL=yes
10689 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10690 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10691 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010692 fi
10693
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010694 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10695 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10696 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010697 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010699
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010700 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10701 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010702
10703cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010704#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010705_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010706
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010707 else
10708 USE_NLS=no
10709 fi
10710 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010711
Theodore Ts'oe1052142006-10-21 21:46:47 -040010712 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10713echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10714 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10715echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010717 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10718echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010719 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10720 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10721 gt_source="external libintl"
10722 else
10723 gt_source="libc"
10724 fi
10725 else
10726 gt_source="included intl directory"
10727 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010728 { echo "$as_me:$LINENO: result: $gt_source" >&5
10729echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730 fi
10731
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010732 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010733
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010734 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10735 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010736 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10737echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10738 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10739echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010740
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010741 for element in $INCINTL; do
10742 haveit=
10743 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010745 acl_save_prefix="$prefix"
10746 prefix="$acl_final_prefix"
10747 acl_save_exec_prefix="$exec_prefix"
10748 exec_prefix="$acl_final_exec_prefix"
10749 eval x=\"$x\"
10750 exec_prefix="$acl_save_exec_prefix"
10751 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010752
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010753 if test "X$x" = "X$element"; then
10754 haveit=yes
10755 break
10756 fi
10757 done
10758 if test -z "$haveit"; then
10759 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10760 fi
10761 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010762
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010764
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010766cat >>confdefs.h <<\_ACEOF
10767#define HAVE_GETTEXT 1
10768_ACEOF
10769
10770
10771cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010772#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010773_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010774
10775 fi
10776
10777 POSUB=po
10778 fi
10779
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010780
10781 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010782 BUILD_INCLUDED_LIBINTL=yes
10783 fi
10784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010785
10786
10787
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010788
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010789 nls_cv_header_intl=
10790 nls_cv_header_libgt=
10791
10792 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010794
10795 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010796
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010797
10798 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799
10800
10801 if test "$USE_INCLUDED_LIBINTL" = yes; then
10802 INTLOBJS="\$(GETTOBJS)"
10803 fi
10804
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010805
10806 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010807
10808
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010809
10810 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010811
10812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813
10814
10815
10816
10817
Theodore Ts'oe1052142006-10-21 21:46:47 -040010818{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10819echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10820set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10821if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010823else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010824 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010825SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010826all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010827 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010828_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010829# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010830case `${MAKE-make} -f conftest.make 2>/dev/null` in
10831 *@@@%%%=?*=@@@%%%*)
10832 eval ac_cv_prog_make_${ac_make}_set=yes;;
10833 *)
10834 eval ac_cv_prog_make_${ac_make}_set=no;;
10835esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010837fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10839 { echo "$as_me:$LINENO: result: yes" >&5
10840echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010841 SET_MAKE=
10842else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010843 { echo "$as_me:$LINENO: result: no" >&5
10844echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010845 SET_MAKE="MAKE=${MAKE-make}"
10846fi
10847
10848# Extract the first word of "ln", so it can be a program name with args.
10849set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010852if test "${ac_cv_path_LN+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010854else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855 case $LN in
10856 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010857 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10858 ;;
10859 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861for as_dir in $PATH
10862do
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010866 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 -050010867 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10870 fi
10871done
10872done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010873IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010874
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010875 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10876 ;;
10877esac
10878fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010879LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010880if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010881 { echo "$as_me:$LINENO: result: $LN" >&5
10882echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010883else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010884 { echo "$as_me:$LINENO: result: no" >&5
10885echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010886fi
10887
Theodore Ts'oe1052142006-10-21 21:46:47 -040010888
10889{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10890echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010891LN_S=$as_ln_s
10892if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010893 { echo "$as_me:$LINENO: result: yes" >&5
10894echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010895else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010896 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10897echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010898fi
10899
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010900# Extract the first word of "mv", so it can be a program name with args.
10901set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010904if test "${ac_cv_path_MV+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010907 case $MV in
10908 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10910 ;;
10911 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010918 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 -050010919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923done
10924done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010925IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010926
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10928 ;;
10929esac
10930fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010931MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010932if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933 { echo "$as_me:$LINENO: result: $MV" >&5
10934echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010935else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010936 { echo "$as_me:$LINENO: result: no" >&5
10937echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010938fi
10939
Theodore Ts'oe1052142006-10-21 21:46:47 -040010940
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010941# Extract the first word of "cp", so it can be a program name with args.
10942set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010945if test "${ac_cv_path_CP+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010947else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010948 case $CP in
10949 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010950 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10951 ;;
10952 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954for as_dir in $PATH
10955do
10956 IFS=$as_save_IFS
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010959 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 -050010960 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10962 break 2
10963 fi
10964done
10965done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010966IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010967
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010968 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10969 ;;
10970esac
10971fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010972CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010973if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010974 { echo "$as_me:$LINENO: result: $CP" >&5
10975echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010976else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010977 { echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010979fi
10980
Theodore Ts'oe1052142006-10-21 21:46:47 -040010981
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010982# Extract the first word of "rm", so it can be a program name with args.
10983set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010986if test "${ac_cv_path_RM+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010988else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010989 case $RM in
10990 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010991 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10992 ;;
10993 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011000 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 -050011001 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005done
11006done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011007IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011008
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011009 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11010 ;;
11011esac
11012fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011013RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011014if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011015 { echo "$as_me:$LINENO: result: $RM" >&5
11016echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011017else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011018 { echo "$as_me:$LINENO: result: no" >&5
11019echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011020fi
11021
Theodore Ts'oe1052142006-10-21 21:46:47 -040011022
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011023# Extract the first word of "chmod", so it can be a program name with args.
11024set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011027if test "${ac_cv_path_CHMOD+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011030 case $CHMOD in
11031 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011032 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11033 ;;
11034 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011041 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 -050011042 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11045 fi
11046done
11047done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011048IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011049
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011050 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11051 ;;
11052esac
11053fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011054CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011055if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011056 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11057echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011058else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011059 { echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011061fi
11062
Theodore Ts'oe1052142006-10-21 21:46:47 -040011063
Theodore Ts'o32237012005-01-17 19:13:39 -050011064for ac_prog in gawk mawk nawk awk
11065do
11066 # Extract the first word of "$ac_prog", so it can be a program name with args.
11067set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011070if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011071 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011072else
Theodore Ts'o32237012005-01-17 19:13:39 -050011073 if test -n "$AWK"; then
11074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11075else
11076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011077for as_dir in $PATH
11078do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011082 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 -050011083 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087done
11088done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011089IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011090
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011091fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011092fi
11093AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011094if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011095 { echo "$as_me:$LINENO: result: $AWK" >&5
11096echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011097else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011098 { echo "$as_me:$LINENO: result: no" >&5
11099echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011100fi
11101
Theodore Ts'oe1052142006-10-21 21:46:47 -040011102
Theodore Ts'o32237012005-01-17 19:13:39 -050011103 test -n "$AWK" && break
11104done
11105
Theodore Ts'oe1052142006-10-21 21:46:47 -040011106{ echo "$as_me:$LINENO: checking for egrep" >&5
11107echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11108if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11112 then ac_cv_path_EGREP="$GREP -E"
11113 else
11114 # Extract the first word of "egrep" to use in msg output
11115if test -z "$EGREP"; then
11116set dummy egrep; ac_prog_name=$2
11117if test "${ac_cv_path_EGREP+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119else
11120 ac_path_EGREP_found=false
11121# Loop through the user's path and test for each of PROGNAME-LIST
11122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11124do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_prog in egrep; do
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011130 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011131 # Check for GNU ac_path_EGREP and select it if it is found.
11132 # Check for GNU $ac_path_EGREP
11133case `"$ac_path_EGREP" --version 2>&1` in
11134*GNU*)
11135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11136*)
11137 ac_count=0
11138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11139 while :
11140 do
11141 cat "conftest.in" "conftest.in" >"conftest.tmp"
11142 mv "conftest.tmp" "conftest.in"
11143 cp "conftest.in" "conftest.nl"
11144 echo 'EGREP' >> "conftest.nl"
11145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11147 ac_count=`expr $ac_count + 1`
11148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11149 # Best one so far, save it but keep looking for a better one
11150 ac_cv_path_EGREP="$ac_path_EGREP"
11151 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011152 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011153 # 10*(2^10) chars as input seems more than enough
11154 test $ac_count -gt 10 && break
11155 done
11156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11157esac
11158
11159
11160 $ac_path_EGREP_found && break 3
11161 done
11162done
11163
11164done
11165IFS=$as_save_IFS
11166
11167
Theodore Ts'o32237012005-01-17 19:13:39 -050011168fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011169
11170EGREP="$ac_cv_path_EGREP"
11171if test -z "$EGREP"; then
11172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11173echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11174 { (exit 1); exit 1; }; }
11175fi
11176
11177else
11178 ac_cv_path_EGREP=$EGREP
11179fi
11180
11181
11182 fi
11183fi
11184{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11185echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11186 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011187
11188
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011189# Extract the first word of "sed", so it can be a program name with args.
11190set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011193if test "${ac_cv_path_SED+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011195else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011196 case $SED in
11197 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011198 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11199 ;;
11200 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011207 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 -050011208 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212done
11213done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011214IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011215
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011216 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11217 ;;
11218esac
11219fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011220SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011221if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011222 { echo "$as_me:$LINENO: result: $SED" >&5
11223echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011224else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011225 { echo "$as_me:$LINENO: result: no" >&5
11226echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011227fi
11228
Theodore Ts'oe1052142006-10-21 21:46:47 -040011229
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011230# Extract the first word of "perl", so it can be a program name with args.
11231set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011234if test "${ac_cv_path_PERL+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011237 case $PERL in
11238 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011239 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11240 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011241 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011248 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 -050011249 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253done
11254done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011255IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011256
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011257 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11258 ;;
11259esac
11260fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011261PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011262if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011263 { echo "$as_me:$LINENO: result: $PERL" >&5
11264echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011265else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011266 { echo "$as_me:$LINENO: result: no" >&5
11267echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011268fi
11269
Theodore Ts'oe1052142006-10-21 21:46:47 -040011270
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011271# Extract the first word of "ldconfig", so it can be a program name with args.
11272set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011275if test "${ac_cv_path_LDCONFIG+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011278 case $LDCONFIG in
11279 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011280 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11281 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011282 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284for as_dir in $PATH
11285do
11286 IFS=$as_save_IFS
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011289 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 -050011290 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11292 break 2
11293 fi
11294done
11295done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011296IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011297
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011298 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11299 ;;
11300esac
11301fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011302LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011303if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011304 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11305echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011306else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011307 { echo "$as_me:$LINENO: result: no" >&5
11308echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011309fi
11310
Theodore Ts'oe1052142006-10-21 21:46:47 -040011311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312if test -n "$ac_tool_prefix"; then
11313 # 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 +000011314set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011317if test "${ac_cv_prog_AR+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011319else
11320 if test -n "$AR"; then
11321 ac_cv_prog_AR="$AR" # Let the user override the test.
11322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011329 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 -050011330 ac_cv_prog_AR="${ac_tool_prefix}ar"
11331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334done
11335done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011336IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011337
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011338fi
11339fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011341if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011342 { echo "$as_me:$LINENO: result: $AR" >&5
11343echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011344else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011345 { echo "$as_me:$LINENO: result: no" >&5
11346echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011347fi
11348
Theodore Ts'oe1052142006-10-21 21:46:47 -040011349
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011351if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011352 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011353 # Extract the first word of "ar", so it can be a program name with args.
11354set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011359else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011360 if test -n "$ac_ct_AR"; then
11361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011362else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364for as_dir in $PATH
11365do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011369 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 -050011370 ac_cv_prog_ac_ct_AR="ar"
11371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374done
11375done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011376IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011377
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011378fi
11379fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380ac_ct_AR=$ac_cv_prog_ac_ct_AR
11381if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011382 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11383echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011384else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011385 { echo "$as_me:$LINENO: result: no" >&5
11386echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011387fi
11388
Theodore Ts'oe1052142006-10-21 21:46:47 -040011389 if test "x$ac_ct_AR" = x; then
11390 AR="ar"
11391 else
11392 case $cross_compiling:$ac_tool_warned in
11393yes:)
11394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11395whose name does not start with the host triplet. If you think this
11396configuration is useful to you, please write to autoconf@gnu.org." >&5
11397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11398whose name does not start with the host triplet. If you think this
11399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11400ac_tool_warned=yes ;;
11401esac
11402 AR=$ac_ct_AR
11403 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011405 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011406fi
11407
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408if test -n "$ac_tool_prefix"; then
11409 # 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 +000011410set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413if test "${ac_cv_prog_RANLIB+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011415else
11416 if test -n "$RANLIB"; then
11417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11418else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011425 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 -050011426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 break 2
11429 fi
11430done
11431done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011432IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011434fi
11435fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011437if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011438 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11439echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011440else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011441 { echo "$as_me:$LINENO: result: no" >&5
11442echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011443fi
11444
Theodore Ts'oe1052142006-10-21 21:46:47 -040011445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011446fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011447if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011448 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011449 # Extract the first word of "ranlib", so it can be a program name with args.
11450set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011453if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011455else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011456 if test -n "$ac_ct_RANLIB"; then
11457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011458else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460for as_dir in $PATH
11461do
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011465 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 -050011466 ac_cv_prog_ac_ct_RANLIB="ranlib"
11467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11469 fi
11470done
11471done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011472IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011474fi
11475fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11477if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011478 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11479echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011480else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011481 { echo "$as_me:$LINENO: result: no" >&5
11482echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011483fi
11484
Theodore Ts'oe1052142006-10-21 21:46:47 -040011485 if test "x$ac_ct_RANLIB" = x; then
11486 RANLIB=":"
11487 else
11488 case $cross_compiling:$ac_tool_warned in
11489yes:)
11490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11491whose name does not start with the host triplet. If you think this
11492configuration is useful to you, please write to autoconf@gnu.org." >&5
11493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11494whose name does not start with the host triplet. If you think this
11495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11496ac_tool_warned=yes ;;
11497esac
11498 RANLIB=$ac_ct_RANLIB
11499 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011500else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011502fi
11503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504if test -n "$ac_tool_prefix"; then
11505 # 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 +000011506set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509if test "${ac_cv_prog_STRIP+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511else
11512 if test -n "$STRIP"; then
11513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11514else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
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_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11525 fi
11526done
11527done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011528IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530fi
11531fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011533if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011534 { echo "$as_me:$LINENO: result: $STRIP" >&5
11535echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011536else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011537 { echo "$as_me:$LINENO: result: no" >&5
11538echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011539fi
11540
Theodore Ts'oe1052142006-10-21 21:46:47 -040011541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011542fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011543if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011545 # Extract the first word of "strip", so it can be a program name with args.
11546set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011549if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552 if test -n "$ac_ct_STRIP"; then
11553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011554else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011561 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 -050011562 ac_cv_prog_ac_ct_STRIP="strip"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566done
11567done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011568IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011570fi
11571fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11573if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011574 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11575echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011576else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011577 { echo "$as_me:$LINENO: result: no" >&5
11578echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011579fi
11580
Theodore Ts'oe1052142006-10-21 21:46:47 -040011581 if test "x$ac_ct_STRIP" = x; then
11582 STRIP=":"
11583 else
11584 case $cross_compiling:$ac_tool_warned in
11585yes:)
11586{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11587whose name does not start with the host triplet. If you think this
11588configuration is useful to you, please write to autoconf@gnu.org." >&5
11589echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11590whose name does not start with the host triplet. If you think this
11591configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11592ac_tool_warned=yes ;;
11593esac
11594 STRIP=$ac_ct_STRIP
11595 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011596else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598fi
11599
Manish Katiyar7321d942008-04-14 17:20:03 +053011600# Extract the first word of "makeinfo", so it can be a program name with args.
11601set dummy makeinfo; ac_word=$2
11602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11604if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606else
11607 if test -n "$MAKEINFO"; then
11608 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11609else
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617 ac_cv_prog_MAKEINFO="makeinfo"
11618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11620 fi
11621done
11622done
11623IFS=$as_save_IFS
11624
11625fi
11626fi
11627MAKEINFO=$ac_cv_prog_MAKEINFO
11628if test -n "$MAKEINFO"; then
11629 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11630echo "${ECHO_T}$MAKEINFO" >&6; }
11631else
11632 { echo "$as_me:$LINENO: result: no" >&5
11633echo "${ECHO_T}no" >&6; }
11634fi
11635
11636
11637if test "_$MAKEINFO" = "_"; then
11638 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11639else
11640 case "$MAKEINFO" in
11641 */missing.*)
11642 { echo "$as_me:$LINENO: WARNING:
11643*** Makeinfo is missing. Info documentation will not be built." >&5
11644echo "$as_me: WARNING:
11645*** Makeinfo is missing. Info documentation will not be built." >&2;}
11646 ;;
11647 *)
11648 ;;
11649 esac
11650fi
11651
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011652# Find a good install program. We prefer a C program (faster),
11653# so one script is as good as another. But avoid the broken or
11654# incompatible versions:
11655# SysV /etc/install, /usr/sbin/install
11656# SunOS /usr/etc/install
11657# IRIX /sbin/install
11658# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011664# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011665{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011667if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668if test "${ac_cv_path_install+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 # Account for people who put trailing slashes in PATH elements.
11677case $as_dir/ in
11678 ./ | .// | /cC/* | \
11679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11681 /usr/ucb/* ) ;;
11682 *)
11683 # OSF1 and SCO ODT 3.0 have their own names for install.
11684 # Don't use installbsd from OSF since it installs stuff as root
11685 # by default.
11686 for ac_prog in ginstall scoinst install; do
11687 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011688 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 +000011689 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011691 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693 elif test $ac_prog = install &&
11694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11695 # program-specific install script used by HP pwplus--don't use.
11696 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011697 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11699 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011700 fi
11701 fi
11702 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703 done
11704 ;;
11705esac
11706done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011707IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011708
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011709
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011710fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011711 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011712 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011713 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011714 # As a last resort, use the slow shell script. Don't cache a
11715 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011716 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011717 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011719 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011721{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11722echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011723
11724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11725# It thinks the first close brace ends the variable substitution.
11726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011729
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11731
Theodore Ts'o6c133521999-07-03 20:37:03 +000011732# See if we need a separate native compiler.
11733if test $cross_compiling = no; then
11734 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011735
Theodore Ts'o6c133521999-07-03 20:37:03 +000011736else
11737 for ac_prog in gcc cc
11738do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011740set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011743if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011745else
11746 if test -n "$BUILD_CC"; then
11747 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11748else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011751do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011755 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 -050011756 ac_cv_prog_BUILD_CC="$ac_prog"
11757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11759 fi
11760done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011761done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011762IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011764fi
11765fi
11766BUILD_CC=$ac_cv_prog_BUILD_CC
11767if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11769echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011770else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011771 { echo "$as_me:$LINENO: result: no" >&5
11772echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011773fi
11774
Theodore Ts'oe1052142006-10-21 21:46:47 -040011775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011776 test -n "$BUILD_CC" && break
11777done
11778
11779fi
11780
Theodore Ts'o740837d2007-12-16 17:21:38 -050011781
11782
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011811
Theodore Ts'o106ad962007-04-04 21:26:37 -040011812
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011813
11814
11815for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011816do
11817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011824ac_res=`eval echo '${'$as_ac_Header'}'`
11825 { echo "$as_me:$LINENO: result: $ac_res" >&5
11826echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011827else
11828 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011829{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837$ac_includes_default
11838#include <$ac_header>
11839_ACEOF
11840rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841if { (ac_try="$ac_compile"
11842case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011857 ac_header_compiler=yes
11858else
11859 echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
Theodore Ts'oe1052142006-10-21 21:46:47 -040011862 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011864
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868
11869# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878#include <$ac_header>
11879_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011880if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -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); } >/dev/null && {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896 ac_header_preproc=yes
11897else
11898 echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 ac_header_preproc=no
11902fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011907
11908# So? What about this header?
11909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910 yes:no: )
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11916 ;;
11917 no:yes:* )
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011931 ;;
11932esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 eval "$as_ac_Header=\$ac_header_preproc"
11939fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011940ac_res=`eval echo '${'$as_ac_Header'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943
11944fi
11945if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11948_ACEOF
11949
11950fi
11951
11952done
11953
11954
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011955
11956for ac_header in sys/disk.h sys/mount.h
11957do
11958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011962 echo $ECHO_N "(cached) $ECHO_C" >&6
11963else
11964 cat >conftest.$ac_ext <<_ACEOF
11965/* confdefs.h. */
11966_ACEOF
11967cat confdefs.h >>conftest.$ac_ext
11968cat >>conftest.$ac_ext <<_ACEOF
11969/* end confdefs.h. */
11970
11971#if HAVE_SYS_QUEUE_H
11972#include <sys/queue.h>
11973#endif
11974
11975
11976#include <$ac_header>
11977_ACEOF
11978rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011979if { (ac_try="$ac_compile"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011995 eval "$as_ac_Header=yes"
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
Theodore Ts'oe1052142006-10-21 21:46:47 -040012000 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012002
12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012005ac_res=`eval echo '${'$as_ac_Header'}'`
12006 { echo "$as_me:$LINENO: result: $ac_res" >&5
12007echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012008if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011_ACEOF
12012
12013fi
12014
12015done
12016
12017
12018for ac_header in net/if.h
12019do
12020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012021{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026 cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032
12033#if HAVE_SYS_TYPES_H
12034#include <sys/types.h>
12035#endif
12036#if HAVE_SYS_SOCKET
12037#include <sys/socket.h>
12038#endif
12039
12040
12041#include <$ac_header>
12042_ACEOF
12043rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012044if { (ac_try="$ac_compile"
12045case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048esac
12049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012060 eval "$as_ac_Header=yes"
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
Theodore Ts'oe1052142006-10-21 21:46:47 -040012065 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012067
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070ac_res=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012073if test `eval echo '${'$as_ac_Header'}'` = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12076_ACEOF
12077
12078fi
12079
12080done
12081
12082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083for ac_func in vprintf
12084do
12085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091 cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099#define $ac_func innocuous_$ac_func
12100
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012101/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12105
12106#ifdef __STDC__
12107# include <limits.h>
12108#else
12109# include <assert.h>
12110#endif
12111
12112#undef $ac_func
12113
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114/* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117#ifdef __cplusplus
12118extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012121/* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012124#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012125choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012126#endif
12127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128int
12129main ()
12130{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012131return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132 ;
12133 return 0;
12134}
12135_ACEOF
12136rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137if { (ac_try="$ac_link"
12138case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 echo "$as_me: failed program was:" >&5
12157sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012158
Theodore Ts'oe1052142006-10-21 21:46:47 -040012159 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012161
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163 conftest$ac_exeext conftest.$ac_ext
12164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165ac_res=`eval echo '${'$as_ac_var'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168if test `eval echo '${'$as_ac_var'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12171_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012172
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12174echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175if test "${ac_cv_func__doprnt+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012177else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178 cat >conftest.$ac_ext <<_ACEOF
12179/* confdefs.h. */
12180_ACEOF
12181cat confdefs.h >>conftest.$ac_ext
12182cat >>conftest.$ac_ext <<_ACEOF
12183/* end confdefs.h. */
12184/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12186#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012187
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012188/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189 which can conflict with char _doprnt (); below.
12190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191 <limits.h> exists even on freestanding compilers. */
12192
12193#ifdef __STDC__
12194# include <limits.h>
12195#else
12196# include <assert.h>
12197#endif
12198
12199#undef _doprnt
12200
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201/* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204#ifdef __cplusplus
12205extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012208/* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012212choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012213#endif
12214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215int
12216main ()
12217{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012219 ;
12220 return 0;
12221}
12222_ACEOF
12223rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224if { (ac_try="$ac_link"
12225case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228esac
12229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012236 (exit $ac_status); } && {
12237 test -z "$ac_c_werror_flag" ||
12238 test ! -s conftest.err
12239 } && test -s conftest$ac_exeext &&
12240 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012242else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243 echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012245
Theodore Ts'oe1052142006-10-21 21:46:47 -040012246 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012248
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012250 conftest$ac_exeext conftest.$ac_ext
12251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012252{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12253echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012254if test $ac_cv_func__doprnt = yes; then
12255
12256cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012257#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012259
12260fi
12261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262fi
12263done
12264
12265
Theodore Ts'oe1052142006-10-21 21:46:47 -040012266{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12267echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012268if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012277#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012279int
12280main ()
12281{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012282static struct dirent ac_aggr;
12283if (ac_aggr.d_reclen)
12284return 0;
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_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012307else
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 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
12317#include <dirent.h>
12318
12319int
12320main ()
12321{
12322static struct dirent ac_aggr;
12323if (sizeof ac_aggr.d_reclen)
12324return 0;
12325 ;
12326 return 0;
12327}
12328_ACEOF
12329rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012330if { (ac_try="$ac_compile"
12331case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334esac
12335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012346 ac_cv_member_struct_dirent_d_reclen=yes
12347else
12348 echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
Theodore Ts'oe1052142006-10-21 21:46:47 -040012351 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012353
12354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012356
12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012358fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012359{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12360echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012361if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12362 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012363#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012365
12366fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012367
Theodore Ts'oe1052142006-10-21 21:46:47 -040012368{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12369echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012370if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012371 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012372else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012373 cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h. */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012379#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012380
Theodore Ts'oe1052142006-10-21 21:46:47 -040012381typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012382int
12383main ()
12384{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012385if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012386 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012387if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012388 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389 ;
12390 return 0;
12391}
12392_ACEOF
12393rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012394if { (ac_try="$ac_compile"
12395case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012410 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012411else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
Theodore Ts'oe1052142006-10-21 21:46:47 -040012415 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012416fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012417
12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012419fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012420{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12421echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012422if test $ac_cv_type_ssize_t = yes; then
12423 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012424#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012425_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012426
12427fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012428
Theodore Ts'oe1052142006-10-21 21:46:47 -040012429{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12430echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012431if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012433else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012434 cat >conftest.$ac_ext <<_ACEOF
12435/* confdefs.h. */
12436_ACEOF
12437cat confdefs.h >>conftest.$ac_ext
12438cat >>conftest.$ac_ext <<_ACEOF
12439/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012440#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012442int
12443main ()
12444{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012445#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012446 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012447#endif
12448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012449 ;
12450 return 0;
12451}
12452_ACEOF
12453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012454if { (ac_try="$ac_compile"
12455case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458esac
12459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012470 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012471else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012472 echo "$as_me: failed program was:" >&5
12473sed 's/^/| /' conftest.$ac_ext >&5
12474
Theodore Ts'oe1052142006-10-21 21:46:47 -040012475 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012477
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012479fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012480{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12481echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012482if test $ac_cv_have_decl_llseek = yes; then
12483 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012484#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012485_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012486
12487fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012488
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12490echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012491if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012492 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012493else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494 cat >conftest.$ac_ext <<_ACEOF
12495/* confdefs.h. */
12496_ACEOF
12497cat confdefs.h >>conftest.$ac_ext
12498cat >>conftest.$ac_ext <<_ACEOF
12499/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012500#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012501 #define _LARGEFILE64_SOURCE
12502 #include <unistd.h>
12503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012504int
12505main ()
12506{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012507#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012508 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012509#endif
12510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511 ;
12512 return 0;
12513}
12514_ACEOF
12515rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012516if { (ac_try="$ac_compile"
12517case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012528 (exit $ac_status); } && {
12529 test -z "$ac_c_werror_flag" ||
12530 test ! -s conftest.err
12531 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012532 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012533else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534 echo "$as_me: failed program was:" >&5
12535sed 's/^/| /' conftest.$ac_ext >&5
12536
Theodore Ts'oe1052142006-10-21 21:46:47 -040012537 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012539
12540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012541fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012542{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12543echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012544if test $ac_cv_have_decl_lseek64 = yes; then
12545 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012546#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012547_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012548
12549fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012550
Theodore Ts'oe1052142006-10-21 21:46:47 -040012551{ echo "$as_me:$LINENO: checking for short" >&5
12552echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553if test "${ac_cv_type_short+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12555else
12556 cat >conftest.$ac_ext <<_ACEOF
12557/* confdefs.h. */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h. */
12562$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012563typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012564int
12565main ()
12566{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012567if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012568 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012569if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012570 return 0;
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012576if { (ac_try="$ac_compile"
12577case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12580esac
12581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012583 ac_status=$?
12584 grep -v '^ *+' conftest.er1 >conftest.err
12585 rm -f conftest.er1
12586 cat conftest.err >&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012588 (exit $ac_status); } && {
12589 test -z "$ac_c_werror_flag" ||
12590 test ! -s conftest.err
12591 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012592 ac_cv_type_short=yes
12593else
12594 echo "$as_me: failed program was:" >&5
12595sed 's/^/| /' conftest.$ac_ext >&5
12596
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012599
Theodore Ts'oe1052142006-10-21 21:46:47 -040012600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12601fi
12602{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12603echo "${ECHO_T}$ac_cv_type_short" >&6; }
12604
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012605# The cast to long int works around a bug in the HP C Compiler
12606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12608# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012609{ echo "$as_me:$LINENO: checking size of short" >&5
12610echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012611if test "${ac_cv_sizeof_short+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012614 if test "$cross_compiling" = yes; then
12615 # Depending upon the size, compute the lo and hi bounds.
12616cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012623 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012624int
12625main ()
12626{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012627static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012628test_array [0] = 0
12629
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012635if { (ac_try="$ac_compile"
12636case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639esac
12640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012651 ac_lo=0 ac_mid=0
12652 while :; do
12653 cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
12659$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012660 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012661int
12662main ()
12663{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012664static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012665test_array [0] = 0
12666
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012672if { (ac_try="$ac_compile"
12673case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012688 ac_hi=$ac_mid; break
12689else
12690 echo "$as_me: failed program was:" >&5
12691sed 's/^/| /' conftest.$ac_ext >&5
12692
Theodore Ts'oe1052142006-10-21 21:46:47 -040012693 ac_lo=`expr $ac_mid + 1`
12694 if test $ac_lo -le $ac_mid; then
12695 ac_lo= ac_hi=
12696 break
12697 fi
12698 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012699fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012700
12701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012702 done
12703else
12704 echo "$as_me: failed program was:" >&5
12705sed 's/^/| /' conftest.$ac_ext >&5
12706
Theodore Ts'oe1052142006-10-21 21:46:47 -040012707 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h. */
12713$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012714 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012715int
12716main ()
12717{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012718static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012719test_array [0] = 0
12720
12721 ;
12722 return 0;
12723}
12724_ACEOF
12725rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012726if { (ac_try="$ac_compile"
12727case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730esac
12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012738 (exit $ac_status); } && {
12739 test -z "$ac_c_werror_flag" ||
12740 test ! -s conftest.err
12741 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012742 ac_hi=-1 ac_mid=-1
12743 while :; do
12744 cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012751 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012752int
12753main ()
12754{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012755static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756test_array [0] = 0
12757
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012763if { (ac_try="$ac_compile"
12764case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767esac
12768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779 ac_lo=$ac_mid; break
12780else
12781 echo "$as_me: failed program was:" >&5
12782sed 's/^/| /' conftest.$ac_ext >&5
12783
Theodore Ts'oe1052142006-10-21 21:46:47 -040012784 ac_hi=`expr '(' $ac_mid ')' - 1`
12785 if test $ac_mid -le $ac_hi; then
12786 ac_lo= ac_hi=
12787 break
12788 fi
12789 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012791
12792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012793 done
12794else
12795 echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
Theodore Ts'oe1052142006-10-21 21:46:47 -040012798 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012800
12801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012803
12804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805# Binary search between lo and hi bounds.
12806while test "x$ac_lo" != "x$ac_hi"; do
12807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012815 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012816int
12817main ()
12818{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012819static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820test_array [0] = 0
12821
12822 ;
12823 return 0;
12824}
12825_ACEOF
12826rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012827if { (ac_try="$ac_compile"
12828case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012843 ac_hi=$ac_mid
12844else
12845 echo "$as_me: failed program was:" >&5
12846sed 's/^/| /' conftest.$ac_ext >&5
12847
Theodore Ts'oe1052142006-10-21 21:46:47 -040012848 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012849fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012850
12851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852done
12853case $ac_lo in
12854?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012855'') if test "$ac_cv_type_short" = yes; then
12856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012857See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012859See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012860 { (exit 77); exit 77; }; }
12861 else
12862 ac_cv_sizeof_short=0
12863 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012864esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012865else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866 cat >conftest.$ac_ext <<_ACEOF
12867/* confdefs.h. */
12868_ACEOF
12869cat confdefs.h >>conftest.$ac_ext
12870cat >>conftest.$ac_ext <<_ACEOF
12871/* end confdefs.h. */
12872$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012873 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012874static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12875static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012876#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012877#include <stdlib.h>
12878int
12879main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012880{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881
12882 FILE *f = fopen ("conftest.val", "w");
12883 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012884 return 1;
12885 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012887 long int i = longval ();
12888 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12889 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012890 fprintf (f, "%ld\n", i);
12891 }
12892 else
12893 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012894 unsigned long int i = ulongval ();
12895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12896 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012897 fprintf (f, "%lu\n", i);
12898 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012899 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012900
12901 ;
12902 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012903}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012904_ACEOF
12905rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012926else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012927 echo "$as_me: program exited with status $ac_status" >&5
12928echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
12931( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012932if test "$ac_cv_type_short" = yes; then
12933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012935echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012937 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012938 else
12939 ac_cv_sizeof_short=0
12940 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012941fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012942rm -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 -050012943fi
12944rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012945fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012946{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12947echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012948
12949
12950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012951cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012952#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012954
12955
Theodore Ts'oe1052142006-10-21 21:46:47 -040012956{ echo "$as_me:$LINENO: checking for int" >&5
12957echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012958if test "${ac_cv_type_int+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 cat >conftest.$ac_ext <<_ACEOF
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
12967$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012968typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012969int
12970main ()
12971{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012972if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012973 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012974if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975 return 0;
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012981if { (ac_try="$ac_compile"
12982case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985esac
12986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012993 (exit $ac_status); } && {
12994 test -z "$ac_c_werror_flag" ||
12995 test ! -s conftest.err
12996 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997 ac_cv_type_int=yes
12998else
12999 echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
Theodore Ts'oe1052142006-10-21 21:46:47 -040013002 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013004
Theodore Ts'oe1052142006-10-21 21:46:47 -040013005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006fi
13007{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13008echo "${ECHO_T}$ac_cv_type_int" >&6; }
13009
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013010# The cast to long int works around a bug in the HP C Compiler
13011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13013# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013014{ echo "$as_me:$LINENO: checking size of int" >&5
13015echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013016if test "${ac_cv_sizeof_int+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013019 if test "$cross_compiling" = yes; then
13020 # Depending upon the size, compute the lo and hi bounds.
13021cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
13027$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013028 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013029int
13030main ()
13031{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013032static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013033test_array [0] = 0
13034
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013040if { (ac_try="$ac_compile"
13041case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13044esac
13045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013047 ac_status=$?
13048 grep -v '^ *+' conftest.er1 >conftest.err
13049 rm -f conftest.er1
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013052 (exit $ac_status); } && {
13053 test -z "$ac_c_werror_flag" ||
13054 test ! -s conftest.err
13055 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013056 ac_lo=0 ac_mid=0
13057 while :; do
13058 cat >conftest.$ac_ext <<_ACEOF
13059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
13064$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013065 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013066int
13067main ()
13068{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013069static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013070test_array [0] = 0
13071
13072 ;
13073 return 0;
13074}
13075_ACEOF
13076rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013077if { (ac_try="$ac_compile"
13078case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013093 ac_hi=$ac_mid; break
13094else
13095 echo "$as_me: failed program was:" >&5
13096sed 's/^/| /' conftest.$ac_ext >&5
13097
Theodore Ts'oe1052142006-10-21 21:46:47 -040013098 ac_lo=`expr $ac_mid + 1`
13099 if test $ac_lo -le $ac_mid; then
13100 ac_lo= ac_hi=
13101 break
13102 fi
13103 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013105
13106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013107 done
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
Theodore Ts'oe1052142006-10-21 21:46:47 -040013112 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013113/* confdefs.h. */
13114_ACEOF
13115cat confdefs.h >>conftest.$ac_ext
13116cat >>conftest.$ac_ext <<_ACEOF
13117/* end confdefs.h. */
13118$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013119 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013120int
13121main ()
13122{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013123static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013124test_array [0] = 0
13125
13126 ;
13127 return 0;
13128}
13129_ACEOF
13130rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013131if { (ac_try="$ac_compile"
13132case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135esac
13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013147 ac_hi=-1 ac_mid=-1
13148 while :; do
13149 cat >conftest.$ac_ext <<_ACEOF
13150/* confdefs.h. */
13151_ACEOF
13152cat confdefs.h >>conftest.$ac_ext
13153cat >>conftest.$ac_ext <<_ACEOF
13154/* end confdefs.h. */
13155$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013156 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013157int
13158main ()
13159{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013160static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013161test_array [0] = 0
13162
13163 ;
13164 return 0;
13165}
13166_ACEOF
13167rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013168if { (ac_try="$ac_compile"
13169case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013184 ac_lo=$ac_mid; break
13185else
13186 echo "$as_me: failed program was:" >&5
13187sed 's/^/| /' conftest.$ac_ext >&5
13188
Theodore Ts'oe1052142006-10-21 21:46:47 -040013189 ac_hi=`expr '(' $ac_mid ')' - 1`
13190 if test $ac_mid -le $ac_hi; then
13191 ac_lo= ac_hi=
13192 break
13193 fi
13194 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013195fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013196
13197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013198 done
13199else
13200 echo "$as_me: failed program was:" >&5
13201sed 's/^/| /' conftest.$ac_ext >&5
13202
Theodore Ts'oe1052142006-10-21 21:46:47 -040013203 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013205
13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013207fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013208
13209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013210# Binary search between lo and hi bounds.
13211while test "x$ac_lo" != "x$ac_hi"; do
13212 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13213 cat >conftest.$ac_ext <<_ACEOF
13214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
13219$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013220 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013221int
13222main ()
13223{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013224static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013225test_array [0] = 0
13226
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013232if { (ac_try="$ac_compile"
13233case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013248 ac_hi=$ac_mid
13249else
13250 echo "$as_me: failed program was:" >&5
13251sed 's/^/| /' conftest.$ac_ext >&5
13252
Theodore Ts'oe1052142006-10-21 21:46:47 -040013253 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013254fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013255
13256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013257done
13258case $ac_lo in
13259?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013260'') if test "$ac_cv_type_int" = yes; then
13261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013262See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013263echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013264See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013265 { (exit 77); exit 77; }; }
13266 else
13267 ac_cv_sizeof_int=0
13268 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013269esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013271 cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
13276/* end confdefs.h. */
13277$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013278 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013279static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13280static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013281#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013282#include <stdlib.h>
13283int
13284main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013285{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013286
13287 FILE *f = fopen ("conftest.val", "w");
13288 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013289 return 1;
13290 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013291 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013292 long int i = longval ();
13293 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13294 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013295 fprintf (f, "%ld\n", i);
13296 }
13297 else
13298 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013299 unsigned long int i = ulongval ();
13300 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13301 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013302 fprintf (f, "%lu\n", i);
13303 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013304 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013305
13306 ;
13307 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013308}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013309_ACEOF
13310rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013311if { (ac_try="$ac_link"
13312case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315esac
13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013331else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013332 echo "$as_me: program exited with status $ac_status" >&5
13333echo "$as_me: failed program was:" >&5
13334sed 's/^/| /' conftest.$ac_ext >&5
13335
13336( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013337if test "$ac_cv_type_int" = yes; then
13338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013339See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013340echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013341See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013342 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013343 else
13344 ac_cv_sizeof_int=0
13345 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013346fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013347rm -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 -050013348fi
13349rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013350fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013351{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13352echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013353
13354
13355
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013356cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013357#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013359
13360
Theodore Ts'oe1052142006-10-21 21:46:47 -040013361{ echo "$as_me:$LINENO: checking for long" >&5
13362echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013363if test "${ac_cv_type_long+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
13366 cat >conftest.$ac_ext <<_ACEOF
13367/* confdefs.h. */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h. */
13372$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013373typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013374int
13375main ()
13376{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013377if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013378 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013379if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013380 return 0;
13381 ;
13382 return 0;
13383}
13384_ACEOF
13385rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013386if { (ac_try="$ac_compile"
13387case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13390esac
13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013393 ac_status=$?
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013398 (exit $ac_status); } && {
13399 test -z "$ac_c_werror_flag" ||
13400 test ! -s conftest.err
13401 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013402 ac_cv_type_long=yes
13403else
13404 echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
Theodore Ts'oe1052142006-10-21 21:46:47 -040013407 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013408fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013409
Theodore Ts'oe1052142006-10-21 21:46:47 -040013410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411fi
13412{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13413echo "${ECHO_T}$ac_cv_type_long" >&6; }
13414
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013415# The cast to long int works around a bug in the HP C Compiler
13416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13418# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013419{ echo "$as_me:$LINENO: checking size of long" >&5
13420echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013421if test "${ac_cv_sizeof_long+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13423else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013424 if test "$cross_compiling" = yes; then
13425 # Depending upon the size, compute the lo and hi bounds.
13426cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013433 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013434int
13435main ()
13436{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013437static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013438test_array [0] = 0
13439
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013445if { (ac_try="$ac_compile"
13446case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13449esac
13450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013461 ac_lo=0 ac_mid=0
13462 while :; do
13463 cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
13469$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013470 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013471int
13472main ()
13473{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013474static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013475test_array [0] = 0
13476
13477 ;
13478 return 0;
13479}
13480_ACEOF
13481rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013482if { (ac_try="$ac_compile"
13483case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498 ac_hi=$ac_mid; break
13499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
Theodore Ts'oe1052142006-10-21 21:46:47 -040013503 ac_lo=`expr $ac_mid + 1`
13504 if test $ac_lo -le $ac_mid; then
13505 ac_lo= ac_hi=
13506 break
13507 fi
13508 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013510
13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013512 done
13513else
13514 echo "$as_me: failed program was:" >&5
13515sed 's/^/| /' conftest.$ac_ext >&5
13516
Theodore Ts'oe1052142006-10-21 21:46:47 -040013517 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013518/* confdefs.h. */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h. */
13523$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013524 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013525int
13526main ()
13527{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013528static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013529test_array [0] = 0
13530
13531 ;
13532 return 0;
13533}
13534_ACEOF
13535rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013536if { (ac_try="$ac_compile"
13537case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540esac
13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013552 ac_hi=-1 ac_mid=-1
13553 while :; do
13554 cat >conftest.$ac_ext <<_ACEOF
13555/* confdefs.h. */
13556_ACEOF
13557cat confdefs.h >>conftest.$ac_ext
13558cat >>conftest.$ac_ext <<_ACEOF
13559/* end confdefs.h. */
13560$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013561 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013562int
13563main ()
13564{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013565static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013566test_array [0] = 0
13567
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013573if { (ac_try="$ac_compile"
13574case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577esac
13578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013589 ac_lo=$ac_mid; break
13590else
13591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
Theodore Ts'oe1052142006-10-21 21:46:47 -040013594 ac_hi=`expr '(' $ac_mid ')' - 1`
13595 if test $ac_mid -le $ac_hi; then
13596 ac_lo= ac_hi=
13597 break
13598 fi
13599 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013601
13602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013603 done
13604else
13605 echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
Theodore Ts'oe1052142006-10-21 21:46:47 -040013608 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013610
13611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013613
13614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615# Binary search between lo and hi bounds.
13616while test "x$ac_lo" != "x$ac_hi"; do
13617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13618 cat >conftest.$ac_ext <<_ACEOF
13619/* confdefs.h. */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h. */
13624$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013625 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013626int
13627main ()
13628{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013629static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013630test_array [0] = 0
13631
13632 ;
13633 return 0;
13634}
13635_ACEOF
13636rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013637if { (ac_try="$ac_compile"
13638case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641esac
13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013649 (exit $ac_status); } && {
13650 test -z "$ac_c_werror_flag" ||
13651 test ! -s conftest.err
13652 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013653 ac_hi=$ac_mid
13654else
13655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
Theodore Ts'oe1052142006-10-21 21:46:47 -040013658 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013660
13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013662done
13663case $ac_lo in
13664?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013665'') if test "$ac_cv_type_long" = yes; then
13666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013667See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013668echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013670 { (exit 77); exit 77; }; }
13671 else
13672 ac_cv_sizeof_long=0
13673 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013674esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013675else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013676 cat >conftest.$ac_ext <<_ACEOF
13677/* confdefs.h. */
13678_ACEOF
13679cat confdefs.h >>conftest.$ac_ext
13680cat >>conftest.$ac_ext <<_ACEOF
13681/* end confdefs.h. */
13682$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013683 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013684static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13685static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013686#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013687#include <stdlib.h>
13688int
13689main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013690{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013691
13692 FILE *f = fopen ("conftest.val", "w");
13693 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013694 return 1;
13695 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013696 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013697 long int i = longval ();
13698 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13699 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013700 fprintf (f, "%ld\n", i);
13701 }
13702 else
13703 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013704 unsigned long int i = ulongval ();
13705 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13706 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013707 fprintf (f, "%lu\n", i);
13708 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013709 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013710
13711 ;
13712 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013713}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013714_ACEOF
13715rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013716if { (ac_try="$ac_link"
13717case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013736else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013737 echo "$as_me: program exited with status $ac_status" >&5
13738echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
13741( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013742if test "$ac_cv_type_long" = yes; then
13743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013744See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013745echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013746See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013747 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013748 else
13749 ac_cv_sizeof_long=0
13750 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013752rm -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 -050013753fi
13754rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013755fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013756{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13757echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013758
13759
13760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013761cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013762#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013764
13765
Theodore Ts'oe1052142006-10-21 21:46:47 -040013766{ echo "$as_me:$LINENO: checking for long long" >&5
13767echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013768if test "${ac_cv_type_long_long+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770else
13771 cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h. */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h. */
13777$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013778typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013779int
13780main ()
13781{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013782if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013783 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013784if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013785 return 0;
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013791if { (ac_try="$ac_compile"
13792case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013807 ac_cv_type_long_long=yes
13808else
13809 echo "$as_me: failed program was:" >&5
13810sed 's/^/| /' conftest.$ac_ext >&5
13811
Theodore Ts'oe1052142006-10-21 21:46:47 -040013812 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013814
Theodore Ts'oe1052142006-10-21 21:46:47 -040013815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816fi
13817{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13818echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13819
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013820# The cast to long int works around a bug in the HP C Compiler
13821# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13822# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13823# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013824{ echo "$as_me:$LINENO: checking size of long long" >&5
13825echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013826if test "${ac_cv_sizeof_long_long+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013829 if test "$cross_compiling" = yes; then
13830 # Depending upon the size, compute the lo and hi bounds.
13831cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h. */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
13836/* end confdefs.h. */
13837$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013838 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013839int
13840main ()
13841{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013842static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013843test_array [0] = 0
13844
13845 ;
13846 return 0;
13847}
13848_ACEOF
13849rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013850if { (ac_try="$ac_compile"
13851case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854esac
13855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013857 ac_status=$?
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013866 ac_lo=0 ac_mid=0
13867 while :; do
13868 cat >conftest.$ac_ext <<_ACEOF
13869/* confdefs.h. */
13870_ACEOF
13871cat confdefs.h >>conftest.$ac_ext
13872cat >>conftest.$ac_ext <<_ACEOF
13873/* end confdefs.h. */
13874$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013875 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013876int
13877main ()
13878{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013880test_array [0] = 0
13881
13882 ;
13883 return 0;
13884}
13885_ACEOF
13886rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887if { (ac_try="$ac_compile"
13888case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13891esac
13892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013894 ac_status=$?
13895 grep -v '^ *+' conftest.er1 >conftest.err
13896 rm -f conftest.er1
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013903 ac_hi=$ac_mid; break
13904else
13905 echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
Theodore Ts'oe1052142006-10-21 21:46:47 -040013908 ac_lo=`expr $ac_mid + 1`
13909 if test $ac_lo -le $ac_mid; then
13910 ac_lo= ac_hi=
13911 break
13912 fi
13913 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013914fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013915
13916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013917 done
13918else
13919 echo "$as_me: failed program was:" >&5
13920sed 's/^/| /' conftest.$ac_ext >&5
13921
Theodore Ts'oe1052142006-10-21 21:46:47 -040013922 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h. */
13928$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013929 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013930int
13931main ()
13932{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013933static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013934test_array [0] = 0
13935
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013941if { (ac_try="$ac_compile"
13942case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13945esac
13946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013953 (exit $ac_status); } && {
13954 test -z "$ac_c_werror_flag" ||
13955 test ! -s conftest.err
13956 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013957 ac_hi=-1 ac_mid=-1
13958 while :; do
13959 cat >conftest.$ac_ext <<_ACEOF
13960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013966 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013967int
13968main ()
13969{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013970static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971test_array [0] = 0
13972
13973 ;
13974 return 0;
13975}
13976_ACEOF
13977rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978if { (ac_try="$ac_compile"
13979case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994 ac_lo=$ac_mid; break
13995else
13996 echo "$as_me: failed program was:" >&5
13997sed 's/^/| /' conftest.$ac_ext >&5
13998
Theodore Ts'oe1052142006-10-21 21:46:47 -040013999 ac_hi=`expr '(' $ac_mid ')' - 1`
14000 if test $ac_mid -le $ac_hi; then
14001 ac_lo= ac_hi=
14002 break
14003 fi
14004 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014006
14007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014008 done
14009else
14010 echo "$as_me: failed program was:" >&5
14011sed 's/^/| /' conftest.$ac_ext >&5
14012
Theodore Ts'oe1052142006-10-21 21:46:47 -040014013 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014014fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015
14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014017fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014018
14019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014020# Binary search between lo and hi bounds.
14021while test "x$ac_lo" != "x$ac_hi"; do
14022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14023 cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
14028/* end confdefs.h. */
14029$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014030 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014031int
14032main ()
14033{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014034static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014035test_array [0] = 0
14036
14037 ;
14038 return 0;
14039}
14040_ACEOF
14041rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014042if { (ac_try="$ac_compile"
14043case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014054 (exit $ac_status); } && {
14055 test -z "$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058 ac_hi=$ac_mid
14059else
14060 echo "$as_me: failed program was:" >&5
14061sed 's/^/| /' conftest.$ac_ext >&5
14062
Theodore Ts'oe1052142006-10-21 21:46:47 -040014063 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014064fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014065
14066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014067done
14068case $ac_lo in
14069?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014070'') if test "$ac_cv_type_long_long" = yes; then
14071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014072See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014073echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014074See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014075 { (exit 77); exit 77; }; }
14076 else
14077 ac_cv_sizeof_long_long=0
14078 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014079esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014080else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014081 cat >conftest.$ac_ext <<_ACEOF
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
14086/* end confdefs.h. */
14087$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014088 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014089static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14090static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014091#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014092#include <stdlib.h>
14093int
14094main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014095{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014096
14097 FILE *f = fopen ("conftest.val", "w");
14098 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014099 return 1;
14100 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014101 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014102 long int i = longval ();
14103 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14104 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014105 fprintf (f, "%ld\n", i);
14106 }
14107 else
14108 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014109 unsigned long int i = ulongval ();
14110 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14111 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014112 fprintf (f, "%lu\n", i);
14113 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014114 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014115
14116 ;
14117 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014118}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014119_ACEOF
14120rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014121if { (ac_try="$ac_link"
14122case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14125esac
14126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14134esac
14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014142 echo "$as_me: program exited with status $ac_status" >&5
14143echo "$as_me: failed program was:" >&5
14144sed 's/^/| /' conftest.$ac_ext >&5
14145
14146( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014147if test "$ac_cv_type_long_long" = yes; then
14148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014149See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014150echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014151See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014152 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014153 else
14154 ac_cv_sizeof_long_long=0
14155 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014156fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014157rm -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 -050014158fi
14159rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014160fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014161{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14162echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014163
14164
14165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014166cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014167#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014168_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014169
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014170
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014171SIZEOF_SHORT=$ac_cv_sizeof_short
14172SIZEOF_INT=$ac_cv_sizeof_int
14173SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014174SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14175
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014176
14177
14178
Theodore Ts'oe1052142006-10-21 21:46:47 -040014179{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14180echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014181if test "${ac_cv_c_bigendian+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184 # See if sys/param.h defines the BYTE_ORDER macro.
14185cat >conftest.$ac_ext <<_ACEOF
14186/* confdefs.h. */
14187_ACEOF
14188cat confdefs.h >>conftest.$ac_ext
14189cat >>conftest.$ac_ext <<_ACEOF
14190/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014191#include <sys/types.h>
14192#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014194int
14195main ()
14196{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014197#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14198 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014199 bogus endian macros
14200#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014201
14202 ;
14203 return 0;
14204}
14205_ACEOF
14206rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014207if { (ac_try="$ac_compile"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014223 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224cat >conftest.$ac_ext <<_ACEOF
14225/* confdefs.h. */
14226_ACEOF
14227cat confdefs.h >>conftest.$ac_ext
14228cat >>conftest.$ac_ext <<_ACEOF
14229/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014230#include <sys/types.h>
14231#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014233int
14234main ()
14235{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014236#if BYTE_ORDER != BIG_ENDIAN
14237 not big endian
14238#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014239
14240 ;
14241 return 0;
14242}
14243_ACEOF
14244rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014245if { (ac_try="$ac_compile"
14246case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249esac
14250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014261 ac_cv_c_bigendian=yes
14262else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
Theodore Ts'oe1052142006-10-21 21:46:47 -040014266 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014268
14269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014271 echo "$as_me: failed program was:" >&5
14272sed 's/^/| /' conftest.$ac_ext >&5
14273
Theodore Ts'oe1052142006-10-21 21:46:47 -040014274 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014275if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276 # try to guess the endianness by grepping values into an object file
14277 ac_cv_c_bigendian=unknown
14278 cat >conftest.$ac_ext <<_ACEOF
14279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
14283/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014284short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14285short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014286void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014287short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14288short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014289void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14290int
14291main ()
14292{
14293 _ascii (); _ebcdic ();
14294 ;
14295 return 0;
14296}
14297_ACEOF
14298rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299if { (ac_try="$ac_compile"
14300case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014311 (exit $ac_status); } && {
14312 test -z "$ac_c_werror_flag" ||
14313 test ! -s conftest.err
14314 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14316 ac_cv_c_bigendian=yes
14317fi
14318if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14319 if test "$ac_cv_c_bigendian" = unknown; then
14320 ac_cv_c_bigendian=no
14321 else
14322 # finding both strings is unlikely to happen, but who knows?
14323 ac_cv_c_bigendian=unknown
14324 fi
14325fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014327 echo "$as_me: failed program was:" >&5
14328sed 's/^/| /' conftest.$ac_ext >&5
14329
Theodore Ts'oe1052142006-10-21 21:46:47 -040014330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014332
14333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014334else
14335 cat >conftest.$ac_ext <<_ACEOF
14336/* confdefs.h. */
14337_ACEOF
14338cat confdefs.h >>conftest.$ac_ext
14339cat >>conftest.$ac_ext <<_ACEOF
14340/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014341$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342int
14343main ()
14344{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014345
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014346 /* Are we little or big endian? From Harbison&Steele. */
14347 union
14348 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014349 long int l;
14350 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014351 } u;
14352 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014353 return u.c[sizeof (long int) - 1] == 1;
14354
14355 ;
14356 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014357}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014358_ACEOF
14359rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014360if { (ac_try="$ac_link"
14361case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364esac
14365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014379 ac_cv_c_bigendian=no
14380else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014381 echo "$as_me: program exited with status $ac_status" >&5
14382echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385( exit $ac_status )
14386ac_cv_c_bigendian=yes
14387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014388rm -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 -040014389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014390
14391
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014392fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014393
14394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014396{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14397echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014398case $ac_cv_c_bigendian in
14399 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014401cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014402#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014403_ACEOF
14404 ;;
14405 no)
14406 ;;
14407 *)
14408 { { echo "$as_me:$LINENO: error: unknown endianness
14409presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14410echo "$as_me: error: unknown endianness
14411presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14412 { (exit 1); exit 1; }; } ;;
14413esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014414
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014415BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014416ASM_TYPES_HEADER=./asm_types.h
14417
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014418echo "/* These defines are needed for the public ext2fs.h header file */" \
14419 > public_config.h
14420if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14421 uniq tmp_config.$$ >> public_config.h
14422else
14423 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14424fi
14425if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14426 uniq tmp_config.$$ >> public_config.h
14427else
14428 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14429fi
14430rm -f tmp_config.$$
14431PUBLIC_CONFIG_HEADER=./public_config.h
14432
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014433
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014434for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014435do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014441 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014442fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014443ac_res=`eval echo '${'$as_ac_Header'}'`
14444 { echo "$as_me:$LINENO: result: $ac_res" >&5
14445echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014448{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450cat >conftest.$ac_ext <<_ACEOF
14451/* confdefs.h. */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h. */
14456$ac_includes_default
14457#include <$ac_header>
14458_ACEOF
14459rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014460if { (ac_try="$ac_compile"
14461case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14464esac
14465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014467 ac_status=$?
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014476 ac_header_compiler=yes
14477else
14478 echo "$as_me: failed program was:" >&5
14479sed 's/^/| /' conftest.$ac_ext >&5
14480
Theodore Ts'oe1052142006-10-21 21:46:47 -040014481 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014482fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014483
14484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14486echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487
14488# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014489{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014491cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
14497#include <$ac_header>
14498_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014499if { (ac_try="$ac_cpp conftest.$ac_ext"
14500case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503esac
14504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014506 ac_status=$?
14507 grep -v '^ *+' conftest.er1 >conftest.err
14508 rm -f conftest.er1
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014511 (exit $ac_status); } >/dev/null && {
14512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14513 test ! -s conftest.err
14514 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014515 ac_header_preproc=yes
14516else
14517 echo "$as_me: failed program was:" >&5
14518sed 's/^/| /' conftest.$ac_ext >&5
14519
14520 ac_header_preproc=no
14521fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014523rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14525echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014526
14527# So? What about this header?
14528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14529 yes:no: )
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14534 ac_header_preproc=yes
14535 ;;
14536 no:yes:* )
14537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014550 ;;
14551esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014552{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556else
14557 eval "$as_ac_Header=\$ac_header_preproc"
14558fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014559ac_res=`eval echo '${'$as_ac_Header'}'`
14560 { echo "$as_me:$LINENO: result: $ac_res" >&5
14561echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562
14563fi
14564if test `eval echo '${'$as_ac_Header'}'` = yes; then
14565 cat >>confdefs.h <<_ACEOF
14566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14567_ACEOF
14568
14569fi
14570
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014571done
14572
Theodore Ts'oe1052142006-10-21 21:46:47 -040014573{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14574echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014575if test "${ac_cv_type_intptr_t+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014577else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014578 cat >conftest.$ac_ext <<_ACEOF
14579/* confdefs.h. */
14580_ACEOF
14581cat confdefs.h >>conftest.$ac_ext
14582cat >>conftest.$ac_ext <<_ACEOF
14583/* end confdefs.h. */
14584$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014585typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014586int
14587main ()
14588{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014589if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014590 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014591if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014592 return 0;
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014598if { (ac_try="$ac_compile"
14599case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602esac
14603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014614 ac_cv_type_intptr_t=yes
14615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014616 echo "$as_me: failed program was:" >&5
14617sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014618
Theodore Ts'oe1052142006-10-21 21:46:47 -040014619 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014621
14622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014623fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014624{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14625echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014626if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014627
14628cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014629#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014630_ACEOF
14631
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014632
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014633fi
14634
Theodore Ts'oe1052142006-10-21 21:46:47 -040014635{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14636echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014637if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639else
14640 cat >conftest.$ac_ext <<_ACEOF
14641/* confdefs.h. */
14642_ACEOF
14643cat confdefs.h >>conftest.$ac_ext
14644cat >>conftest.$ac_ext <<_ACEOF
14645/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014646#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014647int
14648main ()
14649{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014650struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014651 ;
14652 return 0;
14653}
14654_ACEOF
14655rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014656if { (ac_try="$ac_compile"
14657case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660esac
14661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014668 (exit $ac_status); } && {
14669 test -z "$ac_c_werror_flag" ||
14670 test ! -s conftest.err
14671 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014672 e2fsprogs_cv_struct_st_flags=yes
14673else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014674 echo "$as_me: failed program was:" >&5
14675sed 's/^/| /' conftest.$ac_ext >&5
14676
Theodore Ts'oe1052142006-10-21 21:46:47 -040014677 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014678fi
14679
Theodore Ts'oe1052142006-10-21 21:46:47 -040014680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14681fi
14682
14683{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14684echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014685if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14687echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014688 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014690else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014691 cat >conftest.$ac_ext <<_ACEOF
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
14696/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014697#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014698int
14699main ()
14700{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014701struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014702 ;
14703 return 0;
14704}
14705_ACEOF
14706rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014707if { (ac_try="$ac_compile"
14708case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711esac
14712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014714 ac_status=$?
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014719 (exit $ac_status); } && {
14720 test -z "$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14722 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014723 e2fsprogs_cv_struct_st_flags_immut=yes
14724else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014725 echo "$as_me: failed program was:" >&5
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
Theodore Ts'oe1052142006-10-21 21:46:47 -040014728 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014729fi
14730
Theodore Ts'oe1052142006-10-21 21:46:47 -040014731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732fi
14733
14734 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14735echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014736 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014737 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014738#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014739_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014740
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014741 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014743{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14744echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014745if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014746 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014747else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014748 cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014754#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014755 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014756
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014757int
14758main ()
14759{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014760static struct sockaddr ac_aggr;
14761if (ac_aggr.sa_len)
14762return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014763 ;
14764 return 0;
14765}
14766_ACEOF
14767rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014768if { (ac_try="$ac_compile"
14769case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014784 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014785else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786 echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
14788
Theodore Ts'oe1052142006-10-21 21:46:47 -040014789 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014790/* confdefs.h. */
14791_ACEOF
14792cat confdefs.h >>conftest.$ac_ext
14793cat >>conftest.$ac_ext <<_ACEOF
14794/* end confdefs.h. */
14795#include <sys/types.h>
14796 #include <sys/socket.h>
14797
14798int
14799main ()
14800{
14801static struct sockaddr ac_aggr;
14802if (sizeof ac_aggr.sa_len)
14803return 0;
14804 ;
14805 return 0;
14806}
14807_ACEOF
14808rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014809if { (ac_try="$ac_compile"
14810case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813esac
14814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014825 ac_cv_member_struct_sockaddr_sa_len=yes
14826else
14827 echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
Theodore Ts'oe1052142006-10-21 21:46:47 -040014830 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014832
14833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014835
14836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014837fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014838{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14839echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014840if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014841
14842cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014843#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014844_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014845
14846fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014866
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014867
14868
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014869
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014870
Theodore Ts'o106ad962007-04-04 21:26:37 -040014871
14872
14873
Theodore Ts'o740837d2007-12-16 17:21:38 -050014874
14875
Theodore Ts'o261cd392008-01-21 13:45:00 -050014876
14877for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014878do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014880{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014883 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014884else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014885 cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
14891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14893#define $ac_func innocuous_$ac_func
14894
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014895/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014896 which can conflict with char $ac_func (); below.
14897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14898 <limits.h> exists even on freestanding compilers. */
14899
14900#ifdef __STDC__
14901# include <limits.h>
14902#else
14903# include <assert.h>
14904#endif
14905
14906#undef $ac_func
14907
Theodore Ts'oe1052142006-10-21 21:46:47 -040014908/* Override any GCC internal prototype to avoid an error.
14909 Use char because int might match the return type of a GCC
14910 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014911#ifdef __cplusplus
14912extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014913#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014914char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014915/* The GNU C library defines this for functions which it implements
14916 to always fail with ENOSYS. Some functions are actually named
14917 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014918#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014919choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014920#endif
14921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014922int
14923main ()
14924{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014925return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014926 ;
14927 return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014931if { (ac_try="$ac_link"
14932case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14935esac
14936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014943 (exit $ac_status); } && {
14944 test -z "$ac_c_werror_flag" ||
14945 test ! -s conftest.err
14946 } && test -s conftest$ac_exeext &&
14947 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014948 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014949else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014950 echo "$as_me: failed program was:" >&5
14951sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014952
Theodore Ts'oe1052142006-10-21 21:46:47 -040014953 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014955
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014957 conftest$ac_exeext conftest.$ac_ext
14958fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014959ac_res=`eval echo '${'$as_ac_var'}'`
14960 { echo "$as_me:$LINENO: result: $ac_res" >&5
14961echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014962if test `eval echo '${'$as_ac_var'}'` = yes; then
14963 cat >>confdefs.h <<_ACEOF
14964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14965_ACEOF
14966
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014967fi
14968done
14969
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014970SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014971{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14972echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014973if test "${ac_cv_lib_socket_socket+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014976 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014977LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014978cat >conftest.$ac_ext <<_ACEOF
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984
Theodore Ts'oe1052142006-10-21 21:46:47 -040014985/* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014988#ifdef __cplusplus
14989extern "C"
14990#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014991char socket ();
14992int
14993main ()
14994{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014995return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014996 ;
14997 return 0;
14998}
14999_ACEOF
15000rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015001if { (ac_try="$ac_link"
15002case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005esac
15006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest$ac_exeext &&
15017 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015018 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015020 echo "$as_me: failed program was:" >&5
15021sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015022
Theodore Ts'oe1052142006-10-21 21:46:47 -040015023 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015025
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015027 conftest$ac_exeext conftest.$ac_ext
15028LIBS=$ac_check_lib_save_LIBS
15029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015030{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15031echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015032if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015033 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015034fi
15035
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015036
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015037DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015038{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15039echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015040if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015043 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015044LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015045cat >conftest.$ac_ext <<_ACEOF
15046/* confdefs.h. */
15047_ACEOF
15048cat confdefs.h >>conftest.$ac_ext
15049cat >>conftest.$ac_ext <<_ACEOF
15050/* end confdefs.h. */
15051
Theodore Ts'oe1052142006-10-21 21:46:47 -040015052/* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015055#ifdef __cplusplus
15056extern "C"
15057#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015058char dlopen ();
15059int
15060main ()
15061{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015062return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015063 ;
15064 return 0;
15065}
15066_ACEOF
15067rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015068if { (ac_try="$ac_link"
15069case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext &&
15084 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015085 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015089
Theodore Ts'oe1052142006-10-21 21:46:47 -040015090 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015091fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015092
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015094 conftest$ac_exeext conftest.$ac_ext
15095LIBS=$ac_check_lib_save_LIBS
15096fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015097{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15098echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015099if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015100 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015101cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015102#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015103_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015104
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015105fi
15106
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015107
Theodore Ts'oe1052142006-10-21 21:46:47 -040015108{ echo "$as_me:$LINENO: checking for optreset" >&5
15109echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015110if test "${ac_cv_have_optreset+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015113 cat >conftest.$ac_ext <<_ACEOF
15114/* confdefs.h. */
15115_ACEOF
15116cat confdefs.h >>conftest.$ac_ext
15117cat >>conftest.$ac_ext <<_ACEOF
15118/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015119#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015120
15121_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015123 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015124 ac_cv_have_optreset=yes
15125else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015126 ac_cv_have_optreset=no
15127fi
15128rm -f conftest*
15129
15130fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015131{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15132echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015133if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015134 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015135#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015136_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015137
15138fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015139{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15140echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015141if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015142 UNI_DIFF_OPTS=-u
15143else
15144 UNI_DIFF_OPTS=-c
15145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015146{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15147echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015148
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015149case "$host_os" in
15150linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015151 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015152#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015153_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015154
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015155 ;;
15156esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015157LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015158CYGWIN_CMT="#"
15159UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015160case "$host_os" in
15161linux*)
15162 LINUX_CMT=
15163 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015164cygwin)
15165 CYGWIN_CMT=
15166 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015167 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015168esac
15169
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015170
15171
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015172case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015173linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015174 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15175 root_prefix="";
15176 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015177 fi
15178 ;;
15179esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015180case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015181linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015182 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015183 prefix="/usr";
15184 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015185 if test "$mandir" = '${prefix}/man' ; then
15186 echo "...and mandir defaults to /usr/share/man"
15187 mandir=/usr/share/man
15188 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015189 fi
15190;;
15191esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015192if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015193 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015194 root_prefix="$ac_default_prefix"
15195 else
15196 root_prefix="$prefix"
15197 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015198 root_bindir=$bindir
15199 root_sbindir=$sbindir
15200 root_libdir=$libdir
15201 root_sysconfdir=$sysconfdir
15202else
15203 root_bindir='${root_prefix}/bin'
15204 root_sbindir='${root_prefix}/sbin'
15205 root_libdir='${root_prefix}/lib'
15206 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015207fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015208if test "$bindir" != '${exec_prefix}/bin'; then
15209 root_bindir=$bindir
15210 echo "Setting root_bindir to $root_bindir"
15211fi
15212if test "$sbindir" != '${exec_prefix}/sbin'; then
15213 root_sbindir=$sbindir
15214 echo "Setting root_sbindir to $root_sbindir"
15215fi
15216if test "$libdir" != '${exec_prefix}/lib'; then
15217 root_libdir=$libdir
15218 echo "Setting root_libdir to $root_libdir"
15219fi
15220if test "$sysconfdir" != '${prefix}/etc'; then
15221 root_sysconfdir=$sysconfdir
15222 echo "Setting root_sysconfdir to $root_sysconfdir"
15223fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015224
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015225
15226
15227
15228
Theodore Ts'oe1052142006-10-21 21:46:47 -040015229{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15230echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015231if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015233else
15234 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015235cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015241#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015242int
15243main ()
15244{
Theodore Ts'oae851481997-04-29 18:13:24 +000015245fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015246 ;
15247 return 0;
15248}
15249_ACEOF
15250rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015251if { (ac_try="$ac_link"
15252case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest$ac_exeext &&
15267 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015268 ac_cv_e2fsprogs_use_static=yes
15269else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015270 echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
15272
Theodore Ts'oe1052142006-10-21 21:46:47 -040015273 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015274fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015275
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015277 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015278LDFLAGS=$SAVE_LDFLAGS
15279fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015280
Theodore Ts'odefde781999-01-04 07:39:19 +000015281case "$host_os" in
15282solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015283 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015284;;
15285esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015286{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15287echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015288LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015289if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015290 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015291fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015292
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015293case "$host_os" in
15294darwin*)
15295 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015296 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015297#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015298_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015299
15300 ;;
15301esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015302SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15303ET_DIR=`cd ${srcdir}/lib/et; pwd`
15304
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015305
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015306if test "$cross_compiling" = yes ; then
15307 DO_TEST_SUITE=
15308else
15309 DO_TEST_SUITE=check
15310fi
15311
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015312INTL_FLAGS=
15313if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15314 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15315fi
15316
Theodore Ts'odd947da2005-11-09 18:37:07 -040015317if test $cross_compiling = no; then
15318 BUILD_CFLAGS="$CFLAGS"
15319 BUILD_LDFLAGS="$LDFLAGS"
15320else
15321 BUILD_CFLAGS=
15322 BUILD_LDFLAGS=
15323fi
15324
15325
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015326test -d lib || mkdir lib
15327test -d include || mkdir include
15328test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015329test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015330for i in MCONFIG Makefile e2fsprogs.spec \
15331 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015332 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15333 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015334 lib/uuid/Makefile lib/uuid/uuid_types.h \
15335 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015336 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15337 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015338 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015339 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15340 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15341 if test -d `dirname ${srcdir}/$i` ; then
15342 outlist="$outlist $i"
15343 fi
15344done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015345ac_config_files="$ac_config_files $outlist"
15346
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015347cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015348# This file is a shell script that caches the results of configure
15349# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015350# scripts and configure runs, see configure's option --config-cache.
15351# It is not useful on other systems. If it contains results you don't
15352# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015353#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015354# config.status only pays attention to the cache file if you give it
15355# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015356#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015357# `ac_cv_env_foo' variables (set or unset) will be overridden when
15358# loading this file, other *unset* `ac_cv_foo' will be assigned the
15359# following values.
15360
15361_ACEOF
15362
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015363# The following way of writing the cache mishandles newlines in values,
15364# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015365# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015366# Ultrix sh set writes to stderr and can't be redirected directly,
15367# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015368(
15369 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15370 eval ac_val=\$$ac_var
15371 case $ac_val in #(
15372 *${as_nl}*)
15373 case $ac_var in #(
15374 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15375echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15376 esac
15377 case $ac_var in #(
15378 _ | IFS | as_nl) ;; #(
15379 *) $as_unset $ac_var ;;
15380 esac ;;
15381 esac
15382 done
15383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015384 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015385 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15386 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015387 # `set' does not quote correctly, so add quotes (double-quote
15388 # substitution turns \\\\ into \\, and sed turns \\ into \).
15389 sed -n \
15390 "s/'/'\\\\''/g;
15391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015392 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015393 *)
15394 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015396 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015397 esac |
15398 sort
15399) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015400 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015401 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015402 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015403 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15405 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015406 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15407 :end' >>confcache
15408if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15409 if test -w "$cache_file"; then
15410 test "x$cache_file" != "x/dev/null" &&
15411 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15412echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015413 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015414 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015415 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15416echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015417 fi
15418fi
15419rm -f confcache
15420
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015421test "x$prefix" = xNONE && prefix=$ac_default_prefix
15422# Let make expand exec_prefix.
15423test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15424
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015425# Transform confdefs.h into DEFS.
15426# Protect against shell expansion while executing Makefile rules.
15427# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015428#
15429# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015430# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015431# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015432ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015433t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015434:clear
15435s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015436t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015437s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015438t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015439b any
15440:quote
15441s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15442s/\[/\\&/g
15443s/\]/\\&/g
15444s/\$/$$/g
15445H
15446:any
15447${
15448 g
15449 s/^\n//
15450 s/\n/ /g
15451 p
15452}
15453'
15454DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015455
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015456
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015457ac_libobjs=
15458ac_ltlibobjs=
15459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15460 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15462 ac_i=`echo "$ac_i" | sed "$ac_script"`
15463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15464 # will be set to the directory where LIBOBJS objects are built.
15465 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15466 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015467done
15468LIBOBJS=$ac_libobjs
15469
15470LTLIBOBJS=$ac_ltlibobjs
15471
15472
15473
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015474: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015475ac_clean_files_save=$ac_clean_files
15476ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15477{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15478echo "$as_me: creating $CONFIG_STATUS" >&6;}
15479cat >$CONFIG_STATUS <<_ACEOF
15480#! $SHELL
15481# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015482# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015483# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015484# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015486debug=false
15487ac_cs_recheck=false
15488ac_cs_silent=false
15489SHELL=\${CONFIG_SHELL-$SHELL}
15490_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015492cat >>$CONFIG_STATUS <<\_ACEOF
15493## --------------------- ##
15494## M4sh Initialization. ##
15495## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015496
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015497# Be more Bourne compatible
15498DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015499if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15500 emulate sh
15501 NULLCMD=:
15502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15503 # is contrary to our usage. Disable this feature.
15504 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015505 setopt NO_GLOB_SUBST
15506else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015507 case `(set -o) 2>/dev/null` in
15508 *posix*) set -o posix ;;
15509esac
15510
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015511fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015512
15513
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015514
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015515
Theodore Ts'oe1052142006-10-21 21:46:47 -040015516# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015517# Avoid depending upon Character Ranges.
15518as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15519as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15520as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15521as_cr_digits='0123456789'
15522as_cr_alnum=$as_cr_Letters$as_cr_digits
15523
15524# The user is always right.
15525if test "${PATH_SEPARATOR+set}" != set; then
15526 echo "#! /bin/sh" >conf$$.sh
15527 echo "exit 0" >>conf$$.sh
15528 chmod +x conf$$.sh
15529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15530 PATH_SEPARATOR=';'
15531 else
15532 PATH_SEPARATOR=:
15533 fi
15534 rm -f conf$$.sh
15535fi
15536
Theodore Ts'oe1052142006-10-21 21:46:47 -040015537# Support unset when possible.
15538if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15539 as_unset=unset
15540else
15541 as_unset=false
15542fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015543
Theodore Ts'oe1052142006-10-21 21:46:47 -040015544
15545# IFS
15546# We need space, tab and new line, in precisely that order. Quoting is
15547# there to prevent editors from complaining about space-tab.
15548# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15549# splitting by setting IFS to empty value.)
15550as_nl='
15551'
15552IFS=" "" $as_nl"
15553
15554# Find who we are. Look in the path if we contain no directory separator.
15555case $0 in
15556 *[\\/]* ) as_myself=$0 ;;
15557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015558for as_dir in $PATH
15559do
15560 IFS=$as_save_IFS
15561 test -z "$as_dir" && as_dir=.
15562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15563done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015564IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015565
Theodore Ts'oe1052142006-10-21 21:46:47 -040015566 ;;
15567esac
15568# We did not find ourselves, most probably we were run as `sh COMMAND'
15569# in which case we are not to be found in the path.
15570if test "x$as_myself" = x; then
15571 as_myself=$0
15572fi
15573if test ! -f "$as_myself"; then
15574 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15575 { (exit 1); exit 1; }
15576fi
15577
15578# Work around bugs in pre-3.0 UWIN ksh.
15579for as_var in ENV MAIL MAILPATH
15580do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15581done
15582PS1='$ '
15583PS2='> '
15584PS4='+ '
15585
15586# NLS nuisances.
15587for as_var in \
15588 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15589 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15590 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015591do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015592 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15593 eval $as_var=C; export $as_var
15594 else
15595 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15596 fi
15597done
15598
15599# Required to use basename.
15600if expr a : '\(a\)' >/dev/null 2>&1 &&
15601 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15602 as_expr=expr
15603else
15604 as_expr=false
15605fi
15606
15607if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15608 as_basename=basename
15609else
15610 as_basename=false
15611fi
15612
15613
15614# Name of the executable.
15615as_me=`$as_basename -- "$0" ||
15616$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15617 X"$0" : 'X\(//\)$' \| \
15618 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15619echo X/"$0" |
15620 sed '/^.*\/\([^/][^/]*\)\/*$/{
15621 s//\1/
15622 q
15623 }
15624 /^X\/\(\/\/\)$/{
15625 s//\1/
15626 q
15627 }
15628 /^X\/\(\/\).*/{
15629 s//\1/
15630 q
15631 }
15632 s/.*/./; q'`
15633
15634# CDPATH.
15635$as_unset CDPATH
15636
15637
15638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015639 as_lineno_1=$LINENO
15640 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015641 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015642 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015644 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15645 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015646 # line-number line after each line using $LINENO; the second 'sed'
15647 # does the real work. The second script uses 'N' to pair each
15648 # line-number line with the line containing $LINENO, and appends
15649 # trailing '-' during substitution so that $LINENO is not a special
15650 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015651 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015652 # scripts with optimization help from Paolo Bonzini. Blame Lee
15653 # E. McMahon (1931-1989) for sed's syntax. :-)
15654 sed -n '
15655 p
15656 /[$]LINENO/=
15657 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015658 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015659 s/[$]LINENO.*/&-/
15660 t lineno
15661 b
15662 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015663 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015664 :loop
15665 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015666 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015667 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015668 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015669 chmod +x "$as_me.lineno" ||
15670 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015671 { (exit 1); exit 1; }; }
15672
15673 # Don't try to exec as it changes $[0], causing all sort of problems
15674 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015675 # original and so on. Autoconf is especially sensitive to this).
15676 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015677 # Exit status is that of the last command.
15678 exit
15679}
15680
15681
Theodore Ts'oe1052142006-10-21 21:46:47 -040015682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15683 as_dirname=dirname
15684else
15685 as_dirname=false
15686fi
15687
15688ECHO_C= ECHO_N= ECHO_T=
15689case `echo -n x` in
15690-n*)
15691 case `echo 'x\c'` in
15692 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15693 *) ECHO_C='\c';;
15694 esac;;
15695*)
15696 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015697esac
15698
Theodore Ts'oe1052142006-10-21 21:46:47 -040015699if expr a : '\(a\)' >/dev/null 2>&1 &&
15700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015701 as_expr=expr
15702else
15703 as_expr=false
15704fi
15705
15706rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015707if test -d conf$$.dir; then
15708 rm -f conf$$.dir/conf$$.file
15709else
15710 rm -f conf$$.dir
15711 mkdir conf$$.dir
15712fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015713echo >conf$$.file
15714if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015715 as_ln_s='ln -s'
15716 # ... but there are two gotchas:
15717 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15718 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15719 # In both cases, we have to default to `cp -p'.
15720 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015721 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015722elif ln conf$$.file conf$$ 2>/dev/null; then
15723 as_ln_s=ln
15724else
15725 as_ln_s='cp -p'
15726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015727rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15728rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015729
15730if mkdir -p . 2>/dev/null; then
15731 as_mkdir_p=:
15732else
15733 test -d ./-p && rmdir ./-p
15734 as_mkdir_p=false
15735fi
15736
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015737if test -x / >/dev/null 2>&1; then
15738 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015739else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015740 if ls -dL / >/dev/null 2>&1; then
15741 as_ls_L_option=L
15742 else
15743 as_ls_L_option=
15744 fi
15745 as_test_x='
15746 eval sh -c '\''
15747 if test -d "$1"; then
15748 test -d "$1/.";
15749 else
15750 case $1 in
15751 -*)set "./$1";;
15752 esac;
15753 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15754 ???[sx]*):;;*)false;;esac;fi
15755 '\'' sh
15756 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015757fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015758as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015759
15760# Sed expression to map a string onto a valid CPP name.
15761as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15762
15763# Sed expression to map a string onto a valid variable name.
15764as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15765
15766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015767exec 6>&1
15768
Theodore Ts'oe1052142006-10-21 21:46:47 -040015769# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015770# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015771# values after options handling.
15772ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015773This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015774generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015775
15776 CONFIG_FILES = $CONFIG_FILES
15777 CONFIG_HEADERS = $CONFIG_HEADERS
15778 CONFIG_LINKS = $CONFIG_LINKS
15779 CONFIG_COMMANDS = $CONFIG_COMMANDS
15780 $ $0 $@
15781
Theodore Ts'oe1052142006-10-21 21:46:47 -040015782on `(hostname || uname -n) 2>/dev/null | sed 1q`
15783"
15784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015785_ACEOF
15786
Theodore Ts'oe1052142006-10-21 21:46:47 -040015787cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015788# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015789config_files="$ac_config_files"
15790config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015791
Theodore Ts'oe1052142006-10-21 21:46:47 -040015792_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015793
15794cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015795ac_cs_usage="\
15796\`$as_me' instantiates files from templates according to the
15797current configuration.
15798
15799Usage: $0 [OPTIONS] [FILE]...
15800
15801 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015802 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015803 -q, --quiet do not print progress messages
15804 -d, --debug don't remove temporary files
15805 --recheck update $as_me by reconfiguring in the same conditions
15806 --file=FILE[:TEMPLATE]
15807 instantiate the configuration file FILE
15808
15809Configuration files:
15810$config_files
15811
15812Configuration commands:
15813$config_commands
15814
15815Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015816
Theodore Ts'oe1052142006-10-21 21:46:47 -040015817_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015818cat >>$CONFIG_STATUS <<_ACEOF
15819ac_cs_version="\\
15820config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015821configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015822 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015823
Theodore Ts'oe1052142006-10-21 21:46:47 -040015824Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015825This config.status script is free software; the Free Software Foundation
15826gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015827
15828ac_pwd='$ac_pwd'
15829srcdir='$srcdir'
15830INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015831_ACEOF
15832
15833cat >>$CONFIG_STATUS <<\_ACEOF
15834# If no file are specified by the user, then we need to provide default
15835# value. By we need to know if files were specified by the user.
15836ac_need_defaults=:
15837while test $# != 0
15838do
15839 case $1 in
15840 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015843 ac_shift=:
15844 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015845 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015846 ac_option=$1
15847 ac_optarg=$2
15848 ac_shift=shift
15849 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015850 esac
15851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015852 case $ac_option in
15853 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15855 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015856 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15857 echo "$ac_cs_version"; exit ;;
15858 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015859 debug=: ;;
15860 --file | --fil | --fi | --f )
15861 $ac_shift
15862 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15863 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015864 --he | --h | --help | --hel | -h )
15865 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15868 ac_cs_silent=: ;;
15869
15870 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015871 -*) { echo "$as_me: error: unrecognized option: $1
15872Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015873 { (exit 1); exit 1; }; } ;;
15874
Theodore Ts'oe1052142006-10-21 21:46:47 -040015875 *) ac_config_targets="$ac_config_targets $1"
15876 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015877
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015878 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015879 shift
15880done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015881
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015882ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015883
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015884if $ac_cs_silent; then
15885 exec 6>/dev/null
15886 ac_configure_extra_args="$ac_configure_extra_args --silent"
15887fi
15888
15889_ACEOF
15890cat >>$CONFIG_STATUS <<_ACEOF
15891if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15893 CONFIG_SHELL=$SHELL
15894 export CONFIG_SHELL
15895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015896fi
15897
15898_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015899cat >>$CONFIG_STATUS <<\_ACEOF
15900exec 5>>config.log
15901{
15902 echo
15903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15904## Running $as_me. ##
15905_ASBOX
15906 echo "$ac_log"
15907} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015908
Theodore Ts'oe1052142006-10-21 21:46:47 -040015909_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015910cat >>$CONFIG_STATUS <<_ACEOF
15911#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015912# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015913#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015914# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015915 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015916 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015917 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015918 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15919 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015920
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015922_ACEOF
15923
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015924cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015925
15926# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015927for ac_config_target in $ac_config_targets
15928do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015929 case $ac_config_target in
15930 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15931 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15932
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015933 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15934echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15935 { (exit 1); exit 1; }; };;
15936 esac
15937done
15938
Theodore Ts'oe1052142006-10-21 21:46:47 -040015939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015940# If the user did not use the arguments to specify the items to instantiate,
15941# then the envvar interface is used. Set only those that are not.
15942# We use the long form for the default assignment because of an extremely
15943# bizarre bug on SunOS 4.1.3.
15944if $ac_need_defaults; then
15945 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15947fi
15948
15949# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015950# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015951# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015952# Hook for its removal unless debugging.
15953# Note that there is a small window in which the directory will not be cleaned:
15954# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015955$debug ||
15956{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015957 tmp=
15958 trap 'exit_status=$?
15959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15960' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015961 trap '{ (exit 1); exit 1; }' 1 2 13 15
15962}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015963# Create a (secure) tmp directory for tmp files.
15964
15965{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015967 test -n "$tmp" && test -d "$tmp"
15968} ||
15969{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015970 tmp=./conf$$-$RANDOM
15971 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015972} ||
15973{
15974 echo "$me: cannot create a temporary directory in ." >&2
15975 { (exit 1); exit 1; }
15976}
15977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015978#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015979# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015980#
15981
15982# No need to generate the scripts if there are no CONFIG_FILES.
15983# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015984if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015985
15986_ACEOF
15987
Theodore Ts'oe1052142006-10-21 21:46:47 -040015988# Create sed commands to just substitute file output variables.
15989
15990# Remaining file output variables are in a fragment that also has non-file
15991# output varibles.
15992
15993
15994
15995ac_delim='%!_!# '
15996for ac_last_try in false false false false false :; do
15997 cat >conf$$subs.sed <<_ACEOF
15998SHELL!$SHELL$ac_delim
15999PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16000PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16001PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16002PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16003PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16004PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16005exec_prefix!$exec_prefix$ac_delim
16006prefix!$prefix$ac_delim
16007program_transform_name!$program_transform_name$ac_delim
16008bindir!$bindir$ac_delim
16009sbindir!$sbindir$ac_delim
16010libexecdir!$libexecdir$ac_delim
16011datarootdir!$datarootdir$ac_delim
16012datadir!$datadir$ac_delim
16013sysconfdir!$sysconfdir$ac_delim
16014sharedstatedir!$sharedstatedir$ac_delim
16015localstatedir!$localstatedir$ac_delim
16016includedir!$includedir$ac_delim
16017oldincludedir!$oldincludedir$ac_delim
16018docdir!$docdir$ac_delim
16019infodir!$infodir$ac_delim
16020htmldir!$htmldir$ac_delim
16021dvidir!$dvidir$ac_delim
16022pdfdir!$pdfdir$ac_delim
16023psdir!$psdir$ac_delim
16024libdir!$libdir$ac_delim
16025localedir!$localedir$ac_delim
16026mandir!$mandir$ac_delim
16027DEFS!$DEFS$ac_delim
16028ECHO_C!$ECHO_C$ac_delim
16029ECHO_N!$ECHO_N$ac_delim
16030ECHO_T!$ECHO_T$ac_delim
16031LIBS!$LIBS$ac_delim
16032build_alias!$build_alias$ac_delim
16033host_alias!$host_alias$ac_delim
16034target_alias!$target_alias$ac_delim
16035E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16036E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16037E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16038E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016039E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016040build!$build$ac_delim
16041build_cpu!$build_cpu$ac_delim
16042build_vendor!$build_vendor$ac_delim
16043build_os!$build_os$ac_delim
16044host!$host$ac_delim
16045host_cpu!$host_cpu$ac_delim
16046host_vendor!$host_vendor$ac_delim
16047host_os!$host_os$ac_delim
16048CC!$CC$ac_delim
16049CFLAGS!$CFLAGS$ac_delim
16050LDFLAGS!$LDFLAGS$ac_delim
16051CPPFLAGS!$CPPFLAGS$ac_delim
16052ac_ct_CC!$ac_ct_CC$ac_delim
16053EXEEXT!$EXEEXT$ac_delim
16054OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016055CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016056LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016057GREP!$GREP$ac_delim
16058EGREP!$EGREP$ac_delim
16059LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16060MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16061HTREE_CMT!$HTREE_CMT$ac_delim
16062ELF_CMT!$ELF_CMT$ac_delim
16063BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16064PROFILE_CMT!$PROFILE_CMT$ac_delim
16065CHECKER_CMT!$CHECKER_CMT$ac_delim
16066LIB_EXT!$LIB_EXT$ac_delim
16067STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16068PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016069DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16070IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016071_ACEOF
16072
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016073 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 -040016074 break
16075 elif $ac_last_try; then
16076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16077echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16078 { (exit 1); exit 1; }; }
16079 else
16080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016081 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016082done
16083
16084ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16085if test -n "$ac_eof"; then
16086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16087 ac_eof=`expr $ac_eof + 1`
16088fi
16089
16090cat >>$CONFIG_STATUS <<_ACEOF
16091cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16093/^[ ]*@MCONFIG@[ ]*$/{
16094r $MCONFIG
16095d
16096}
16097/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16098r $MAKEFILE_ELF
16099d
16100}
16101/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16102r $MAKEFILE_BSDLIB
16103d
16104}
16105/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16106r $MAKEFILE_PROFILE
16107d
16108}
16109/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16110r $MAKEFILE_CHECKER
16111d
16112}
16113/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16114r $MAKEFILE_LIBRARY
16115d
16116}
16117/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16118r $ASM_TYPES_HEADER
16119d
16120}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016121/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16122r $PUBLIC_CONFIG_HEADER
16123d
16124}
Theodore Ts'oe1052142006-10-21 21:46:47 -040016125_ACEOF
16126sed '
16127s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16128s/^/s,@/; s/!/@,|#_!!_#|/
16129:n
16130t n
16131s/'"$ac_delim"'$/,g/; t
16132s/$/\\/; p
16133N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16134' >>$CONFIG_STATUS <conf$$subs.sed
16135rm -f conf$$subs.sed
16136cat >>$CONFIG_STATUS <<_ACEOF
16137CEOF$ac_eof
16138_ACEOF
16139
16140
16141ac_delim='%!_!# '
16142for ac_last_try in false false false false false :; do
16143 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o488c75a2008-06-07 08:55:21 -040016144RESIZER_CMT!$RESIZER_CMT$ac_delim
16145FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016146FSCK_MAN!$FSCK_MAN$ac_delim
16147E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16148E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016149PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016150DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16151DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16152DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16153STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016154STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016155UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016156GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16157PACKAGE!$PACKAGE$ac_delim
16158VERSION!$VERSION$ac_delim
16159SET_MAKE!$SET_MAKE$ac_delim
16160INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16161INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16162INSTALL_DATA!$INSTALL_DATA$ac_delim
16163MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16164USE_NLS!$USE_NLS$ac_delim
16165MSGFMT!$MSGFMT$ac_delim
16166GMSGFMT!$GMSGFMT$ac_delim
16167XGETTEXT!$XGETTEXT$ac_delim
16168MSGMERGE!$MSGMERGE$ac_delim
16169RANLIB!$RANLIB$ac_delim
16170ALLOCA!$ALLOCA$ac_delim
16171GLIBC21!$GLIBC21$ac_delim
16172HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16173HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16174HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16175HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16176LIBICONV!$LIBICONV$ac_delim
16177LTLIBICONV!$LTLIBICONV$ac_delim
16178INTLBISON!$INTLBISON$ac_delim
16179BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16180USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16181CATOBJEXT!$CATOBJEXT$ac_delim
16182DATADIRNAME!$DATADIRNAME$ac_delim
16183INSTOBJEXT!$INSTOBJEXT$ac_delim
16184GENCAT!$GENCAT$ac_delim
16185INTLOBJS!$INTLOBJS$ac_delim
16186INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16187INTLLIBS!$INTLLIBS$ac_delim
16188LIBINTL!$LIBINTL$ac_delim
16189LTLIBINTL!$LTLIBINTL$ac_delim
16190POSUB!$POSUB$ac_delim
16191BINARY_TYPE!$BINARY_TYPE$ac_delim
16192LN!$LN$ac_delim
16193LN_S!$LN_S$ac_delim
16194MV!$MV$ac_delim
16195CP!$CP$ac_delim
16196RM!$RM$ac_delim
16197CHMOD!$CHMOD$ac_delim
16198AWK!$AWK$ac_delim
16199SED!$SED$ac_delim
16200PERL!$PERL$ac_delim
16201LDCONFIG!$LDCONFIG$ac_delim
16202AR!$AR$ac_delim
16203STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016204MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016205BUILD_CC!$BUILD_CC$ac_delim
16206SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16207SIZEOF_INT!$SIZEOF_INT$ac_delim
16208SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16209SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16210SOCKET_LIB!$SOCKET_LIB$ac_delim
16211DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16212UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16213LINUX_CMT!$LINUX_CMT$ac_delim
16214CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16215UNIX_CMT!$UNIX_CMT$ac_delim
16216root_prefix!$root_prefix$ac_delim
16217root_bindir!$root_bindir$ac_delim
16218root_sbindir!$root_sbindir$ac_delim
16219root_libdir!$root_libdir$ac_delim
16220root_sysconfdir!$root_sysconfdir$ac_delim
16221LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16222SS_DIR!$SS_DIR$ac_delim
16223ET_DIR!$ET_DIR$ac_delim
16224DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16225INTL_FLAGS!$INTL_FLAGS$ac_delim
16226BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16227BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16228LIBOBJS!$LIBOBJS$ac_delim
16229LTLIBOBJS!$LTLIBOBJS$ac_delim
16230_ACEOF
16231
Theodore Ts'odc9345a2008-06-07 10:08:48 -040016232 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016233 break
16234 elif $ac_last_try; then
16235 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16236echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16237 { (exit 1); exit 1; }; }
16238 else
16239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16240 fi
16241done
16242
16243ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16244if test -n "$ac_eof"; then
16245 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16246 ac_eof=`expr $ac_eof + 1`
16247fi
16248
16249cat >>$CONFIG_STATUS <<_ACEOF
16250cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16251/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16252_ACEOF
16253sed '
16254s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16255s/^/s,@/; s/!/@,|#_!!_#|/
16256:n
16257t n
16258s/'"$ac_delim"'$/,g/; t
16259s/$/\\/; p
16260N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16261' >>$CONFIG_STATUS <conf$$subs.sed
16262rm -f conf$$subs.sed
16263cat >>$CONFIG_STATUS <<_ACEOF
16264:end
16265s/|#_!!_#|//g
16266CEOF$ac_eof
16267_ACEOF
16268
16269
16270# VPATH may cause trouble with some makes, so we remove $(srcdir),
16271# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16272# trailing colons and then remove the whole line if VPATH becomes empty
16273# (actually we leave an empty line to preserve line numbers).
16274if test "x$srcdir" = x.; then
16275 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16276s/:*\$(srcdir):*/:/
16277s/:*\${srcdir}:*/:/
16278s/:*@srcdir@:*/:/
16279s/^\([^=]*=[ ]*\):*/\1/
16280s/:*$//
16281s/^[^=]*=[ ]*$//
16282}'
16283fi
16284
16285cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016286fi # test -n "$CONFIG_FILES"
16287
Theodore Ts'oe1052142006-10-21 21:46:47 -040016288
16289for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16290do
16291 case $ac_tag in
16292 :[FHLC]) ac_mode=$ac_tag; continue;;
16293 esac
16294 case $ac_mode$ac_tag in
16295 :[FHL]*:*);;
16296 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16297echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16298 { (exit 1); exit 1; }; };;
16299 :[FH]-) ac_tag=-:-;;
16300 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16301 esac
16302 ac_save_IFS=$IFS
16303 IFS=:
16304 set x $ac_tag
16305 IFS=$ac_save_IFS
16306 shift
16307 ac_file=$1
16308 shift
16309
16310 case $ac_mode in
16311 :L) ac_source=$1;;
16312 :[FH])
16313 ac_file_inputs=
16314 for ac_f
16315 do
16316 case $ac_f in
16317 -) ac_f="$tmp/stdin";;
16318 *) # Look for the file first in the build tree, then in the source tree
16319 # (if the path is not absolute). The absolute path cannot be DOS-style,
16320 # because $ac_f cannot contain `:'.
16321 test -f "$ac_f" ||
16322 case $ac_f in
16323 [\\/$]*) false;;
16324 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16325 esac ||
16326 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16327echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16328 { (exit 1); exit 1; }; };;
16329 esac
16330 ac_file_inputs="$ac_file_inputs $ac_f"
16331 done
16332
16333 # Let's still pretend it is `configure' which instantiates (i.e., don't
16334 # use $as_me), people would be surprised to read:
16335 # /* config.h. Generated by config.status. */
16336 configure_input="Generated from "`IFS=:
16337 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16338 if test x"$ac_file" != x-; then
16339 configure_input="$ac_file. $configure_input"
16340 { echo "$as_me:$LINENO: creating $ac_file" >&5
16341echo "$as_me: creating $ac_file" >&6;}
16342 fi
16343
16344 case $ac_tag in
16345 *:-:* | *:-) cat >"$tmp/stdin";;
16346 esac
16347 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016348 esac
16349
Theodore Ts'oe1052142006-10-21 21:46:47 -040016350 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016351$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$ac_file" : 'X\(//\)[^/]' \| \
16353 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016355echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16357 s//\1/
16358 q
16359 }
16360 /^X\(\/\/\)[^/].*/{
16361 s//\1/
16362 q
16363 }
16364 /^X\(\/\/\)$/{
16365 s//\1/
16366 q
16367 }
16368 /^X\(\/\).*/{
16369 s//\1/
16370 q
16371 }
16372 s/.*/./; q'`
16373 { as_dir="$ac_dir"
16374 case $as_dir in #(
16375 -*) as_dir=./$as_dir;;
16376 esac
16377 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016378 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016379 while :; do
16380 case $as_dir in #(
16381 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16382 *) as_qdir=$as_dir;;
16383 esac
16384 as_dirs="'$as_qdir' $as_dirs"
16385 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16387 X"$as_dir" : 'X\(//\)[^/]' \| \
16388 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016390echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16392 s//\1/
16393 q
16394 }
16395 /^X\(\/\/\)[^/].*/{
16396 s//\1/
16397 q
16398 }
16399 /^X\(\/\/\)$/{
16400 s//\1/
16401 q
16402 }
16403 /^X\(\/\).*/{
16404 s//\1/
16405 q
16406 }
16407 s/.*/./; q'`
16408 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016409 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016410 test -z "$as_dirs" || eval "mkdir $as_dirs"
16411 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16412echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016413 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016414 ac_builddir=.
16415
Theodore Ts'oe1052142006-10-21 21:46:47 -040016416case "$ac_dir" in
16417.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16418*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016420 # A ".." for each directory in $ac_dir_suffix.
16421 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16422 case $ac_top_builddir_sub in
16423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16425 esac ;;
16426esac
16427ac_abs_top_builddir=$ac_pwd
16428ac_abs_builddir=$ac_pwd$ac_dir_suffix
16429# for backward compatibility:
16430ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016431
16432case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016433 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016434 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016435 ac_top_srcdir=$ac_top_builddir_sub
16436 ac_abs_top_srcdir=$ac_pwd ;;
16437 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016438 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016439 ac_top_srcdir=$srcdir
16440 ac_abs_top_srcdir=$srcdir ;;
16441 *) # Relative name.
16442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16443 ac_top_srcdir=$ac_top_build_prefix$srcdir
16444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016445esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016446ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016448
Theodore Ts'oe1052142006-10-21 21:46:47 -040016449 case $ac_mode in
16450 :F)
16451 #
16452 # CONFIG_FILE
16453 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016454
16455 case $INSTALL in
16456 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016457 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016458 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016459_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016460
16461cat >>$CONFIG_STATUS <<\_ACEOF
16462# If the template does not know about datarootdir, expand it.
16463# FIXME: This hack should be removed a few years after 2.60.
16464ac_datarootdir_hack=; ac_datarootdir_seen=
16465
16466case `sed -n '/datarootdir/ {
16467 p
16468 q
16469}
16470/@datadir@/p
16471/@docdir@/p
16472/@infodir@/p
16473/@localedir@/p
16474/@mandir@/p
16475' $ac_file_inputs` in
16476*datarootdir*) ac_datarootdir_seen=yes;;
16477*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16478 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16479echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16480_ACEOF
16481cat >>$CONFIG_STATUS <<_ACEOF
16482 ac_datarootdir_hack='
16483 s&@datadir@&$datadir&g
16484 s&@docdir@&$docdir&g
16485 s&@infodir@&$infodir&g
16486 s&@localedir@&$localedir&g
16487 s&@mandir@&$mandir&g
16488 s&\\\${datarootdir}&$datarootdir&g' ;;
16489esac
16490_ACEOF
16491
16492# Neutralize VPATH when `$srcdir' = `.'.
16493# Shell code in configure.ac might set extrasub.
16494# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016495cat >>$CONFIG_STATUS <<_ACEOF
16496 sed "$ac_vpsub
16497$extrasub
16498_ACEOF
16499cat >>$CONFIG_STATUS <<\_ACEOF
16500:t
16501/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016502s&@configure_input@&$configure_input&;t t
16503s&@top_builddir@&$ac_top_builddir_sub&;t t
16504s&@srcdir@&$ac_srcdir&;t t
16505s&@abs_srcdir@&$ac_abs_srcdir&;t t
16506s&@top_srcdir@&$ac_top_srcdir&;t t
16507s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16508s&@builddir@&$ac_builddir&;t t
16509s&@abs_builddir@&$ac_abs_builddir&;t t
16510s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16511s&@INSTALL@&$ac_INSTALL&;t t
16512$ac_datarootdir_hack
16513" $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 -050016514
Theodore Ts'oe1052142006-10-21 21:46:47 -040016515test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16516 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16518 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16519which seems to be undefined. Please make sure it is defined." >&5
16520echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16521which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016522
Theodore Ts'oe1052142006-10-21 21:46:47 -040016523 rm -f "$tmp/stdin"
16524 case $ac_file in
16525 -) cat "$tmp/out"; rm -f "$tmp/out";;
16526 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16527 esac
16528 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016529
16530
Theodore Ts'oe1052142006-10-21 21:46:47 -040016531 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16532echo "$as_me: executing $ac_file commands" >&6;}
16533 ;;
16534 esac
16535
16536
16537 case $ac_file$ac_mode in
16538 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016539 for ac_file in $CONFIG_FILES; do
16540 # Support "outfile[:infile[:infile...]]"
16541 case "$ac_file" in
16542 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016543 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016544 # PO directories have a Makefile.in generated from Makefile.in.in.
16545 case "$ac_file" in */Makefile.in)
16546 # Adjust a relative srcdir.
16547 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16548 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16549 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16550 # In autoconf-2.13 it is called $ac_given_srcdir.
16551 # In autoconf-2.50 it is called $srcdir.
16552 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16553 case "$ac_given_srcdir" in
16554 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16555 /*) top_srcdir="$ac_given_srcdir" ;;
16556 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16557 esac
16558 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16559 rm -f "$ac_dir/POTFILES"
16560 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16561 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 -050016562 POMAKEFILEDEPS="POTFILES.in"
16563 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016564 # on $ac_dir but don't depend on user-specified configuration
16565 # parameters.
16566 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16567 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016568 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016569 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16570 fi
16571 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16572 # Hide the ALL_LINGUAS assigment from automake.
16573 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016574 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16575 else
16576 # The set of available languages was given in configure.in.
16577 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016578 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016579 # Compute POFILES
16580 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16581 # Compute UPDATEPOFILES
16582 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16583 # Compute DUMMYPOFILES
16584 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16585 # Compute GMOFILES
16586 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016587 case "$ac_given_srcdir" in
16588 .) srcdirpre= ;;
16589 *) srcdirpre='$(srcdir)/' ;;
16590 esac
16591 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016592 UPDATEPOFILES=
16593 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016594 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016595 for lang in $ALL_LINGUAS; do
16596 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016597 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16598 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016599 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016600 done
16601 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16602 # environment variable.
16603 INST_LINGUAS=
16604 if test -n "$ALL_LINGUAS"; then
16605 for presentlang in $ALL_LINGUAS; do
16606 useit=no
16607 if test "%UNSET%" != "$LINGUAS"; then
16608 desiredlanguages="$LINGUAS"
16609 else
16610 desiredlanguages="$ALL_LINGUAS"
16611 fi
16612 for desiredlang in $desiredlanguages; do
16613 # Use the presentlang catalog if desiredlang is
16614 # a. equal to presentlang, or
16615 # b. a variant of presentlang (because in this case,
16616 # presentlang can be used as a fallback for messages
16617 # which are not translated in the desiredlang catalog).
16618 case "$desiredlang" in
16619 "$presentlang"*) useit=yes;;
16620 esac
16621 done
16622 if test $useit = yes; then
16623 INST_LINGUAS="$INST_LINGUAS $presentlang"
16624 fi
16625 done
16626 fi
16627 CATALOGS=
16628 if test -n "$INST_LINGUAS"; then
16629 for lang in $INST_LINGUAS; do
16630 CATALOGS="$CATALOGS $lang.gmo"
16631 done
16632 fi
16633 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016634 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 -040016635 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16636 if test -f "$f"; then
16637 case "$f" in
16638 *.orig | *.bak | *~) ;;
16639 *) cat "$f" >> "$ac_dir/Makefile" ;;
16640 esac
16641 fi
16642 done
16643 fi
16644 ;;
16645 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016646 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016647
Theodore Ts'oe1052142006-10-21 21:46:47 -040016648 esac
16649done # for ac_tag
16650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016651
16652{ (exit 0); exit 0; }
16653_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016654chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016655ac_clean_files=$ac_clean_files_save
16656
16657
16658# configure is writing to config.log, and then calls config.status.
16659# config.status does its own redirection, appending to config.log.
16660# Unfortunately, on DOS this fails, as config.log is still kept open
16661# by configure, so config.status won't be able to write to it; its
16662# output is simply discarded. So we exec the FD to /dev/null,
16663# effectively closing config.log, so it can be properly (re)opened and
16664# appended to by config.status. When coming back to configure, we
16665# need to make the FD available again.
16666if test "$no_create" != yes; then
16667 ac_cs_success=:
16668 ac_config_status_args=
16669 test "$silent" = yes &&
16670 ac_config_status_args="$ac_config_status_args --quiet"
16671 exec 5>/dev/null
16672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16673 exec 5>>config.log
16674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16675 # would make configure fail if this is the last instruction.
16676 $ac_cs_success || { (exit 1); exit 1; }
16677fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016678
Theodore Ts'oee683a12005-02-05 15:53:56 -050016679if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16680